{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:54:50.071265Z", "start_time": "2023-05-30T19:54:47.846479Z" } }, "outputs": [], "source": [ "from CONWAY_table_data import evo_table\n", "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:54:51.407074Z", "start_time": "2023-05-30T19:54:51.394110Z" } }, "outputs": [], "source": [ "evo_mapping_dict = {row[1]: row[2].split() for row in evo_table}\n", "column_names = ['atomic_num', 'element', 'evolution', 'string', 'string_evolution']\n", "df = pd.DataFrame(evo_table, columns=column_names)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:54:52.523931Z", "start_time": "2023-05-30T19:54:52.502988Z" } }, "outputs": [ { "data": { "text/plain": [ "['Hf', 'Pa', 'H', 'Ca', 'Li']" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "evo_mapping_dict['He']" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:54:53.117078Z", "start_time": "2023-05-30T19:54:53.084164Z" } }, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>atomic_num</th>\n", " <th>element</th>\n", " <th>evolution</th>\n", " <th>string</th>\n", " <th>string_evolution</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>1</td>\n", " <td>H</td>\n", " <td>H</td>\n", " <td>22</td>\n", " <td>22</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>2</td>\n", " <td>He</td>\n", " <td>Hf Pa H Ca Li</td>\n", " <td>13112221133211322112211213322112</td>\n", " <td>11132132212312211322212221121123222112</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>3</td>\n", " <td>Li</td>\n", " <td>He</td>\n", " <td>312211322212221121123222112</td>\n", " <td>13112221133211322112211213322112</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>4</td>\n", " <td>Be</td>\n", " <td>Ge Ca Li</td>\n", " <td>111312211312113221133211322112211213322112</td>\n", " <td>3113112221131112211322212312211322212221121123...</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>5</td>\n", " <td>B</td>\n", " <td>Be</td>\n", " <td>1321132122211322212221121123222112</td>\n", " <td>111312211312113221133211322112211213322112</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " atomic_num element evolution \\\n", "0 1 H H \n", "1 2 He Hf Pa H Ca Li \n", "2 3 Li He \n", "3 4 Be Ge Ca Li \n", "4 5 B Be \n", "\n", " string \\\n", "0 22 \n", "1 13112221133211322112211213322112 \n", "2 312211322212221121123222112 \n", "3 111312211312113221133211322112211213322112 \n", "4 1321132122211322212221121123222112 \n", "\n", " string_evolution \n", "0 22 \n", "1 11132132212312211322212221121123222112 \n", "2 13112221133211322112211213322112 \n", "3 3113112221131112211322212312211322212221121123... \n", "4 111312211312113221133211322112211213322112 " ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:54:53.621396Z", "start_time": "2023-05-30T19:54:53.612420Z" } }, "outputs": [], "source": [ "def get_encoding(e):\n", " #print(e)\n", " one_hot = np.zeros((92))\n", " elements = evo_mapping_dict[e]\n", " #print(elements)\n", " indices = (df.loc[df['element'].isin(elements), 'atomic_num']-1).tolist()\n", " one_hot[indices] = 1\n", " return one_hot" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:54:55.205251Z", "start_time": "2023-05-30T19:54:55.127461Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(92, 92)\n" ] } ], "source": [ "onehot = []\n", "for e in df['element']:\n", " onehot.append(get_encoding(e))\n", "onehot = np.array(onehot)\n", "print(onehot.shape)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:55:03.864138Z", "start_time": "2023-05-30T19:55:02.747885Z" } }, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>1</th>\n", " <th>2</th>\n", " <th>3</th>\n", " <th>4</th>\n", " <th>5</th>\n", " <th>6</th>\n", " <th>7</th>\n", " <th>8</th>\n", " <th>9</th>\n", " <th>10</th>\n", " <th>...</th>\n", " <th>83</th>\n", " <th>84</th>\n", " <th>85</th>\n", " <th>86</th>\n", " <th>87</th>\n", " <th>88</th>\n", " <th>89</th>\n", " <th>90</th>\n", " <th>91</th>\n", " <th>92</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>1</th>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>0.0</td>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " </tr>\n", " <tr>\n", " <th>5</th>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "<p>5 rows × 92 columns</p>\n", "</div>" ], "text/plain": [ " 1 2 3 4 5 6 7 8 9 10 ... 83 84 85 86 \\\n", "1 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 \n", "2 1.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 \n", "3 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 \n", "4 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 \n", "5 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 \n", "\n", " 87 88 89 90 91 92 \n", "1 0.0 0.0 0.0 0.0 0.0 0.0 \n", "2 0.0 0.0 0.0 0.0 1.0 0.0 \n", "3 0.0 0.0 0.0 0.0 0.0 0.0 \n", "4 0.0 0.0 0.0 0.0 0.0 0.0 \n", "5 0.0 0.0 0.0 0.0 0.0 0.0 \n", "\n", "[5 rows x 92 columns]" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Create a DataFrame with the connection data\n", "connections_df = pd.DataFrame(onehot, columns=range(1, 93), index=range(1, 93))\n", "connections_df.head()" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:55:13.898594Z", "start_time": "2023-05-30T19:55:10.442166Z" } }, "outputs": [ { "data": { "application/javascript": "(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n var py_version = '3.1.1'.replace('rc', '-rc.');\n var is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1;\n var reloading = false;\n var Bokeh = root.Bokeh;\n var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n\n if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\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, js_modules, js_exports, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n if (js_modules == null) js_modules = [];\n if (js_exports == null) js_exports = {};\n\n root._bokeh_onload_callbacks.push(callback);\n\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.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n run_callbacks();\n return null;\n }\n if (!reloading) {\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n }\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 window._bokeh_on_load = on_load\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n var skip = [];\n if (window.requirejs) {\n window.requirejs.config({'packages': {}, 'paths': {'jspanel': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel', 'jspanel-modal': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal', 'jspanel-tooltip': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip', 'jspanel-hint': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint', 'jspanel-layout': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout', 'jspanel-contextmenu': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu', 'jspanel-dock': 'https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock', 'gridstack': 'https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all', 'notyf': 'https://cdn.jsdelivr.net/npm/notyf@3/notyf.min'}, 'shim': {'jspanel': {'exports': 'jsPanel'}, 'gridstack': {'exports': 'GridStack'}}});\n require([\"jspanel\"], function(jsPanel) {\n\twindow.jsPanel = jsPanel\n\ton_load()\n })\n require([\"jspanel-modal\"], function() {\n\ton_load()\n })\n require([\"jspanel-tooltip\"], function() {\n\ton_load()\n })\n require([\"jspanel-hint\"], function() {\n\ton_load()\n })\n require([\"jspanel-layout\"], function() {\n\ton_load()\n })\n require([\"jspanel-contextmenu\"], function() {\n\ton_load()\n })\n require([\"jspanel-dock\"], function() {\n\ton_load()\n })\n require([\"gridstack\"], function(GridStack) {\n\twindow.GridStack = GridStack\n\ton_load()\n })\n require([\"notyf\"], function() {\n\ton_load()\n })\n root._bokeh_is_loading = css_urls.length + 9;\n } else {\n root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n }\n\n var existing_stylesheets = []\n var links = document.getElementsByTagName('link')\n for (var i = 0; i < links.length; i++) {\n var link = links[i]\n if (link.href != null) {\n\texisting_stylesheets.push(link.href)\n }\n }\n for (var i = 0; i < css_urls.length; i++) {\n var url = css_urls[i];\n if (existing_stylesheets.indexOf(url) !== -1) {\n\ton_load()\n\tcontinue;\n }\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 } if (((window['jsPanel'] !== undefined) && (!(window['jsPanel'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/jspanel.js', 'https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/modal/jspanel.modal.js', 'https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/tooltip/jspanel.tooltip.js', 'https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/hint/jspanel.hint.js', 'https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/layout/jspanel.layout.js', 'https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/contextmenu/jspanel.contextmenu.js', 'https://cdn.holoviz.org/panel/1.0.3/dist/bundled/floatpanel/jspanel4@4.12.0/dist/extensions/dock/jspanel.dock.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['GridStack'] !== undefined) && (!(window['GridStack'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.0.3/dist/bundled/gridstack/gridstack@7.2.3/dist/gridstack-all.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } if (((window['Notyf'] !== undefined) && (!(window['Notyf'] instanceof HTMLElement))) || window.requirejs) {\n var urls = ['https://cdn.holoviz.org/panel/1.0.3/dist/bundled/notificationarea/notyf@3/notyf.min.js'];\n for (var i = 0; i < urls.length; i++) {\n skip.push(urls[i])\n }\n } var existing_scripts = []\n var scripts = document.getElementsByTagName('script')\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i]\n if (script.src != null) {\n\texisting_scripts.push(script.src)\n }\n }\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\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 for (var i = 0; i < js_modules.length; i++) {\n var url = js_modules[i];\n if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\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 element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n for (const name in js_exports) {\n var url = js_exports[name];\n if (skip.indexOf(url) >= 0 || root[name] != null) {\n\tif (!window.requirejs) {\n\t on_load();\n\t}\n\tcontinue;\n }\n var element = document.createElement('script');\n element.onerror = on_error;\n element.async = false;\n element.type = \"module\";\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n element.textContent = `\n import ${name} from \"${url}\"\n window.${name} = ${name}\n window._bokeh_on_load()\n `\n document.head.appendChild(element);\n }\n if (!js_urls.length && !js_modules.length) {\n on_load()\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 js_modules = [];\n var js_exports = {};\n var css_urls = [];\n var inline_js = [ function(Bokeh) {\n /* BEGIN bokeh.min.js */\n /*!\n * Copyright (c) 2012 - 2023, 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(root, factory) {\n const bokeh = factory();\n bokeh.__bokeh__ = true;\n if (typeof root.Bokeh === \"undefined\" || typeof root.Bokeh.__bokeh__ === \"undefined\") {\n root.Bokeh = bokeh;\n }\n const Bokeh = root.Bokeh;\n Bokeh[bokeh.version] = bokeh;\n })(this, function() {\n let define;\n const parent_require = typeof require === \"function\" && require\n return (function(modules, entry, aliases, externals) {\n if (aliases === undefined) aliases = {};\n if (externals === undefined) externals = {};\n\n const cache = {};\n\n const normalize = function(name) {\n if (typeof name === \"number\")\n return name;\n\n if (name === \"bokehjs\")\n return entry;\n\n if (!externals[name]) {\n const prefix = \"@bokehjs/\"\n if (name.slice(0, prefix.length) === prefix)\n name = name.slice(prefix.length)\n }\n\n const alias = aliases[name]\n if (alias != null)\n return alias;\n\n const trailing = name.length > 0 && name[name.lenght-1] === \"/\";\n const index = aliases[name + (trailing ? \"\" : \"/\") + \"index\"];\n if (index != null)\n return index;\n\n return name;\n }\n\n const require = function(name) {\n let mod = cache[name];\n if (!mod) {\n const id = normalize(name);\n\n mod = cache[id];\n if (!mod) {\n if (!modules[id]) {\n if (externals[id] === false || (externals[id] == true && parent_require)) {\n try {\n mod = {exports: externals[id] ? parent_require(id) : {}};\n cache[id] = cache[name] = mod;\n return mod.exports;\n } catch (e) {}\n }\n\n const err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n }\n\n mod = {exports: {}};\n cache[id] = cache[name] = mod;\n\n function __esModule() {\n Object.defineProperty(mod.exports, \"__esModule\", {value: true});\n }\n\n function __esExport(name, value) {\n Object.defineProperty(mod.exports, name, {\n enumerable: true, get: function () { return value; }\n });\n }\n\n modules[id].call(mod.exports, require, mod, mod.exports, __esModule, __esExport);\n } else {\n cache[name] = mod;\n }\n }\n\n return mod.exports;\n }\n require.resolve = function(name) {\n return \"\"\n }\n\n const main = require(entry);\n main.require = require;\n\n if (typeof Proxy !== \"undefined\") {\n // allow Bokeh.loader[\"@bokehjs/module/name\"] syntax\n main.loader = new Proxy({}, {\n get: function(_obj, module) {\n return require(module);\n }\n });\n }\n\n main.register_plugin = function(plugin_modules, plugin_entry, plugin_aliases, plugin_externals) {\n if (plugin_aliases === undefined) plugin_aliases = {};\n if (plugin_externals === undefined) plugin_externals = {};\n\n for (let name in plugin_modules) {\n modules[name] = plugin_modules[name];\n }\n\n for (let name in plugin_aliases) {\n aliases[name] = plugin_aliases[name];\n }\n\n for (let name in plugin_externals) {\n externals[name] = plugin_externals[name];\n }\n\n const plugin = require(plugin_entry);\n\n for (let name in plugin) {\n main[name] = plugin[name];\n }\n\n return plugin;\n }\n\n return main;\n })\n ([\n function _(t,_,n,o,r){o();t(1).__exportStar(t(2),n),t(70)},\n function _(e,t,r,n,o){n();var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};r.__extends=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};function i(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function c(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function u(e){return this instanceof u?(this.v=e,this):new u(e)}r.__assign=function(){return r.__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.__assign.apply(this,arguments)},r.__rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},r.__decorate=function(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},r.__param=function(e,t){return function(r,n){t(r,n,e)}},r.__esDecorate=function(e,t,r,n,o,a){function i(e){if(void 0!==e&&\"function\"!=typeof e)throw new TypeError(\"Function expected\");return e}for(var c,u=n.kind,f=\"getter\"===u?\"get\":\"setter\"===u?\"set\":\"value\",l=!t&&e?n.static?e:e.prototype:null,s=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var h in n)d[h]=\"access\"===h?{}:n[h];for(var h in n.access)d.access[h]=n.access[h];d.addInitializer=function(e){if(p)throw new TypeError(\"Cannot add initializers after decoration has completed\");a.push(i(e||null))};var _=(0,r[y])(\"accessor\"===u?{get:s.get,set:s.set}:s[f],d);if(\"accessor\"===u){if(void 0===_)continue;if(null===_||\"object\"!=typeof _)throw new TypeError(\"Object expected\");(c=i(_.get))&&(s.get=c),(c=i(_.set))&&(s.set=c),(c=i(_.init))&&o.push(c)}else(c=i(_))&&(\"field\"===u?o.push(c):s[f]=c)}l&&Object.defineProperty(l,n.name,s),p=!0},r.__runInitializers=function(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0},r.__propKey=function(e){return\"symbol\"==typeof e?e:\"\".concat(e)},r.__setFunctionName=function(e,t,r){return\"symbol\"==typeof t&&(t=t.description?\"[\".concat(t.description,\"]\"):\"\"),Object.defineProperty(e,\"name\",{configurable:!0,value:r?\"\".concat(r,\" \",t):t})},r.__metadata=function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r.__awaiter=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function c(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}u((n=n.apply(e,t||[])).next())}))},r.__generator=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(r)throw new TypeError(\"Generator is already executing.\");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}},r.__createBinding=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},r.__exportStar=function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||(0,r.__createBinding)(t,e,n)},r.__values=i,r.__read=c,r.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e},r.__spreadArrays=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n},r.__spreadArray=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},r.__await=u,r.__asyncGenerator=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var n,o=r.apply(e,t||[]),a=[];return n={},i(\"next\"),i(\"throw\"),i(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof u?Promise.resolve(r.value.v).then(f,l):s(a[0][2],r)}catch(e){s(a[0][3],e)}var r}function f(e){c(\"next\",e)}function l(e){c(\"throw\",e)}function s(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}},r.__asyncDelegator=function(e){var t,r;return t={},n(\"next\"),n(\"throw\",(function(e){throw e})),n(\"return\"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:u(e[n](t)),done:!1}:o?o(t):t}:o}},r.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=i(e),t={},n(\"next\"),n(\"throw\"),n(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},r.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e};var f=Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t};r.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&(0,r.__createBinding)(t,e,n);return f(t,e),t},r.__importDefault=function(e){return e&&e.__esModule?e:{default:e}},r.__classPrivateFieldGet=function(e,t,r,n){if(\"a\"===r&&!n)throw new TypeError(\"Private accessor was defined without a getter\");if(\"function\"==typeof t?e!==t||!n:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return\"m\"===r?n:\"a\"===r?n.call(e):n?n.value:t.get(e)},r.__classPrivateFieldSet=function(e,t,r,n,o){if(\"m\"===n)throw new TypeError(\"Private method is not writable\");if(\"a\"===n&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(\"function\"==typeof t?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return\"a\"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},r.__classPrivateFieldIn=function(e,t){if(null===t||\"object\"!=typeof t&&\"function\"!=typeof t)throw new TypeError(\"Cannot use 'in' operator on non-object\");return\"function\"==typeof e?t===e:e.has(t)}},\n function _(e,t,o,s,l){s();const r=e(1);l(\"version\",e(3).version),l(\"index\",e(4).index),o.embed=r.__importStar(e(4)),o.protocol=r.__importStar(e(67)),o._testing=r.__importStar(e(68));var _=e(18);l(\"logger\",_.logger),l(\"set_log_level\",_.set_log_level),l(\"settings\",e(28).settings),l(\"Models\",e(7).default_resolver),l(\"documents\",e(5).documents),l(\"safely\",e(69).safely)},\n function _(n,i,o,c,e){c(),o.version=\"3.1.1\"},\n function _(e,o,n,t,s){t();const r=e(5),d=e(18),i=e(38),_=e(9),c=e(8),a=e(16),u=e(53),l=e(60),m=e(65);var f=e(53);s(\"add_document_standalone\",f.add_document_standalone),s(\"index\",f.index),s(\"add_document_from_session\",e(60).add_document_from_session);var w=e(66);async function g(e,o,n,t){(0,c.isString)(e)&&(e=JSON.parse((0,i.unescape)(e)));const s={};for(const[o,n]of(0,_.entries)(e))s[o]=r.Document.from_json(n);const a=[];for(const e of o){const o=(0,m._resolve_element)(e),r=(0,m._resolve_root_elements)(e);if(null!=e.docid)a.push(await(0,u.add_document_standalone)(s[e.docid],o,r,e.use_for_title));else{if(null==e.token)throw new Error(\"Error rendering Bokeh items: either 'docid' or 'token' was expected.\");{const s=(0,l._get_ws_url)(n,t);d.logger.debug(`embed: computed ws url: ${s}`);try{a.push(await(0,l.add_document_from_session)(s,e.token,o,r,e.use_for_title)),console.log(\"Bokeh items were rendered successfully\")}catch(e){console.log(\"Error rendering Bokeh items:\",e)}}}}return a}s(\"embed_items_notebook\",w.embed_items_notebook),s(\"kernels\",w.kernels),n.embed_item=async function(e,o){const n={},t=(0,i.uuid4)();n[t]=e.doc,null==o&&(o=e.target_id);const s={roots:{[e.root_id]:o},root_ids:[e.root_id],docid:t};await(0,a.defer)();const[r]=await g(n,[s]);return r},n.embed_items=async function(e,o,n,t){return await(0,a.defer)(),g(e,o,n,t)}},\n function _(t,_,o,r,n){r();const a=t(1);a.__exportStar(t(6),o),a.__exportStar(t(39),o)},\n function _(e,t,s,o,n){o();const i=e(1),_=e(7),l=e(3),r=e(18),a=e(45),c=e(30),d=e(46),h=e(49),m=e(15),u=e(8),f=e(25),v=e(10),g=e(9),p=i.__importStar(e(43)),w=e(50),b=e(51),k=e(52),y=e(39);d.Deserializer.register(\"model\",b.decode_def);class z{constructor(e){this.subscribed_models=new Set,this.document=e}send_event(e){if(e.publish){const t=new y.MessageSentEvent(this.document,\"bokeh_event\",e);this.document._trigger_on_change(t)}this.document._trigger_on_event(e)}trigger(e){for(const t of this.subscribed_models)null!=e.origin&&e.origin!=t||t._process_event(e)}}s.EventManager=z,z.__name__=\"EventManager\",s.documents=[],s.DEFAULT_TITLE=\"Bokeh Application\";class S{constructor(e){var t;s.documents.push(this),this._init_timestamp=Date.now(),this._resolver=null!==(t=null==e?void 0:e.resolver)&&void 0!==t?t:new a.ModelResolver(_.default_resolver),this._title=s.DEFAULT_TITLE,this._roots=[],this._all_models=new Map,this._new_models=new Set,this._all_models_freeze_count=0,this._callbacks=new Map,this._document_callbacks=new Map,this._message_callbacks=new Map,this.event_manager=new z(this),this.idle=new m.Signal0(this,\"idle\"),this._idle_roots=new WeakSet,this._interactive_timestamp=null,this._interactive_plot=null}[f.equals](e,t){return this==e}get is_idle(){for(const e of this._roots)if(!this._idle_roots.has(e))return!1;return!0}notify_idle(e){this._idle_roots.add(e),this.is_idle&&(r.logger.info(`document idle at ${Date.now()-this._init_timestamp} ms`),this.event_manager.send_event(new k.DocumentReady),this.idle.emit())}clear(){this._push_all_models_freeze();try{for(;this._roots.length>0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}}interactive_start(e,t=null){null==this._interactive_plot&&(this._interactive_plot=e,this._interactive_plot.trigger_event(new k.LODStart)),this._interactive_finalize=t,this._interactive_timestamp=Date.now()}interactive_stop(){null!=this._interactive_plot&&(this._interactive_plot.trigger_event(new k.LODEnd),null!=this._interactive_finalize&&this._interactive_finalize()),this._interactive_plot=null,this._interactive_timestamp=null,this._interactive_finalize=null}interactive_duration(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp}destructively_move(e){if(e===this)throw new Error(\"Attempted to overwrite a document with itself\");e.clear();const t=(0,v.copy)(this._roots);this.clear();for(const e of t)if(null!=e.document)throw new Error(`Somehow we didn't detach ${e}`);if(0!=this._all_models.size)throw new Error(`this._all_models still had stuff in it: ${this._all_models}`);for(const s of t)e.add_root(s);e.set_title(this._title)}_push_all_models_freeze(){this._all_models_freeze_count+=1}_pop_all_models_freeze(){this._all_models_freeze_count-=1,0===this._all_models_freeze_count&&this._recompute_all_models()}_invalidate_all_models(){r.logger.debug(\"invalidating document models\"),0===this._all_models_freeze_count&&this._recompute_all_models()}_recompute_all_models(){let e=new Set;for(const t of this._roots)e=p.union(e,t.references());const t=new Set(this._all_models.values()),s=p.difference(t,e),o=p.difference(e,t),n=new Map;for(const t of e)n.set(t.id,t);for(const e of s)e.detach_document();for(const e of o)e.attach_document(this),this._new_models.add(e);this._all_models=n}roots(){return this._roots}_add_root(e){if((0,v.includes)(this._roots,e))return!1;this._push_all_models_freeze();try{this._roots.push(e)}finally{this._pop_all_models_freeze()}return!0}_remove_root(e){const t=this._roots.indexOf(e);if(t<0)return!1;this._push_all_models_freeze();try{this._roots.splice(t,1)}finally{this._pop_all_models_freeze()}return!0}_set_title(e){const t=e!=this._title;return t&&(this._title=e),t}add_root(e){this._add_root(e)&&this._trigger_on_change(new y.RootAddedEvent(this,e))}remove_root(e){this._remove_root(e)&&this._trigger_on_change(new y.RootRemovedEvent(this,e))}set_title(e){this._set_title(e)&&this._trigger_on_change(new y.TitleChangedEvent(this,e))}title(){return this._title}get_model_by_id(e){var t;return null!==(t=this._all_models.get(e))&&void 0!==t?t:null}get_model_by_name(e){const t=[];for(const s of this._all_models.values())s instanceof w.Model&&s.name==e&&t.push(s);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error(`Multiple models are named '${e}'`)}}on_message(e,t){const s=this._message_callbacks.get(e);null==s?this._message_callbacks.set(e,new Set([t])):s.add(t)}remove_on_message(e,t){var s;null===(s=this._message_callbacks.get(e))||void 0===s||s.delete(t)}_trigger_on_message(e,t){const s=this._message_callbacks.get(e);if(null!=s)for(const e of s)e(t)}on_change(e,t=!1){this._callbacks.has(e)||this._callbacks.set(e,t)}remove_on_change(e){this._callbacks.delete(e)}_trigger_on_change(e){for(const[t,s]of this._callbacks)if(!s&&e instanceof y.DocumentEventBatch)for(const s of e.events)t(s);else t(e)}_trigger_on_event(e){const t=this._document_callbacks.get(e.event_name);if(null!=t)for(const s of t)s.execute(this,e)}on_event(e,...t){var s;const o=(0,u.isString)(e)?e:e.prototype.event_name,n=null!==(s=this._document_callbacks.get(o))&&void 0!==s?s:[],i=t.map((e=>(0,u.isFunction)(e)?{execute:e}:e));this._document_callbacks.set(o,[...n,...i])}to_json_string(e=!0){return JSON.stringify(this.to_json(e))}to_json(e=!0){const t=new c.Serializer({include_defaults:e}).encode(this._roots);return{version:l.version,title:this._title,roots:t}}static from_json_string(e,t){const s=JSON.parse(e);return S.from_json(s,t)}static _handle_version(e){if(null!=e.version){const t=e.version,s=-1!==t.indexOf(\"+\")||-1!==t.indexOf(\"-\"),o=`Library versions: JS (${l.version}) / Python (${t})`;s||(0,h.pyify_version)(l.version)==t?r.logger.debug(o):(r.logger.warn(\"JS/Python version mismatch\"),r.logger.warn(o))}else r.logger.warn(\"'version' field is missing\")}static from_json(e,t){r.logger.debug(\"Creating Document from JSON\"),S._handle_version(e);const s=new a.ModelResolver(_.default_resolver);if(null!=e.defs){new d.Deserializer(s).decode(e.defs)}const o=new S({resolver:s});o._push_all_models_freeze();const n=e=>null==t?void 0:t.push(e);o.on_change(n,!0);const i=new d.Deserializer(s,o._all_models,(e=>e.attach_document(o))),l=i.decode(e.roots),c=null!=e.callbacks?i.decode(e.callbacks):{};o.remove_on_change(n);for(const[e,t]of(0,g.entries)(c))o.on_event(e,...t);for(const e of l)o.add_root(e);return null!=e.title&&o.set_title(e.title),o._pop_all_models_freeze(),o}replace_with_json(e){S.from_json(e).destructively_move(this)}create_json_patch(e){for(const t of e)if(t.document!=this)throw new Error(\"Cannot create a patch using events from a different document\");const t=new Map;for(const e of this._all_models.values())this._new_models.has(e)||t.set(e,e.ref());const s={events:new c.Serializer({references:t,binary:!0}).encode(e)};return this._new_models.clear(),s}apply_json_patch(e,t=new Map){this._push_all_models_freeze();const s=new d.Deserializer(this._resolver,this._all_models,(e=>e.attach_document(this))).decode(e.events,t);for(const e of s)switch(e.kind){case\"MessageSent\":{const{msg_type:t,msg_data:s}=e;this._trigger_on_message(t,s);break}case\"ModelChanged\":{const{model:t,attr:s,new:o}=e;t.setv({[s]:o},{sync:!1});break}case\"ColumnDataChanged\":{const{model:t,attr:s,cols:o,data:n}=e;if(null!=o){const e=t.property(s).get_value();for(const t in e)t in n||(n[t]=e[t])}t.setv({data:n},{sync:!1,check_eq:!1});break}case\"ColumnsStreamed\":{const{model:t,attr:s,data:o,rollover:n}=e,i=t.property(s);t.stream_to(i,o,n,{sync:!1});break}case\"ColumnsPatched\":{const{model:t,attr:s,patches:o}=e,n=t.property(s);t.patch_to(n,o,{sync:!1});break}case\"RootAdded\":this._add_root(e.model);break;case\"RootRemoved\":this._remove_root(e.model);break;case\"TitleChanged\":this._set_title(e.title);break;default:throw new Error(`unknown patch event type '${e.kind}'`)}this._pop_all_models_freeze()}}s.Document=S,S.__name__=\"Document\"},\n function _(e,o,r,s,t){s();const l=e(8),n=e(9),a=e(14),f=e(45);r.default_resolver=new f.ModelResolver(null),r.register_models=function(e,o=!1){for(const t of(0,l.isArray)(e)?e:(0,n.values)(e))s=t,(0,l.isObject)(s)&&s.prototype instanceof a.HasProps&&r.default_resolver.register(t,o);var s}},\n function _(n,t,r,i,o){i();\n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n // Underscore may be freely distributed under the MIT license.\n const u=Object.prototype.toString;function e(n){return null==n}function c(n){return!0===n||!1===n||\"[object Boolean]\"===u.call(n)}function f(n){return\"[object Number]\"===u.call(n)}function s(n){return\"[object String]\"===u.call(n)}function l(n){return\"symbol\"==typeof n}function a(n){const t=typeof n;return\"function\"===t||\"object\"===t&&!!n}function b(n){return a(n)&&Symbol.iterator in n}r.is_undefined=function(n){return void 0===n},r.is_defined=function(n){return void 0!==n},r.is_nullish=e,r.isNull=function(n){return null==n},r.isNotNull=function(n){return null!=n},r.isBoolean=c,r.isNumber=f,r.isInteger=function(n){return f(n)&&Number.isInteger(n)},r.isString=s,r.isSymbol=l,r.isPrimitive=function(n){return null===n||c(n)||f(n)||s(n)||l(n)},r.isFunction=function(n){const t=u.call(n);return\"[object Function]\"===t||\"[object AsyncFunction]\"===t},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){for(const r of n)if(!t(r))return!1;return!0},r.isArrayableOf=function(n,t){for(const r of n)if(!t(r))return!1;return!0},r.isTypedArray=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},r.isObject=a,r.isBasicObject=function(n){return a(n)&&e(n.constructor)},r.isPlainObject=function(n){return a(n)&&(e(n.constructor)||n.constructor===Object)},r.isIterable=b,r.isArrayable=function(n){return b(n)&&\"length\"in n}},\n function _(t,e,s,n,i){var o;n();const r=t(10),{hasOwnProperty:c}=Object.prototype;function b(t){return Object.keys(t).length}s.keys=Object.keys,s.values=Object.values,s.entries=Object.entries,s.assign=Object.assign,s.to_object=Object.fromEntries,s.extend=s.assign,s.fields=function(t){return(0,s.keys)(t)},s.clone=function(t){return Object.assign({},t)},s.merge=function(t,e){const s=Object.create(Object.prototype),n=(0,r.concat)([Object.keys(t),Object.keys(e)]);for(const i of n){const n=c.call(t,i)?t[i]:[],o=c.call(e,i)?e[i]:[];s[i]=(0,r.union)(n,o)}return s},s.size=b,s.is_empty=function(t){return 0==b(t)};class u{constructor(t){this[o]=\"Dict\",this.obj=t}clear(){for(const t of(0,s.keys)(this.obj))delete this.obj[t]}delete(t){const e=t in this;return delete this.obj[t],e}get(t){return t in this.obj?this.obj[t]:void 0}has(t){return t in this.obj}set(t,e){return this.obj[t]=e,this}get size(){return b(this.obj)}get is_empty(){return 0==this.size}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){yield*(0,s.keys)(this.obj)}*values(){yield*(0,s.values)(this.obj)}*entries(){yield*(0,s.entries)(this.obj)}forEach(t,e){for(const[s,n]of this.entries())t.call(e,n,s,this)}}s.Dict=u,u.__name__=\"Dict\",s.dict=function(t){return new u(t)}},\n function _(n,t,e,r,o){r();\n // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n // Underscore may be freely distributed under the MIT license.\n const i=n(11),c=n(12),u=n(8),s=n(13);var f=n(13);o(\"map\",f.map),o(\"reduce\",f.reduce),o(\"min\",f.min),o(\"min_by\",f.min_by),o(\"max\",f.max),o(\"max_by\",f.max_by),o(\"sum\",f.sum),o(\"cumsum\",f.cumsum),o(\"every\",f.every),o(\"some\",f.some),o(\"find\",f.find),o(\"find_last\",f.find_last),o(\"find_index\",f.find_index),o(\"find_last_index\",f.find_last_index),o(\"sorted_index\",f.sorted_index),o(\"is_empty\",f.is_empty),o(\"includes\",f.includes),o(\"contains\",f.contains),o(\"sort_by\",f.sort_by);const l=Array.prototype.slice;function a(n){return l.call(n)}function m(n,t,e=1){(0,c.assert)(e>0,\"'step' must be a positive number\"),null==t&&(t=n,n=0);const{max:r,ceil:o,abs:i}=Math,u=n<=t?e:-e,s=r(o(i(t-n)/e),0),f=new Array(s);for(let t=0;t<s;t++,n+=u)f[t]=n;return f}function d(n){const t=new Set;for(const e of n)for(const n of e)t.add(n);return t}e.head=function(n){return n[0]},e.tail=function(n){return n[n.length-1]},e.last=function(n){return n[n.length-1]},e.copy=a,e.concat=function(n){return[].concat(...n)},e.nth=function(n,t){return n[t>=0?t:n.length+t]},e.zip=function(...n){if(0==n.length)return[];const t=(0,s.min)(n.map((n=>n.length))),e=n.length,r=new Array(t);for(let o=0;o<t;o++){r[o]=new Array(e);for(let t=0;t<e;t++)r[o][t]=n[t][o]}return r},e.unzip=function(n){const t=n.length,e=(0,s.min)(n.map((n=>n.length))),r=Array(e);for(let n=0;n<e;n++)r[n]=new Array(t);for(let o=0;o<t;o++)for(let t=0;t<e;t++)r[t][o]=n[o][t];return r},e.range=m,e.linspace=function(n,t,e=100){const r=1==e?0:(t-n)/(e-1),o=new Array(e);for(let t=0;t<e;t++)o[t]=n+r*t;return o},e.transpose=function(n){const t=n.length,e=n[0].length,r=[];for(let o=0;o<e;o++){r[o]=[];for(let e=0;e<t;e++)r[o][e]=n[e][o]}return r},e.argmin=function(n){return(0,s.min_by)(m(n.length),(t=>n[t]))},e.argmax=function(n){return(0,s.max_by)(m(n.length),(t=>n[t]))},e.uniq=function(n){const t=new Set;for(const e of n)t.add(e);return[...t]},e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);(0,s.includes)(r,n)||(r.push(n),e.push(o))}return e},e._union=d,e.union=function(...n){return[...d(n)]},e.intersection=function(n,...t){const e=[];n:for(const r of n)if(!(0,s.includes)(e,r)){for(const n of t)if(!(0,s.includes)(n,r))continue n;e.push(r)}return e},e.difference=function(n,...t){const e=d(t);return(0,s.filter)(n,(n=>!e.has(n)))},e.remove_at=function(n,t){(0,c.assert)((0,u.isInteger)(t)&&t>=0);const e=a(n);return e.splice(t,1),e},e.remove_by=function(n,t){for(let e=0;e<n.length;)t(n[e])?n.splice(e,1):e++},e.clear=function(n){n.splice(0,n.length)},e.split=function(n,t){const e=[],r=n.length;let o=0,i=0;for(;i<r;)n[i]===t?(e.push(n.slice(o,i)),o=++i):++i;return e.push(n.slice(o)),e},e.shuffle=function(n){const t=n.length,e=new Array(t);for(let r=0;r<t;r++){const t=(0,i.randomIn)(0,r);t!==r&&(e[r]=e[t]),e[t]=n[r]}return e},e.pairwise=function(n,t){const e=n.length,r=new Array(e-1);for(let o=0;o<e-1;o++)r[o]=t(n[o],n[o+1]);return r},e.reversed=function(n){const t=n.length,e=new Array(t);for(let r=0;r<t;r++)e[t-r-1]=n[r];return e},e.repeat=function(n,t){return new Array(t).fill(n)}},\n function _(n,t,r,o,e){o();const a=n(8),c=n(12),{PI:u,abs:i,sign:f}=Math;function l(n){if(0==n)return 0;for(;n<=0;)n+=2*u;for(;n>2*u;)n-=2*u;return n}function s(n,t){return l(n-t)}function h(n){switch(n){case\"deg\":return u/180;case\"rad\":return 1;case\"grad\":return u/200;case\"turn\":return 2*u}}function g(n,t){for(n=Math.abs(n),t=Math.abs(t);0!=t;)[n,t]=[t,n%t];return n}r.angle_norm=l,r.angle_dist=s,r.angle_between=function(n,t,r,o=!1){const e=s(t,r);if(0==e)return!1;if(e==2*u)return!0;const a=l(n),c=s(t,a)<=e&&s(a,r)<=e;return o?!c:c},r.randomIn=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},r.atan2=function(n,t){return Math.atan2(t[1]-n[1],t[0]-n[0])},r.radians=function(n){return n*(u/180)},r.degrees=function(n){return n/(u/180)},r.compute_angle=function(n,t,r=\"anticlock\"){return-(\"anticlock\"==r?1:-1)*n*h(t)},r.invert_angle=function(n,t,r=\"anticlock\"){return-(\"anticlock\"==r?1:-1)*n/h(t)},r.to_radians_coeff=h,r.clamp=function(n,t,r){return n<t?t:n>r?r:n},r.log=function(n,t=Math.E){return Math.log(n)/Math.log(t)},r.gcd=g,r.lcm=function(n,...t){for(const r of t)n=Math.floor(n*r/g(n,r));return n},r.float=Symbol(\"float\"),r.is_Floating=function(n){return(0,a.isObject)(n)&&r.float in n};class m{constructor(n,t){(0,c.assert)(0!=t,\"Zero divisor\");const r=g(n,t),o=f(n)*f(t);this.numer=o*i(n)/r,this.denom=i(t)/r}[r.float](){return this.numer/this.denom}toString(){return`${this.numer}/${this.denom}`}}function _(n){let t=1;for(let r=2;r<=n;r++)t*=r;return t}r.Fraction=m,m.__name__=\"Fraction\",r.float32_epsilon=1.1920928955078125e-7,r.factorial=_,r.hermite=function(n){const t=new Array(n+1);t.fill(0);const r=_(n);for(let o=0;o<=Math.floor(n/2);o++){const e=(-1)**o*r/(_(o)*_(n-2*o))*2**(n-2*o);t[2*o]=e}return t},r.eval_poly=function(n,t){let r=0,o=1;for(let e=n.length-1;e>=0;e--)r+=o*n[e],o*=t;return r}},\n function _(r,n,e,o,s){o();class t extends Error{}e.AssertionError=t,t.__name__=\"AssertionError\",e.assert=function(r,n){if(!(!0===r||!1!==r&&r()))throw new t(null!=n?n:\"Assertion failed\")},e.unreachable=function(){throw new Error(\"unreachable code\")}},\n function _(n,t,e,r,o){r();const i=n(11);function u(n,t,e,...r){const o=n.length;t<0&&(t+=o),t<0?t=0:t>o&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const i=o-e+r.length,u=new n.constructor(i);let c=0;for(;c<t;c++)u[c]=n[c];for(const n of r)u[c++]=n;for(let r=t+e;r<o;r++)u[c++]=n[r];return u}function c(n,t){return u(n,t,n.length-t)}function l(n,t){return-1!==n.indexOf(t)}function f(n,t){const e=n.length,r=new n.constructor(e);for(let o=0;o<e;o++)r[o]=t(n[o],o,n);return r}function s(n,t,e){const r=n.length;if(void 0===e&&0==r)throw new Error(\"can't reduce an empty array without an initial value\");let o,i;for(void 0===e?(o=n[0],i=1):(o=e,i=0);i<r;i++)o=t(o,n[i],i,n);return o}function a(n){return function(t,e){const r=t.length;let o=n>0?0:r-1;for(;o>=0&&o<r;o+=n)if(e(t[o]))return o;return-1}}function h(n,t){let e=0,r=n.length;for(;e<r;){const o=Math.floor((e+r)/2);n[o]<t?e=o+1:r=o}return e}function g(n,t,e,r,o){const i=(o-e)/(r-t);let u=i*(n-t)+e;return isFinite(u)||(u=i*(n-r)+o,isFinite(u)||e!=o||(u=e)),u}function d(n,t){if(n<t[0])return-1;if(n>t[t.length-1])return t.length;if(1==t.length)return 0;let e=0,r=t.length-1;for(;r-e!=1;){const o=e+Math.floor((r-e)/2);n>=t[o]?e=o:r=o}return e}e.is_empty=function(n){return 0==n.length},e.copy=function(n){return Array.isArray(n)?n.slice():new n.constructor(n)},e.splice=u,e.head=c,e.insert=function(n,t,e){return u(n,e,0,t)},e.append=function(n,t){return u(n,n.length,0,t)},e.prepend=function(n,t){return u(n,0,0,t)},e.index_of=function(n,t){return n.indexOf(t)},e.includes=l,e.contains=l,e.subselect=function(n,t){const e=t.length,r=new n.constructor(e);for(let o=0;o<e;o++)r[o]=n[t[o]];return r},e.mul=function(n,t,e){const r=n.length,o=null!=e?e:new n.constructor(r);for(let e=0;e<r;e++)o[e]=n[e]*t;return o},e.map=f,e.inplace_map=function(n,t,e){const r=n.length,o=null!=e?e:n;for(let e=0;e<r;e++)o[e]=t(n[e],e)},e.filter=function(n,t){const e=n.length,r=new n.constructor(e);let o=0;for(let i=0;i<e;i++){const e=n[i];t(e,i,n)&&(r[o++]=e)}return c(r,o)},e.reduce=s,e.sort_by=function(n,t){const e=Array.from(n,((n,e)=>({index:e,key:t(n)})));return e.sort(((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r)return 1;if(e<r)return-1}return n.index-t.index})),f(n,((t,r)=>n[e[r].index]))},e.min=function(n){let t,e=1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],!isNaN(t)&&t<e&&(e=t);return e},e.max=function(n){let t,e=-1/0;for(let r=0,o=n.length;r<o;r++)t=n[r],!isNaN(t)&&t>e&&(e=t);return e},e.minmax=function(n){let t,e=1/0,r=-1/0;for(let o=0,i=n.length;o<i;o++)t=n[o],isNaN(t)||(t<e&&(e=t),t>r&&(r=t));return[e,r]},e.minmax2=function(n,t){let e,r,o=1/0,i=-1/0,u=1/0,c=-1/0;const l=Math.min(n.length,t.length);for(let f=0;f<l;f++)e=n[f],r=t[f],isNaN(e)||isNaN(r)||(e<o&&(o=e),e>i&&(i=e),r<u&&(u=r),r>c&&(c=r));return[o,i,u,c]},e.min_by=function(n,t){if(0==n.length)throw new Error(\"min_by() called with an empty array\");let e=n[0],r=t(e);for(let o=1,i=n.length;o<i;o++){const i=n[o],u=t(i);u<r&&(e=i,r=u)}return e},e.max_by=function(n,t){if(0==n.length)throw new Error(\"max_by() called with an empty array\");let e=n[0],r=t(e);for(let o=1,i=n.length;o<i;o++){const i=n[o],u=t(i);u>r&&(e=i,r=u)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;e<r;e++)t+=n[e];return t},e.cumsum=function(n){const t=new n.constructor(n.length);return s(n,((n,e,r)=>t[r]=n+e),0),t},e.every=function(n,t){for(const e of n)if(!t(e))return!1;return!0},e.some=function(n,t){for(const e of n)if(t(e))return!0;return!1},e.find_index=a(1),e.find_last_index=a(-1),e.find=function(n,t){const r=(0,e.find_index)(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=(0,e.find_last_index)(n,t);return-1==r?void 0:n[r]},e.sorted_index=h,e.bin_counts=function(n,t){const e=t.length-1,r=Array(e).fill(0);for(let o=0;o<n.length;o++){const u=h(t,n[o]);r[(0,i.clamp)(u-1,0,e-1)]+=1}return r},e.interpolate=function(n,t,e){const r=n.length,o=new Array(r);for(let i=0;i<r;i++){const r=n[i];if(isNaN(r)||0==t.length){o[i]=NaN;continue}const u=d(r,t);if(-1==u)o[i]=e[0];else if(u==t.length)o[i]=e[e.length-1];else if(u==t.length-1||t[u]==r)o[i]=e[u];else{const n=t[u],c=e[u],l=t[u+1],f=e[u+1];o[i]=g(r,n,c,l,f)}}return o},e.left_edge_index=d,e.norm=function(n,t,e){const r=e-t;return f(n,(n=>(n-t)/r))}},\n function _(t,e,s,n,i){var r;n();const o=t(1),c=t(15),a=o.__importStar(t(17)),h=o.__importStar(t(20)),_=t(12),l=t(38),u=t(9),f=t(8),p=t(25),d=t(30),g=t(39),y=t(25),m=t(40),v=t(41),w=o.__importStar(t(20)),b=t(27),S=t(42),$=new WeakMap;class j extends((0,c.Signalable)()){get is_syncable(){return!0}get type(){return this.constructor.__qualified__}static get __qualified__(){let t=$.get(this);if(null==t){const{__module__:e,__name__:s}=this;t=null!=e?`${e}.${s}`:s,$.set(this,t)}return t}static set __qualified__(t){$.set(this,t)}get[Symbol.toStringTag](){return this.constructor.__qualified__}static _fix_default(t,e){if(void 0===t||t===a.unset)return()=>a.unset;if((0,f.isFunction)(t))return t;if((0,f.isPrimitive)(t))return()=>t;{const e=new v.Cloner;return()=>e.clone(t)}}static define(t){for(const[e,s]of(0,u.entries)((0,f.isFunction)(t)?t(w):t)){if(e in this.prototype._props)throw new Error(`attempted to redefine property '${this.prototype.type}.${e}'`);if(e in this.prototype)throw new Error(`attempted to redefine attribute '${this.prototype.type}.${e}'`);Object.defineProperty(this.prototype,e,{get(){return this.properties[e].get_value()},set(t){return this.setv({[e]:t}),this},configurable:!1,enumerable:!0});const[t,n,i={}]=s,r={type:t,default_value:this._fix_default(n,e),options:i};this.prototype._props=Object.assign(Object.assign({},this.prototype._props),{[e]:r})}}static internal(t){const e={};for(const[s,n]of(0,u.entries)((0,f.isFunction)(t)?t(w):t)){const[t,i,r={}]=n;e[s]=[t,i,Object.assign(Object.assign({},r),{internal:!0})]}this.define(e)}static mixins(t){function e(t,e){const s={};for(const[n,i]of(0,u.entries)(e))s[t+n]=i;return s}const s={},n=[];for(const i of(0,f.isArray)(t)?t:[t])if((0,f.isArray)(i)){const[t,r]=i;(0,u.extend)(s,e(t,r)),n.push([t,r])}else{const t=i;(0,u.extend)(s,t),n.push([\"\",t])}this.define(s),this.prototype._mixins=[...this.prototype._mixins,...n]}static override(t){for(const[e,s]of(0,u.entries)(t)){const t=this._fix_default(s,e);if(!(e in this.prototype._props))throw new Error(`attempted to override nonexistent '${this.prototype.type}.${e}'`);const n=this.prototype._props[e],i=Object.assign({},this.prototype._props);i[e]=Object.assign(Object.assign({},n),{default_value:t}),this.prototype._props=i}}static toString(){return this.__qualified__}toString(){return`${this.type}(${this.id})`}property(t){if(t in this.properties)return this.properties[t];throw new Error(`unknown property ${this.type}.${t}`)}get attributes(){const t={};for(const e of this)e.is_unset||(t[e.attr]=e.get_value());return t}[v.clone](t){const e=new Map;for(const s of this)s.dirty&&e.set(s.attr,t.clone(s.get_value()));return new this.constructor(e)}[y.equals](t,e){for(const s of this){const n=t.property(s.attr);if(!e.eq(s.get_value(),n.get_value()))return!1}return!0}[m.pretty](t){const e=t.token,s=[];for(const n of this)if(n.dirty){const i=n.get_value();s.push(`${n.attr}${e(\":\")} ${t.to_string(i)}`)}return`${this.constructor.__qualified__}${e(\"(\")}${e(\"{\")}${s.join(`${e(\",\")} `)}${e(\"}\")}${e(\")\")}`}[d.serialize](t){const e=this.ref();t.add_ref(this,e);const s={};for(const e of this)if(e.syncable&&(t.include_defaults||e.dirty)){const n=e.get_value();s[e.attr]=t.encode(n)}const{type:n,id:i}=this,r={type:\"object\",name:n,id:i};return(0,u.is_empty)(s)?r:Object.assign(Object.assign({},r),{attributes:s})}constructor(t={}){super(),this.document=null,this.destroyed=new c.Signal0(this,\"destroyed\"),this.change=new c.Signal0(this,\"change\"),this.transformchange=new c.Signal0(this,\"transformchange\"),this.exprchange=new c.Signal0(this,\"exprchange\"),this.streaming=new c.Signal0(this,\"streaming\"),this.patching=new c.Signal(this,\"patching\"),this.properties={},this._watchers=new WeakMap,this._pending=!1,this._changing=!1;const e=(0,f.isPlainObject)(t)&&\"id\"in t;this.id=e?t.id:(0,l.unique_id)();for(const[t,{type:e,default_value:s,options:n}]of(0,u.entries)(this._props)){let i;e instanceof a.PropertyAlias?Object.defineProperty(this.properties,t,{get:()=>this.properties[e.attr],configurable:!1,enumerable:!1}):(i=e instanceof h.Kind?new a.PrimitiveProperty(this,t,e,s,n):new e(this,t,h.Any,s,n),this.properties[t]=i)}if(e)(0,_.assert)(1==(0,u.keys)(t).length,\"'id' cannot be used together with property initializers\");else{const e=t instanceof Map?t:new u.Dict(t);this.initialize_props(e),this.finalize(),this.connect_signals()}}initialize_props(t){const e=new Set;for(const s of this){const n=t.get(s.attr);s.initialize(n),e.add(s.attr)}for(const s of t.keys())e.has(s)||this.property(s)}finalize(){this.initialize()}initialize(){}assert_initialized(){for(const t of this)t.syncable&&!t.readonly&&t.get_value()}connect_signals(){for(const t of this){if(!(t instanceof a.VectorSpec||t instanceof a.ScalarSpec))continue;if(t.is_unset)continue;const e=t.get_value();null!=e.transform&&this.connect(e.transform.change,(()=>this.transformchange.emit())),(0,b.isExpr)(e)&&this.connect(e.expr.change,(()=>this.exprchange.emit()))}}disconnect_signals(){c.Signal.disconnect_receiver(this)}destroy(){this.disconnect_signals(),this.destroyed.emit()}clone(){return(new v.Cloner).clone(this)}_clear_watchers(){this._watchers=new WeakMap}changed_for(t){const e=this._watchers.get(t);return this._watchers.set(t,!1),null==e||e}_setv(t,e){var s;const n=e.check_eq,i=new Set,r=this._changing;this._changing=!0;for(const[e,s]of t)!1!==n&&!e.is_unset&&(0,p.is_equal)(e.get_value(),s)||(e.set_value(s),i.add(e));i.size>0&&(this._clear_watchers(),this._pending=!0);for(const t of i)t.change.emit();if(!r){if(null===(s=e.no_change)||void 0===s||!s)for(;this._pending;)this._pending=!1,this.change.emit();this._pending=!1,this._changing=!1}return i}setv(t,e={}){var s,n;const i=(0,u.entries)(t);if(0==i.length)return;if(null!==(s=e.silent)&&void 0!==s&&s){this._clear_watchers();for(const[t,e]of i)this.properties[t].set_value(e);return}const r=new Map,o=new Map;for(const[t,e]of i){const s=this.properties[t];r.set(s,e),o.set(s,s.is_unset?void 0:s.get_value())}const c=this._setv(r,e),{document:a}=this;if(null!=a){const t=[];for(const[e,s]of o)c.has(e)&&t.push([e,s,e.get_value()]);for(const[,e,s]of t)if(this._needs_invalidate(e,s)){a._invalidate_all_models();break}(null===(n=e.sync)||void 0===n||n)&&this._push_changes(t)}}ref(){return{id:this.id}}*[Symbol.iterator](){yield*(0,u.values)(this.properties)}*syncable_properties(){for(const t of this)t.syncable&&(yield t)}static _value_record_references(t,e,s){const{recursive:n}=s;if((0,f.isObject)(t))if(t instanceof j){if(!e.has(t)&&(e.add(t),n))for(const s of t.syncable_properties())if(!s.is_unset){const t=s.get_value();j._value_record_references(t,e,{recursive:n})}}else if((0,f.isIterable)(t))for(const s of t)j._value_record_references(s,e,{recursive:n});else if((0,f.isPlainObject)(t))for(const s of(0,u.values)(t))j._value_record_references(s,e,{recursive:n})}references(){const t=new Set;return j._value_record_references(this,t,{recursive:!0}),t}_doc_attached(){}_doc_detached(){}attach_document(t){if(null!=this.document){if(this.document==t)return;throw new Error(\"models must be owned by only a single document\")}this.document=t,this._doc_attached()}detach_document(){this._doc_detached(),this.document=null}_needs_invalidate(t,e){const s=new Set;j._value_record_references(e,s,{recursive:!1});const n=new Set;j._value_record_references(t,n,{recursive:!1});for(const t of s)if(!n.has(t))return!0;for(const t of n)if(!s.has(t))return!0;return!1}_push_changes(t){if(!this.is_syncable)return;const{document:e}=this;if(null==e)return;const s=[];for(const[n,,i]of t)n.syncable&&s.push(new g.ModelChangedEvent(e,this,n.attr,i));if(0!=s.length){let t;1==s.length?[t]=s:t=new g.DocumentEventBatch(e,s),e._trigger_on_change(t)}}on_change(t,e){for(const s of(0,f.isArray)(t)?t:[t])this.connect(s.change,e)}stream_to(t,e,s,{sync:n}={}){const i=t.get_value();if((0,S.stream_to_columns)(i,e,s),this._clear_watchers(),t.set_value(i),this.streaming.emit(),null!=this.document&&(null==n||n)){const n=new g.ColumnsStreamedEvent(this.document,this,t.attr,e,s);this.document._trigger_on_change(n)}}patch_to(t,e,{sync:s}={}){const n=t.get_value(),i=(0,S.patch_to_columns)(n,e);if(this._clear_watchers(),t.set_value(n),this.patching.emit([...i]),null!=this.document&&(null==s||s)){const s=new g.ColumnsPatchedEvent(this.document,this,t.attr,e);this.document._trigger_on_change(s)}}}s.HasProps=j,(r=j).prototype._props={},r.prototype._mixins=[]},\n function _(n,e,t,s,l){s();const r=n(16),i=n(10);class o{constructor(n,e){this.sender=n,this.name=e}connect(n,e=null){t.receivers_for_sender.has(this.sender)||t.receivers_for_sender.set(this.sender,[]);const s=t.receivers_for_sender.get(this.sender);if(null!=f(s,this,n,e))return!1;const l=null!=e?e:n;u.has(l)||u.set(l,[]);const r=u.get(l),i={signal:this,slot:n,context:e};return s.push(i),r.push(i),!0}disconnect(n,e=null){const s=t.receivers_for_sender.get(this.sender);if(null==s||0===s.length)return!1;const l=f(s,this,n,e);if(null==l)return!1;const r=null!=e?e:n,i=u.get(r);return l.signal=null,g(s),g(i),!0}emit(n){var e;const s=null!==(e=t.receivers_for_sender.get(this.sender))&&void 0!==e?e:[];for(const{signal:e,slot:t,context:l}of s)e===this&&t.call(l,n,this.sender)}}t.Signal=o,o.__name__=\"Signal\";class c extends o{emit(){super.emit(void 0)}}t.Signal0=c,c.__name__=\"Signal0\",function(n){n.disconnect_between=function(n,e){const s=t.receivers_for_sender.get(n);if(null==s||0===s.length)return;const l=u.get(e);if(null!=l&&0!==l.length){for(const e of l){if(null==e.signal)return;e.signal.sender===n&&(e.signal=null)}g(s),g(l)}},n.disconnect_sender=function(n){var e;const s=t.receivers_for_sender.get(n);if(null!=s&&0!==s.length){for(const n of s){if(null==n.signal)return;const t=null!==(e=n.context)&&void 0!==e?e:n.slot;n.signal=null,g(u.get(t))}g(s)}},n.disconnect_receiver=function(n,e,s){const l=u.get(n);if(null!=l&&0!==l.length){for(const n of l){if(null==n.signal)return;if(null!=e&&n.slot!=e)continue;const l=n.signal.sender;null!=s&&s.has(l)||(n.signal=null,g(t.receivers_for_sender.get(l)))}g(l)}},n.disconnect_all=function(n){const e=t.receivers_for_sender.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;g(e)}const s=u.get(n);if(null!=s&&0!==s.length){for(const n of s)n.signal=null;g(s)}}}(o||(t.Signal=o={})),t.Signalable=function(){return class{connect(n,e){return n.connect(e,this)}disconnect(n,e){return n.disconnect(e,this)}}},t.receivers_for_sender=new WeakMap;const u=new WeakMap;function f(n,e,t,s){return(0,i.find)(n,(n=>n.signal===e&&n.slot===t&&n.context===s))}const a=new Set;function g(n){0===a.size&&(async()=>{await(0,r.defer)(),function(){for(const n of a)(0,i.remove_by)(n,(n=>null==n.signal));a.clear()}()})(),a.add(n)}},\n function _(e,n,t,r,o){r();const s=new MessageChannel,i=new Map;s.port1.onmessage=e=>{const n=e.data,t=i.get(n);if(null!=t)try{t()}finally{i.delete(n)}};let a=1;t.defer=function(){return new Promise((e=>{const n=a++;i.set(n,e),s.port2.postMessage(n)}))},t.delay=function(e){return new Promise((n=>setTimeout(n,e)))},t.paint=function(){return new Promise((e=>{requestAnimationFrame((()=>e()))}))},t.idle=function(){return new Promise((e=>{requestIdleCallback((()=>e()))}))}},\n function _(e,t,r,n,a){n(),r.TextBaselineSpec=r.TextAlignSpec=r.FontStyleSpec=r.FontSizeSpec=r.FontSpec=r.LineDashSpec=r.LineCapSpec=r.LineJoinSpec=r.MarkerSpec=r.ArraySpec=r.NullStringSpec=r.StringSpec=r.AnySpec=void 0;const s=e(1),i=e(15),l=e(18),_=s.__importStar(e(19)),o=e(23),c=e(10),u=e(13),d=e(11),S=e(21),p=e(26),h=e(8),m=e(27),v=e(28),f=e(29),y=e(36),x=e(12),g=e(30),A=e(37);function w(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}function z(e){return(0,h.isPlainObject)(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}a(\"Uniform\",A.Uniform),a(\"UniformScalar\",A.UniformScalar),a(\"UniformVector\",A.UniformVector),r.isSpec=z;let b=null;r.use_theme=function(e=null){b=e},r.unset=Symbol(\"unset\");class C extends Error{}r.UnsetValueError=C,C.__name__=\"UnsetValueError\";class F{get syncable(){return!this.internal}get is_unset(){return this._value===r.unset}get initialized(){return this._initialized}initialize(e=r.unset){if(this._initialized)throw new Error(\"already initialized\");let t=r.unset;if(e!==r.unset)t=e,this._dirty=!0;else{const e=this._default_override();if(e!==r.unset)t=e;else{let e=!1;if(null!=b){const r=b.get(this.obj,this.attr);void 0!==r&&(t=r,e=!0)}e||(t=this.default_value(this.obj))}}t!==r.unset?this._update(t):this._value=r.unset,this._initialized=!0}get_value(){if(this._value!==r.unset)return this._value;throw new C(`${this.obj}.${this.attr} is unset`)}set_value(e){this._initialized?(this._update(e),this._dirty=!0):this.initialize(e),y.diagnostics.report(this)}_default_override(){return r.unset}get dirty(){return this._dirty}constructor(e,t,n,a,s={}){var l,_;this._value=r.unset,this._initialized=!1,this._dirty=!1,this.obj=e,this.attr=t,this.kind=n,this.default_value=a,this.change=new i.Signal0(this.obj,\"change\"),this.internal=null!==(l=s.internal)&&void 0!==l&&l,this.readonly=null!==(_=s.readonly)&&void 0!==_&&_,this.convert=s.convert,this.on_update=s.on_update}_update(e){var t;if(this.validate(e),null!=this.convert){const t=this.convert(e);void 0!==t&&(e=t)}this._value=e,null===(t=this.on_update)||void 0===t||t.call(this,e,this.obj)}toString(){return`Prop(${this.obj}.${this.attr}, value: ${w(this._value)})`}normalize(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj}.${this.attr} given invalid value: ${w(e)}`)}valid(e){return this.kind.valid(e)}}r.Property=F,F.__name__=\"Property\";class q{constructor(e){this.attr=e}}r.PropertyAlias=q,q.__name__=\"PropertyAlias\",r.Alias=function(e){return new q(e)};class N extends F{}r.PrimitiveProperty=N,N.__name__=\"PrimitiveProperty\";class U extends N{_default_override(){return v.settings.dev?\"Bokeh\":r.unset}}r.Font=U,U.__name__=\"Font\";class $ extends F{constructor(){super(...arguments),this._value=r.unset}get_value(){if(this._value!==r.unset)return this._value;throw new Error(`${this.obj}.${this.attr} is unset`)}_update(e){if(z(e)?this._value=e:this._value={value:e},(0,h.isPlainObject)(this._value)){const{_value:e}=this;this._value[g.serialize]=t=>{const{value:r,field:n,expr:a,transform:s,units:i}=e;return t.encode_struct(void 0!==r?{type:\"value\",value:r,transform:s,units:i}:void 0!==n?{type:\"field\",field:n,transform:s,units:i}:{type:\"expr\",expr:a,transform:s,units:i})}}(0,m.isValue)(this._value)&&this.validate(this._value.value)}materialize(e){return e}scalar(e,t){return new A.UniformScalar(e,t)}uniform(e){var t;const r=this.get_value(),n=null!==(t=e.get_length())&&void 0!==t?t:1;if((0,m.isExpr)(r)){const{expr:t,transform:a}=r;let s=t.compute(e);return null!=a&&(s=a.compute(s)),s=this.materialize(s),this.scalar(s,n)}{const{value:e,transform:t}=r;let a=e;return null!=t&&(a=t.compute(a)),a=this.materialize(a),this.scalar(a,n)}}}r.ScalarSpec=$,$.__name__=\"ScalarSpec\";class j extends ${}r.AnyScalar=j,j.__name__=\"AnyScalar\";class B extends ${}r.ColorScalar=B,B.__name__=\"ColorScalar\";class L extends ${}r.NumberScalar=L,L.__name__=\"NumberScalar\";class D extends ${}r.StringScalar=D,D.__name__=\"StringScalar\";class E extends ${}r.NullStringScalar=E,E.__name__=\"NullStringScalar\";class P extends ${}r.ArrayScalar=P,P.__name__=\"ArrayScalar\";class T extends ${}r.LineJoinScalar=T,T.__name__=\"LineJoinScalar\";class V extends ${}r.LineCapScalar=V,V.__name__=\"LineCapScalar\";class k extends ${}r.LineDashScalar=k,k.__name__=\"LineDashScalar\";class J extends ${_default_override(){return v.settings.dev?\"Bokeh\":r.unset}}r.FontScalar=J,J.__name__=\"FontScalar\";class X extends ${}r.FontSizeScalar=X,X.__name__=\"FontSizeScalar\";class Y extends ${}r.FontStyleScalar=Y,Y.__name__=\"FontStyleScalar\";class G extends ${}r.TextAlignScalar=G,G.__name__=\"TextAlignScalar\";class I extends ${}r.TextBaselineScalar=I,I.__name__=\"TextBaselineScalar\";class O extends F{constructor(){super(...arguments),this._value=r.unset}get_value(){if(this._value!==r.unset)return this._value;throw new Error(`${this.obj}.${this.attr} is unset`)}_update(e){if(z(e)?this._value=e:this._value={value:e},(0,h.isPlainObject)(this._value)){const{_value:e}=this;this._value[g.serialize]=t=>{const{value:r,field:n,expr:a,transform:s,units:i}=e;return t.encode_struct(void 0!==r?{type:\"value\",value:r,transform:s,units:i}:void 0!==n?{type:\"field\",field:n,transform:s,units:i}:{type:\"expr\",expr:a,transform:s,units:i})}}(0,m.isValue)(this._value)&&this.validate(this._value.value)}materialize(e){return e}v_materialize(e){return e}scalar(e,t){return new A.UniformScalar(e,t)}vector(e){return new A.UniformVector(e)}uniform(e){var t;const r=this.get_value(),n=null!==(t=e.get_length())&&void 0!==t?t:1;if((0,m.isField)(r)){const{field:t,transform:a}=r;let s=e.get_column(t);return null!=s?(null!=a&&(s=a.v_compute(s)),s=this.v_materialize(s),this.vector(s)):(l.logger.warn(`attempted to retrieve property array for nonexistent field '${t}'`),this.scalar(null,n))}if((0,m.isExpr)(r)){const{expr:t,transform:n}=r;let a=t.v_compute(e);return null!=n&&(a=n.v_compute(a)),a=this.v_materialize(a),this.vector(a)}if((0,m.isValue)(r)){const{value:e,transform:t}=r;let a=e;return null!=t&&(a=t.compute(a)),a=this.materialize(a),this.scalar(a,n)}(0,x.unreachable)()}array(e){var t;let r;const n=null!==(t=e.get_length())&&void 0!==t?t:1,a=this.get_value();if((0,m.isField)(a)){const{field:t}=a,s=e.get_column(t);if(null!=s)r=this.normalize(s);else{l.logger.warn(`attempted to retrieve property array for nonexistent field '${t}'`);const e=new Float64Array(n);e.fill(NaN),r=e}}else if((0,m.isExpr)(a)){const{expr:t}=a;r=this.normalize(t.v_compute(e))}else{const e=this.normalize([a.value])[0];if((0,h.isNumber)(e)){const t=new Float64Array(n);t.fill(e),r=t}else r=(0,c.repeat)(e,n)}const{transform:s}=a;return null!=s&&(r=s.v_compute(r)),r}}r.VectorSpec=O,O.__name__=\"VectorSpec\";class R extends O{}r.DataSpec=R,R.__name__=\"DataSpec\";class M extends O{constructor(){super(...arguments),this._value=r.unset}_update(e){if(super._update(e),this._value!==r.unset){const{units:e}=this._value;if(null!=e&&!(0,c.includes)(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(\", \")}; got: ${e}`)}}get units(){var e;return this._value!==r.unset&&null!==(e=this._value.units)&&void 0!==e?e:this.default_units}set units(e){if(this._value===r.unset)throw new Error(`${this.obj}.${this.attr} is unset`);e!=this.default_units?this._value.units=e:delete this._value.units}}r.UnitsSpec=M,M.__name__=\"UnitsSpec\";class H extends M{array(e){return new Float64Array(super.array(e))}}r.NumberUnitsSpec=H,H.__name__=\"NumberUnitsSpec\";class K extends R{}r.BaseCoordinateSpec=K,K.__name__=\"BaseCoordinateSpec\";class Q extends K{}r.CoordinateSpec=Q,Q.__name__=\"CoordinateSpec\";class W extends K{}r.CoordinateSeqSpec=W,W.__name__=\"CoordinateSeqSpec\";class Z extends K{}r.CoordinateSeqSeqSeqSpec=Z,Z.__name__=\"CoordinateSeqSeqSeqSpec\";class ee extends Q{constructor(){super(...arguments),this.dimension=\"x\"}}r.XCoordinateSpec=ee,ee.__name__=\"XCoordinateSpec\";class te extends Q{constructor(){super(...arguments),this.dimension=\"y\"}}r.YCoordinateSpec=te,te.__name__=\"YCoordinateSpec\";class re extends W{constructor(){super(...arguments),this.dimension=\"x\"}}r.XCoordinateSeqSpec=re,re.__name__=\"XCoordinateSeqSpec\";class ne extends W{constructor(){super(...arguments),this.dimension=\"y\"}}r.YCoordinateSeqSpec=ne,ne.__name__=\"YCoordinateSeqSpec\";class ae extends Z{constructor(){super(...arguments),this.dimension=\"x\"}}r.XCoordinateSeqSeqSeqSpec=ae,ae.__name__=\"XCoordinateSeqSeqSeqSpec\";class se extends Z{constructor(){super(...arguments),this.dimension=\"y\"}}r.YCoordinateSeqSeqSeqSpec=se,se.__name__=\"YCoordinateSeqSeqSeqSpec\";class ie extends H{get default_units(){return\"rad\"}get valid_units(){return[..._.AngleUnits]}materialize(e){return e*-(0,d.to_radians_coeff)(this.units)}v_materialize(e){const t=-(0,d.to_radians_coeff)(this.units),r=new Float32Array(e.length);return(0,u.mul)(e,t,r),r}array(e){throw new Error(\"not supported\")}}r.AngleSpec=ie,ie.__name__=\"AngleSpec\";class le extends H{get default_units(){return\"data\"}get valid_units(){return[..._.SpatialUnits]}}r.DistanceSpec=le,le.__name__=\"DistanceSpec\";class _e extends le{materialize(e){return null!=e?e:NaN}}r.NullDistanceSpec=_e,_e.__name__=\"NullDistanceSpec\";class oe extends R{v_materialize(e){return new Uint8Array(e)}array(e){return new Uint8Array(super.array(e))}}r.BooleanSpec=oe,oe.__name__=\"BooleanSpec\";class ce extends R{v_materialize(e){return(0,h.isTypedArray)(e)?e:new Int32Array(e)}array(e){return new Int32Array(super.array(e))}}r.IntSpec=ce,ce.__name__=\"IntSpec\";class ue extends R{v_materialize(e){return(0,h.isTypedArray)(e)?e:new Float64Array(e)}array(e){return new Float64Array(super.array(e))}}r.NumberSpec=ue,ue.__name__=\"NumberSpec\";class de extends ue{valid(e){return(0,h.isNumber)(e)&&e>=0}}r.ScreenSizeSpec=de,de.__name__=\"ScreenSizeSpec\";class Se extends R{materialize(e){return(0,S.encode_rgba)((0,S.color2rgba)(e))}v_materialize(e){if(!(0,f.is_NDArray)(e))return this._from_css_array(e);if(\"uint32\"==e.dtype&&1==e.dimension)return(0,p.to_big_endian)(e);if(\"uint8\"==e.dtype&&1==e.dimension){const[t]=e.shape,r=new o.RGBAArray(4*t);let n=0;for(const t of e)r[n++]=t,r[n++]=t,r[n++]=t,r[n++]=255;return new o.ColorArray(r.buffer)}if(\"uint8\"==e.dtype&&2==e.dimension){const[t,r]=e.shape;if(4==r)return new o.ColorArray(e.buffer);if(3==r){const n=new o.RGBAArray(4*t);for(let a=0,s=0;a<r*t;)n[s++]=e[a++],n[s++]=e[a++],n[s++]=e[a++],n[s++]=255;return new o.ColorArray(n.buffer)}}else if(\"float32\"!=e.dtype&&\"float64\"!=e.dtype||2!=e.dimension){if(\"object\"==e.dtype&&1==e.dimension)return this._from_css_array(e)}else{const[t,r]=e.shape;if(3==r||4==r){const n=new o.RGBAArray(4*t);for(let a=0,s=0;a<r*t;)n[s++]=255*e[a++],n[s++]=255*e[a++],n[s++]=255*e[a++],n[s++]=255*(3==r?1:e[a++]);return new o.ColorArray(n.buffer)}}throw new Error(\"invalid color array\")}_from_css_array(e){const t=e.length,r=new o.RGBAArray(4*t);let n=0;for(const t of e){const[e,a,s,i]=(0,S.color2rgba)(t);r[n++]=e,r[n++]=a,r[n++]=s,r[n++]=i}return new o.ColorArray(r.buffer)}vector(e){return new A.ColorUniformVector(e)}}r.ColorSpec=Se,Se.__name__=\"ColorSpec\";class pe extends R{}r.NDArraySpec=pe,pe.__name__=\"NDArraySpec\";class he extends R{}r.AnySpec=he,he.__name__=\"AnySpec\";class me extends R{}r.StringSpec=me,me.__name__=\"StringSpec\";class ve extends R{}r.NullStringSpec=ve,ve.__name__=\"NullStringSpec\";class fe extends R{}r.ArraySpec=fe,fe.__name__=\"ArraySpec\";class ye extends R{}r.MarkerSpec=ye,ye.__name__=\"MarkerSpec\";class xe extends R{}r.LineJoinSpec=xe,xe.__name__=\"LineJoinSpec\";class ge extends R{}r.LineCapSpec=ge,ge.__name__=\"LineCapSpec\";class Ae extends R{}r.LineDashSpec=Ae,Ae.__name__=\"LineDashSpec\";class we extends R{_default_override(){return v.settings.dev?\"Bokeh\":r.unset}}r.FontSpec=we,we.__name__=\"FontSpec\";class ze extends R{}r.FontSizeSpec=ze,ze.__name__=\"FontSizeSpec\";class be extends R{}r.FontStyleSpec=be,be.__name__=\"FontStyleSpec\";class Ce extends R{}r.TextAlignSpec=Ce,Ce.__name__=\"TextAlignSpec\";class Fe extends R{}r.TextBaselineSpec=Fe,Fe.__name__=\"TextBaselineSpec\"},\n function _(e,l,o,n,t){n();const s=e(8),g=e(9),r={};class i{constructor(e,l){this.name=e,this.level=l}}o.LogLevel=i,i.__name__=\"LogLevel\";class v{static get levels(){return Object.keys(v.log_levels)}static get(e,l=v.INFO){if(e.length>0)return e in r?r[e]:r[e]=new v(e,l);throw new TypeError(\"Logger.get() expects a non-empty string name and an optional log-level\")}constructor(e,l=v.INFO){this._name=e,this.set_level(l)}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof i)this._log_level=e;else{if(!(0,s.isString)(e)||!(e in v.log_levels))throw new Error(\"Logger.set_level() expects a log-level object or a string name of a log-level\");this._log_level=v.log_levels[e]}const l=`[${this._name}]`;for(const[e,o]of(0,g.entries)(v.log_levels))o.level<this._log_level.level||this._log_level.level===v.OFF.level?this[e]=function(){}:this[e]=_(e,l)}trace(...e){}debug(...e){}info(...e){}warn(...e){}error(...e){}}function _(e,l){return null!=console[e]?console[e].bind(console,l):console.log.bind(console,l)}function c(e){const l=o.logger.level;return(0,s.isString)(e)&&!(e in v.log_levels)?(console.log(`[bokeh] unrecognized logging level '${e}' passed to Bokeh.set_log_level(), ignoring`),console.log(`[bokeh] valid log levels are: ${v.levels.join(\", \")}`)):(console.log(`[bokeh] setting log level to: '${(0,s.isString)(e)?e:e.level}'`),o.logger.set_level(e)),l}o.Logger=v,v.__name__=\"Logger\",v.TRACE=new i(\"trace\",0),v.DEBUG=new i(\"debug\",1),v.INFO=new i(\"info\",2),v.WARN=new i(\"warn\",6),v.ERROR=new i(\"error\",7),v.FATAL=new i(\"fatal\",8),v.OFF=new i(\"off\",9),v.log_levels={trace:v.TRACE,debug:v.DEBUG,info:v.INFO,warn:v.WARN,error:v.ERROR,fatal:v.FATAL,off:v.OFF},o.logger=v.get(\"bokeh\"),o.set_log_level=c,o.with_log_level=function(e,l){const o=c(e);try{l()}finally{c(o)}}},\n function _(e,t,n,o,i){o(),n.ToolIcon=n.VerticalAlign=n.UpdateMode=n.TooltipAttachment=n.TickLabelOrientation=n.TextureRepetition=n.TextBaseline=n.TextAlign=n.TapGesture=n.TapBehavior=n.StepMode=n.StartEnd=void 0;const a=e(20);n.Align=(0,a.Enum)(\"start\",\"center\",\"end\"),n.HAlign=(0,a.Enum)(\"left\",\"center\",\"right\"),n.VAlign=(0,a.Enum)(\"top\",\"center\",\"bottom\"),n.Anchor=(0,a.Enum)(\"top_left\",\"top_center\",\"top_right\",\"center_left\",\"center_center\",\"center_right\",\"bottom_left\",\"bottom_center\",\"bottom_right\",\"top\",\"left\",\"center\",\"right\",\"bottom\"),n.AngleUnits=(0,a.Enum)(\"deg\",\"rad\",\"grad\",\"turn\"),n.AlternationPolicy=(0,a.Enum)(\"none\",\"even\",\"odd\",\"every\"),n.BoxOrigin=(0,a.Enum)(\"corner\",\"center\"),n.ButtonType=(0,a.Enum)(\"default\",\"primary\",\"success\",\"warning\",\"danger\",\"light\"),n.CalendarPosition=(0,a.Enum)(\"auto\",\"above\",\"below\"),n.Clock=(0,a.Enum)(\"12h\",\"24h\"),n.CoordinateUnits=(0,a.Enum)(\"canvas\",\"screen\",\"data\"),n.ContextWhich=(0,a.Enum)(\"start\",\"center\",\"end\",\"all\"),n.Dimension=(0,a.Enum)(\"width\",\"height\"),n.Dimensions=(0,a.Enum)(\"width\",\"height\",\"both\"),n.Direction=(0,a.Enum)(\"clock\",\"anticlock\"),n.Distribution=(0,a.Enum)(\"uniform\",\"normal\"),n.FlowMode=(0,a.Enum)(\"block\",\"inline\"),n.FontStyle=(0,a.Enum)(\"normal\",\"italic\",\"bold\",\"bold italic\"),n.HatchPatternType=(0,a.Enum)(\"blank\",\"dot\",\"ring\",\"horizontal_line\",\"vertical_line\",\"cross\",\"horizontal_dash\",\"vertical_dash\",\"spiral\",\"right_diagonal_line\",\"left_diagonal_line\",\"diagonal_cross\",\"right_diagonal_dash\",\"left_diagonal_dash\",\"horizontal_wave\",\"vertical_wave\",\"criss_cross\",\" \",\".\",\"o\",\"-\",\"|\",\"+\",'\"',\":\",\"@\",\"/\",\"\\\\\",\"x\",\",\",\"`\",\"v\",\">\",\"*\"),n.HTTPMethod=(0,a.Enum)(\"POST\",\"GET\"),n.HexTileOrientation=(0,a.Enum)(\"pointytop\",\"flattop\"),n.HoverMode=(0,a.Enum)(\"mouse\",\"hline\",\"vline\"),n.ImageOrigin=(0,a.Enum)(\"bottom_left\",\"top_left\",\"bottom_right\",\"top_right\"),n.LatLon=(0,a.Enum)(\"lat\",\"lon\"),n.LegendClickPolicy=(0,a.Enum)(\"none\",\"hide\",\"mute\"),n.LegendLocation=n.Anchor,n.LineCap=(0,a.Enum)(\"butt\",\"round\",\"square\"),n.LineDash=(0,a.Enum)(\"solid\",\"dashed\",\"dotted\",\"dotdash\",\"dashdot\"),n.LineJoin=(0,a.Enum)(\"miter\",\"round\",\"bevel\"),n.LinePolicy=(0,a.Enum)(\"prev\",\"next\",\"nearest\",\"interp\",\"none\"),n.Location=(0,a.Enum)(\"above\",\"below\",\"left\",\"right\"),n.Logo=(0,a.Enum)(\"normal\",\"grey\"),n.MapType=(0,a.Enum)(\"satellite\",\"roadmap\",\"terrain\",\"hybrid\"),n.MarkerType=(0,a.Enum)(\"asterisk\",\"circle\",\"circle_cross\",\"circle_dot\",\"circle_x\",\"circle_y\",\"cross\",\"dash\",\"diamond\",\"diamond_cross\",\"diamond_dot\",\"dot\",\"hex\",\"hex_dot\",\"inverted_triangle\",\"plus\",\"square\",\"square_cross\",\"square_dot\",\"square_pin\",\"square_x\",\"star\",\"star_dot\",\"triangle\",\"triangle_dot\",\"triangle_pin\",\"x\",\"y\"),n.MutedPolicy=(0,a.Enum)(\"show\",\"ignore\"),n.Orientation=(0,a.Enum)(\"vertical\",\"horizontal\"),n.OutputBackend=(0,a.Enum)(\"canvas\",\"svg\",\"webgl\"),n.PaddingUnits=(0,a.Enum)(\"percent\",\"absolute\"),n.Place=(0,a.Enum)(\"above\",\"below\",\"left\",\"right\",\"center\"),n.PointPolicy=(0,a.Enum)(\"snap_to_data\",\"follow_mouse\",\"none\"),n.RadiusDimension=(0,a.Enum)(\"x\",\"y\",\"max\",\"min\"),n.RenderLevel=(0,a.Enum)(\"image\",\"underlay\",\"glyph\",\"guide\",\"annotation\",\"overlay\"),n.ResetPolicy=(0,a.Enum)(\"standard\",\"event_only\"),n.RoundingFunction=(0,a.Enum)(\"round\",\"nearest\",\"floor\",\"rounddown\",\"ceil\",\"roundup\"),n.ScrollbarPolicy=(0,a.Enum)(\"auto\",\"visible\",\"hidden\"),n.SelectionMode=(0,a.Enum)(\"replace\",\"append\",\"intersect\",\"subtract\"),n.Side=(0,a.Enum)(\"above\",\"below\",\"left\",\"right\"),n.SizingMode=(0,a.Enum)(\"stretch_width\",\"stretch_height\",\"stretch_both\",\"scale_width\",\"scale_height\",\"scale_both\",\"fixed\",\"inherit\"),n.Sort=(0,a.Enum)(\"ascending\",\"descending\"),n.SpatialUnits=(0,a.Enum)(\"screen\",\"data\"),n.StartEnd=(0,a.Enum)(\"start\",\"end\"),n.StepMode=(0,a.Enum)(\"after\",\"before\",\"center\"),n.TapBehavior=(0,a.Enum)(\"select\",\"inspect\"),n.TapGesture=(0,a.Enum)(\"tap\",\"doubletap\"),n.TextAlign=(0,a.Enum)(\"left\",\"right\",\"center\"),n.TextBaseline=(0,a.Enum)(\"top\",\"middle\",\"bottom\",\"alphabetic\",\"hanging\",\"ideographic\"),n.TextureRepetition=(0,a.Enum)(\"repeat\",\"repeat_x\",\"repeat_y\",\"no_repeat\"),n.TickLabelOrientation=(0,a.Enum)(\"vertical\",\"horizontal\",\"parallel\",\"normal\"),n.TooltipAttachment=(0,a.Enum)(\"horizontal\",\"vertical\",\"left\",\"right\",\"above\",\"below\"),n.UpdateMode=(0,a.Enum)(\"replace\",\"append\"),n.VerticalAlign=(0,a.Enum)(\"top\",\"middle\",\"bottom\"),n.ToolIcon=(0,a.Enum)(\"append_mode\",\"box_edit\",\"box_select\",\"box_zoom\",\"clear_selection\",\"copy\",\"crosshair\",\"freehand_draw\",\"help\",\"hover\",\"intersect_mode\",\"lasso_select\",\"line_edit\",\"pan\",\"point_draw\",\"poly_draw\",\"poly_edit\",\"polygon_select\",\"range\",\"redo\",\"replace_mode\",\"reset\",\"save\",\"subtract_mode\",\"tap_select\",\"undo\",\"wheel_pan\",\"wheel_zoom\",\"xpan\",\"ypan\",\"zoom_in\",\"zoom_out\")},\n function _(t,e,n,r,s){r();const i=t(1).__importStar(t(8)),a=t(21),o=t(9),u=globalThis.Map,_=globalThis.Set,{hasOwnProperty:l}=Object.prototype;class c{}n.Kind=c,c.__name__=\"Kind\",function(t){class e extends c{valid(t){return void 0!==t}toString(){return\"Any\"}}e.__name__=\"Any\",t.Any=e;class n extends c{valid(t){return void 0!==t}toString(){return\"Unknown\"}}n.__name__=\"Unknown\",t.Unknown=n;class r extends c{valid(t){return i.isBoolean(t)}toString(){return\"Boolean\"}}r.__name__=\"Boolean\",t.Boolean=r;class s extends c{constructor(t){super(),this.obj_type=t}valid(t){return t instanceof this.obj_type}toString(){var t;const e=this.obj_type;return`Ref(${null!==(t=e.__name__)&&void 0!==t?t:e.toString()})`}}s.__name__=\"Ref\",t.Ref=s;class d extends c{valid(t){return i.isObject(t)}toString(){return\"AnyRef\"}}d.__name__=\"AnyRef\",t.AnyRef=d;class p extends c{valid(t){return i.isNumber(t)}toString(){return\"Number\"}}p.__name__=\"Number\",t.Number=p;class y extends p{valid(t){return super.valid(t)&&i.isInteger(t)}toString(){return\"Int\"}}y.__name__=\"Int\",t.Int=y;class S extends p{valid(t){return super.valid(t)&&0<=t&&t<=1}toString(){return\"Percent\"}}S.__name__=\"Percent\",t.Percent=S;class g extends c{constructor(t){super(),this.types=t,this.types=t}valid(t){return this.types.some((e=>e.valid(t)))}toString(){return`Or(${this.types.map((t=>t.toString())).join(\", \")})`}}g.__name__=\"Or\",t.Or=g;class m extends c{constructor(t){super(),this.types=t,this.types=t}valid(t){if(!i.isArray(t))return!1;for(let e=0;e<this.types.length;e++){const n=this.types[e],r=t[e];if(!n.valid(r))return!1}return!0}toString(){return`Tuple(${this.types.map((t=>t.toString())).join(\", \")})`}}m.__name__=\"Tuple\",t.Tuple=m;class h extends c{constructor(t){super(),this.struct_type=t}valid(t){if(!i.isPlainObject(t))return!1;const{struct_type:e}=this;for(const n of(0,o.keys)(t))if(!l.call(e,n))return!1;for(const n in e)if(l.call(e,n)){const r=e[n],s=t[n];if(!r.valid(s))return!1}return!0}toString(){return`Struct({${(0,o.entries)(this.struct_type).map((([t,e])=>`${t}: ${e}`)).join(\", \")}})`}}h.__name__=\"Struct\",t.Struct=h;class v extends c{constructor(t){super(),this.struct_type=t}valid(t){if(!i.isPlainObject(t))return!1;const{struct_type:e}=this;for(const n of(0,o.keys)(t))if(!l.call(e,n))return!1;for(const n in e)if(l.call(t,n)&&l.call(e,n)){const r=e[n],s=t[n];if(!r.valid(s))return!1}return!0}toString(){return`Struct({${(0,o.entries)(this.struct_type).map((([t,e])=>`${t}?: ${e}`)).join(\", \")}})`}}v.__name__=\"PartialStruct\",t.PartialStruct=v;class f extends c{constructor(t){super(),this.item_type=t}valid(t){return i.isArray(t)||i.isTypedArray(t)}toString(){return`Arrayable(${this.item_type.toString()})`}}f.__name__=\"Arrayable\",t.Arrayable=f;class b extends c{constructor(t){super(),this.item_type=t}valid(t){return i.isArray(t)&&t.every((t=>this.item_type.valid(t)))}toString(){return`Array(${this.item_type.toString()})`}}b.__name__=\"Array\",t.Array=b;class x extends c{valid(t){return null===t}toString(){return\"Null\"}}x.__name__=\"Null\",t.Null=x;class w extends c{constructor(t){super(),this.base_type=t}valid(t){return null===t||this.base_type.valid(t)}toString(){return`Nullable(${this.base_type.toString()})`}}w.__name__=\"Nullable\",t.Nullable=w;class K extends c{constructor(t){super(),this.base_type=t}valid(t){return void 0===t||this.base_type.valid(t)}toString(){return`Opt(${this.base_type.toString()})`}}K.__name__=\"Opt\",t.Opt=K;class N extends c{valid(t){return t instanceof ArrayBuffer}toString(){return\"Bytes\"}}N.__name__=\"Bytes\",t.Bytes=N;class A extends c{valid(t){return i.isString(t)}toString(){return\"String\"}}A.__name__=\"String\",t.String=A;class O extends A{constructor(t){super(),this.regex=t}valid(t){return super.valid(t)&&this.regex.test(t)}toString(){return`Regex(${this.regex.toString()})`}}O.__name__=\"Regex\",t.Regex=O;class $ extends c{constructor(t){super(),this.values=new _(t)}valid(t){return this.values.has(t)}*[Symbol.iterator](){yield*this.values}toString(){return`Enum(${[...this.values].map((t=>t.toString())).join(\", \")})`}}$.__name__=\"Enum\",t.Enum=$;class P extends c{constructor(t){super(),this.item_type=t}valid(t){if(!i.isPlainObject(t))return!1;for(const e in t)if(l.call(t,e)){const n=t[e];if(!this.item_type.valid(n))return!1}return!0}toString(){return`Dict(${this.item_type.toString()})`}}P.__name__=\"Dict\",t.Dict=P;class R extends c{constructor(t,e){super(),this.key_type=t,this.item_type=e}valid(t){if(!(t instanceof u))return!1;for(const[e,n]of t.entries())if(!this.key_type.valid(e)||!this.item_type.valid(n))return!1;return!0}toString(){return`Map(${this.key_type.toString()}, ${this.item_type.toString()})`}}R.__name__=\"Map\",t.Map=R;class j extends c{constructor(t){super(),this.item_type=t}valid(t){if(!(t instanceof _))return!1;for(const e of t)if(!this.item_type.valid(e))return!1;return!0}toString(){return`Set(${this.item_type.toString()})`}}j.__name__=\"Set\",t.Set=j;class B extends c{valid(t){return(0,a.is_Color)(t)}toString(){return\"Color\"}}B.__name__=\"Color\",t.Color=B;class C extends A{toString(){return\"CSSLength\"}}C.__name__=\"CSSLength\",t.CSSLength=C;class M extends c{valid(t){return i.isFunction(t)}toString(){return\"Function(...)\"}}M.__name__=\"Function\",t.Function=M;class k extends c{constructor(t){super(),this.base_type=t}valid(t){return this.base_type.valid(t)&&t>=0}toString(){return`NonNegative(${this.base_type.toString()})`}}k.__name__=\"NonNegative\",t.NonNegative=k;class D extends c{constructor(t){super(),this.base_type=t}valid(t){return this.base_type.valid(t)&&t>0}toString(){return`Positive(${this.base_type.toString()})`}}D.__name__=\"Positive\",t.Positive=D;class F extends c{valid(t){return t instanceof Node}toString(){return\"DOMNode\"}}F.__name__=\"DOMNode\",t.DOMNode=F}(n.Kinds||(n.Kinds={})),n.Any=new n.Kinds.Any,n.Unknown=new n.Kinds.Unknown,n.Boolean=new n.Kinds.Boolean,n.Number=new n.Kinds.Number,n.Int=new n.Kinds.Int,n.Bytes=new n.Kinds.Bytes,n.String=new n.Kinds.String;n.Regex=t=>new n.Kinds.Regex(t),n.Null=new n.Kinds.Null;n.Nullable=t=>new n.Kinds.Nullable(t);n.Opt=t=>new n.Kinds.Opt(t);n.Or=(...t)=>new n.Kinds.Or(t);n.Tuple=(...t)=>new n.Kinds.Tuple(t);n.Struct=t=>new n.Kinds.Struct(t);n.PartialStruct=t=>new n.Kinds.PartialStruct(t);n.Arrayable=t=>new n.Kinds.Arrayable(t);n.Array=t=>new n.Kinds.Array(t);n.Dict=t=>new n.Kinds.Dict(t);n.Map=(t,e)=>new n.Kinds.Map(t,e);n.Set=t=>new n.Kinds.Set(t);n.Enum=(...t)=>new n.Kinds.Enum(t);n.Ref=t=>new n.Kinds.Ref(t);n.AnyRef=()=>new n.Kinds.AnyRef;n.Function=()=>new n.Kinds.Function,n.DOMNode=new n.Kinds.DOMNode;n.NonNegative=t=>new n.Kinds.NonNegative(t);n.Positive=t=>new n.Kinds.Positive(t),n.Percent=new n.Kinds.Percent,n.Alpha=n.Percent,n.Color=new n.Kinds.Color,n.Auto=(0,n.Enum)(\"auto\"),n.CSSLength=new n.Kinds.CSSLength,n.FontSize=n.String,n.Font=n.String,n.Angle=n.Number},\n function _(n,r,t,e,s){e();const u=n(22),i=n(11),c=n(8),{round:o,sqrt:l}=Math;function a(n){return(0,i.clamp)(o(n),0,255)}function f(){return[0,0,0,0]}function g(n){return[n>>24&255,n>>16&255,n>>8&255,255&n]}function b(n,r=1){const[t,e,s,u]=(()=>{var r;if(null==n)return[0,0,0,0];if((0,c.isInteger)(n))return g(n);if((0,c.isString)(n))return null!==(r=_(n))&&void 0!==r?r:[0,0,0,0];if(2==n.length){const[r,t]=n;return b(r,t)}{const[r,t,e,s=1]=n;return[r,t,e,a(255*s)]}})();return[t,e,s,a(r*u)]}t.byte=a,t.transparent=f,t.encode_rgba=function([n,r,t,e]){return n<<24|r<<16|t<<8|e},t.decode_rgba=g,t.color2rgba=b;const d={0:\"0\",1:\"1\",2:\"2\",3:\"3\",4:\"4\",5:\"5\",6:\"6\",7:\"7\",8:\"8\",9:\"9\",10:\"a\",11:\"b\",12:\"c\",13:\"d\",14:\"e\",15:\"f\"};function h(n){return d[n>>4]+d[15&n]}t.color2css=function(n,r){const[t,e,s,u]=b(n,r);return`rgba(${t}, ${e}, ${s}, ${u/255})`},t.color2hex=function(n,r){const[t,e,s,u]=b(n,r),i=`#${h(t)}${h(e)}${h(s)}`;return 255==u?i:`${i}${h(u)}`},t.color2hexrgb=function(n){const[r,t,e]=b(n);return`#${h(r)}${h(t)}${h(e)}`};const $=/^rgba?\\(\\s*(?<r>[^\\s,]+?)\\s+(?<g>[^\\s,]+?)\\s+(?<b>[^\\s,]+?)(?:\\s*\\/\\s*(?<a>[^\\s,]+?))?\\s*\\)$/,m=/^rgba?\\(\\s*(?<r>[^\\s,]+?)\\s*,\\s*(?<g>[^\\s,]+?)\\s*,\\s*(?<b>[^\\s,]+?)(?:\\s*,\\s*(?<a>[^\\s,]+?))?\\s*\\)$/,N=(()=>{const n=document.createElement(\"canvas\");n.width=1,n.height=1;const r=n.getContext(\"2d\"),t=r.createLinearGradient(0,0,1,1);return n=>{r.fillStyle=t,r.fillStyle=n;const e=r.fillStyle;return e!=t?e:null}})();function _(n){var r;if(\"\"==(n=n.trim().toLowerCase()))return null;if(\"transparent\"==n)return[0,0,0,0];if((0,u.is_named_color)(n))return g(u.named_colors[n]);if(\"#\"==n[0]){const r=Number(`0x${n.substring(1)}`);if(isNaN(r))return null;switch(n.length-1){case 3:{const n=r>>8&15,t=r>>4&15,e=r>>0&15;return[n<<4|n,t<<4|t,e<<4|e,255]}case 4:{const n=r>>12&15,t=r>>8&15,e=r>>4&15,s=r>>0&15;return[n<<4|n,t<<4|t,e<<4|e,s<<4|s]}case 6:return[r>>16&255,r>>8&255,r>>0&255,255];case 8:return[r>>24&255,r>>16&255,r>>8&255,r>>0&255]}}else if(n.startsWith(\"rgb\")){const t=null!==(r=n.match($))&&void 0!==r?r:n.match(m);if(null!=(null==t?void 0:t.groups)){let{r:n,g:r,b:e,a:s=\"1\"}=t.groups;const u=n.endsWith(\"%\"),i=r.endsWith(\"%\"),c=e.endsWith(\"%\"),o=s.endsWith(\"%\");if(!(u&&i&&c)&&(u||i||c))return null;u&&(n=n.slice(0,-1)),i&&(r=r.slice(0,-1)),c&&(e=e.slice(0,-1)),o&&(s=s.slice(0,-1));let l=Number(n),f=Number(r),g=Number(e),b=Number(s);return isNaN(l+f+g+b)?null:(u&&(l=l/100*255),i&&(f=f/100*255),c&&(g=g/100*255),b=255*(o?b/100:b),l=a(l),f=a(f),g=a(g),b=a(b),[l,f,g,b])}}else{const r=N(n);if(null!=r)return _(r)}return null}t.css4_parse=_,t.is_Color=function(n){return!!(0,c.isInteger)(n)||(!(!(0,c.isString)(n)||null==_(n))||!(!(0,c.isArray)(n)||3!=n.length&&4!=n.length))},t.is_dark=function([n,r,t]){return 1-(.299*n+.587*r+.114*t)/255>=.6},t.brightness=function(n){const[r,t,e]=b(n);return l(.299*r**2+.587*t**2+.114*e**2)/255}},\n function _(e,r,l,a,i){a();l.named_colors={aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},l.is_named_color=function(e){return e in l.named_colors}},\n function _(r,t,n,a,o){a(),n.GeneratorFunction=Object.getPrototypeOf((function*(){})).constructor,n.ColorArray=Uint32Array,n.RGBAArray=Uint8ClampedArray,n.infer_type=function(r,t){return r instanceof Float64Array||r instanceof Array||t instanceof Float64Array||t instanceof Array?Float64Array:Float32Array},n.ScreenArray=Float32Array,n.to_screen=function(r){return r instanceof Float32Array?r:Float32Array.from(r)},o(\"Indices\",r(24).BitSet)},\n function _(t,s,r,e,i){var n;e();const o=t(25),_=t(12);class h{constructor(t,s=0){this[n]=\"BitSet\",this._count=null,this.size=t,this._nwords=Math.ceil(t/h._word_length),0==s||1==s?(this._array=new Uint32Array(this._nwords),1==s&&this._array.fill(4294967295)):((0,_.assert)(s.length==this._nwords,\"Initializer size mismatch\"),this._array=s)}clone(){return new h(this.size,new Uint32Array(this._array))}[(n=Symbol.toStringTag,o.equals)](t,s){if(!s.eq(this.size,t.size))return!1;const{_nwords:r}=this,e=this.size%h._word_length,i=0==e?r:r-1;for(let s=0;s<i;s++)if(this._array[s]!=t._array[s])return!1;if(0==e)return!0;{const s=1<<e-1,r=s-1^s;return(this._array[i]&r)==(t._array[i]&r)}}static all_set(t){return new h(t,1)}static all_unset(t){return new h(t,0)}static from_indices(t,s){const r=new h(t);for(const t of s)r.set(t);return r}static from_booleans(t,s){const r=new h(t),e=Math.min(t,s.length);for(let t=0;t<e;t++)s[t]&&r.set(t);return r}_check_bounds(t){(0,_.assert)(0<=t&&t<this.size,`Out of bounds: 0 <= ${t} < ${this.size}`)}get(t){this._check_bounds(t);const s=t>>>5,r=31&t;return 1==(this._array[s]>>r&1)}set(t,s=!0){this._check_bounds(t),this._count=null;const r=t>>>5,e=31&t;s?this._array[r]|=1<<e:this._array[r]&=~(1<<e)}unset(t){this.set(t,!1)}*[Symbol.iterator](){yield*this.ones()}get count(){let t=this._count;return null==t&&(this._count=t=this._get_count()),t}_get_count(){const{_array:t,_nwords:s,size:r}=this;let e=0;for(let i=0,n=0;n<s;n++){const s=t[n];if(0==s)i+=h._word_length;else for(let t=0;t<h._word_length&&i<r;t++,i++)1==(s>>>t&1)&&(e+=1)}return e}*ones(){const{_array:t,_nwords:s,size:r}=this;for(let e=0,i=0;i<s;i++){const s=t[i];if(0!=s)for(let t=0;t<h._word_length&&e<r;t++,e++)1==(s>>>t&1)&&(yield e);else e+=h._word_length}}*zeros(){const{_array:t,_nwords:s,size:r}=this;for(let e=0,i=0;i<s;i++){const s=t[i];if(4294967295!=s)for(let t=0;t<h._word_length&&e<r;t++,e++)0==(s>>>t&1)&&(yield e);else e+=h._word_length}}_check_size(t){(0,_.assert)(this.size==t.size,`Size mismatch (${this.size} != ${t.size})`)}invert(){for(let t=0;t<this._nwords;t++)this._array[t]=~this._array[t]>>>0}add(t){this._check_size(t);for(let s=0;s<this._nwords;s++)this._array[s]|=t._array[s]}intersect(t){this._check_size(t);for(let s=0;s<this._nwords;s++)this._array[s]&=t._array[s]}subtract(t){this._check_size(t);for(let s=0;s<this._nwords;s++){const r=this._array[s],e=t._array[s];this._array[s]=(r^e)&r}}symmetric_subtract(t){this._check_size(t);for(let s=0;s<this._nwords;s++)this._array[s]^=t._array[s]}inversion(){const t=this.clone();return t.invert(),t}union(t){const s=this.clone();return s.add(t),s}intersection(t){const s=this.clone();return s.intersect(t),s}difference(t){const s=this.clone();return s.subtract(t),s}symmetric_difference(t){const s=this.clone();return s.symmetric_subtract(t),s}select(t){(0,_.assert)(this.size<=t.length,\"Size mismatch\");const s=this.count,r=new t.constructor(s);let e=0;for(const s of this)r[e++]=t[s];return r}}r.BitSet=h,h.__name__=\"BitSet\",h._word_length=32},\n function _(t,e,r,s,n){s();const o=t(8),{hasOwnProperty:c}=Object.prototype;function a(t){return(0,o.isObject)(t)&&r.equals in t}r.equals=Symbol(\"equals\"),r.wildcard=Symbol(\"wildcard\");const i=Object.prototype.toString;class u{constructor(t){var e;this.a_stack=[],this.b_stack=[],this.structural=null!==(e=null==t?void 0:t.structural)&&void 0!==e&&e}eq(t,e){if(Object.is(t,e))return!0;if(t===r.wildcard||e===r.wildcard)return!0;if(null==t||null==e)return t===e;const s=i.call(t);if(s!=i.call(e))return!1;switch(s){case\"[object Number]\":return this.numbers(t,e);case\"[object Symbol]\":return t===e;case\"[object RegExp]\":case\"[object String]\":return`${t}`==`${e}`;case\"[object Date]\":case\"[object Boolean]\":return+t==+e}const{a_stack:n,b_stack:o}=this;let c=n.length;for(;c-- >0;)if(n[c]===t)return o[c]===e;n.push(t),o.push(e);const u=(()=>{if(a(t)&&a(e))return t[r.equals](e,this);switch(s){case\"[object Array]\":case\"[object Uint8Array]\":case\"[object Int8Array]\":case\"[object Uint16Array]\":case\"[object Int16Array]\":case\"[object Uint32Array]\":case\"[object Int32Array]\":case\"[object Float32Array]\":case\"[object Float64Array]\":return this.arrays(t,e);case\"[object Map]\":return this.maps(t,e);case\"[object Set]\":return this.sets(t,e);case\"[object Object]\":if(t.constructor==e.constructor&&(null==t.constructor||t.constructor===Object))return this.objects(t,e);case\"[object Function]\":if(t.constructor==e.constructor&&t.constructor===Function)return this.eq(`${t}`,`${e}`)}if(\"undefined\"!=typeof Node&&t instanceof Node)return this.nodes(t,e);throw Error(`can't compare objects of type ${s}`)})();return n.pop(),o.pop(),u}numbers(t,e){return Object.is(t,e)}arrays(t,e){const{length:r}=t;if(r!=e.length)return!1;for(let s=0;s<r;s++)if(!this.eq(t[s],e[s]))return!1;return!0}iterables(t,e){var r,s;const n=t[Symbol.iterator](),o=e[Symbol.iterator]();for(;;){const t=n.next(),e=o.next(),c=null!==(r=t.done)&&void 0!==r&&r,a=null!==(s=e.done)&&void 0!==s&&s;if(c&&a)return!0;if(c||a)return!1;if(!this.eq(t.value,e.value))return!1}}maps(t,e){if(t.size!=e.size)return!1;if(this.structural)return this.iterables(t.entries(),e.entries());for(const[r,s]of t)if(!e.has(r)||!this.eq(s,e.get(r)))return!1;return!0}sets(t,e){if(t.size!=e.size)return!1;if(this.structural)return this.iterables(t.entries(),e.entries());for(const r of t)if(!e.has(r))return!1;return!0}objects(t,e){const r=Object.keys(t);if(r.length!=Object.keys(e).length)return!1;for(const s of r)if(!c.call(e,s)||!this.eq(t[s],e[s]))return!1;return!0}nodes(t,e){return t.nodeType==e.nodeType&&(t.textContent==e.textContent&&!!this.iterables(t.childNodes,e.childNodes))}}r.Comparator=u,u.__name__=\"Comparator\";const{abs:l}=Math;class b extends u{constructor(t=1e-4){super(),this.tolerance=t}numbers(t,e){return super.numbers(t,e)||l(t-e)<this.tolerance}}r.SimilarComparator=b,b.__name__=\"SimilarComparator\",r.is_equal=function(t,e){return(new u).eq(t,e)},r.is_structurally_equal=function(t,e){return new u({structural:!0}).eq(t,e)},r.is_similar=function(t,e,r){return new b(r).eq(t,e)}},\n function _(n,t,i,e,r){e(),i.is_mobile=\"ontouchstart\"in globalThis||\"undefined\"!=typeof navigator&&navigator.maxTouchPoints>0,i.is_little_endian=(()=>{const n=new ArrayBuffer(4),t=new Uint8Array(n);new Uint32Array(n)[1]=168496141;let i=!0;return 10==t[4]&&11==t[5]&&12==t[6]&&13==t[7]&&(i=!1),i})(),i.BYTE_ORDER=i.is_little_endian?\"little\":\"big\",i.to_big_endian=function(n){if(i.is_little_endian){const t=new Uint32Array(n.length),i=new DataView(t.buffer);let e=0;for(const t of n)i.setUint32(e,t),e+=4;return t}return n}},\n function _(i,n,e,t,u){t();const c=i(8);e.isValue=function(i){return(0,c.isPlainObject)(i)&&\"value\"in i},e.isField=function(i){return(0,c.isPlainObject)(i)&&\"field\"in i},e.isExpr=function(i){return(0,c.isPlainObject)(i)&&\"expr\"in i}},\n function _(e,t,r,s,_){s();class i{constructor(){this._dev=!1,this._wireframe=!1,this._force_webgl=!1}set dev(e){this._dev=e}get dev(){return this._dev}set wireframe(e){this._wireframe=e}get wireframe(){return this._wireframe}set force_webgl(e){this._force_webgl=e}get force_webgl(){return this._force_webgl}}r.Settings=i,i.__name__=\"Settings\",r.settings=new i},\n function _(t,e,s,r,n){var a,i,h,u,l,o,p,c,y,_;r();const A=t(8),d=t(26),g=t(25),f=t(30),m=Symbol(\"__ndarray__\");function N(t,e){return{type:\"ndarray\",array:e.encode(\"object\"==t.dtype?Array.from(t):t.buffer),order:d.BYTE_ORDER,dtype:t.dtype,shape:t.shape}}class D extends Uint8Array{constructor(t,e){super(t),this[a]=!0,this.dtype=\"bool\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(a=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return 1==this[t]}}s.BoolNDArray=D,D.__name__=\"BoolNDArray\";class q extends Uint8Array{constructor(t,e){super(t),this[i]=!0,this.dtype=\"uint8\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(i=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Uint8NDArray=q,q.__name__=\"Uint8NDArray\";class b extends Int8Array{constructor(t,e){super(t),this[h]=!0,this.dtype=\"int8\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(h=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Int8NDArray=b,b.__name__=\"Int8NDArray\";class w extends Uint16Array{constructor(t,e){super(t),this[u]=!0,this.dtype=\"uint16\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(u=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Uint16NDArray=w,w.__name__=\"Uint16NDArray\";class U extends Int16Array{constructor(t,e){super(t),this[l]=!0,this.dtype=\"int16\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(l=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Int16NDArray=U,U.__name__=\"Int16NDArray\";class I extends Uint32Array{constructor(t,e){super(t),this[o]=!0,this.dtype=\"uint32\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(o=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Uint32NDArray=I,I.__name__=\"Uint32NDArray\";class x extends Int32Array{constructor(t,e){super(t),this[p]=!0,this.dtype=\"int32\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(p=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Int32NDArray=x,x.__name__=\"Int32NDArray\";class z extends Float32Array{constructor(t,e){super(t),this[c]=!0,this.dtype=\"float32\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(c=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Float32NDArray=z,z.__name__=\"Float32NDArray\";class F extends Float64Array{constructor(t,e){super(t),this[y]=!0,this.dtype=\"float64\",this.shape=null!=e?e:B(t)?t.shape:[this.length],this.dimension=this.shape.length}[(y=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}s.Float64NDArray=F,F.__name__=\"Float64NDArray\";class j extends Array{get shape(){var t;return null!==(t=this._shape)&&void 0!==t?t:[this.length]}get dimension(){return this.shape.length}constructor(t,e){const s=t instanceof ArrayBuffer?new Float64Array(t):t;if(super((0,A.isNumber)(s)?s:s.length),this[_]=!0,this.dtype=\"object\",!(0,A.isNumber)(s))for(let t=0;t<s.length;t++)this[t]=s[t];this._shape=null!=e?e:B(s)?s.shape:void 0}[(_=m,g.equals)](t,e){return e.eq(this.shape,t.shape)&&e.arrays(this,t)}[f.serialize](t){return N(this,t)}get(t){return this[t]}}function B(t){return(0,A.isObject)(t)&&m in t}s.ObjectNDArray=j,j.__name__=\"ObjectNDArray\",s.is_NDArray=B,s.ndarray=function(t,{dtype:e,shape:s}={}){switch(null==e&&(e=(()=>{switch(!0){case t instanceof Uint8Array:return\"uint8\";case t instanceof Int8Array:return\"int8\";case t instanceof Uint16Array:return\"uint16\";case t instanceof Int16Array:return\"int16\";case t instanceof Uint32Array:return\"uint32\";case t instanceof Int32Array:return\"int32\";case t instanceof Float32Array:return\"float32\";case t instanceof ArrayBuffer:case t instanceof Float64Array:return\"float64\";default:return\"object\"}})()),e){case\"bool\":return new D(t,s);case\"uint8\":return new q(t,s);case\"int8\":return new b(t,s);case\"uint16\":return new w(t,s);case\"int16\":return new U(t,s);case\"uint32\":return new I(t,s);case\"int32\":return new x(t,s);case\"float32\":return new z(t,s);case\"float64\":return new F(t,s);case\"object\":return new j(t,s)}}},\n function _(r,e,i,a,f){a();const o=r(1);var l=r(31);f(\"Serializer\",l.Serializer),f(\"SerializationError\",l.SerializationError),f(\"serialize\",l.serialize);var t=r(33);f(\"Buffer\",t.Buffer),f(\"Base64Buffer\",t.Base64Buffer),o.__exportStar(r(35),i)},\n function _(e,r,t,n,i){n();const s=e(12),a=e(9),o=e(8),c=e(32),l=e(26),u=e(33);t.serialize=Symbol(\"serialize\");class f extends Error{}t.SerializationError=f,f.__name__=\"SerializationError\";class y{constructor(e){this.value=e}to_json(){return JSON.stringify(this.value)}}y.__name__=\"Serialized\";class d{constructor(e){var r,t;this._circular=new WeakSet,this.binary=null!==(r=null==e?void 0:e.binary)&&void 0!==r&&r,this.include_defaults=null!==(t=null==e?void 0:e.include_defaults)&&void 0!==t&&t;const n=null==e?void 0:e.references;this._references=null!=n?new Map(n):new Map}get_ref(e){return this._references.get(e)}add_ref(e,r){(0,s.assert)(!this._references.has(e)),this._references.set(e,r)}to_serializable(e){return new y(this.encode(e))}encode(e){const r=this.get_ref(e);if(null!=r)return r;if(!(0,o.isObject)(e))return this._encode(e);this._circular.has(e)&&this.error(\"circular reference\"),this._circular.add(e);try{return this._encode(e)}finally{this._circular.delete(e)}}_encode(e){if(function(e){return(0,o.isObject)(e)&&t.serialize in e}(e))return e[t.serialize](this);if((0,o.isArray)(e)){const r=e.length,t=new Array(r);for(let n=0;n<r;n++){const r=e[n];t[n]=this.encode(r)}return t}if((0,o.isTypedArray)(e))return this._encode_typed_array(e);if(e instanceof ArrayBuffer){return{type:\"bytes\",data:this.binary?new u.Buffer(e):new u.Base64Buffer(e)}}if((0,o.isPlainObject)(e)){const r=(0,a.entries)(e);return 0==r.length?{type:\"map\"}:{type:\"map\",entries:[...(0,c.map)(r,(([e,r])=>[this.encode(e),this.encode(r)]))]}}if(null===e||(0,o.isBoolean)(e)||(0,o.isString)(e))return e;if((0,o.isNumber)(e))return isNaN(e)?{type:\"number\",value:\"nan\"}:isFinite(e)?e:{type:\"number\",value:(e<0?\"-\":\"+\")+\"inf\"};if(e instanceof Date){return{type:\"date\",iso:e.toISOString()}}if(e instanceof Set)return 0==e.size?{type:\"set\"}:{type:\"set\",entries:[...(0,c.map)(e.values(),(e=>this.encode(e)))]};if(e instanceof Map)return 0==e.size?{type:\"map\"}:{type:\"map\",entries:[...(0,c.map)(e.entries(),(([e,r])=>[this.encode(e),this.encode(r)]))]};if((0,o.isSymbol)(e)&&null!=e.description)return{type:\"symbol\",name:e.description};throw new f(`${Object.prototype.toString.call(e)} is not serializable`)}encode_struct(e){const r={};for(const[t,n]of(0,a.entries)(e))void 0!==n&&(r[t]=this.encode(n));return r}error(e){throw new f(e)}_encode_typed_array(e){const r=this.encode(e.buffer),t=(()=>{switch(e.constructor){case Uint8Array:return\"uint8\";case Int8Array:return\"int8\";case Uint16Array:return\"uint16\";case Int16Array:return\"int16\";case Uint32Array:return\"uint32\";case Int32Array:return\"int32\";case Float32Array:return\"float32\";case Float64Array:return\"float64\";default:this.error(`can't serialize typed array of type '${e[Symbol.toStringTag]}'`)}})();return{type:\"typed_array\",array:r,order:l.BYTE_ORDER,dtype:t}}}t.Serializer=d,d.__name__=\"Serializer\"},\n function _(n,o,t,e,f){e();const i=n(10),r=n(12),{abs:l,ceil:c,max:s}=Math;function*u(n){const o=n.length;for(let t=0;t<o;t++)yield n[o-t-1]}function*a(n,o){(0,r.assert)(o>=0);for(const t of n)0==o?yield t:o-=1}function*y(n,o){const t=n.length;if(o>t)return;const e=(0,i.range)(o);for(yield e.map((o=>n[o]));;){let f;for(const n of u((0,i.range)(o)))if(e[n]!=n+t-o){f=n;break}if(null==f)return;e[f]+=1;for(const n of(0,i.range)(f+1,o))e[n]=e[n-1]+1;yield e.map((o=>n[o]))}}t.range=function*(n,o,t=1){(0,r.assert)(t>0),null==o&&(o=n,n=0);const e=n<=o?t:-t,f=s(c(l(o-n)/t),0);for(let o=0;o<f;o++,n+=e)yield n},t.reverse=u,t.enumerate=function*(n){let o=0;for(const t of n)yield[t,o++]},t.take=function*(n,o){(0,r.assert)(o>=0);let t=0;for(const e of n){if(!(t++<o))break;yield e}},t.skip=a,t.tail=function*(n){yield*a(n,1)},t.join=function*(n,o){let t=!0;for(const e of n)t?t=!1:null!=o&&(yield o()),yield*e},t.zip=function*(n,o){const t=n[Symbol.iterator](),e=o[Symbol.iterator]();for(;;){const n=t.next(),o=e.next();if(!0===n.done||!0===o.done)break;yield[n.value,o.value]}},t.interleave=function*(n,o){let t=!0;for(const e of n)t?t=!1:yield o(),yield e},t.map=function*(n,o){let t=0;for(const e of n)yield o(e,t++)},t.flat_map=function*(n,o){let t=0;for(const e of n)yield*o(e,t++)},t.every=function(n,o){for(const t of n)if(!o(t))return!1;return!0},t.some=function(n,o){for(const t of n)if(o(t))return!0;return!1},t.combinations=y,t.subsets=function*(n){for(const o of(0,i.range)(n.length+1))yield*y(n,o)}},\n function _(e,f,r,s,t){s();const u=e(34),_=e(25);class a{constructor(e){this.buffer=e}to_base64(){return(0,u.buffer_to_base64)(this.buffer)}[_.equals](e,f){return f.eq(this.buffer,e.buffer)}}r.Buffer=a,a.__name__=\"Buffer\";class n extends a{toJSON(){return this.to_base64()}}r.Base64Buffer=n,n.__name__=\"Base64Buffer\"},\n function _(t,n,e,r,o){r(),e.buffer_to_base64=function(t){const n=new Uint8Array(t),e=Array.from(n).map((t=>String.fromCharCode(t)));return btoa(e.join(\"\"))},e.base64_to_buffer=function(t){const n=atob(t),e=n.length,r=new Uint8Array(e);for(let t=0,o=e;t<o;t++)r[t]=n.charCodeAt(t);return r.buffer},e.swap=function(t,n){switch(n){case\"uint16\":case\"int16\":!function(t){const n=new Uint8Array(t);for(let t=0,e=n.length;t<e;t+=2){const e=n[t];n[t]=n[t+1],n[t+1]=e}}(t);break;case\"uint32\":case\"int32\":case\"float32\":!function(t){const n=new Uint8Array(t);for(let t=0,e=n.length;t<e;t+=4){let e=n[t];n[t]=n[t+3],n[t+3]=e,e=n[t+1],n[t+1]=n[t+2],n[t+2]=e}}(t);break;case\"float64\":!function(t){const n=new Uint8Array(t);for(let t=0,e=n.length;t<e;t+=8){let e=n[t];n[t]=n[t+7],n[t+7]=e,e=n[t+1],n[t+1]=n[t+6],n[t+6]=e,e=n[t+2],n[t+2]=n[t+5],n[t+5]=e,e=n[t+3],n[t+3]=n[t+4],n[t+4]=e}}(t)}}},\n function _(n,c,f,i,o){i()},\n function _(s,t,e,n,i){n();class c{constructor(){this.listeners=new Set}connect(s){this.listeners.add(s)}disconnect(s){this.listeners.delete(s)}report(s){for(const t of this.listeners)t(s)}}e.Diagnostics=c,c.__name__=\"Diagnostics\",e.diagnostics=new c},\n function _(t,r,e,s,a){s();const i=t(25);class n{is_Scalar(){return this.is_scalar}is_Vector(){return!this.is_scalar}}e.Uniform=n,n.__name__=\"Uniform\";class l extends n{constructor(t,r){super(),this.is_scalar=!0,this.value=t,this.length=r}get(t){return this.value}*[Symbol.iterator](){const{length:t,value:r}=this;for(let e=0;e<t;e++)yield r}select(t){return new l(this.value,t.count)}[i.equals](t,r){return r.eq(this.length,t.length)&&r.eq(this.value,t.value)}}e.UniformScalar=l,l.__name__=\"UniformScalar\";class o extends n{constructor(t){super(),this.is_scalar=!1,this.array=t,this.length=this.array.length}get(t){return this.array[t]}*[Symbol.iterator](){yield*this.array}select(t){const r=t.select(this.array);return new this.constructor(r)}[i.equals](t,r){return r.eq(this.length,t.length)&&r.eq(this.array,t.array)}}e.UniformVector=o,o.__name__=\"UniformVector\";class h extends o{constructor(t){super(t),this.array=t,this._view=new DataView(t.buffer)}get(t){return this._view.getUint32(4*t)}*[Symbol.iterator](){const t=this.length;for(let r=0;r<t;r++)yield this.get(r)}}e.ColorUniformVector=h,h.__name__=\"ColorUniformVector\"},\n function _(e,t,r,n,u){n();const c=e(28);function s(){const e=new Array(32),t=\"0123456789ABCDEF\";for(let r=0;r<32;r++)e[r]=t[Math.floor(16*Math.random())];return e[12]=\"4\",e[16]=t[3&e[16].charCodeAt(0)|8],e.join(\"\")}r.uuid4=s;let a=1e3;r.unique_id=function(e){const t=c.settings.dev?\"j\"+a++:s();return null!=e?`${e}-${t}`:t},r.escape=function(e){return e.replace(/(?:[&<>\"'`])/g,(e=>{switch(e){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\"'\":return\"'\";case\"`\":return\"`\";default:return e}}))},r.unescape=function(e){return e.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,((e,t)=>{switch(t){case\"amp\":return\"&\";case\"lt\":return\"<\";case\"gt\":return\">\";case\"quot\":return'\"';case\"#x27\":return\"'\";case\"#x60\":return\"`\";default:return t}}))},r.use_strict=function(e){return`'use strict';\\n${e}`},r.to_fixed=function(e,t){return e.toFixed(t).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\")},r.insert_text_on_position=function(e,t,r){const n=[];return n.push(e.slice(0,t)),n.push(r),n.push(e.slice(t)),n.join(\"\")}},\n function _(e,t,s,n,a){n();const i=e(25),r=e(30);class d{constructor(e){this.document=e}get[Symbol.toStringTag](){return this.constructor.__name__}[i.equals](e,t){return t.eq(this.document,e.document)}}s.DocumentEvent=d,d.__name__=\"DocumentEvent\";class o extends d{constructor(e,t){super(e),this.events=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.events,e.events)}}s.DocumentEventBatch=o,o.__name__=\"DocumentEventBatch\";class l extends d{}s.DocumentChangedEvent=l,l.__name__=\"DocumentChangedEvent\";class h extends l{constructor(e,t,s){super(e),this.kind=\"MessageSent\",this.msg_type=t,this.msg_data=s}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.msg_type,e.msg_type)&&t.eq(this.msg_data,e.msg_data)}[r.serialize](e){return{kind:this.kind,msg_type:this.msg_type,msg_data:e.encode(this.msg_data)}}}s.MessageSentEvent=h,h.__name__=\"MessageSentEvent\";class u extends l{constructor(e,t,s,n){super(e),this.kind=\"ModelChanged\",this.model=t,this.attr=s,this.value=n}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.value,e.value)}[r.serialize](e){return{kind:this.kind,model:this.model.ref(),attr:this.attr,new:e.encode(this.value)}}}s.ModelChangedEvent=u,u.__name__=\"ModelChangedEvent\";class m extends l{constructor(e,t,s,n,a){super(e),this.kind=\"ColumnDataChanged\",this.model=t,this.attr=s,this.data=n,this.cols=a}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.data,e.data)&&t.eq(this.cols,e.cols)}[r.serialize](e){return{kind:this.kind,model:this.model.ref(),attr:this.attr,data:e.encode(this.data),cols:this.cols}}}s.ColumnDataChangedEvent=m,m.__name__=\"ColumnDataChangedEvent\";class c extends l{constructor(e,t,s,n,a){super(e),this.kind=\"ColumnsStreamed\",this.model=t,this.attr=s,this.data=n,this.rollover=a}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.data,e.data)&&t.eq(this.rollover,e.rollover)}[r.serialize](e){return{kind:this.kind,model:this.model.ref(),attr:this.attr,data:e.encode(this.data),rollover:this.rollover}}}s.ColumnsStreamedEvent=c,c.__name__=\"ColumnsStreamedEvent\";class _ extends l{constructor(e,t,s,n){super(e),this.kind=\"ColumnsPatched\",this.model=t,this.attr=s,this.patches=n}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.patches,e.patches)}[r.serialize](e){return{kind:this.kind,attr:this.attr,model:this.model.ref(),patches:e.encode(this.patches)}}}s.ColumnsPatchedEvent=_,_.__name__=\"ColumnsPatchedEvent\";class q extends l{constructor(e,t){super(e),this.kind=\"TitleChanged\",this.title=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.title,e.title)}[r.serialize](e){return{kind:this.kind,title:this.title}}}s.TitleChangedEvent=q,q.__name__=\"TitleChangedEvent\";class v extends l{constructor(e,t){super(e),this.kind=\"RootAdded\",this.model=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)}[r.serialize](e){return{kind:this.kind,model:e.encode(this.model)}}}s.RootAddedEvent=v,v.__name__=\"RootAddedEvent\";class p extends l{constructor(e,t){super(e),this.kind=\"RootRemoved\",this.model=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)}[r.serialize](e){return{kind:this.kind,model:this.model.ref()}}}s.RootRemovedEvent=p,p.__name__=\"RootRemovedEvent\"},\n function _(t,r,i,n,e){n();const s=t(8),o=t(9);i.pretty=Symbol(\"pretty\");class u{constructor(t){this.visited=new Set,this.precision=null==t?void 0:t.precision}to_string(t){if((0,s.isObject)(t)){if(this.visited.has(t))return\"<circular>\";this.visited.add(t)}return function(t){return(0,s.isObject)(t)&&i.pretty in t}(t)?t[i.pretty](this):(0,s.isBoolean)(t)?this.boolean(t):(0,s.isNumber)(t)?this.number(t):(0,s.isString)(t)?this.string(t):(0,s.isArray)(t)?this.array(t):(0,s.isIterable)(t)?this.iterable(t):(0,s.isPlainObject)(t)?this.object(t):(0,s.isSymbol)(t)?this.symbol(t):t instanceof ArrayBuffer?this.array_buffer(t):`${t}`}token(t){return t}boolean(t){return`${t}`}number(t){return null!=this.precision?t.toFixed(this.precision):`${t}`}string(t){const r=t.includes(\"'\"),i=t.includes('\"');return r&&i?`\\`${t.replace(/`/g,\"\\\\`\")}\\``:i?`'${t}'`:`\"${t}\"`}symbol(t){return t.toString()}array(t){const r=this.token,i=[];for(const r of t)i.push(this.to_string(r));return`${r(\"[\")}${i.join(`${r(\",\")} `)}${r(\"]\")}`}iterable(t){var r;const i=this.token,n=null!==(r=Object(t)[Symbol.toStringTag])&&void 0!==r?r:\"Object\",e=this.array(t);return`${n}${i(\"(\")}${e}${i(\")\")}`}object(t){const r=this.token,i=[];for(const[n,e]of(0,o.entries)(t))i.push(`${n}${r(\":\")} ${this.to_string(e)}`);return`${r(\"{\")}${i.join(`${r(\",\")} `)}${r(\"}\")}`}array_buffer(t){return`ArrayBuffer(#${t.byteLength})`}}i.Printer=u,u.__name__=\"Printer\",i.to_string=function(t,r){return new u(r).to_string(t)}},\n function _(n,e,t,o,r){o();const i=n(9),c=n(8);function l(n){return(0,c.isObject)(n)&&t.clone in n}t.clone=Symbol(\"clone\"),t.is_Cloneable=l;class s extends Error{}t.CloningError=s,s.__name__=\"CloningError\";class a{constructor(){}clone(n){if(l(n))return n[t.clone](this);if((0,c.isPrimitive)(n))return n;if((0,c.isArray)(n)){const e=n.length,t=new Array(e);for(let o=0;o<e;o++){const e=n[o];t[o]=this.clone(e)}return t}if((0,c.isPlainObject)(n)){const e={};for(const[t,o]of(0,i.entries)(n))e[t]=this.clone(o);return e}if(n instanceof Map)return new Map([...n].map((([n,e])=>[this.clone(n),this.clone(e)])));if(n instanceof Set)return new Set([...n].map((n=>this.clone(n))));throw new s(`${Object.prototype.toString.call(n)} is not cloneable`)}}t.Cloner=a,a.__name__=\"Cloner\"},\n function _(t,r,n,e,o){e();const s=t(1),u=t(8),c=t(9),l=t(43),i=s.__importStar(t(44));function a(t,r,n){if((0,u.isArray)(t)&&(0,u.isArray)(r)){const e=t.concat(r);return null!=n&&e.length>n?e.slice(-n):e}const e=t.length+r.length;if(null!=n&&e>n){const o=e-n,s=t.length,c=(()=>{if(t.length<n){const e=new((()=>{if((0,u.isTypedArray)(t))return t.constructor;if((0,u.isTypedArray)(r))return r.constructor;throw new Error(\"unsupported array types\")})())(n);return e.set(t,0),e}return t})();for(let t=o,r=s;t<r;t++)c[t-o]=c[t];for(let t=0,n=r.length;t<n;t++)c[t+(s-o)]=r[t];return c}{const n=(()=>{if((0,u.isTypedArray)(t))return t;if((0,u.isTypedArray)(r))return new r.constructor(t);throw new Error(\"unsupported array types\")})();return i.concat(n,r)}}function f(t,r){let n,e,o;return(0,u.isNumber)(t)?(n=t,o=t+1,e=1):(n=null!=t.start?t.start:0,o=null!=t.stop?t.stop:r,e=null!=t.step?t.step:1),[n,o,e]}function p(t,r){const n=new Set;let e=!1;for(const[o,s]of r){let r,c,l,i;if((0,u.isArray)(o)){const[e]=o;n.add(e),r=t[e].shape,c=t[e],i=s,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else(0,u.isNumber)(o)?(i=[s],n.add(o)):(i=s,e=!0),l=[0,0,o],r=[1,t.length],c=t;let a=0;const[p,y,h]=f(l[1],r[0]),[d,_,m]=f(l[2],r[1]);for(let t=p;t<y;t+=h)for(let o=d;o<_;o+=m)e&&n.add(o),c[t*r[1]+o]=i[a],a++}return n}n.stream_to_column=a,n.slice=f,n.patch_to_column=p,n.stream_to_columns=function(t,r,n){for(const[e,o]of(0,c.entries)(r))t[e]=a(t[e],o,n)},n.patch_to_columns=function(t,r){let n=new Set;for(const[e,o]of(0,c.entries)(r))n=(0,l.union)(n,p(t[e],o));return n}},\n function _(n,o,t,e,f){function c(...n){const o=new Set;for(const t of n)for(const n of t)o.add(n);return o}e(),t.union=c,t.intersection=function(n,...o){const t=new Set;n:for(const e of n){for(const n of o)if(!n.has(e))continue n;t.add(e)}return t},t.difference=function(n,...o){const t=new Set(n);for(const n of c(...o))t.delete(n);return t}},\n function _(t,n,o,e,c){e(),o.concat=function(t,...n){let o=t.length;for(const t of n)o+=t.length;const e=new t.constructor(o);e.set(t,0);let c=t.length;for(const t of n)e.set(t,c),c+=t.length;return e}},\n function _(e,s,t,n,o){n();class l{constructor(e,s=[]){this._known_models=new Map,this.parent=e;for(const e of s)this.register(e)}get(e){var s,t,n;return null!==(n=null!==(s=this._known_models.get(e))&&void 0!==s?s:null===(t=this.parent)||void 0===t?void 0:t.get(e))&&void 0!==n?n:null}register(e,s=!1){const t=e.__qualified__;s||null==this.get(t)?this._known_models.set(t,e):console.warn(`Model '${t}' was already registered with this resolver`)}get names(){return[...this._known_models.keys()]}}t.ModelResolver=l,l.__name__=\"ModelResolver\"},\n function _(e,r,t,n,s){n();const i=e(18),d=e(47),o=e(29),a=e(9),c=e(10),_=e(26),u=e(34),l=e(8),f=e(48),h=new Map;class y extends Error{}t.DeserializationError=y,y.__name__=\"DeserializationError\";class p{static register(e,r){if(h.has(e))throw new Error(`'${e}' already registered for decoding`);h.set(e,r)}constructor(e,r=new Map,t){this._decoding=!1,this._buffers=new Map,this._finalizable=new Set,this.resolver=e,this.references=r,this.finalize=t}decode(e,r){var t;if(null!=r)for(const[e,t]of r)this._buffers.set(e,t);if(this._decoding)return this._decode(e);let n;this._decoding=!0;const s=(()=>{try{return this._decode(e)}finally{n=new Set(this._finalizable),this._decoding=!1,this._buffers.clear(),this._finalizable.clear()}})();for(const e of n)null===(t=this.finalize)||void 0===t||t.call(this,e),e.finalize(),e.assert_initialized();for(const e of n)e.connect_signals();return s}_decode(e){if((0,l.isArray)(e))return this._decode_plain_array(e);if(!(0,l.isPlainObject)(e))return e;if(!(0,l.isString)(e.type))return(0,l.isString)(e.id)?this._decode_ref(e):this._decode_plain_object(e);{const r=h.get(e.type);if(null!=r)return r(e,this);switch(e.type){case\"ref\":return this._decode_ref(e);case\"symbol\":return this._decode_symbol(e);case\"number\":return this._decode_number(e);case\"array\":return this._decode_array(e);case\"set\":return this._decode_set(e);case\"map\":return this._decode_map(e);case\"bytes\":return this._decode_bytes(e);case\"slice\":return this._decode_slice(e);case\"date\":return this._decode_date(e);case\"value\":return this._decode_value(e);case\"field\":return this._decode_field(e);case\"expr\":return this._decode_expr(e);case\"typed_array\":return this._decode_typed_array(e);case\"ndarray\":return this._decode_ndarray(e);case\"object\":return(0,l.isString)(e.id)?this._decode_object_ref(e):this._decode_object(e);default:this.error(`unable to decode an object of type '${e.type}'`)}}}_decode_symbol(e){this.error(`can't resolve named symbol '${e.name}'`)}_decode_number(e){if(\"value\"in e){const{value:r}=e;if((0,l.isString)(r))switch(r){case\"nan\":return NaN;case\"+inf\":return 1/0;case\"-inf\":return-1/0}else if((0,l.isNumber)(r))return r}this.error(`invalid number representation '${e}'`)}_decode_plain_array(e){return(0,c.map)(e,(e=>this._decode(e)))}_decode_plain_object(e){const r={};for(const[t,n]of(0,a.entries)(e))r[t]=this._decode(n);return r}_decode_array(e){var r;const t=[];for(const n of null!==(r=e.entries)&&void 0!==r?r:[])t.push(this._decode(n));return t}_decode_set(e){var r;const t=new Set;for(const n of null!==(r=e.entries)&&void 0!==r?r:[])t.add(this._decode(n));return t}_decode_map(e){var r;const t=(0,c.map)(null!==(r=e.entries)&&void 0!==r?r:[],(([e,r])=>[this._decode(e),this._decode(r)]));if((0,c.every)(t,(([e])=>(0,l.isString)(e)))){const e={};for(const[r,n]of t)e[r]=n;return e}return new Map(t)}_decode_bytes(e){const{data:r}=e;if(!(0,d.is_ref)(r))return(0,l.isString)(r)?(0,u.base64_to_buffer)(r):r.buffer;{const e=this._buffers.get(r.id);if(null!=e)return e;this.error(`buffer for id=${r.id} not found`)}}_decode_slice(e){const r=this._decode(e.start),t=this._decode(e.stop),n=this._decode(e.step);return new f.Slice({start:r,stop:t,step:n})}_decode_date(e){const r=this._decode(e.iso);return new Date(r)}_decode_value(e){return{value:this._decode(e.value),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_field(e){return{field:this._decode(e.field),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_expr(e){return{expr:this._decode(e.expr),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_typed_array(e){const{array:r,order:t,dtype:n}=e,s=this._decode(r);switch(t!=_.BYTE_ORDER&&(0,u.swap)(s,n),n){case\"uint8\":return new Uint8Array(s);case\"int8\":return new Int8Array(s);case\"uint16\":return new Uint16Array(s);case\"int16\":return new Int16Array(s);case\"uint32\":return new Uint32Array(s);case\"int32\":return new Int32Array(s);case\"float32\":return new Float32Array(s);case\"float64\":return new Float64Array(s);default:this.error(`unsupported dtype '${n}'`)}}_decode_ndarray(e){const{array:r,order:t,dtype:n,shape:s}=e,i=this._decode(r);return i instanceof ArrayBuffer&&t!=_.BYTE_ORDER&&(0,u.swap)(i,n),(0,o.ndarray)(i,{dtype:n,shape:s})}_decode_object(e){const{type:r,attributes:t}=e,n=this._resolve_type(r);return null!=t?new n(this._decode(t)):new n}_decode_ref(e){const r=this.references.get(e.id);if(null!=r)return r;this.error(`reference ${e.id} isn't known`)}_decode_object_ref(e){const r=this.references.get(e.id);if(null!=r)return this.warning(`reference already known '${e.id}'`),r;const{id:t,name:n,attributes:s}=e,i=new(this._resolve_type(n))({id:t});this.references.set(t,i);const d=this._decode(null!=s?s:{});return i.initialize_props(new a.Dict(d)),this._finalizable.add(i),i}error(e){throw new y(e)}warning(e){i.logger.warn(e)}_resolve_type(e){const r=this.resolver.get(e);if(null!=r)return r;this.error(`could not resolve type '${e}', which could be due to a widget or a custom model not being registered before first usage`)}}t.Deserializer=p,p.__name__=\"Deserializer\"},\n function _(n,i,t,c,e){c();const f=n(8);t.is_ref=function(n){return(0,f.isPlainObject)(n)&&\"id\"in n&&!(\"type\"in n)}},\n function _(t,s,e,l,n){l();const i=t(30);class c{constructor({start:t,stop:s,step:e}={}){this.start=null!=t?t:null,this.stop=null!=s?s:null,this.step=null!=e?e:null}[i.serialize](t){return{type:\"slice\",start:t.encode(this.start),stop:t.encode(this.stop),step:t.encode(this.step)}}}e.Slice=c,c.__name__=\"Slice\"},\n function _(n,e,r,c,i){c(),r.pyify_version=function(n){return n.replace(/-(dev|rc)\\./,\".$1\")}},\n function _(e,t,s,n,c){var i;n();const a=e(14),r=e(8),l=e(9),o=e(25),_=e(18);class h extends a.HasProps{get is_syncable(){return this.syncable}[o.equals](e,t){return(!!t.structural||t.eq(this.id,e.id))&&super[o.equals](e,t)}constructor(e){super(e)}initialize(){super.initialize(),this._js_callbacks=new Map}connect_signals(){super.connect_signals(),this._update_property_callbacks(),this.connect(this.properties.js_property_callbacks.change,(()=>this._update_property_callbacks())),this.connect(this.properties.js_event_callbacks.change,(()=>this._update_event_callbacks())),this.connect(this.properties.subscribed_events.change,(()=>this._update_event_callbacks()))}_process_event(e){var t;for(const s of null!==(t=(0,l.dict)(this.js_event_callbacks).get(e.event_name))&&void 0!==t?t:[])s.execute(e);null!=this.document&&this.subscribed_events.has(e.event_name)&&this.document.event_manager.send_event(e)}trigger_event(e){null!=this.document&&(e.origin=this,this.document.event_manager.trigger(e))}_update_event_callbacks(){null!=this.document?this.document.event_manager.subscribed_models.add(this):_.logger.warn(\"WARNING: Document not defined for updating event callbacks\")}_update_property_callbacks(){const e=e=>{const[t,s=null]=e.split(\":\");return null!=s?this.properties[s][t]:this[t]};for(const[t,s]of this._js_callbacks){const n=e(t);for(const e of s)this.disconnect(n,e)}this._js_callbacks.clear();for(const[t,s]of(0,l.dict)(this.js_property_callbacks)){const n=s.map((e=>()=>e.execute(this)));this._js_callbacks.set(t,n);const c=e(t);for(const e of n)this.connect(c,e)}}_doc_attached(){(0,l.dict)(this.js_event_callbacks).is_empty&&0==this.subscribed_events.size||this._update_event_callbacks()}_doc_detached(){this.document.event_manager.subscribed_models.delete(this)}select(e){if((0,r.isString)(e))return[...this.references()].filter((t=>t instanceof h&&t.name===e));if((0,r.isPlainObject)(e)&&\"type\"in e)return[...this.references()].filter((t=>t.type==e.type));if(e.prototype instanceof a.HasProps)return[...this.references()].filter((t=>t instanceof e));throw new Error(`invalid selector ${e}`)}select_one(e){const t=this.select(e);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error(`found more than one object matching given selector ${e}`)}}on_event(e,t){var s;const n=(0,r.isString)(e)?e:e.prototype.event_name;this.js_event_callbacks[n]=[...null!==(s=(0,l.dict)(this.js_event_callbacks).get(n))&&void 0!==s?s:[],(0,r.isFunction)(t)?{execute:t}:t]}}s.Model=h,i=h,h.__name__=\"Model\",i.define((({Any:e,Unknown:t,Boolean:s,String:n,Array:c,Set:i,Dict:a,Nullable:r})=>({tags:[c(t),[]],name:[r(n),null],js_property_callbacks:[a(c(e)),{}],js_event_callbacks:[a(c(e)),{}],subscribed_events:[i(n),new globalThis.Set],syncable:[s,!0]})))},\n function _(e,n,r,t,o){t();const s=e(1),c=e(50),u=s.__importStar(e(20)),a=e(8),i=e(9);r.decode_def=function(e,n){var r,t,o;function s(e){if((0,a.isString)(e))switch(e){case\"Any\":return u.Any;case\"Unknown\":return u.Unknown;case\"Boolean\":return u.Boolean;case\"Number\":return u.Number;case\"Int\":return u.Int;case\"Bytes\":return u.Bytes;case\"String\":return u.String;case\"Null\":return u.Null}else switch(e[0]){case\"Regex\":{const[,n,r]=e;return u.Regex(new RegExp(n,r))}case\"Nullable\":{const[,n]=e;return u.Nullable(s(n))}case\"Or\":{const[,n,...r]=e;return u.Or(s(n),...r.map(s))}case\"Tuple\":{const[,n,...r]=e;return u.Tuple(s(n),...r.map(s))}case\"Array\":{const[,n]=e;return u.Array(s(n))}case\"Struct\":{const[,...n]=e,r=n.map((([e,n])=>[e,s(n)]));return u.Struct((0,i.to_object)(r))}case\"Dict\":{const[,n]=e;return u.Dict(s(n))}case\"Map\":{const[,n,r]=e;return u.Map(s(n),s(r))}case\"Enum\":{const[,...n]=e;return u.Enum(...n)}case\"Ref\":{const[,r]=e,t=n.resolver.get(r.id);if(null!=t)return u.Ref(t);throw new Error(`${r.id} wasn't defined before referencing it`)}case\"AnyRef\":return u.AnyRef()}}const l=(()=>{var r,t;const o=null!==(t=null===(r=e.extends)||void 0===r?void 0:r.id)&&void 0!==t?t:\"Model\";if(\"Model\"==o)return c.Model;const s=n.resolver.get(o);if(null!=s)return s;throw new Error(`base model ${o} of ${e.name} is not defined`)})(),d=((o=class extends l{}).__qualified__=e.name,o);function f(e){return void 0===e?e:n.decode(e)}for(const n of null!==(r=e.properties)&&void 0!==r?r:[]){const e=s(n.kind);d.define({[n.name]:[e,f(n.default)]})}for(const n of null!==(t=e.overrides)&&void 0!==t?t:[])d.override({[n.name]:f(n.default)});return n.resolver.register(d),d}},\n function _(e,t,s,n,a){var _,l,o,c,r,u,i,v,d,m,p,h,x,g,y,b,P,E,O,j,R,M,S,D,f,L,k,C;n();var U=this&&this.__decorate||function(e,t,s,n){var a,_=arguments.length,l=_<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)l=Reflect.decorate(e,t,s,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(l=(_<3?a(l):_>3?a(t,s,l):a(t,s))||l);return _>3&&l&&Object.defineProperty(t,s,l),l};const T=e(30),B=e(25);function I(e){return t=>{t.prototype.event_name=e}}class w{[T.serialize](e){const{event_name:t,event_values:s}=this;return{type:\"event\",name:t,values:e.encode(s)}}[B.equals](e,t){return this.event_name==e.event_name&&t.eq(this.event_values,e.event_values)}}s.BokehEvent=w,_=w,w.__name__=\"BokehEvent\",_.prototype.publish=!0;class G extends w{constructor(){super(...arguments),this.origin=null}get event_values(){return{model:this.origin}}}s.ModelEvent=G,G.__name__=\"ModelEvent\";class V extends w{}s.DocumentEvent=V,V.__name__=\"DocumentEvent\";let W=((l=class extends V{get event_values(){return{}}}).__name__=\"DocumentReady\",l);s.DocumentReady=W,s.DocumentReady=W=U([I(\"document_ready\")],W);class q extends V{}s.ConnectionEvent=q,q.__name__=\"ConnectionEvent\";class z extends q{constructor(){super(...arguments),this.timestamp=new Date}get event_values(){const{timestamp:e}=this;return{timestamp:e}}}s.ConnectionLost=z,o=z,z.__name__=\"ConnectionLost\",o.prototype.event_name=\"connection_lost\",o.prototype.publish=!1;let A=((c=class extends G{}).__name__=\"ButtonClick\",c);s.ButtonClick=A,s.ButtonClick=A=U([I(\"button_click\")],A);let F=((r=class extends G{constructor(e){super(),this.item=e}get event_values(){const{item:e}=this;return Object.assign(Object.assign({},super.event_values),{item:e})}}).__name__=\"MenuItemClick\",r);s.MenuItemClick=F,s.MenuItemClick=F=U([I(\"menu_item_click\")],F);let H=((u=class extends G{constructor(e){super(),this.value=e}get event_values(){const{value:e}=this;return Object.assign(Object.assign({},super.event_values),{value:e})}}).__name__=\"ValueSubmit\",u);s.ValueSubmit=H,s.ValueSubmit=H=U([I(\"value_submit\")],H);class J extends G{}s.UIEvent=J,J.__name__=\"UIEvent\";let K=((i=class extends J{}).__name__=\"LODStart\",i);s.LODStart=K,s.LODStart=K=U([I(\"lodstart\")],K);let N=((v=class extends J{}).__name__=\"LODEnd\",v);s.LODEnd=N,s.LODEnd=N=U([I(\"lodend\")],N);let Q=((d=class extends J{constructor(e,t,s,n){super(),this.x0=e,this.x1=t,this.y0=s,this.y1=n}get event_values(){const{x0:e,x1:t,y0:s,y1:n}=this;return Object.assign(Object.assign({},super.event_values),{x0:e,x1:t,y0:s,y1:n})}}).__name__=\"RangesUpdate\",d);s.RangesUpdate=Q,s.RangesUpdate=Q=U([I(\"rangesupdate\")],Q);let X=((m=class extends J{constructor(e,t){super(),this.geometry=e,this.final=t}get event_values(){const{geometry:e,final:t}=this;return Object.assign(Object.assign({},super.event_values),{geometry:e,final:t})}}).__name__=\"SelectionGeometry\",m);s.SelectionGeometry=X,s.SelectionGeometry=X=U([I(\"selectiongeometry\")],X);let Y=((p=class extends J{}).__name__=\"Reset\",p);s.Reset=Y,s.Reset=Y=U([I(\"reset\")],Y);class Z extends J{constructor(e,t,s,n){super(),this.sx=e,this.sy=t,this.x=s,this.y=n}get event_values(){const{sx:e,sy:t,x:s,y:n}=this;return Object.assign(Object.assign({},super.event_values),{sx:e,sy:t,x:s,y:n})}}s.PointEvent=Z,Z.__name__=\"PointEvent\";let $=((h=class extends Z{constructor(e,t,s,n,a,_){super(e,t,s,n),this.delta_x=a,this.delta_y=_}get event_values(){const{delta_x:e,delta_y:t}=this;return Object.assign(Object.assign({},super.event_values),{delta_x:e,delta_y:t})}}).__name__=\"Pan\",h);s.Pan=$,s.Pan=$=U([I(\"pan\")],$);let ee=((x=class extends Z{constructor(e,t,s,n,a){super(e,t,s,n),this.scale=a}get event_values(){const{scale:e}=this;return Object.assign(Object.assign({},super.event_values),{scale:e})}}).__name__=\"Pinch\",x);s.Pinch=ee,s.Pinch=ee=U([I(\"pinch\")],ee);let te=((g=class extends Z{constructor(e,t,s,n,a){super(e,t,s,n),this.rotation=a}get event_values(){const{rotation:e}=this;return Object.assign(Object.assign({},super.event_values),{rotation:e})}}).__name__=\"Rotate\",g);s.Rotate=te,s.Rotate=te=U([I(\"rotate\")],te);let se=((y=class extends Z{constructor(e,t,s,n,a){super(e,t,s,n),this.delta=a}get event_values(){const{delta:e}=this;return Object.assign(Object.assign({},super.event_values),{delta:e})}}).__name__=\"MouseWheel\",y);s.MouseWheel=se,s.MouseWheel=se=U([I(\"wheel\")],se);let ne=((b=class extends Z{}).__name__=\"MouseMove\",b);s.MouseMove=ne,s.MouseMove=ne=U([I(\"mousemove\")],ne);let ae=((P=class extends Z{}).__name__=\"MouseEnter\",P);s.MouseEnter=ae,s.MouseEnter=ae=U([I(\"mouseenter\")],ae);let _e=((E=class extends Z{}).__name__=\"MouseLeave\",E);s.MouseLeave=_e,s.MouseLeave=_e=U([I(\"mouseleave\")],_e);let le=((O=class extends Z{}).__name__=\"Tap\",O);s.Tap=le,s.Tap=le=U([I(\"tap\")],le);let oe=((j=class extends Z{}).__name__=\"DoubleTap\",j);s.DoubleTap=oe,s.DoubleTap=oe=U([I(\"doubletap\")],oe);let ce=((R=class extends Z{}).__name__=\"Press\",R);s.Press=ce,s.Press=ce=U([I(\"press\")],ce);let re=((M=class extends Z{}).__name__=\"PressUp\",M);s.PressUp=re,s.PressUp=re=U([I(\"pressup\")],re);let ue=((S=class extends Z{}).__name__=\"PanStart\",S);s.PanStart=ue,s.PanStart=ue=U([I(\"panstart\")],ue);let ie=((D=class extends Z{}).__name__=\"PanEnd\",D);s.PanEnd=ie,s.PanEnd=ie=U([I(\"panend\")],ie);let ve=((f=class extends Z{}).__name__=\"PinchStart\",f);s.PinchStart=ve,s.PinchStart=ve=U([I(\"pinchstart\")],ve);let de=((L=class extends Z{}).__name__=\"PinchEnd\",L);s.PinchEnd=de,s.PinchEnd=de=U([I(\"pinchend\")],de);let me=((k=class extends Z{}).__name__=\"RotateStart\",k);s.RotateStart=me,s.RotateStart=me=U([I(\"rotatestart\")],me);let pe=((C=class extends Z{}).__name__=\"RotateEnd\",C);s.RotateEnd=pe,s.RotateEnd=pe=U([I(\"rotateend\")],pe)},\n function _(n,e,t,o,i){o();const d=n(5),a=n(54),c=n(55),l=n(59);t.index={},t.add_document_standalone=async function(n,e,o=[],i=!1){const s=new a.ViewManager;async function f(i){null!=i.default_view?await async function(i){var d;const a=await(0,l.build_view)(i,{parent:null,owner:s});if(a instanceof c.DOMView){const t=n.roots().indexOf(i),c=null!==(d=o[t])&&void 0!==d?d:e;a.render_to(c)}s.add(a),t.index[i.id]=a}(i):n.notify_idle(i)}for(const e of n.roots())await f(e);return i&&(window.document.title=n.title()),n.on_change((n=>{n instanceof d.RootAddedEvent?f(n.model):n instanceof d.RootRemovedEvent?function(n){const e=s.get(n);null!=e&&(e.remove(),s.delete(e),delete t.index[n.id])}(n.model):i&&n instanceof d.TitleChangedEvent&&(window.document.title=n.title)})),s}},\n function _(t,e,i,s,n){s();const o=t(15),r=t(8);class h{get ready(){return this._ready}*children(){}connect(t,e){let i=this._slots.get(e);return null==i&&(i=(t,i)=>{const s=Promise.resolve(e.call(this,t,i));this._ready=this._ready.then((()=>s)),this.root!=this&&(this.root._ready=this.root._ready.then((()=>this._ready)))},this._slots.set(e,i)),t.connect(i,this)}disconnect(t,e){return t.disconnect(e,this)}constructor(t){this.removed=new o.Signal0(this,\"removed\"),this._ready=Promise.resolve(void 0),this._slots=new WeakMap,this._removed=!1,this._idle_notified=!1;const{model:e,parent:i,owner:s}=t;this.model=e,this.parent=i,null==i?(this.root=this,this.owner=null!=s?s:new d([this])):(this.root=i.root,this.owner=this.root.owner)}initialize(){this._has_finished=!1}async lazy_initialize(){}remove(){this.disconnect_signals(),this.removed.emit(),this._removed=!0}toString(){return`${this.model.type}View(${this.model.id})`}serializable_state(){return{type:this.model.type}}get is_root(){return null==this.parent}has_finished(){return this._has_finished}get is_idle(){return this.has_finished()}connect_signals(){}disconnect_signals(){o.Signal.disconnect_receiver(this)}on_change(t,e){for(const i of(0,r.isArray)(t)?t:[t])this.connect(i.change,e)}cursor(t,e){return null}notify_finished(){this.is_root?!this._idle_notified&&this.has_finished()&&null!=this.model.document&&(this._idle_notified=!0,this.model.document.notify_idle(this.model)):this.root.notify_finished()}}i.View=h,h.__name__=\"View\";class d{constructor(t=[]){this.roots=new Set(t)}get(t){for(const e of this.roots)if(e.model==t)return e;return null}add(t){this.roots.add(t)}delete(t){this.roots.delete(t)}*[Symbol.iterator](){yield*this.roots}*query(t){function*e(i){if(t(i))yield i;else for(const t of i.children())yield*e(t)}for(const t of this.roots)yield*e(t)}*find(t){yield*this.query((e=>e.model==t))}get_one(t){const e=this.find_one(t);if(null!=e)return e;throw new Error(`cannot find a view for ${t}`)}find_one(t){for(const e of this.find(t))return e;return null}find_all(t){return[...this.find(t)]}}i.ViewManager=d,d.__name__=\"ViewManager\"},\n function _(s,e,t,i,l){i();const _=s(1),a=s(54),h=s(56),c=s(8),n=_.__importDefault(s(58));class p extends a.View{get children_el(){var s;return null!==(s=this.shadow_el)&&void 0!==s?s:this.el}initialize(){super.initialize(),this.el=this._createElement()}remove(){(0,h.remove)(this.el),super.remove()}stylesheets(){return[]}css_classes(){return[]}render_to(s){s.appendChild(this.el),this.render()}finish(){this._has_finished=!0,this.notify_finished()}_createElement(){return(0,h.createElement)(this.constructor.tag_name,{class:this.css_classes()})}}t.DOMView=p,p.__name__=\"DOMView\",p.tag_name=\"div\";class r extends p{initialize(){super.initialize(),this.class_list=new h.ClassList(this.el.classList)}}t.DOMElementView=r,r.__name__=\"DOMElementView\";class d extends r{constructor(){super(...arguments),this._applied_stylesheets=[],this._applied_css_classes=[]}initialize(){super.initialize(),this.shadow_el=this.el.attachShadow({mode:\"open\"})}stylesheets(){return[...super.stylesheets(),n.default]}empty(){(0,h.empty)(this.shadow_el),this.class_list.clear(),this._applied_css_classes=[],this._applied_stylesheets=[]}render(){this.empty(),this._update_stylesheets(),this._update_css_classes()}*_stylesheets(){for(const s of this.stylesheets())yield(0,c.isString)(s)?new h.InlineStyleSheet(s):s}*_css_classes(){yield`bk-${this.model.type.replace(/\\./g,\"-\")}`,yield*this.css_classes()}_apply_stylesheets(s){this._applied_stylesheets.push(...s),s.forEach((s=>s.install(this.shadow_el)))}_apply_css_classes(s){this._applied_css_classes.push(...s),this.class_list.add(...s)}_update_stylesheets(){this._applied_stylesheets.forEach((s=>s.uninstall())),this._applied_stylesheets=[],this._apply_stylesheets([...this._stylesheets()])}_update_css_classes(){this.class_list.remove(this._applied_css_classes),this._applied_css_classes=[],this._apply_css_classes([...this._css_classes()])}}t.DOMComponentView=d,d.__name__=\"DOMComponentView\"},\n function _(t,e,n,o,i){o(),n.supports_adopted_stylesheets=n.px=n.dom_ready=void 0;const s=t(8),l=t(9),r=t(57),c=t=>(e={},...n)=>{const o=document.createElement(t);(0,s.isPlainObject)(e)||(n=[e,...n],e={});for(let[t,n]of(0,l.entries)(e))if(null!=n&&(!(0,s.isBoolean)(n)||n))if(\"class\"===t&&((0,s.isString)(n)&&(n=n.split(/\\s+/)),(0,s.isArray)(n)))for(const t of n)null!=t&&o.classList.add(t);else if(\"style\"===t&&(0,s.isPlainObject)(n))for(const[t,e]of(0,l.entries)(n))o.style[t]=e;else if(\"data\"===t&&(0,s.isPlainObject)(n))for(const[t,e]of(0,l.entries)(n))o.dataset[t]=e;else o.setAttribute(t,n);function i(t){if((0,s.isString)(t))o.appendChild(document.createTextNode(t));else if(t instanceof Node)o.appendChild(t);else if(t instanceof NodeList||t instanceof HTMLCollection)for(const e of t)o.appendChild(e);else if(null!=t&&!1!==t)throw new Error(`expected a DOM element, string, false or null, got ${JSON.stringify(t)}`)}for(const t of n)if((0,s.isArray)(t))for(const e of t)i(e);else i(t);return o};function a(t){return document.createTextNode(t)}function d(t){const e=t.parentNode;null!=e&&e.removeChild(t)}function h(t){const e=parseFloat(t);return isFinite(e)?e:0}function u(t){const e=getComputedStyle(t);return{border:{top:h(e.borderTopWidth),bottom:h(e.borderBottomWidth),left:h(e.borderLeftWidth),right:h(e.borderRightWidth)},margin:{top:h(e.marginTop),bottom:h(e.marginBottom),left:h(e.marginLeft),right:h(e.marginRight)},padding:{top:h(e.paddingTop),bottom:h(e.paddingBottom),left:h(e.paddingLeft),right:h(e.paddingRight)}}}function f(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.createElement=function(t,e,...n){return c(t)(e,...n)},n.div=c(\"div\"),n.span=c(\"span\"),n.canvas=c(\"canvas\"),n.link=c(\"link\"),n.style=c(\"style\"),n.a=c(\"a\"),n.p=c(\"p\"),n.i=c(\"i\"),n.pre=c(\"pre\"),n.button=c(\"button\"),n.label=c(\"label\"),n.legend=c(\"legend\"),n.fieldset=c(\"fieldset\"),n.input=c(\"input\"),n.select=c(\"select\"),n.option=c(\"option\"),n.optgroup=c(\"optgroup\"),n.textarea=c(\"textarea\"),n.createSVGElement=function(t,e=null,...n){const o=document.createElementNS(\"http://www.w3.org/2000/svg\",t);for(const[t,n]of(0,l.entries)(null!=e?e:{}))null!=n&&!1!==n&&o.setAttribute(t,n);function i(t){if((0,s.isString)(t))o.appendChild(document.createTextNode(t));else if(t instanceof Node)o.appendChild(t);else if(t instanceof NodeList||t instanceof HTMLCollection)for(const e of t)o.appendChild(e);else if(null!=t&&!1!==t)throw new Error(`expected a DOM element, string, false or null, got ${JSON.stringify(t)}`)}for(const t of n)if((0,s.isArray)(t))for(const e of t)i(e);else i(t);return o},n.text=a,n.nbsp=function(){return a(\"\\xa0\")},n.append=function(t,...e){for(const n of e)t.appendChild(n)},n.remove=d,n.replaceWith=function(t,e){const n=t.parentNode;null!=n&&n.replaceChild(e,t)},n.prepend=function(t,...e){const n=t.firstChild;for(const o of e)t.insertBefore(o,n)},n.empty=function(t,e=!1){let n;for(;null!=(n=t.firstChild);)t.removeChild(n);if(e&&t instanceof Element)for(const e of t.attributes)t.removeAttributeNode(e)},n.contains=function(t,e){let n=e;for(;null!=n.parentNode;){const e=n.parentNode;if(e==t)return!0;n=e instanceof ShadowRoot?e.host:e}return!1},n.display=function(t,e=!0){t.style.display=e?\"\":\"none\"},n.undisplay=function(t){t.style.display=\"none\"},n.show=function(t){t.style.visibility=\"\"},n.hide=function(t){t.style.visibility=\"hidden\"},n.offset_bbox=function(t){const{top:e,left:n,width:o,height:i}=t.getBoundingClientRect();return new r.BBox({left:n+scrollX-document.documentElement.clientLeft,top:e+scrollY-document.documentElement.clientTop,width:o,height:i})},n.parent=function(t,e){let n=t;for(;null!=(n=n.parentElement);)if(n.matches(e))return n;return null},n.extents=u,n.size=f,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:o,bottom:i}}=u(t),{width:s,height:l}=f(t);return{width:Math.ceil(s+e+n),height:Math.ceil(l+o+i)}},n.content_size=function(t){var e;const{left:n,top:o}=t.getBoundingClientRect(),{padding:i}=u(t);let s=0,l=0;for(const r of(null!==(e=t.shadowRoot)&&void 0!==e?e:t).children){const t=r.getBoundingClientRect();s=Math.max(s,Math.ceil(t.left-n-i.left+t.width)),l=Math.max(l,Math.ceil(t.top-o-i.top+t.height))}return{width:s,height:l}},n.bounding_box=function(t){const{x:e,y:n,width:o,height:i}=t.getBoundingClientRect();return new r.BBox({x:e,y:n,width:o,height:i})},n.position=function(t,e,n){const{style:o}=t;if(o.left=`${e.x}px`,o.top=`${e.y}px`,o.width=`${e.width}px`,o.height=`${e.height}px`,null==n)o.margin=\"\";else{const{top:t,right:e,bottom:i,left:s}=n;o.margin=`${t}px ${e}px ${i}px ${s}px`}};class p{constructor(t){this.class_list=t}get values(){const t=[];for(let e=0;e<this.class_list.length;e++){const n=this.class_list.item(e);null!=n&&t.push(n)}return t}has(t){return this.class_list.contains(t)}add(...t){for(const e of t)this.class_list.add(e);return this}remove(...t){for(const e of t)(0,s.isArray)(e)?e.forEach((t=>this.class_list.remove(t))):this.class_list.remove(e);return this}clear(){for(const t of this.values)this.class_list.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var g;n.ClassList=p,p.__name__=\"ClassList\",n.classes=function(t){return new p(t.classList)},n.toggle_attribute=function(t,e,n){null==n&&(n=!t.hasAttribute(e)),n?t.setAttribute(e,\"true\"):t.removeAttribute(e)},(g=n.MouseButton||(n.MouseButton={}))[g.None=0]=\"None\",g[g.Primary=1]=\"Primary\",g[g.Secondary=2]=\"Secondary\",g[g.Auxiliary=4]=\"Auxiliary\",g[g.Left=1]=\"Left\",g[g.Right=2]=\"Right\",g[g.Middle=4]=\"Middle\";class m{install(t){t.append(this.el)}uninstall(){this.el.remove()}}n.StyleSheet=m,m.__name__=\"StyleSheet\";class _ extends m{constructor(t){super(),this.el=(0,n.style)({type:\"text/css\"},t)}clear(){this.replace(\"\")}*_to_rules(t){for(const[e,n]of(0,l.entries)(t))if(null!=n){const t=e.replace(/_/g,\"-\");yield`${t}: ${n};`}}_to_css(t,e){return null==e?t:`${t}{${[...this._to_rules(e)].join(\"\")}}`}replace(t,e){this.el.textContent=this._to_css(t,e)}prepend(t,e){var n;const o=null!==(n=this.el.textContent)&&void 0!==n?n:\"\";this.el.textContent=`${this._to_css(t,e)}\\n${o}`}append(t,e){var n;const o=null!==(n=this.el.textContent)&&void 0!==n?n:\"\";this.el.textContent=`${o}\\n${this._to_css(t,e)}`}remove(){d(this.el)}}n.InlineStyleSheet=_,_.__name__=\"InlineStyleSheet\";class y extends _{install(){this.el.isConnected||document.head.appendChild(this.el)}}n.GlobalInlineStyleSheet=y,y.__name__=\"GlobalInlineStyleSheet\";class x extends m{constructor(t){super(),this.el=(0,n.link)({rel:\"stylesheet\",href:t})}replace(t){this.el.href=t}remove(){d(this.el)}}n.ImportedStyleSheet=x,x.__name__=\"ImportedStyleSheet\";class b extends x{install(){this.el.isConnected||document.head.appendChild(this.el)}}n.GlobalImportedStyleSheet=b,b.__name__=\"GlobalImportedStyleSheet\",n.dom_ready=async function(){if(\"loading\"==document.readyState)return new Promise(((t,e)=>{document.addEventListener(\"DOMContentLoaded\",(()=>t()),{once:!0})}))},n.px=function(t){return`${t}px`},n.supports_adopted_stylesheets=\"adoptedStyleSheets\"in ShadowRoot.prototype},\n function _(t,e,i,r,n){r();const h=t(23),s=t(25),o=t(13),{min:x,max:y,round:u}=Math;function g(t,e){return isNaN(t)?e:isNaN(e)?t:x(t,e)}function a(t,e){return isNaN(t)?e:isNaN(e)?t:y(t,e)}i.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},i.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},i.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},i.union=function(t,e){return{x0:g(t.x0,e.x0),x1:a(t.x1,e.x1),y0:g(t.y0,e.y0),y1:a(t.y1,e.y1)}};class c{constructor(t,e=!1){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if(\"x0\"in t){const{x0:e,y0:i,x1:r,y1:n}=t;if(isFinite(e+i+r+n)){if(!(e<=r&&i<=n))throw new Error(`invalid bbox {x0: ${e}, y0: ${i}, x1: ${r}, y1: ${n}}`);this.x0=e,this.y0=i,this.x1=r,this.y1=n}else this.x0=NaN,this.y0=NaN,this.x1=NaN,this.y1=NaN}else if(\"x\"in t){const{x:e,y:i,width:r,height:n}=t;if(!(r>=0&&n>=0))throw new Error(`invalid bbox {x: ${e}, y: ${i}, width: ${r}, height: ${n}}`);this.x0=e,this.y0=i,this.x1=e+r,this.y1=i+n}else{let i,r,n,h;if(\"width\"in t)if(\"left\"in t)i=t.left,r=i+t.width;else if(\"right\"in t)r=t.right,i=r-t.width;else{const e=t.width/2;i=t.hcenter-e,r=t.hcenter+e}else i=t.left,r=t.right;if(\"height\"in t)if(\"top\"in t)n=t.top,h=n+t.height;else if(\"bottom\"in t)h=t.bottom,n=h-t.height;else{const e=t.height/2;n=t.vcenter-e,h=t.vcenter+e}else n=t.top,h=t.bottom;if(i>r||n>h){if(!e)throw new Error(`invalid bbox {left: ${i}, top: ${n}, right: ${r}, bottom: ${h}}`);i>r&&(i=r),n>h&&(n=h)}this.x0=i,this.y0=n,this.x1=r,this.y1=h}}static from_lrtb({left:t,right:e,top:i,bottom:r}){return new c({x0:Math.min(t,e),y0:Math.min(i,r),x1:Math.max(t,e),y1:Math.max(i,r)})}clone(){return new c(this)}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}[s.equals](t,e){return e.eq(this.x0,t.x0)&&e.eq(this.y0,t.y0)&&e.eq(this.x1,t.x1)&&e.eq(this.y1,t.y1)}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get is_valid(){const{x0:t,x1:e,y0:i,y1:r}=this;return isFinite(t+e+i+r)}get is_empty(){const{x0:t,x1:e,y0:i,y1:r}=this;return 0==t&&0==e&&0==i&&0==r}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return{x:this.x0,y:this.y0}}get p1(){return{x:this.x1,y:this.y1}}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get size(){return{width:this.width,height:this.height}}get rect(){const{x0:t,y0:e,x1:i,y1:r}=this;return{p0:{x:t,y:e},p1:{x:i,y:e},p2:{x:i,y:r},p3:{x:t,y:r}}}get box(){const{x:t,y:e,width:i,height:r}=this;return{x:t,y:e,width:i,height:r}}get lrtb(){const{left:t,right:e,top:i,bottom:r}=this;return{left:t,right:e,top:i,bottom:r}}get x_range(){return{start:this.x0,end:this.x1}}get y_range(){return{start:this.y0,end:this.y1}}get h_range(){return{start:this.x0,end:this.x1}}get v_range(){return{start:this.y0,end:this.y1}}get ranges(){return[this.h_range,this.v_range]}get aspect(){return this.width/this.height}get hcenter(){return(this.left+this.right)/2}get vcenter(){return(this.top+this.bottom)/2}get area(){return this.width*this.height}round(){return new c({x0:u(this.x0),x1:u(this.x1),y0:u(this.y0),y1:u(this.y1)})}relative(){const{width:t,height:e}=this;return new c({x:0,y:0,width:t,height:e})}translate(t,e){const{x:i,y:r,width:n,height:h}=this;return new c({x:t+i,y:e+r,width:n,height:h})}relativize(t,e){return[t-this.x,e-this.y]}contains(t,e){return this.x0<=t&&t<=this.x1&&this.y0<=e&&e<=this.y1}clip(t,e){return t<this.x0?t=this.x0:t>this.x1&&(t=this.x1),e<this.y0?e=this.y0:e>this.y1&&(e=this.y1),[t,e]}grow_by(t){return new c({left:this.left-t,right:this.right+t,top:this.top-t,bottom:this.bottom+t})}shrink_by(t){return new c({left:this.left+t,right:this.right-t,top:this.top+t,bottom:this.bottom-t},!0)}union(t){return new c({x0:x(this.x0,t.x0),y0:x(this.y0,t.y0),x1:y(this.x1,t.x1),y1:y(this.y1,t.y1)})}intersection(t){return this.intersects(t)?new c({x0:y(this.x0,t.x0),y0:y(this.y0,t.y0),x1:x(this.x1,t.x1),y1:x(this.y1,t.y1)}):null}intersects(t){return!(t.x1<this.x0||t.x0>this.x1||t.y1<this.y0||t.y0>this.y1)}get x_screen(){var t;const e=this;return null!==(t=this._x_screen)&&void 0!==t?t:this._x_screen={compute:t=>e.left+t,invert:t=>t-e.left,v_compute(t){const{left:i}=e;return new h.ScreenArray((0,o.map)(t,(t=>i+t)))},v_invert(t){const{left:i}=e;return(0,o.map)(t,(t=>t-i))},get source_range(){return e.x_range},get target_range(){return e.x_range}}}get y_screen(){var t;const e=this;return null!==(t=this._y_screen)&&void 0!==t?t:this._y_screen={compute:t=>e.top+t,invert:t=>t-e.top,v_compute(t){const{top:i}=e;return new h.ScreenArray((0,o.map)(t,(t=>i+t)))},v_invert(t){const{top:i}=e;return(0,o.map)(t,(t=>t-i))},get source_range(){return e.y_range},get target_range(){return e.y_range}}}get x_view(){var t;const e=this;return null!==(t=this._x_view)&&void 0!==t?t:this._x_view={compute:t=>e.left+t,invert:t=>t-e.left,v_compute(t){const{left:i}=e;return new h.ScreenArray((0,o.map)(t,(t=>i+t)))},v_invert(t){const{left:i}=e;return(0,o.map)(t,(t=>t-i))},get source_range(){return e.x_range},get target_range(){return e.x_range}}}get y_view(){var t;const e=this;return null!==(t=this._y_view)&&void 0!==t?t:this._y_view={compute:t=>e.bottom-t,invert:t=>e.bottom-t,v_compute(t){const{bottom:i}=e;return new h.ScreenArray((0,o.map)(t,(t=>i-t)))},v_invert(t){const{bottom:i}=e;return(0,o.map)(t,(t=>i-t))},get source_range(){return e.y_range},get target_range(){return{start:e.bottom,end:e.top}}}}get xview(){return this.x_view}get yview(){return this.y_view}}i.BBox=c,c.__name__=\"BBox\"},\n function _(o,e,i,n,t){n(),i.default=\":host{--base-font:var(--bokeh-base-font, Helvetica, Arial, sans-serif);--mono-font:var(--bokeh-mono-font, monospace);--font-size:12px;--line-height:calc(20 / 14);--line-height-computed:calc(var(--font-size) * var(--line-height));--border-radius:4px;--padding-vertical:6px;--padding-horizontal:12px;}:host{box-sizing:border-box;font-family:var(--base-font);font-size:13px;line-height:var(--line-height);}*,*:before,*:after{box-sizing:inherit;font-family:inherit;}pre,code{font-family:var(--mono-font);margin:0;}\"},\n function _(e,n,t,o,s){o();const i=e(10),c=e(12);async function a(e,n,t){(0,c.assert)(null!=e,\"model doesn't implement a view\");const o=new e(Object.assign(Object.assign({},t),{model:n}));return o.initialize(),await o.lazy_initialize(),o}t.build_view=async function(e,n={parent:null},t=(e=>e.default_view)){const o=await a(t(e),e,n);return o.connect_signals(),o},t.build_views=async function(e,n,t={parent:null},o=(e=>e.default_view)){const s=(0,i.difference)([...e.keys()],n),c=[];for(const n of s){const t=e.get(n);null!=t&&(e.delete(n),c.push(t),t.remove())}const l=[],r=n.filter((n=>!e.has(n)));for(const n of r){const s=await a(o(n),n,t);e.set(n,s),l.push(s)}for(const e of l)e.connect_signals();return{created:l,removed:c}},t.remove_views=function(e){for(const[n,t]of e)t.remove(),e.delete(n)}},\n function _(n,t,o,e,s){e();const a=n(61),c=n(18),r=n(53);o._get_ws_url=function(n,t){let o,e=\"ws:\";return\"https:\"==window.location.protocol&&(e=\"wss:\"),null!=t?(o=document.createElement(\"a\"),o.href=t):o=window.location,null!=n?\"/\"==n&&(n=\"\"):n=o.pathname.replace(/\\/+$/,\"\"),`${e}//${o.host}${n}/ws`};const i=new Map;o.add_document_from_session=async function(n,t,o,e=[],s=!1){const l=window.location.search.substring(1);let d;try{d=await function(n,t,o){const e=(0,a.parse_token)(t).session_id;i.has(n)||i.set(n,new Map);const s=i.get(n);return s.has(e)||s.set(e,(0,a.pull_session)(n,t,o)),s.get(e)}(n,t,l)}catch(n){const o=(0,a.parse_token)(t).session_id;throw c.logger.error(`Failed to load Bokeh session ${o}: ${n}`),n}return(0,r.add_document_standalone)(d.document,o,e,s)}},\n function _(e,s,n,t,o){t();const r=e(18),i=e(5),l=e(62),c=e(63),_=e(64);n.DEFAULT_SERVER_WEBSOCKET_URL=\"ws://localhost:5006/ws\",n.DEFAULT_TOKEN=\"eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ\";let h=0;function a(e){let s=e.split(\".\")[0];const n=s.length%4;return 0!=n&&(s+=\"=\".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,\"/\").replace(/-/g,\"+\")))}n.parse_token=a;class d{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,t=null){this._number=h++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new c.Receiver,this.url=e,this.token=s,this.args_string=t,this.id=a(s).session_id.split(\".\")[0],r.logger.debug(`Creating websocket ${this._number} to '${this.url}' session '${this.id}'`)}async connect(){if(this.closed_permanently)throw new Error(\"Cannot connect() a closed ClientConnection\");if(null!=this.socket)throw new Error(\"Already connected\");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,[\"bokeh\",this.token]),new Promise(((e,s)=>{this.socket.binaryType=\"arraybuffer\",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)}))}catch(e){throw r.logger.error(`websocket creation failed to url: ${this.url}`),r.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(r.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())}_schedule_reconnect(e){setTimeout((()=>{var e;this.closed_permanently||(r.logger.info(`Websocket connection ${this._number} disconnected, will not attempt to reconnect`),null===(e=this.session)||void 0===e||e.notify_connection_lost())}),e)}send(e){null!=this.socket?e.send(this.socket):r.logger.error(\"not connected so cannot send\",e)}async send_with_reply(e){const s=await new Promise(((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)}));if(\"ERROR\"==s.msgtype())throw new Error(`Error reply ${s.content.text}`);return s}async _pull_doc_json(){const e=l.Message.create(\"PULL-DOC-REQ\",{},{}),s=await this.send_with_reply(e);if(!(\"doc\"in s.content))throw new Error(\"No 'doc' field in PULL-DOC-REPLY\");return s.content.doc}async _repull_session_doc(e,s){r.logger.debug(null!=this.session?\"Repulling session\":\"Pulling session for first time\");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)r.logger.debug(\"Got new document after connection was already closed\"),s(new Error(\"The connection has been closed\"));else{const s=[],t=i.Document.from_json(n,s);this.session=new _.ClientSession(this,t);for(const e of s)t._trigger_on_change(e);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],r.logger.debug(\"Created a new session from new pulled doc\"),e(this.session)}else this.session.document.replace_with_json(n),r.logger.debug(\"Updated existing session with new pulled doc\")}catch(e){console.trace(e),r.logger.error(`Failed to repull session ${e}`),s(e instanceof Error?e:`${e}`)}}_on_open(e,s){r.logger.info(`Websocket connection ${this._number} is now open`),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&r.logger.error(\"Got a message with no current handler set\");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(`${e}`)}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){r.logger.info(`Lost websocket ${this._number} connection, ${e.code} (${e.reason})`),this.socket=null,this._pending_replies.forEach((e=>e.reject(\"Disconnected\"))),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(`Lost websocket connection, ${e.code} (${e.reason})`))}_on_error(e){r.logger.debug(`Websocket error on socket ${this._number}`);const s=\"Could not open websocket\";r.logger.error(`Failed to connect to Bokeh server: ${s}`),e(new Error(s))}_close_bad_protocol(e){r.logger.error(`Closing connection: ${e}`),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){\"ACK\"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol(\"First message was not an ACK\")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);null!=n?(this._pending_replies.delete(s),n.resolve(e)):null!=this.session?this.session.handle(e):\"PATCH-DOC\"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=d,d.__name__=\"ClientConnection\",n.pull_session=function(e,s,n){return new d(e,s,n).connect()}},\n function _(e,s,t,r,n){r();const i=e(30),a=e(38),h=e(12);class f{get buffers(){return this._buffers}constructor(e,s,t){this._buffers=new Map,this.header=e,this.metadata=s,this.content=t}static assemble(e,s,t){const r=JSON.parse(e),n=JSON.parse(s),i=JSON.parse(t);return new f(r,n,i)}assemble_buffer(e,s){var t;const r=null!==(t=this.header.num_buffers)&&void 0!==t?t:0;if(r<=this._buffers.size)throw new Error(`too many buffers received, expecting ${r}`);const{id:n}=JSON.parse(e);this._buffers.set(n,s)}static create(e,s,t){const r=f.create_header(e);return new f(r,s,t)}static create_header(e){return{msgid:(0,a.unique_id)(),msgtype:e}}complete(){const{num_buffers:e}=this.header;return null==e||this._buffers.size==e}send(e){(0,h.assert)(null==this.header.num_buffers);const s=[],t=JSON.stringify(this.content,((e,t)=>{if(t instanceof i.Buffer){const e={id:`${s.length}`};return s.push([e,t.buffer]),e}return t})),r=s.length;r>0&&(this.header.num_buffers=r);const n=JSON.stringify(this.header),a=JSON.stringify(this.metadata);e.send(n),e.send(a),e.send(t);for(const[t,r]of s)e.send(JSON.stringify(t)),e.send(r)}msgid(){return this.header.msgid}msgtype(){return this.header.msgtype}reqid(){return this.header.reqid}problem(){return\"msgid\"in this.header?\"msgtype\"in this.header?null:\"No msgtype in header\":\"No msgid in header\"}}t.Message=f,f.__name__=\"Message\"},\n function _(t,e,s,_,r){_();const i=t(62),h=t(8),a=t(12);class n{constructor(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}consume(t){this._current_consumer(t)}_HEADER(t){this._assume_text(t),this.message=null,this._partial=null,this._fragments=[t],this._buf_header=null,this._current_consumer=this._METADATA}_METADATA(t){this._assume_text(t),this._fragments.push(t),this._current_consumer=this._CONTENT}_CONTENT(t){this._assume_text(t),this._fragments.push(t);const[e,s,_]=this._fragments;(0,a.assert)(null!=e&&null!=s&&null!=_),this._partial=i.Message.assemble(e,s,_),this._check_complete()}_BUFFER_HEADER(t){this._assume_text(t),this._buf_header=t,this._current_consumer=this._BUFFER_PAYLOAD}_BUFFER_PAYLOAD(t){this._assume_binary(t),(0,a.assert)(null!=this._partial&&null!=this._buf_header),this._partial.assemble_buffer(this._buf_header,t),this._check_complete()}_assume_text(t){if(!(0,h.isString)(t))throw new Error(\"Expected text fragment but received binary fragment\")}_assume_binary(t){if(!(t instanceof ArrayBuffer))throw new Error(\"Expected binary fragment but received text fragment\")}_check_complete(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER}}s.Receiver=n,n.__name__=\"Receiver\"},\n function _(e,n,t,o,s){o();const c=e(5),_=e(52),i=e(62),r=e(18);class a{constructor(e,n){this._document_listener=e=>{this._document_changed(e)},this._connection=e,this.document=n,this.document.on_change(this._document_listener,!0)}get id(){return this._connection.id}handle(e){const n=e.msgtype();switch(n){case\"PATCH-DOC\":this._handle_patch(e);break;case\"OK\":this._handle_ok(e);break;case\"ERROR\":this._handle_error(e);break;default:r.logger.debug(`Doing nothing with message '${n}'`)}}notify_connection_lost(){this.document.event_manager.send_event(new _.ConnectionLost)}close(){this._connection.close()}_connection_closed(){this.document.remove_on_change(this._document_listener)}async request_server_info(){const e=i.Message.create(\"SERVER-INFO-REQ\",{},{});return(await this._connection.send_with_reply(e)).content}async force_roundtrip(){await this.request_server_info()}_document_changed(e){const n=e instanceof c.DocumentEventBatch?e.events:[e],t=this.document.create_json_patch(n),o=i.Message.create(\"PATCH-DOC\",{},t);this._connection.send(o)}_handle_patch(e){this.document.apply_json_patch(e.content,e.buffers)}_handle_ok(e){r.logger.trace(`Unhandled OK reply to ${e.reqid()}`)}_handle_error(e){r.logger.error(`Unhandled ERROR reply to ${e.reqid()}: ${e.content.text}`)}}t.ClientSession=a,a.__name__=\"ClientSession\"},\n function _(n,e,o,t,r){t();const i=n(56),l=n(8);function s(n){let e=(0,l.isString)(n)?document.getElementById(n):n;if(null==e)throw new Error(`Error rendering Bokeh model: could not find ${(0,l.isString)(n)?`#${n}`:n} HTML tag`);if(!(0,i.contains)(document.body,e))throw new Error(`Error rendering Bokeh model: element ${(0,l.isString)(n)?`#${n}`:n} must be under <body>`);if(e instanceof HTMLElement&&\"SCRIPT\"==e.tagName){const n=(0,i.div)();(0,i.replaceWith)(e,n),e=n}return e}o._resolve_element=function(n){const{elementid:e}=n;return null!=e?s(e):document.body},o._resolve_root_elements=function(n){const e=[];if(null!=n.root_ids&&null!=n.roots)for(const o of n.root_ids)e.push(s(n.roots[o]));return e}},\n function _(e,o,t,n,r){n();const s=e(1),i=e(5),l=e(63),a=e(18),c=e(9),g=e(53),f=e(65);function u(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function m(e,o){if(\"undefined\"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){a.logger.info(`Registering Jupyter comms for target ${e}`);const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,(t=>{a.logger.info(`Registering Jupyter comms for target ${e}`);const n=new l.Receiver;t.on_msg(u.bind(o,n))}))}catch(e){a.logger.warn(`Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else if(o.roots()[0].id in t.kernels){a.logger.info(`Registering JupyterLab comms for target ${e}`);const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,(t=>{a.logger.info(`Registering JupyterLab comms for target ${e}`);const n=new l.Receiver;t.onMsg=u.bind(o,n)}))}catch(e){a.logger.warn(`Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else if(\"undefined\"!=typeof google&&null!=google.colab.kernel){a.logger.info(`Registering Google Colab comms for target ${e}`);const t=google.colab.kernel.comms;try{t.registerTarget(e,(async t=>{var n,r,i,c,g;a.logger.info(`Registering Google Colab comms for target ${e}`);const f=new l.Receiver;try{for(var m,b=!0,d=s.__asyncValues(t.messages);!(n=(m=await d.next()).done);){c=m.value,b=!1;try{const e=c,t={data:e.data},n=[];for(const o of null!==(g=e.buffers)&&void 0!==g?g:[])n.push(new DataView(o));const r={content:t,buffers:n};u.bind(o)(f,r)}finally{b=!0}}}catch(e){r={error:e}}finally{try{b||n||!(i=d.return)||await i.call(d)}finally{if(r)throw r.error}}}))}catch(e){a.logger.warn(`Google Colab comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else console.warn(\"Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.\")}t.kernels={},t.embed_items_notebook=function(e,o){if(1!=(0,c.size)(e))throw new Error(\"embed_items_notebook expects exactly one document in docs_json\");const t=i.Document.from_json((0,c.values)(e)[0]);for(const e of o){null!=e.notebook_comms_target&&m(e.notebook_comms_target,t);const o=(0,f._resolve_element)(e),n=(0,f._resolve_root_elements)(e);(0,g.add_document_standalone)(t,o,n);for(const e of n)e instanceof HTMLElement&&e.removeAttribute(\"id\")}}},\n function _(t,_,o,r,n){r();const a=t(1);a.__exportStar(t(62),o),a.__exportStar(t(63),o)},\n function _(e,t,n,s,o){function l(){const e=document.getElementsByTagName(\"body\")[0],t=document.getElementsByClassName(\"bokeh-test-div\");1==t.length&&(e.removeChild(t[0]),delete t[0]);const n=document.createElement(\"div\");n.classList.add(\"bokeh-test-div\"),n.style.display=\"none\",e.insertBefore(n,e.firstChild)}s(),n.results={},n.init=function(){l()},n.record0=function(e,t){n.results[e]=t},n.record=function(e,t){n.results[e]=t,l()},n.count=function(e){null==n.results[e]&&(n.results[e]=0),n.results[e]+=1,l()}},\n function _(e,t,o,l,n){l(),o.safely=function(e,t=!1){try{return e()}catch(e){if(function(e){const t=document.createElement(\"div\");t.style.backgroundColor=\"#f2dede\",t.style.border=\"1px solid #a94442\",t.style.borderRadius=\"4px\",t.style.display=\"inline-block\",t.style.fontFamily=\"sans-serif\",t.style.marginTop=\"5px\",t.style.minWidth=\"200px\",t.style.padding=\"5px 5px 5px 10px\",t.classList.add(\"bokeh-error-box-into-flames\");const o=document.createElement(\"span\");o.style.backgroundColor=\"#a94442\",o.style.borderRadius=\"0px 4px 0px 0px\",o.style.color=\"white\",o.style.cursor=\"pointer\",o.style.cssFloat=\"right\",o.style.fontSize=\"0.8em\",o.style.margin=\"-6px -6px 0px 0px\",o.style.padding=\"2px 5px 4px 5px\",o.title=\"close\",o.setAttribute(\"aria-label\",\"close\"),o.appendChild(document.createTextNode(\"x\")),o.addEventListener(\"click\",(()=>s.removeChild(t)));const l=document.createElement(\"h3\");l.style.color=\"#a94442\",l.style.margin=\"8px 0px 0px 0px\",l.style.padding=\"0px\",l.appendChild(document.createTextNode(\"Bokeh Error\"));const n=document.createElement(\"pre\");n.style.whiteSpace=\"unset\",n.style.overflowX=\"auto\",n.appendChild(document.createTextNode(e)),t.appendChild(o),t.appendChild(l),t.appendChild(n);const s=document.getElementsByTagName(\"body\")[0];s.insertBefore(t,s.firstChild)}(e instanceof Error&&null!=e.stack?e.stack:`${e}`),t)return;throw e}}},\n function _(t,r,o,_,e){_();const s=t(1),i=t(7),m=s.__importStar(t(71));(0,i.register_models)(m);const n=s.__importStar(t(496));(0,i.register_models)(n)},\n function _(t,_,r,o,a){o();const e=t(1);e.__exportStar(t(72),r),e.__exportStar(t(158),r),e.__exportStar(t(285),r),e.__exportStar(t(290),r),e.__exportStar(t(296),r),e.__exportStar(t(297),r),e.__exportStar(t(306),r),e.__exportStar(t(219),r),e.__exportStar(t(315),r),e.__exportStar(t(350),r),e.__exportStar(t(351),r),e.__exportStar(t(355),r),e.__exportStar(t(357),r),e.__exportStar(t(237),r),e.__exportStar(t(376),r),e.__exportStar(t(382),r),e.__exportStar(t(383),r),e.__exportStar(t(392),r),e.__exportStar(t(404),r),e.__exportStar(t(405),r),e.__exportStar(t(225),r),e.__exportStar(t(407),r),e.__exportStar(t(223),r),e.__exportStar(t(410),r),e.__exportStar(t(411),r),e.__exportStar(t(417),r),e.__exportStar(t(192),r),e.__exportStar(t(422),r),e.__exportStar(t(432),r),e.__exportStar(t(436),r),e.__exportStar(t(451),r)},\n function _(o,e,a,n,r){n();const t=o(1);r(\"Annotation\",o(73).Annotation),r(\"Arrow\",o(97).Arrow),r(\"ArrowHead\",o(139).ArrowHead),r(\"OpenHead\",o(139).OpenHead),r(\"NormalHead\",o(139).NormalHead),r(\"TeeHead\",o(139).TeeHead),r(\"VeeHead\",o(139).VeeHead),r(\"BaseColorBar\",o(141).BaseColorBar),r(\"Band\",o(230).Band),r(\"BoxAnnotation\",o(232).BoxAnnotation),r(\"ColorBar\",o(236).ColorBar),r(\"ContourColorBar\",o(247).ContourColorBar),r(\"Label\",o(248).Label),r(\"LabelSet\",o(249).LabelSet),r(\"Legend\",o(250).Legend),r(\"LegendItem\",o(251).LegendItem),r(\"PolyAnnotation\",o(252).PolyAnnotation),r(\"Slope\",o(253).Slope),r(\"Span\",o(254).Span),r(\"TextAnnotation\",o(143).TextAnnotation),r(\"Title\",o(142).Title),r(\"ToolbarPanel\",o(255).ToolbarPanel),r(\"Whisker\",o(279).Whisker),t.__exportStar(o(280),a)},\n function _(t,e,i,n,s){var o;n();const l=t(74);class r extends l.RendererView{get_size(){if(this.displayed){const{width:t,height:e}=this._get_size();return{width:Math.round(t),height:Math.round(e)}}return{width:0,height:0}}_get_size(){throw new Error(\"not implemented\")}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.visible,(()=>{null!=this.layout&&(this.layout.visible=this.model.visible,this.plot_view.request_layout())}))}get needs_clip(){return null==this.layout}serializable_state(){var t,e,i;const n=super.serializable_state(),s=null!==(e=null===(t=this.bbox)||void 0===t?void 0:t.round())&&void 0!==e?e:null===(i=this.layout)||void 0===i?void 0:i.bbox;return null==s?n:Object.assign(Object.assign({},n),{bbox:s})}}i.AnnotationView=r,r.__name__=\"AnnotationView\";class a extends l.Renderer{constructor(t){super(t)}}i.Annotation=a,o=a,a.__name__=\"Annotation\",o.override({level:\"annotation\"})},\n function _(e,t,i,n,s){var r,o;n();const a=e(1),_=e(54),l=a.__importStar(e(75)),d=e(19),h=e(50),u=e(84);class c extends h.Model{constructor(e){super(e)}}i.RendererGroup=c,r=c,c.__name__=\"RendererGroup\",r.define((({Boolean:e})=>({visible:[e,!0]})));class p extends _.View{get coordinates(){const{_coordinates:e}=this;return null!=e?e:this._coordinates=this._initialize_coordinates()}initialize(){super.initialize(),this.visuals=new l.Visuals(this),this.needs_webgl_blit=!1}connect_signals(){super.connect_signals();const{group:e}=this.model;null!=e&&this.on_change(e.properties.visible,(()=>{this.model.visible=e.visible}));const{x_range_name:t,y_range_name:i}=this.model.properties;this.on_change([t,i],(()=>delete this._coordinates)),this.connect(this.plot_view.frame.change,(()=>delete this._coordinates))}_initialize_coordinates(){const{coordinates:e}=this.model,{frame:t}=this.plot_view;if(null!=e)return e.get_transform(t);{const{x_range_name:e,y_range_name:i}=this.model,n=t.x_scales.get(e),s=t.y_scales.get(i);return new u.CoordinateTransform(n,s)}}get plot_view(){return this.parent}get plot_model(){return this.parent.model}get layer(){const{overlays:e,primary:t}=this.canvas;return\"overlay\"==this.model.level?e:t}get canvas(){return this.plot_view.canvas_view}request_render(){this.request_paint()}request_paint(){this.plot_view.request_paint(this)}request_layout(){this.plot_view.request_layout()}notify_finished(){this.plot_view.notify_finished()}notify_finished_after_paint(){this.plot_view.notify_finished_after_paint()}get needs_clip(){return!1}get has_webgl(){return!1}get displayed(){return this.model.visible}render(){this.displayed&&this._render(),this._has_finished=!0}renderer_view(e){}update_geometry(){}compute_geometry(){}}i.RendererView=p,p.__name__=\"RendererView\";class g extends h.Model{constructor(e){super(e)}}i.Renderer=g,o=g,g.__name__=\"Renderer\",o.define((({Boolean:e,String:t,Ref:i,Nullable:n})=>({group:[n(i(c)),null],level:[d.RenderLevel,\"image\"],visible:[e,!0],x_range_name:[t,\"default\"],y_range_name:[t,\"default\"],coordinates:[n(i(u.CoordinateMapping)),null],propagate_hover:[e,!1]})))},\n function _(e,a,r,t,c){t();const n=e(1),l=e(76);c(\"Line\",l.Line),c(\"LineScalar\",l.LineScalar),c(\"LineVector\",l.LineVector);const s=e(79);c(\"Fill\",s.Fill),c(\"FillScalar\",s.FillScalar),c(\"FillVector\",s.FillVector);const i=e(80);c(\"Text\",i.Text),c(\"TextScalar\",i.TextScalar),c(\"TextVector\",i.TextVector);const o=e(81);c(\"Hatch\",o.Hatch),c(\"HatchScalar\",o.HatchScalar),c(\"HatchVector\",o.HatchVector);const u=e(83);c(\"Image\",u.Image),c(\"ImageScalar\",u.ImageScalar),c(\"ImageVector\",u.ImageVector);const V=n.__importStar(e(78)),S=e(77);c(\"VisualProperties\",S.VisualProperties),c(\"VisualUniforms\",S.VisualUniforms);class m{*[Symbol.iterator](){yield*this._visuals}constructor(e){this._visuals=[];for(const[a,r]of e.model._mixins){const t=(()=>{switch(r){case V.Line:return new l.Line(e,a);case V.LineScalar:return new l.LineScalar(e,a);case V.LineVector:return new l.LineVector(e,a);case V.Fill:return new s.Fill(e,a);case V.FillScalar:return new s.FillScalar(e,a);case V.FillVector:return new s.FillVector(e,a);case V.Text:return new i.Text(e,a);case V.TextScalar:return new i.TextScalar(e,a);case V.TextVector:return new i.TextVector(e,a);case V.Hatch:return new o.Hatch(e,a);case V.HatchScalar:return new o.HatchScalar(e,a);case V.HatchVector:return new o.HatchVector(e,a);case V.Image:return new u.Image(e,a);case V.ImageScalar:return new u.ImageScalar(e,a);case V.ImageVector:return new u.ImageVector(e,a);default:throw new Error(\"unknown visual\")}})();t instanceof S.VisualProperties&&t.update(),this._visuals.push(t),Object.defineProperty(this,a+t.type,{get:()=>t,configurable:!1,enumerable:!0})}}}r.Visuals=m,m.__name__=\"Visuals\"},\n function _(e,t,i,l,s){l();const a=e(1),n=e(77),h=a.__importStar(e(78)),o=e(21),_=e(8);function r(e){if((0,_.isArray)(e))return e;switch(e){case\"solid\":return[];case\"dashed\":return[6];case\"dotted\":return[2,4];case\"dotdash\":return[2,4,6,4];case\"dashdot\":return[6,4,2,4];default:return e.split(\" \").map(Number).filter(_.isInteger)}}i.resolve_line_dash=r;class u extends n.VisualProperties{get doit(){const e=this.line_color.get_value(),t=this.line_alpha.get_value(),i=this.line_width.get_value();return!(null==e||0==t||0==i)}apply(e){const{doit:t}=this;return t&&(this.set_value(e),e.stroke()),t}values(){return{color:this.line_color.get_value(),alpha:this.line_alpha.get_value(),width:this.line_width.get_value(),join:this.line_join.get_value(),cap:this.line_cap.get_value(),dash:this.line_dash.get_value(),offset:this.line_dash_offset.get_value()}}set_value(e){const t=this.line_color.get_value(),i=this.line_alpha.get_value();e.strokeStyle=(0,o.color2css)(t,i),e.lineWidth=this.line_width.get_value(),e.lineJoin=this.line_join.get_value(),e.lineCap=this.line_cap.get_value(),e.setLineDash(r(this.line_dash.get_value())),e.lineDashOffset=this.line_dash_offset.get_value()}}i.Line=u,u.__name__=\"Line\";class c extends n.VisualUniforms{get doit(){const e=this.line_color.value,t=this.line_alpha.value,i=this.line_width.value;return!(0==e||0==t||0==i)}apply(e){const{doit:t}=this;return t&&(this.set_value(e),e.stroke()),t}values(){return{color:this.line_color.value,alpha:this.line_alpha.value,width:this.line_width.value,join:this.line_join.value,cap:this.line_cap.value,dash:this.line_dash.value,offset:this.line_dash_offset.value}}set_value(e){const t=this.line_color.value,i=this.line_alpha.value;e.strokeStyle=(0,o.color2css)(t,i),e.lineWidth=this.line_width.value,e.lineJoin=this.line_join.value,e.lineCap=this.line_cap.value,e.setLineDash(r(this.line_dash.value)),e.lineDashOffset=this.line_dash_offset.value}}i.LineScalar=c,c.__name__=\"LineScalar\";class d extends n.VisualUniforms{get doit(){const{line_color:e}=this;if(e.is_Scalar()&&0==e.value)return!1;const{line_alpha:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{line_width:i}=this;return!i.is_Scalar()||0!=i.value}v_doit(e){return 0!=this.line_color.get(e)&&(0!=this.line_alpha.get(e)&&0!=this.line_width.get(e))}apply(e,t){const i=this.v_doit(t);return i&&(this.set_vectorize(e,t),e.stroke()),i}values(e){return{color:this.line_color.get(e),alpha:this.line_alpha.get(e),width:this.line_width.get(e),join:this.line_join.get(e),cap:this.line_cap.get(e),dash:this.line_dash.get(e),offset:this.line_dash_offset.get(e)}}set_vectorize(e,t){const i=this.line_color.get(t),l=this.line_alpha.get(t),s=this.line_width.get(t),a=this.line_join.get(t),n=this.line_cap.get(t),h=this.line_dash.get(t),_=this.line_dash_offset.get(t);e.strokeStyle=(0,o.color2css)(i,l),e.lineWidth=s,e.lineJoin=a,e.lineCap=n,e.setLineDash(r(h)),e.lineDashOffset=_}}i.LineVector=d,d.__name__=\"LineVector\",u.prototype.type=\"line\",u.prototype.attrs=Object.keys(h.Line),c.prototype.type=\"line\",c.prototype.attrs=Object.keys(h.LineScalar),d.prototype.type=\"line\",d.prototype.attrs=Object.keys(h.LineVector)},\n function _(t,s,o,i,r){i();class e{*[Symbol.iterator](){yield*this._props}constructor(t,s=\"\"){this.obj=t,this.prefix=s;const o=this;this._props=[];for(const i of this.attrs){const r=t.model.properties[s+i];r.change.connect((()=>this.update())),o[i]=r,this._props.push(r)}}update(){}}o.VisualProperties=e,e.__name__=\"VisualProperties\";class p{*[Symbol.iterator](){for(const t of this.attrs)yield this.obj.model.properties[this.prefix+t]}constructor(t,s=\"\"){this.obj=t,this.prefix=s;for(const o of this.attrs)Object.defineProperty(this,o,{get:()=>t[s+o]})}update(){}}o.VisualUniforms=p,p.__name__=\"VisualUniforms\"},\n function _(l,e,a,t,r){t();const c=l(1),o=c.__importStar(l(17)),n=l(19),_=c.__importStar(l(20)),i=l(9);a.Line={line_color:[_.Nullable(_.Color),\"black\"],line_alpha:[_.Alpha,1],line_width:[_.Number,1],line_join:[n.LineJoin,\"bevel\"],line_cap:[n.LineCap,\"butt\"],line_dash:[_.Or(n.LineDash,_.Array(_.Number)),[]],line_dash_offset:[_.Number,0]},a.Fill={fill_color:[_.Nullable(_.Color),\"gray\"],fill_alpha:[_.Alpha,1]},a.Image={global_alpha:[_.Alpha,1]},a.Hatch={hatch_color:[_.Nullable(_.Color),\"black\"],hatch_alpha:[_.Alpha,1],hatch_scale:[_.Number,12],hatch_pattern:[_.Nullable(_.Or(n.HatchPatternType,_.String)),null],hatch_weight:[_.Number,1],hatch_extra:[_.Dict(_.AnyRef()),{}]},a.Text={text_color:[_.Nullable(_.Color),\"#444444\"],text_outline_color:[_.Nullable(_.Color),null],text_alpha:[_.Alpha,1],text_font:[o.Font,\"helvetica\"],text_font_size:[_.FontSize,\"16px\"],text_font_style:[n.FontStyle,\"normal\"],text_align:[n.TextAlign,\"left\"],text_baseline:[n.TextBaseline,\"bottom\"],text_line_height:[_.Number,1.2]},a.LineScalar={line_color:[o.ColorScalar,\"black\"],line_alpha:[o.NumberScalar,1],line_width:[o.NumberScalar,1],line_join:[o.LineJoinScalar,\"bevel\"],line_cap:[o.LineCapScalar,\"butt\"],line_dash:[o.LineDashScalar,[]],line_dash_offset:[o.NumberScalar,0]},a.FillScalar={fill_color:[o.ColorScalar,\"gray\"],fill_alpha:[o.NumberScalar,1]},a.ImageScalar={global_alpha:[o.NumberScalar,1]},a.HatchScalar={hatch_color:[o.ColorScalar,\"black\"],hatch_alpha:[o.NumberScalar,1],hatch_scale:[o.NumberScalar,12],hatch_pattern:[o.NullStringScalar,null],hatch_weight:[o.NumberScalar,1],hatch_extra:[o.AnyScalar,{}]},a.TextScalar={text_color:[o.ColorScalar,\"#444444\"],text_outline_color:[o.ColorScalar,null],text_alpha:[o.NumberScalar,1],text_font:[o.FontScalar,\"helvetica\"],text_font_size:[o.FontSizeScalar,\"16px\"],text_font_style:[o.FontStyleScalar,\"normal\"],text_align:[o.TextAlignScalar,\"left\"],text_baseline:[o.TextBaselineScalar,\"bottom\"],text_line_height:[o.NumberScalar,1.2]},a.LineVector={line_color:[o.ColorSpec,\"black\"],line_alpha:[o.NumberSpec,1],line_width:[o.NumberSpec,1],line_join:[o.LineJoinSpec,\"bevel\"],line_cap:[o.LineCapSpec,\"butt\"],line_dash:[o.LineDashSpec,[]],line_dash_offset:[o.NumberSpec,0]},a.FillVector={fill_color:[o.ColorSpec,\"gray\"],fill_alpha:[o.NumberSpec,1]},a.ImageVector={global_alpha:[o.NumberSpec,1]},a.HatchVector={hatch_color:[o.ColorSpec,\"black\"],hatch_alpha:[o.NumberSpec,1],hatch_scale:[o.NumberSpec,12],hatch_pattern:[o.NullStringSpec,null],hatch_weight:[o.NumberSpec,1],hatch_extra:[o.AnyScalar,{}]},a.TextVector={text_color:[o.ColorSpec,\"#444444\"],text_outline_color:[o.ColorSpec,null],text_alpha:[o.NumberSpec,1],text_font:[o.FontSpec,\"helvetica\"],text_font_size:[o.FontSizeSpec,\"16px\"],text_font_style:[o.FontStyleSpec,\"normal\"],text_align:[o.TextAlignSpec,\"left\"],text_baseline:[o.TextBaselineSpec,\"bottom\"],text_line_height:[o.NumberSpec,1.2]},a.attrs_of=function(l,e,a,t=!1){const r={};for(const c of(0,i.keys)(a)){const a=`${e}${c}`,o=l[a];r[t?a:c]=o}return r}},\n function _(l,t,e,i,s){i();const a=l(1),o=l(77),r=a.__importStar(l(78)),_=l(21);class c extends o.VisualProperties{get doit(){const l=this.fill_color.get_value(),t=this.fill_alpha.get_value();return!(null==l||0==t)}apply(l,t){const{doit:e}=this;return e&&(this.set_value(l),l.fill(t)),e}values(){return{color:this.fill_color.get_value(),alpha:this.fill_alpha.get_value()}}set_value(l){const t=this.fill_color.get_value(),e=this.fill_alpha.get_value();l.fillStyle=(0,_.color2css)(t,e)}}e.Fill=c,c.__name__=\"Fill\";class h extends o.VisualUniforms{get doit(){const l=this.fill_color.value,t=this.fill_alpha.value;return!(0==l||0==t)}apply(l,t){const{doit:e}=this;return e&&(this.set_value(l),l.fill(t)),e}values(){return{color:this.fill_color.value,alpha:this.fill_alpha.value}}set_value(l){const t=this.fill_color.value,e=this.fill_alpha.value;l.fillStyle=(0,_.color2css)(t,e)}}e.FillScalar=h,h.__name__=\"FillScalar\";class u extends o.VisualUniforms{get doit(){const{fill_color:l}=this;if(l.is_Scalar()&&0==l.value)return!1;const{fill_alpha:t}=this;return!t.is_Scalar()||0!=t.value}v_doit(l){return 0!=this.fill_color.get(l)&&0!=this.fill_alpha.get(l)}apply(l,t,e){const i=this.v_doit(t);return i&&(this.set_vectorize(l,t),l.fill(e)),i}values(l){return{color:this.fill_color.get(l),alpha:this.fill_alpha.get(l)}}set_vectorize(l,t){const e=this.fill_color.get(t),i=this.fill_alpha.get(t);l.fillStyle=(0,_.color2css)(e,i)}}e.FillVector=u,u.__name__=\"FillVector\",c.prototype.type=\"fill\",c.prototype.attrs=Object.keys(r.Fill),h.prototype.type=\"fill\",h.prototype.attrs=Object.keys(r.FillScalar),u.prototype.type=\"fill\",u.prototype.attrs=Object.keys(r.FillVector)},\n function _(t,e,l,s,o){s();const i=t(1),_=t(77),a=i.__importStar(t(78)),n=t(21),h=new Map;function r(t,e){const l=h.get(t);if(null==l){const l=new WeakSet([e]);h.set(t,l)}else{if(l.has(e))return;l.add(e)}const{fonts:s}=document;s.check(t)||s.load(t).then((()=>e.request_render()))}class u extends _.VisualProperties{get doit(){const t=this.text_color.get_value(),e=this.text_alpha.get_value();return!(null==t||0==e)}update(){if(!this.doit)return;r(this.font_value(),this.obj)}values(){return{color:this.text_color.get_value(),outline_color:this.text_outline_color.get_value(),alpha:this.text_alpha.get_value(),font:this.text_font.get_value(),font_size:this.text_font_size.get_value(),font_style:this.text_font_style.get_value(),align:this.text_align.get_value(),baseline:this.text_baseline.get_value(),line_height:this.text_line_height.get_value()}}set_value(t){const e=this.text_color.get_value(),l=this.text_outline_color.get_value(),s=this.text_alpha.get_value();t.fillStyle=(0,n.color2css)(e,s),t.strokeStyle=(0,n.color2css)(l,s),t.font=this.font_value(),t.textAlign=this.text_align.get_value(),t.textBaseline=this.text_baseline.get_value()}font_value(){return`${this.text_font_style.get_value()} ${this.text_font_size.get_value()} ${this.text_font.get_value()}`}}l.Text=u,u.__name__=\"Text\";class x extends _.VisualUniforms{get doit(){const t=this.text_color.value,e=this.text_alpha.value;return!(0==t||0==e)}update(){if(!this.doit)return;r(this.font_value(),this.obj)}values(){return{color:this.text_color.value,outline_color:this.text_outline_color.value,alpha:this.text_alpha.value,font:this.text_font.value,font_size:this.text_font_size.value,font_style:this.text_font_style.value,align:this.text_align.value,baseline:this.text_baseline.value,line_height:this.text_line_height.value}}set_value(t){const e=this.text_color.value,l=this.text_alpha.value,s=this.text_outline_color.value,o=this.font_value(),i=this.text_align.value,_=this.text_baseline.value;t.fillStyle=(0,n.color2css)(e,l),t.strokeStyle=(0,n.color2css)(s,l),t.font=o,t.textAlign=i,t.textBaseline=_}font_value(){return`${this.text_font_style.value} ${this.text_font_size.value} ${this.text_font.value}`}}l.TextScalar=x,x.__name__=\"TextScalar\";class c extends _.VisualUniforms{_assert_font(t){r(this.font_value(t),this.obj)}values(t){return this._assert_font(t),{color:this.text_color.get(t),outline_color:this.text_outline_color.get(t),alpha:this.text_alpha.get(t),font:this.text_font.get(t),font_size:this.text_font_size.get(t),font_style:this.text_font_style.get(t),align:this.text_align.get(t),baseline:this.text_baseline.get(t),line_height:this.text_line_height.get(t)}}get doit(){const{text_color:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{text_alpha:e}=this;return!e.is_Scalar()||0!=e.value}v_doit(t){return 0!=this.text_color.get(t)&&0!=this.text_alpha.get(t)}apply(t,e){const l=this.v_doit(e);return l&&this.set_vectorize(t,e),l}set_vectorize(t,e){this._assert_font(e);const l=this.text_color.get(e),s=this.text_outline_color.get(e),o=this.text_alpha.get(e),i=this.font_value(e),_=this.text_align.get(e),a=this.text_baseline.get(e);t.fillStyle=(0,n.color2css)(l,o),t.strokeStyle=(0,n.color2css)(s,o),t.font=i,t.textAlign=_,t.textBaseline=a}font_value(t){return`${this.text_font_style.get(t)} ${this.text_font_size.get(t)} ${this.text_font.get(t)}`}}l.TextVector=c,c.__name__=\"TextVector\",u.prototype.type=\"text\",u.prototype.attrs=Object.keys(a.Text),x.prototype.type=\"text\",x.prototype.attrs=Object.keys(a.TextScalar),c.prototype.type=\"text\",c.prototype.attrs=Object.keys(a.TextVector)},\n function _(t,e,a,r,h){r();const i=t(1),s=t(77),n=t(82),c=i.__importStar(t(17)),_=i.__importStar(t(78));class l extends s.VisualProperties{constructor(){super(...arguments),this._update_iteration=0}update(){if(this._update_iteration++,this._hatch_image=null,!this.doit)return;const t=this.hatch_color.get_value(),e=this.hatch_alpha.get_value(),a=this.hatch_scale.get_value(),r=this.hatch_pattern.get_value(),h=this.hatch_weight.get_value(),i=t=>{this._hatch_image=t},s=this.hatch_extra.get_value()[r];if(null!=s){const r=s.get_pattern(t,e,a,h);if(r instanceof Promise){const{_update_iteration:t}=this;r.then((e=>{this._update_iteration==t&&(i(e),this.obj.request_render())}))}else i(r)}else{const s=this.obj.canvas.create_layer(),c=(0,n.get_pattern)(s,r,t,e,a,h);i(c)}}get doit(){const t=this.hatch_color.get_value(),e=this.hatch_alpha.get_value(),a=this.hatch_pattern.get_value();return!(null==t||0==e||\" \"==a||\"blank\"==a||null==a)}apply(t,e){const{doit:a}=this;return a&&(this.set_value(t),t.layer.undo_transform((()=>t.fill(e)))),a}set_value(t){const e=this.pattern(t);t.fillStyle=null!=e?e:\"transparent\"}pattern(t){const e=this._hatch_image;return null==e?null:t.createPattern(e,this.repetition())}repetition(){const t=this.hatch_pattern.get_value(),e=this.hatch_extra.get_value()[t];if(null==e)return\"repeat\";switch(e.repetition){case\"repeat\":return\"repeat\";case\"repeat_x\":return\"repeat-x\";case\"repeat_y\":return\"repeat-y\";case\"no_repeat\":return\"no-repeat\"}}}a.Hatch=l,l.__name__=\"Hatch\";class o extends s.VisualUniforms{constructor(){super(...arguments),this._static_doit=!1,this._update_iteration=0}_compute_static_doit(){const t=this.hatch_color.value,e=this.hatch_alpha.value,a=this.hatch_pattern.value;return!(null==t||0==e||\" \"==a||\"blank\"==a||null==a)}update(){this._update_iteration++;const t=this.hatch_color.length;if(this._hatch_image=new c.UniformScalar(null,t),this._static_doit=this._compute_static_doit(),!this._static_doit)return;const e=this.hatch_color.value,a=this.hatch_alpha.value,r=this.hatch_scale.value,h=this.hatch_pattern.value,i=this.hatch_weight.value,s=e=>{this._hatch_image=new c.UniformScalar(e,t)},_=this.hatch_extra.value[h];if(null!=_){const t=_.get_pattern(e,a,r,i);if(t instanceof Promise){const{_update_iteration:e}=this;t.then((t=>{this._update_iteration==e&&(s(t),this.obj.request_render())}))}else s(t)}else{const t=this.obj.canvas.create_layer(),c=(0,n.get_pattern)(t,h,e,a,r,i);s(c)}}get doit(){return this._static_doit}apply(t,e){const{doit:a}=this;return a&&(this.set_value(t),t.layer.undo_transform((()=>t.fill(e)))),a}set_value(t){var e;t.fillStyle=null!==(e=this.pattern(t))&&void 0!==e?e:\"transparent\"}pattern(t){const e=this._hatch_image.value;return null==e?null:t.createPattern(e,this.repetition())}repetition(){const t=this.hatch_pattern.value,e=this.hatch_extra.value[t];if(null==e)return\"repeat\";switch(e.repetition){case\"repeat\":return\"repeat\";case\"repeat_x\":return\"repeat-x\";case\"repeat_y\":return\"repeat-y\";case\"no_repeat\":return\"no-repeat\"}}}a.HatchScalar=o,o.__name__=\"HatchScalar\";class u extends s.VisualUniforms{constructor(){super(...arguments),this._static_doit=!1,this._update_iteration=0}_compute_static_doit(){const{hatch_color:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{hatch_alpha:e}=this;if(e.is_Scalar()&&0==e.value)return!1;const{hatch_pattern:a}=this;if(a.is_Scalar()){const t=a.value;if(\" \"==t||\"blank\"==t||null==t)return!1}return!0}update(){this._update_iteration++;const t=this.hatch_color.length;if(this._hatch_image=new c.UniformScalar(null,t),this._static_doit=this._compute_static_doit(),!this._static_doit)return;const e=(t,e,a,r,h,i)=>{const s=this.hatch_extra.value[t];if(null!=s){const t=s.get_pattern(e,a,r,h);if(t instanceof Promise){const{_update_iteration:e}=this;t.then((t=>{this._update_iteration==e&&(i(t),this.obj.request_render())}))}else i(t)}else{const s=this.obj.canvas.create_layer(),c=(0,n.get_pattern)(s,t,e,a,r,h);i(c)}};if(this.hatch_color.is_Scalar()&&this.hatch_alpha.is_Scalar()&&this.hatch_scale.is_Scalar()&&this.hatch_pattern.is_Scalar()&&this.hatch_weight.is_Scalar()){const a=this.hatch_color.value,r=this.hatch_alpha.value,h=this.hatch_scale.value;e(this.hatch_pattern.value,a,r,h,this.hatch_weight.value,(e=>{this._hatch_image=new c.UniformScalar(e,t)}))}else{const a=new Array(t);a.fill(null),this._hatch_image=new c.UniformVector(a);for(let r=0;r<t;r++){const t=this.hatch_color.get(r),h=this.hatch_alpha.get(r),i=this.hatch_scale.get(r);e(this.hatch_pattern.get(r),t,h,i,this.hatch_weight.get(r),(t=>{a[r]=t}))}}}get doit(){return this._static_doit}v_doit(t){if(!this.doit)return!1;if(0==this.hatch_color.get(t))return!1;if(0==this.hatch_alpha.get(t))return!1;const e=this.hatch_pattern.get(t);return\" \"!=e&&\"blank\"!=e&&null!=e}apply(t,e,a){const r=this.v_doit(e);return r&&(this.set_vectorize(t,e),t.layer.undo_transform((()=>t.fill(a)))),r}set_vectorize(t,e){var a;t.fillStyle=null!==(a=this.pattern(t,e))&&void 0!==a?a:\"transparent\"}pattern(t,e){const a=this._hatch_image.get(e);return null==a?null:t.createPattern(a,this.repetition(e))}repetition(t){const e=this.hatch_pattern.get(t),a=this.hatch_extra.value[e];if(null==a)return\"repeat\";switch(a.repetition){case\"repeat\":return\"repeat\";case\"repeat_x\":return\"repeat-x\";case\"repeat_y\":return\"repeat-y\";case\"no_repeat\":return\"no-repeat\"}}}a.HatchVector=u,u.__name__=\"HatchVector\",l.prototype.type=\"hatch\",l.prototype.attrs=Object.keys(_.Hatch),o.prototype.type=\"hatch\",o.prototype.attrs=Object.keys(_.HatchScalar),u.prototype.type=\"hatch\",u.prototype.attrs=Object.keys(_.HatchVector)},\n function _(e,o,a,r,s){r();const i=e(18),n=e(21);function l(e,o,a){e.moveTo(0,a+.5),e.lineTo(o,a+.5),e.stroke()}function t(e,o,a){e.moveTo(a+.5,0),e.lineTo(a+.5,o),e.stroke()}function c(e,o){e.moveTo(0,o),e.lineTo(o,0),e.stroke(),e.moveTo(0,0),e.lineTo(o,o),e.stroke()}a.hatch_aliases={\" \":\"blank\",\".\":\"dot\",o:\"ring\",\"-\":\"horizontal_line\",\"|\":\"vertical_line\",\"+\":\"cross\",'\"':\"horizontal_dash\",\":\":\"vertical_dash\",\"@\":\"spiral\",\"/\":\"right_diagonal_line\",\"\\\\\":\"left_diagonal_line\",x:\"diagonal_cross\",\",\":\"right_diagonal_dash\",\"`\":\"left_diagonal_dash\",v:\"horizontal_wave\",\">\":\"vertical_wave\",\"*\":\"criss_cross\"},a.get_pattern=function(e,o,r,s,k,_){return e.resize(k,k),e.prepare(),function(e,o,r,s,k,_){var T;const h=k,v=h/2,d=v/2,b=(0,n.color2css)(r,s);switch(e.strokeStyle=b,e.fillStyle=b,e.lineCap=\"square\",e.lineWidth=_,null!==(T=a.hatch_aliases[o])&&void 0!==T?T:o){case\"blank\":break;case\"dot\":e.arc(v,v,v/2,0,2*Math.PI,!0),e.fill();break;case\"ring\":e.arc(v,v,v/2,0,2*Math.PI,!0),e.stroke();break;case\"horizontal_line\":l(e,h,v);break;case\"vertical_line\":t(e,h,v);break;case\"cross\":l(e,h,v),t(e,h,v);break;case\"horizontal_dash\":l(e,v,v);break;case\"vertical_dash\":t(e,v,v);break;case\"spiral\":{const o=h/30;e.moveTo(v,v);for(let a=0;a<360;a++){const r=.1*a,s=v+o*r*Math.cos(r),i=v+o*r*Math.sin(r);e.lineTo(s,i)}e.stroke();break}case\"right_diagonal_line\":e.moveTo(.5-d,h),e.lineTo(d+.5,0),e.stroke(),e.moveTo(d+.5,h),e.lineTo(3*d+.5,0),e.stroke(),e.moveTo(3*d+.5,h),e.lineTo(5*d+.5,0),e.stroke();break;case\"left_diagonal_line\":e.moveTo(d+.5,h),e.lineTo(.5-d,0),e.stroke(),e.moveTo(3*d+.5,h),e.lineTo(d+.5,0),e.stroke(),e.moveTo(5*d+.5,h),e.lineTo(3*d+.5,0),e.stroke();break;case\"diagonal_cross\":c(e,h);break;case\"right_diagonal_dash\":e.moveTo(d+.5,3*d+.5),e.lineTo(3*d+.5,d+.5),e.stroke();break;case\"left_diagonal_dash\":e.moveTo(d+.5,d+.5),e.lineTo(3*d+.5,3*d+.5),e.stroke();break;case\"horizontal_wave\":e.moveTo(0,d),e.lineTo(v,3*d),e.lineTo(h,d),e.stroke();break;case\"vertical_wave\":e.moveTo(d,0),e.lineTo(3*d,v),e.lineTo(d,h),e.stroke();break;case\"criss_cross\":c(e,h),l(e,h,v),t(e,h,v);break;default:i.logger.warn(`unknown hatch pattern: ${o}`)}}(e.ctx,o,r,s,k,_),e.canvas}},\n function _(a,t,e,l,s){l();const o=a(1),r=a(77),p=o.__importStar(a(78));class _ extends r.VisualProperties{get doit(){return!(0==this.global_alpha.get_value())}apply(a){const{doit:t}=this;return t&&this.set_value(a),t}values(){return{global_alpha:this.global_alpha.get_value()}}set_value(a){const t=this.global_alpha.get_value();a.globalAlpha=t}}e.Image=_,_.__name__=\"Image\";class i extends r.VisualUniforms{get doit(){return!(0==this.global_alpha.value)}apply(a){const{doit:t}=this;return t&&this.set_value(a),t}values(){return{global_alpha:this.global_alpha.value}}set_value(a){const t=this.global_alpha.value;a.globalAlpha=t}}e.ImageScalar=i,i.__name__=\"ImageScalar\";class g extends r.VisualUniforms{get doit(){const{global_alpha:a}=this;return!a.is_Scalar()||0!=a.value}v_doit(a){return 0!=this.global_alpha.get(a)}apply(a,t){const e=this.v_doit(t);return e&&this.set_vectorize(a,t),e}values(a){return{alpha:this.global_alpha.get(a)}}set_vectorize(a,t){const e=this.global_alpha.get(t);a.globalAlpha=e}}e.ImageVector=g,g.__name__=\"ImageVector\",_.prototype.type=\"image\",_.prototype.attrs=Object.keys(p.Image),i.prototype.type=\"image\",i.prototype.attrs=Object.keys(p.ImageScalar),g.prototype.type=\"image\",g.prototype.attrs=Object.keys(p.ImageVector)},\n function _(e,t,s,a,r){var c,n;a();const _=e(13),o=e(50),i=e(85),l=e(89),u=e(91),g=e(92),h=e(87),p=e(93),m=e(96);class x{constructor(e,t){this.x_scale=e,this.y_scale=t,this.x_source=this.x_scale.source_range,this.y_source=this.y_scale.source_range,this.ranges=[this.x_source,this.y_source],this.scales=[this.x_scale,this.y_scale]}map_to_screen(e,t){return[this.x_scale.v_compute(e),this.y_scale.v_compute(t)]}map_from_screen(e,t){return[this.x_scale.v_invert(e),this.y_scale.v_invert(t)]}}s.CoordinateTransform=x,x.__name__=\"CoordinateTransform\";class y extends o.Model{constructor(e){super(e)}get x_ranges(){return new Map([[\"default\",this.x_source]])}get y_ranges(){return new Map([[\"default\",this.y_source]])}_get_scale(e,t,s){if(e instanceof m.FactorRange!=t instanceof g.CategoricalScale)throw new Error(`Range ${e.type} is incompatible is Scale ${t.type}`);t instanceof u.LogScale&&e instanceof p.DataRange1d&&(e.scale_hint=\"log\");const a=t.clone();return a.setv({source_range:e,target_range:s}),a}get_transform(e){const{x_source:t,x_scale:s,x_target:a}=this,r=this._get_scale(t,s,a),{y_source:c,y_scale:n,y_target:_}=this,o=this._get_scale(c,n,_),i=new v({source_scale:r,source_range:r.source_range,target_scale:e.x_scale,target_range:e.x_target}),l=new v({source_scale:o,source_range:o.source_range,target_scale:e.y_scale,target_range:e.y_target});return new x(i,l)}}s.CoordinateMapping=y,c=y,y.__name__=\"CoordinateMapping\",c.define((({Ref:e})=>({x_source:[e(h.Range),()=>new p.DataRange1d],y_source:[e(h.Range),()=>new p.DataRange1d],x_scale:[e(i.Scale),()=>new l.LinearScale],y_scale:[e(i.Scale),()=>new l.LinearScale],x_target:[e(h.Range)],y_target:[e(h.Range)]})));class v extends i.Scale{constructor(e){super(e)}get s_compute(){const e=this.source_scale.s_compute,t=this.target_scale.s_compute;return s=>t(e(s))}get s_invert(){const e=this.source_scale.s_invert,t=this.target_scale.s_invert;return s=>e(t(s))}compute(e){return this.s_compute(e)}v_compute(e){const{s_compute:t}=this;return(0,_.map)(e,t)}invert(e){return this.s_invert(e)}v_invert(e){const{s_invert:t}=this;return(0,_.map)(e,t)}}s.CompositeScale=v,n=v,v.__name__=\"CompositeScale\",n.internal((({Ref:e})=>({source_scale:[e(i.Scale)],target_scale:[e(i.Scale)]})))},\n function _(e,t,r,n,s){var _;n();const a=e(86),c=e(87),o=e(88),i=e(23);class u extends a.Transform{constructor(e){super(e)}compute(e){return this.s_compute(e)}v_compute(e){const t=new i.ScreenArray(e.length),{s_compute:r}=this;for(let n=0;n<e.length;n++)t[n]=r(e[n]);return t}invert(e){return this.s_invert(e)}v_invert(e){const t=new Float64Array(e.length),{s_invert:r}=this;for(let n=0;n<e.length;n++)t[n]=r(e[n]);return t}r_compute(e,t){const{s_compute:r}=this;return this.target_range.is_reversed?[r(t),r(e)]:[r(e),r(t)]}r_invert(e,t){const{s_invert:r}=this;return this.target_range.is_reversed?[r(t),r(e)]:[r(e),r(t)]}}r.Scale=u,_=u,u.__name__=\"Scale\",_.internal((({Ref:e})=>({source_range:[e(c.Range)],target_range:[e(o.Range1d)]})))},\n function _(n,s,o,r,c){r();const e=n(50);class t extends e.Model{constructor(n){super(n)}}o.Transform=t,t.__name__=\"Transform\"},\n function _(t,e,n,i,s){var a;i();const r=t(50);class l extends r.Model{constructor(t){super(t),this.have_updated_interactively=!1,this.plots=new Set}get is_reversed(){return this.start>this.end}get is_valid(){return isFinite(this.min)&&isFinite(this.max)}get span(){return Math.abs(this.end-this.start)}}n.Range=l,a=l,l.__name__=\"Range\",a.define((({Number:t,Tuple:e,Or:n,Auto:i,Nullable:s})=>({bounds:[s(n(e(s(t),s(t)),i)),null],min_interval:[s(t),null],max_interval:[s(t),null]})))},\n function _(t,e,s,n,r){var a;n();const i=t(87);class _ extends i.Range{constructor(t){super(t)}_set_auto_bounds(){if(\"auto\"==this.bounds){const 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})}}initialize(){super.initialize(),this._set_auto_bounds()}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}reset(){this._set_auto_bounds();const{_reset_start:t,_reset_end:e}=this;this.start!=t||this.end!=e?this.setv({start:t,end:e}):this.change.emit()}map(t){return new _({start:t(this.start),end:t(this.end)})}widen(t){let{start:e,end:s}=this;return this.is_reversed?(e+=t,s-=t):(e-=t,s+=t),new _({start:e,end:s})}}s.Range1d=_,a=_,_.__name__=\"Range1d\",a.define((({Number:t,Nullable:e})=>({start:[t,0],end:[t,1],reset_start:[e(t),null,{on_update(t,e){e._reset_start=null!=t?t:e.start}}],reset_end:[e(t),null,{on_update(t,e){e._reset_end=null!=t?t:e.end}}]})))},\n function _(t,e,n,r,s){r();const a=t(90);class _ extends a.ContinuousScale{constructor(t){super(t)}get s_compute(){const[t,e]=this._linear_compute_state();return n=>t*n+e}get s_invert(){const[t,e]=this._linear_compute_state();return n=>(n-e)/t}_linear_compute_state(){const t=this.source_range.start,e=this.source_range.end,n=this.target_range.start,r=(this.target_range.end-n)/(e-t);return[r,-r*t+n]}}n.LinearScale=_,_.__name__=\"LinearScale\"},\n function _(n,c,o,s,e){s();const t=n(85);class u extends t.Scale{constructor(n){super(n)}}o.ContinuousScale=u,u.__name__=\"ContinuousScale\"},\n function _(t,e,s,a,r){a();const o=t(90);class n extends o.ContinuousScale{constructor(t){super(t)}get s_compute(){const[t,e,s,a]=this._compute_state();return r=>{if(0==s)return 0;{const o=(Math.log(r)-a)/s;return isFinite(o)?o*t+e:NaN}}}get s_invert(){const[t,e,s,a]=this._compute_state();return r=>{const o=(r-e)/t;return Math.exp(s*o+a)}}_get_safe_factor(t,e){let s=t<0?0:t,a=e<0?0:e;if(s==a)if(0==s)[s,a]=[1,10];else{const t=Math.log10(s);s=10**Math.floor(t),a=Math.ceil(t)!=Math.floor(t)?10**Math.ceil(t):10**(Math.ceil(t)+1)}return[s,a]}_compute_state(){const t=this.source_range.start,e=this.source_range.end,s=this.target_range.start,a=this.target_range.end-s,[r,o]=this._get_safe_factor(t,e);let n,c;0==r?(n=Math.log(o),c=0):(n=Math.log(o/r),c=Math.log(r));return[a,s,n,c]}}s.LogScale=n,n.__name__=\"LogScale\"},\n function _(t,e,c,a,s){a();const n=t(85),r=t(89),{_linear_compute_state:o}=r.LinearScale.prototype;class l extends n.Scale{constructor(t){super(t)}get s_compute(){const[t,e]=o.call(this),c=this.source_range;return a=>t*c.synthetic(a)+e}get s_invert(){const[t,e]=o.call(this);return c=>(c-e)/t}}c.CategoricalScale=l,l.__name__=\"CategoricalScale\"},\n function _(t,i,n,e,a){var s;e();const l=t(1),_=t(94),o=t(19),r=t(32),d=t(18),h=l.__importStar(t(57)),u=t(95);n.auto_ranged=Symbol(\"auto_ranged\"),n.is_auto_ranged=function(t){return n.auto_ranged in t};class g extends _.DataRange{constructor(t){super(t),this.have_updated_interactively=!1}initialize(){super.initialize(),this._initial_start=isNaN(this.start)?null:this.start,this._initial_end=isNaN(this.end)?null:this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span,this._plot_bounds=new Map}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const{renderers:t}=this,i=(0,r.flat_map)(this.plots,(t=>t.auto_ranged_renderers.map((t=>t.model))));return(0,u.compute_renderers)(0==t.length?\"auto\":t,[...i])}_compute_plot_bounds(t,i){let n=h.empty();for(const e of t){const t=i.get(e);null==t||!e.visible&&this.only_visible||(n=h.union(n,t))}return n}adjust_bounds_for_aspect(t,i){const n=h.empty();let e=t.x1-t.x0;e<=0&&(e=1);let a=t.y1-t.y0;a<=0&&(a=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return e<i*a?e=i*a:a=e/i,n.x1=s+.5*e,n.x0=s-.5*e,n.y1=l+.5*a,n.y0=l-.5*a,n}_compute_min_max(t,i){let n,e,a=h.empty();for(const[i,n]of t)i.model.visible&&(a=h.union(a,n));return[n,e]=0==i?[a.x0,a.x1]:[a.y0,a.y1],[n,e]}_compute_range(t,i){const n=this.range_padding;let e,a;if(null!=this._initial_start&&(t=this._initial_start),null!=this._initial_end&&(i=this._initial_end),\"log\"==this.scale_hint){let s,l;if((isNaN(t)||!isFinite(t)||t<=0)&&(t=isNaN(i)||!isFinite(i)||i<=0?.1:i/100,d.logger.warn(`could not determine minimum data value for log axis, DataRange1d using value ${t}`)),(isNaN(i)||!isFinite(i)||i<=0)&&(i=isNaN(t)||!isFinite(t)||t<=0?10:100*t,d.logger.warn(`could not determine maximum data value for log axis, DataRange1d using value ${i}`)),i==t)l=this.default_span+.001,s=Math.log10(t);else{let e,a;\"percent\"==this.range_padding_units?(e=Math.log10(t),a=Math.log10(i),l=(a-e)*(1+n)):(e=Math.log10(t-n),a=Math.log10(i+n),l=a-e),s=(e+a)/2}e=10**(s-l/2),a=10**(s+l/2)}else{let s;s=i==t?this.default_span:\"percent\"==this.range_padding_units?(i-t)*(1+n):i-t+2*n;const l=(i+t)/2;e=l-s/2,a=l+s/2}let s=1;this.flipped&&([e,a]=[a,e],s=-1);const l=this.follow_interval;return null!=l&&Math.abs(e-a)>l&&(\"start\"==this.follow?a=e+s*l:\"end\"==this.follow&&(e=a-s*l)),[e,a]}update(t,i,n,e){if(this.have_updated_interactively)return;const a=this.computed_renderers();let s=this._compute_plot_bounds(a,t);null!=e&&(s=this.adjust_bounds_for_aspect(s,e)),this._plot_bounds.set(n,s);const[l,_]=this._compute_min_max(this._plot_bounds.entries(),i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&(\"log\"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&(\"log\"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);let d=!1;\"auto\"==this.bounds&&(this.setv({bounds:[o,r]},{silent:!0}),d=!0);const[h,u]=[this.start,this.end];if(o!=h||r!=u){const t={};o!=h&&(t.start=o),r!=u&&(t.end=r),this.setv(t),d=!1}d&&this.change.emit()}reset(){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()}}n.DataRange1d=g,s=g,g.__name__=\"DataRange1d\",s.define((({Boolean:t,Number:i,Nullable:n})=>({start:[i,NaN],end:[i,NaN],range_padding:[i,.1],range_padding_units:[o.PaddingUnits,\"percent\"],flipped:[t,!1],follow:[n(o.StartEnd),null],follow_interval:[n(i),null],default_span:[i,2],only_visible:[t,!1]}))),s.internal((({Enum:t})=>({scale_hint:[t(\"log\",\"auto\"),\"auto\"]})))},\n function _(e,n,a,r,t){var s;r();const c=e(87);class o extends c.Range{constructor(e){super(e)}}a.DataRange=o,s=o,o.__name__=\"DataRange\",s.define((({Array:e,AnyRef:n,Or:a,Auto:r})=>({renderers:[a(e(n()),r),[]]})))},\n function _(n,u,e,r,t){r(),e.compute_renderers=function(n,u){return\"auto\"==n?u:null!=n?n:[]}},\n function _(t,n,e,i,s){var r;i();const a=t(1),o=t(87),g=t(19),p=a.__importStar(t(17)),c=t(20),l=t(23),u=t(10),h=t(8),d=t(12);function _(t,n,e=0){const i=new Map;for(let s=0;s<t.length;s++){const r=t[s];if(i.has(r))throw new Error(`duplicate factor or subfactor: ${r}`);i.set(r,{value:.5+s*(1+n)+e})}return[i,(t.length-1)*n]}function f(t,n,e,i=0){var s;const r=new Map,a=new Map;for(const[n,e]of t){const t=null!==(s=a.get(n))&&void 0!==s?s:[];a.set(n,[...t,e])}let o=i,g=0;for(const[t,i]of a){const s=i.length,[a,p]=_(i,e,o);g+=p;const c=(0,u.sum)(i.map((t=>a.get(t).value)));r.set(t,{value:c/s,mapping:a}),o+=s+n+p}return[r,(a.size-1)*n+g]}function m(t,n,e,i,s=0){var r;const a=new Map,o=new Map;for(const[n,e,i]of t){const t=null!==(r=o.get(n))&&void 0!==r?r:[];o.set(n,[...t,[e,i]])}let g=s,p=0;for(const[t,s]of o){const r=s.length,[o,c]=f(s,e,i,g);p+=c;const l=(0,u.sum)(s.map((([t])=>o.get(t).value)));a.set(t,{value:l/r,mapping:o}),g+=r+n+c}return[a,(o.size-1)*n+p]}e.Factor=(0,c.Or)(c.String,(0,c.Tuple)(c.String,c.String),(0,c.Tuple)(c.String,c.String,c.String)),e.FactorSeq=(0,c.Or)((0,c.Array)(c.String),(0,c.Array)((0,c.Tuple)(c.String,c.String)),(0,c.Array)((0,c.Tuple)(c.String,c.String,c.String))),e.map_one_level=_,e.map_two_levels=f,e.map_three_levels=m;class v extends o.Range{constructor(t){super(t)}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this._init(!0)}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,(()=>this.reset())),this.connect(this.properties.factor_padding.change,(()=>this.reset())),this.connect(this.properties.group_padding.change,(()=>this.reset())),this.connect(this.properties.subgroup_padding.change,(()=>this.reset())),this.connect(this.properties.range_padding.change,(()=>this.reset())),this.connect(this.properties.range_padding_units.change,(()=>this.reset()))}reset(){this._init(!1),this.change.emit()}_lookup(t){switch(t.length){case 1:{const[n]=t,e=this._mapping.get(n);return null!=e?e.value:NaN}case 2:{const[n,e]=t,i=this._mapping.get(n);if(null!=i){const t=i.mapping.get(e);if(null!=t)return t.value}return NaN}case 3:{const[n,e,i]=t,s=this._mapping.get(n);if(null!=s){const t=s.mapping.get(e);if(null!=t){const n=t.mapping.get(i);if(null!=n)return n.value}}return NaN}default:(0,d.unreachable)()}}synthetic(t){if((0,h.isNumber)(t))return t;if((0,h.isString)(t))return this._lookup([t]);let n=0;const e=t[t.length-1];return(0,h.isNumber)(e)&&(n=e,t=t.slice(0,-1)),this._lookup(t)+n}v_synthetic(t){const n=t.length,e=new l.ScreenArray(n);for(let i=0;i<n;i++)e[i]=this.synthetic(t[i]);return e}_init(t){const{levels:n,mapping:e,tops:i,mids:s,inside_padding:r}=(()=>{if((0,u.every)(this.factors,h.isString)){const t=this.factors,[n,e]=_(t,this.factor_padding);return{levels:1,mapping:n,tops:null,mids:null,inside_padding:e}}if((0,u.every)(this.factors,(t=>(0,h.isArray)(t)&&2==t.length&&(0,h.isString)(t[0])&&(0,h.isString)(t[1])))){const t=this.factors,[n,e]=f(t,this.group_padding,this.factor_padding),i=[...n.keys()];return{levels:2,mapping:n,tops:i,mids:null,inside_padding:e}}if((0,u.every)(this.factors,(t=>(0,h.isArray)(t)&&3==t.length&&(0,h.isString)(t[0])&&(0,h.isString)(t[1])&&(0,h.isString)(t[2])))){const t=this.factors,[n,e]=m(t,this.group_padding,this.subgroup_padding,this.factor_padding),i=[...n.keys()],s=[];for(const[t,e]of n)for(const n of e.mapping.keys())s.push([t,n]);return{levels:3,mapping:n,tops:i,mids:s,inside_padding:e}}(0,d.unreachable)()})();this._mapping=e,this.tops=i,this.mids=s;let a=0,o=this.factors.length+r;if(\"percent\"==this.range_padding_units){const t=(o-a)*this.range_padding/2;a-=t,o+=t}else a-=this.range_padding,o+=this.range_padding;this.setv({start:a,end:o,levels:n},{silent:t}),\"auto\"==this.bounds&&this.setv({bounds:[a,o]},{silent:!0})}}e.FactorRange=v,r=v,v.__name__=\"FactorRange\",r.define((({Number:t})=>({factors:[e.FactorSeq,[]],factor_padding:[t,0],subgroup_padding:[t,.8],group_padding:[t,1.4],range_padding:[t,0],range_padding_units:[g.PaddingUnits,\"percent\"],start:[t,p.unset,{readonly:!0}],end:[t,p.unset,{readonly:!0}]}))),r.internal((({Number:t,String:n,Array:e,Tuple:i,Nullable:s})=>({levels:[t],mids:[s(e(i(n,n))),null],tops:[s(e(n)),null]})))},\n function _(t,e,s,a,n){var r;a();const i=t(1),_=t(98),o=t(139),l=t(78),d=t(19),c=t(23),h=t(59),u=t(23),v=i.__importStar(t(17)),p=t(11);class y extends _.DataAnnotationView{*children(){yield*super.children();const{start:t,end:e}=this;null!=t&&(yield t),null!=e&&(yield e)}async lazy_initialize(){await super.lazy_initialize();const{start:t,end:e}=this.model;null!=t&&(this.start=await(0,h.build_view)(t,{parent:this})),null!=e&&(this.end=await(0,h.build_view)(e,{parent:this}))}set_data(t){var e,s;super.set_data(t);const a=u.Indices.all_set(this._x_start.length);null===(e=this.start)||void 0===e||e.set_data(t,a),null===(s=this.end)||void 0===s||s.set_data(t,a)}remove(){var t,e;null===(t=this.start)||void 0===t||t.remove(),null===(e=this.end)||void 0===e||e.remove(),super.remove()}map_data(){const{frame:t}=this.plot_view,[e,s]=(()=>{switch(this.model.start_units){case\"canvas\":return[new c.ScreenArray(this._x_start),new c.ScreenArray(this._y_start)];case\"screen\":return[t.bbox.xview.v_compute(this._x_start),t.bbox.yview.v_compute(this._y_start)];case\"data\":return[this.coordinates.x_scale.v_compute(this._x_start),this.coordinates.y_scale.v_compute(this._y_start)]}})(),[a,n]=(()=>{switch(this.model.end_units){case\"canvas\":return[new c.ScreenArray(this._x_end),new c.ScreenArray(this._y_end)];case\"screen\":return[t.bbox.xview.v_compute(this._x_end),t.bbox.yview.v_compute(this._y_end)];case\"data\":return[this.coordinates.x_scale.v_compute(this._x_end),this.coordinates.y_scale.v_compute(this._y_end)]}})();this._sx_start=e,this._sy_start=s,this._sx_end=a,this._sy_end=n;const r=e.length,i=this._angles=new c.ScreenArray(r);for(let t=0;t<r;t++)i[t]=Math.PI/2+(0,p.atan2)([e[t],s[t]],[a[t],n[t]])}paint(t){const{start:e,end:s}=this,{_sx_start:a,_sy_start:n,_sx_end:r,_sy_end:i,_angles:_}=this,{x:o,y:l,width:d,height:c}=this.plot_view.frame.bbox;for(let h=0,u=a.length;h<u;h++)null!=s&&(t.save(),t.translate(r[h],i[h]),t.rotate(_[h]),s.render(t,h),t.restore()),null!=e&&(t.save(),t.translate(a[h],n[h]),t.rotate(_[h]+Math.PI),e.render(t,h),t.restore()),this.visuals.line.doit&&(t.save(),null==e&&null==s||(t.beginPath(),t.rect(o,l,d,c),null!=s&&(t.save(),t.translate(r[h],i[h]),t.rotate(_[h]),s.clip(t,h),t.restore()),null!=e&&(t.save(),t.translate(a[h],n[h]),t.rotate(_[h]+Math.PI),e.clip(t,h),t.restore()),t.closePath(),t.clip()),t.beginPath(),t.moveTo(a[h],n[h]),t.lineTo(r[h],i[h]),this.visuals.line.apply(t,h),t.restore())}}s.ArrowView=y,y.__name__=\"ArrowView\";class w extends _.DataAnnotation{constructor(t){super(t)}}s.Arrow=w,r=w,w.__name__=\"Arrow\",r.prototype.default_view=y,r.mixins(l.LineVector),r.define((({Ref:t,Nullable:e})=>({x_start:[v.XCoordinateSpec,{field:\"x_start\"}],y_start:[v.YCoordinateSpec,{field:\"y_start\"}],start_units:[d.CoordinateUnits,\"data\"],start:[e(t(o.ArrowHead)),null],x_end:[v.XCoordinateSpec,{field:\"x_end\"}],y_end:[v.YCoordinateSpec,{field:\"y_end\"}],end_units:[d.CoordinateUnits,\"data\"],end:[e(t(o.ArrowHead)),()=>new o.OpenHead]})))},\n function _(t,e,n,s,a){var o;s();const i=t(1),c=t(73),r=t(99),_=t(104),l=t(105),h=i.__importStar(t(17));class d extends c.AnnotationView{constructor(){super(...arguments),this._initial_set_data=!1}connect_signals(){super.connect_signals();const t=()=>{this.set_data(this.model.source),this._rerender()};this.connect(this.model.change,t),this.connect(this.model.source.streaming,t),this.connect(this.model.source.patching,t),this.connect(this.model.source.change,t)}_rerender(){this.request_render()}set_data(t){const e=this;for(const n of this.model)if(n instanceof h.VectorSpec||n instanceof h.ScalarSpec)if(n instanceof h.BaseCoordinateSpec){const s=n.array(t);e[`_${n.attr}`]=s}else{const s=n.uniform(t);e[`${n.attr}`]=s}this.plot_model.use_map&&(null!=e._x&&l.inplace.project_xy(e._x,e._y),null!=e._xs&&l.inplace.project_xsys(e._xs,e._ys));for(const t of this.visuals)t.update()}_render(){this._initial_set_data||(this.set_data(this.model.source),this._initial_set_data=!0),this.map_data(),this.paint(this.layer.ctx)}}n.DataAnnotationView=d,d.__name__=\"DataAnnotationView\";class u extends c.Annotation{constructor(t){super(t)}}n.DataAnnotation=u,o=u,u.__name__=\"DataAnnotation\",o.define((({Ref:t})=>({source:[t(r.ColumnarDataSource),()=>new _.ColumnDataSource]})))},\n function _(t,e,n,a,s){var r;a();const i=t(18),l=t(100),o=t(15),c=t(10),u=t(29),h=t(9),g=t(8),d=t(102),_=t(101),f=t(103);class m extends f.DataSource{get_array(t){let e=this.data[t];return null==e?this.data[t]=e=[]:(0,g.isArray)(e)||(this.data[t]=e=Array.from(e)),e}constructor(t){super(t),this.selection_manager=new l.SelectionManager(this)}initialize(){super.initialize(),this._select=new o.Signal0(this,\"select\"),this.inspect=new o.Signal(this,\"inspect\")}get_column(t){return t in this.data?this.data[t]:null}columns(){return(0,h.keys)(this.data)}get_length(t=!0){const e=(0,c.uniq)((0,h.values)(this.data).map((t=>(0,u.is_NDArray)(t)?t.shape[0]:t.length)));switch(e.length){case 0:return null;case 1:return e[0];default:{const n=\"data source has columns of inconsistent lengths\";if(t)return i.logger.warn(n),e.sort()[0];throw new Error(n)}}}get length(){var t;return null!==(t=this.get_length())&&void 0!==t?t:0}clear(){const t={};for(const e of this.columns())t[e]=new this.data[e].constructor(0);this.data=t}}n.ColumnarDataSource=m,r=m,m.__name__=\"ColumnarDataSource\",r.define((({Ref:t})=>({selection_policy:[t(d.SelectionPolicy),()=>new d.UnionRenderers]}))),r.internal((({AnyRef:t})=>({inspected:[t(),()=>new _.Selection]})))},\n function _(e,t,o,s,c){s();const n=e(101);function i(e){return\"GlyphRenderer\"==e.model.type}function l(e){return\"GraphRenderer\"==e.model.type}class r{constructor(e){this.inspectors=new Map,this.source=e}select(e,t,o,s=\"replace\"){const c=[],n=[];for(const t of e)i(t)?c.push(t):l(t)&&n.push(t);let r=!1;for(const e of n){const c=e.model.selection_policy.hit_test(t,e);r=r||e.model.selection_policy.do_selection(c,e.model,o,s)}if(c.length>0){const e=this.source.selection_policy.hit_test(t,c);r=r||this.source.selection_policy.do_selection(e,this.source,o,s)}return r}inspect(e,t){let o=!1;if(i(e)){const s=e.hit_test(t);if(null!=s){o=!s.is_empty();const c=this.get_or_create_inspector(e.model);c.update(s,!0,\"replace\"),this.source.setv({inspected:c},{silent:!0}),this.source.inspect.emit([e.model,{geometry:t}])}}else if(l(e)){const s=e.model.inspection_policy.hit_test(t,e);o=e.model.inspection_policy.do_inspection(s,t,e,!1,\"replace\")}return o}clear(e){this.source.selected.clear(),null!=e&&this.get_or_create_inspector(e.model).clear()}get_or_create_inspector(e){let t=this.inspectors.get(e);return null==t&&(t=new n.Selection,this.inspectors.set(e,t)),t}}o.SelectionManager=r,r.__name__=\"SelectionManager\"},\n function _(i,e,s,t,n){var c;t();const l=i(50),d=i(10),h=i(9),_=i(20),u=i(13);s.OpaqueIndices=(0,_.Arrayable)(_.Int);class a extends l.Model{constructor(i){super(i)}get_view(){return this.view}get selected_glyph(){return this.selected_glyphs.length>0?this.selected_glyphs[0]:null}add_to_selected_glyphs(i){this.selected_glyphs.push(i)}update(i,e=!0,s=\"replace\"){switch(s){case\"replace\":this.indices=i.indices,this.line_indices=i.line_indices,this.multiline_indices=i.multiline_indices,this.image_indices=i.image_indices,this.view=i.view,this.selected_glyphs=i.selected_glyphs;break;case\"append\":this.update_through_union(i);break;case\"intersect\":this.update_through_intersection(i);break;case\"subtract\":this.update_through_subtraction(i)}}clear(){this.indices=[],this.line_indices=[],this.multiline_indices={},this.image_indices=[],this.view=null,this.selected_glyphs=[]}map(i){return new a(Object.assign(Object.assign({},this.attributes),{indices:(0,u.map)(this.indices,i),multiline_indices:(0,h.to_object)((0,h.entries)(this.multiline_indices).map((([e,s])=>[i(Number(e)),s]))),image_indices:this.image_indices.map((e=>Object.assign(Object.assign({},e),{index:i(e.index)})))}))}is_empty(){return 0==this.indices.length&&0==this.line_indices.length&&0==this.image_indices.length}update_through_union(i){this.indices=(0,d.union)(this.indices,i.indices),this.selected_glyphs=(0,d.union)(i.selected_glyphs,this.selected_glyphs),this.line_indices=(0,d.union)(i.line_indices,this.line_indices),this.view=i.view,this.multiline_indices=(0,h.merge)(i.multiline_indices,this.multiline_indices)}update_through_intersection(i){this.indices=(0,d.intersection)(this.indices,i.indices),this.selected_glyphs=(0,d.union)(i.selected_glyphs,this.selected_glyphs),this.line_indices=(0,d.union)(i.line_indices,this.line_indices),this.view=i.view,this.multiline_indices=(0,h.merge)(i.multiline_indices,this.multiline_indices)}update_through_subtraction(i){this.indices=(0,d.difference)(this.indices,i.indices),this.selected_glyphs=(0,d.union)(i.selected_glyphs,this.selected_glyphs),this.line_indices=(0,d.union)(i.line_indices,this.line_indices),this.view=i.view,this.multiline_indices=(0,h.merge)(i.multiline_indices,this.multiline_indices)}}s.Selection=a,c=a,a.__name__=\"Selection\",c.define((({Int:i,Array:e,Dict:t,Struct:n})=>({indices:[s.OpaqueIndices,[]],line_indices:[s.OpaqueIndices,[]],multiline_indices:[t(s.OpaqueIndices),{}],image_indices:[e(n({index:i,i,j:i,flat_index:i})),[]]}))),c.internal((({Array:i,AnyRef:e,Nullable:s})=>({selected_glyphs:[i(e()),[]],view:[s(e()),null]})))},\n function _(e,t,n,s,o){s();const r=e(50);class c extends r.Model{do_selection(e,t,n,s){return null!=e&&(t.selected.update(e,n,s),t._select.emit(),!t.selected.is_empty())}}n.SelectionPolicy=c,c.__name__=\"SelectionPolicy\";class l extends c{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!=t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_intersection(t);return e}return null}}n.IntersectRenderers=l,l.__name__=\"IntersectRenderers\";class _ extends c{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!=t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_union(t);return e}return null}}n.UnionRenderers=_,_.__name__=\"UnionRenderers\"},\n function _(e,n,c,o,t){var a;o();const r=e(50),s=e(101);class l extends r.Model{constructor(e){super(e)}}c.DataSource=l,a=l,l.__name__=\"DataSource\",a.define((({Ref:e})=>({selected:[e(s.Selection),()=>new s.Selection,{readonly:!0}]})))},\n function _(t,a,s,e,r){var c;e();const n=t(99);class o extends n.ColumnarDataSource{constructor(t){super(t)}stream(t,a,{sync:s}={}){this.stream_to(this.properties.data,t,a,{sync:s})}patch(t,{sync:a}={}){this.patch_to(this.properties.data,t,{sync:a})}}s.ColumnDataSource=o,c=o,o.__name__=\"ColumnDataSource\",c.define((({Any:t,Dict:a,Arrayable:s})=>({data:[a(s(t)),{}]})))},\n function _(n,t,e,o,r){o();const c=n(1),l=c.__importDefault(n(106)),i=c.__importDefault(n(107)),u=n(23),a=new i.default(\"GOOGLE\"),s=new i.default(\"WGS84\"),f=(0,l.default)(s,a);e.wgs84_mercator={compute:(n,t)=>isFinite(n)&&isFinite(t)?f.forward([n,t]):[NaN,NaN],invert:(n,t)=>isFinite(n)&&isFinite(t)?f.inverse([n,t]):[NaN,NaN]};const _={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},p={lon:[-180,180],lat:[-85.06,85.06]},{min:g,max:h}=Math;function m(n,t){const o=g(n.length,t.length),r=(0,u.infer_type)(n,t),c=new r(o),l=new r(o);return e.inplace.project_xy(n,t,c,l),[c,l]}e.clip_mercator=function(n,t,e){const[o,r]=_[e];return[h(n,o),g(t,r)]},e.in_bounds=function(n,t){const[e,o]=p[t];return e<n&&n<o},function(n){function t(n,t,o,r){const c=g(n.length,t.length);o=null!=o?o:n,r=null!=r?r:t;for(let l=0;l<c;l++){const c=n[l],i=t[l],[u,a]=e.wgs84_mercator.compute(c,i);o[l]=u,r[l]=a}}n.project_xy=t,n.project_xsys=function(n,e,o,r){const c=g(n.length,e.length);o=null!=o?o:n,r=null!=r?r:e;for(let l=0;l<c;l++)t(n[l],e[l],o[l],r[l])}}(e.inplace||(e.inplace={})),e.project_xy=m,e.project_xsys=function(n,t){const e=g(n.length,t.length),o=new Array(e),r=new Array(e);for(let c=0;c<e;c++){const[e,l]=m(n[c],t[c]);o[c]=e,r[c]=l}return[o,r]}},\n function _(e,n,t,r,o){r();const a=e(1),i=a.__importDefault(e(107)),c=a.__importDefault(e(133));var u=(0,i.default)(\"WGS84\");function f(e,n,t,r){var o,a,i;return Array.isArray(t)?(o=(0,c.default)(e,n,t,r)||{x:NaN,y:NaN},t.length>2?void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name?\"number\"==typeof o.z?[o.x,o.y,o.z].concat(t.splice(3)):[o.x,o.y,t[2]].concat(t.splice(3)):[o.x,o.y].concat(t.splice(2)):[o.x,o.y]):(a=(0,c.default)(e,n,t,r),2===(i=Object.keys(t)).length||i.forEach((function(r){if(void 0!==e.name&&\"geocent\"===e.name||void 0!==n.name&&\"geocent\"===n.name){if(\"x\"===r||\"y\"===r||\"z\"===r)return}else if(\"x\"===r||\"y\"===r)return;a[r]=t[r]})),a)}function l(e){return e instanceof i.default?e:e.oProj?e.oProj:(0,i.default)(e)}t.default=function(e,n,t){e=l(e);var r,o=!1;return void 0===n?(n=e,e=u,o=!0):(void 0!==n.x||Array.isArray(n))&&(t=n,n=e,e=u,o=!0),n=l(n),t?f(e,n,t):(r={forward:function(t,r){return f(e,n,t,r)},inverse:function(t,r){return f(n,e,t,r)}},o&&(r.oProj=n),r)}},\n function _(t,e,a,s,i){s();const l=t(1),u=l.__importDefault(t(108)),r=l.__importDefault(t(119)),d=l.__importDefault(t(120)),o=t(128),f=l.__importDefault(t(130)),p=l.__importDefault(t(131)),m=l.__importDefault(t(115)),n=t(132);function h(t,e){if(!(this instanceof h))return new h(t);e=e||function(t){if(t)throw t};var a=(0,u.default)(t);if(\"object\"==typeof a){var s=h.projections.get(a.projName);if(s){if(a.datumCode&&\"none\"!==a.datumCode){var i=(0,m.default)(f.default,a.datumCode);i&&(a.datum_params=a.datum_params||(i.towgs84?i.towgs84.split(\",\"):null),a.ellps=i.ellipse,a.datumName=i.datumName?i.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||\"enu\",a.ellps=a.ellps||\"wgs84\",a.lat1=a.lat1||a.lat0;var l=(0,o.sphere)(a.a,a.b,a.rf,a.ellps,a.sphere),d=(0,o.eccentricity)(l.a,l.b,l.rf,a.R_A),_=(0,n.getNadgrids)(a.nadgrids),c=a.datum||(0,p.default)(a.datumCode,a.datum_params,l.a,l.b,d.es,d.ep2,_);(0,r.default)(this,a),(0,r.default)(this,s),this.a=l.a,this.b=l.b,this.rf=l.rf,this.sphere=l.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=c,this.init(),e(null,this)}else e(t)}else e(t)}h.projections=d.default,h.projections.start(),a.default=h},\n function _(t,r,n,u,e){u();const f=t(1),i=f.__importDefault(t(109)),a=f.__importDefault(t(116)),o=f.__importDefault(t(111)),l=f.__importDefault(t(115));var C=[\"PROJECTEDCRS\",\"PROJCRS\",\"GEOGCS\",\"GEOCCS\",\"PROJCS\",\"LOCAL_CS\",\"GEODCRS\",\"GEODETICCRS\",\"GEODETICDATUM\",\"ENGCRS\",\"ENGINEERINGCRS\"];var d=[\"3857\",\"900913\",\"3785\",\"102113\"];n.default=function(t){if(!function(t){return\"string\"==typeof t}(t))return t;if(function(t){return t in i.default}(t))return i.default[t];if(function(t){return C.some((function(r){return t.indexOf(r)>-1}))}(t)){var r=(0,a.default)(t);if(function(t){var r=(0,l.default)(t,\"authority\");if(r){var n=(0,l.default)(r,\"epsg\");return n&&d.indexOf(n)>-1}}(r))return i.default[\"EPSG:3857\"];var n=function(t){var r=(0,l.default)(t,\"extension\");if(r)return(0,l.default)(r,\"proj4\")}(r);return n?(0,o.default)(n):r}return function(t){return\"+\"===t[0]}(t)?(0,o.default)(t):void 0}},\n function _(t,r,i,e,n){e();const f=t(1),a=f.__importDefault(t(110)),l=f.__importDefault(t(111)),u=f.__importDefault(t(116));function o(t){var r=this;if(2===arguments.length){var i=arguments[1];\"string\"==typeof i?\"+\"===i.charAt(0)?o[t]=(0,l.default)(arguments[1]):o[t]=(0,u.default)(arguments[1]):o[t]=i}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?o.apply(r,t):o(t)}));if(\"string\"==typeof t){if(t in o)return o[t]}else\"EPSG\"in t?o[\"EPSG:\"+t.EPSG]=t:\"ESRI\"in t?o[\"ESRI:\"+t.ESRI]=t:\"IAU2000\"in t?o[\"IAU2000:\"+t.IAU2000]=t:console.log(t);return}}(0,a.default)(o),i.default=o},\n function _(t,l,G,S,e){S(),G.default=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\"]}},\n function _(t,n,o,a,u){a();const e=t(1),r=t(112),i=e.__importDefault(t(113)),f=e.__importDefault(t(114)),l=e.__importDefault(t(115));o.default=function(t){var n,o,a,u={},e=t.split(\"+\").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split(\"=\");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:\"projName\",datum:\"datumCode\",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*r.D2R},lat_1:function(t){u.lat1=t*r.D2R},lat_2:function(t){u.lat2=t*r.D2R},lat_ts:function(t){u.lat_ts=t*r.D2R},lon_0:function(t){u.long0=t*r.D2R},lon_1:function(t){u.long1=t*r.D2R},lon_2:function(t){u.long2=t*r.D2R},alpha:function(t){u.alpha=parseFloat(t)*r.D2R},gamma:function(t){u.rectified_grid_angle=parseFloat(t)},lonc:function(t){u.longc=t*r.D2R},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(\",\").map((function(t){return parseFloat(t)}))},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var n=(0,l.default)(f.default,t);n&&(u.to_meter=n.to_meter)},from_greenwich:function(t){u.from_greenwich=t*r.D2R},pm:function(t){var n=(0,l.default)(i.default,t);u.from_greenwich=(n||parseFloat(t))*r.D2R},nadgrids:function(t){\"@null\"===t?u.datumCode=\"none\":u.nadgrids=t},axis:function(t){var n=\"ewnsud\";3===t.length&&-1!==n.indexOf(t.substr(0,1))&&-1!==n.indexOf(t.substr(1,1))&&-1!==n.indexOf(t.substr(2,1))&&(u.axis=t)},approx:function(){u.approx=!0}};for(n in e)o=e[n],n in c?\"function\"==typeof(a=c[n])?a(o):u[a]=o:u[n]=o;return\"string\"==typeof u.datumCode&&\"WGS84\"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},\n function _(S,_,P,R,I){R(),P.PJD_3PARAM=1,P.PJD_7PARAM=2,P.PJD_GRIDSHIFT=3,P.PJD_WGS84=4,P.PJD_NODATUM=5,P.SRS_WGS84_SEMIMAJOR=6378137,P.SRS_WGS84_SEMIMINOR=6356752.314,P.SRS_WGS84_ESQUARED=.0066943799901413165,P.SEC_TO_RAD=484813681109536e-20,P.HALF_PI=Math.PI/2,P.SIXTH=.16666666666666666,P.RA4=.04722222222222222,P.RA6=.022156084656084655,P.EPSLN=1e-10,P.D2R=.017453292519943295,P.R2D=57.29577951308232,P.FORTPI=Math.PI/4,P.TWO_PI=2*Math.PI,P.SPI=3.14159265359},\n function _(o,r,a,e,s){e();var n={};a.default=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},\n function _(t,e,f,o,u){o(),f.default={ft:{to_meter:.3048},\"us-ft\":{to_meter:1200/3937}}},\n function _(e,r,t,a,n){a();var o=/[\\s_\\-\\/\\(\\)]/g;t.default=function(e,r){if(e[r])return e[r];for(var t,a=Object.keys(e),n=r.toLowerCase().replace(o,\"\"),f=-1;++f<a.length;)if((t=a[f]).toLowerCase().replace(o,\"\")===n)return e[t]}},\n function _(e,a,t,o,n){o();const r=e(1);var l=.017453292519943295;const d=r.__importDefault(e(117)),i=e(118);function _(e){return e*l}t.default=function(e){var a=(0,d.default)(e),t=a.shift(),o=a.shift();a.unshift([\"name\",o]),a.unshift([\"type\",t]);var n={};return(0,i.sExpr)(a,n),function(e){if(\"GEOGCS\"===e.type?e.projName=\"longlat\":\"LOCAL_CS\"===e.type?(e.projName=\"identity\",e.local=!0):\"object\"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var a=\"\",t=0,o=e.AXIS.length;t<o;++t){var n=[e.AXIS[t][0].toLowerCase(),e.AXIS[t][1].toLowerCase()];-1!==n[0].indexOf(\"north\")||(\"y\"===n[0]||\"lat\"===n[0])&&\"north\"===n[1]?a+=\"n\":-1!==n[0].indexOf(\"south\")||(\"y\"===n[0]||\"lat\"===n[0])&&\"south\"===n[1]?a+=\"s\":-1!==n[0].indexOf(\"east\")||(\"x\"===n[0]||\"lon\"===n[0])&&\"east\"===n[1]?a+=\"e\":-1===n[0].indexOf(\"west\")&&(\"x\"!==n[0]&&\"lon\"!==n[0]||\"west\"!==n[1])||(a+=\"w\")}2===a.length&&(a+=\"u\"),3===a.length&&(e.axis=a)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),\"metre\"===e.units&&(e.units=\"meter\"),e.UNIT.convert&&(\"GEOGCS\"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function l(a){return a*(e.to_meter||1)}\"GEOGCS\"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),\"d_\"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),\"new_zealand_geodetic_datum_1949\"!==e.datumCode&&\"new_zealand_1949\"!==e.datumCode||(e.datumCode=\"nzgd49\"),\"wgs_1984\"!==e.datumCode&&\"world_geodetic_system_1984\"!==e.datumCode||(\"Mercator_Auxiliary_Sphere\"===e.PROJECTION&&(e.sphere=!0),e.datumCode=\"wgs84\"),\"_ferro\"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),\"_jakarta\"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf(\"belge\")&&(e.datumCode=\"rnb72\"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace(\"_19\",\"\").replace(/[Cc]larke\\_18/,\"clrk\"),\"international\"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps=\"intl\"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf(\"osgb_1936\")&&(e.datumCode=\"osgb36\"),~e.datumCode.indexOf(\"osni_1952\")&&(e.datumCode=\"osni52\"),(~e.datumCode.indexOf(\"tm65\")||~e.datumCode.indexOf(\"geodetic_datum_of_1965\"))&&(e.datumCode=\"ire65\"),\"ch1903+\"===e.datumCode&&(e.datumCode=\"ch1903\"),~e.datumCode.indexOf(\"israel\")&&(e.datumCode=\"isr93\")),e.b&&!isFinite(e.b)&&(e.b=e.a),[[\"standard_parallel_1\",\"Standard_Parallel_1\"],[\"standard_parallel_1\",\"Latitude of 1st standard parallel\"],[\"standard_parallel_2\",\"Standard_Parallel_2\"],[\"standard_parallel_2\",\"Latitude of 2nd standard parallel\"],[\"false_easting\",\"False_Easting\"],[\"false_easting\",\"False easting\"],[\"false-easting\",\"Easting at false origin\"],[\"false_northing\",\"False_Northing\"],[\"false_northing\",\"False northing\"],[\"false_northing\",\"Northing at false origin\"],[\"central_meridian\",\"Central_Meridian\"],[\"central_meridian\",\"Longitude of natural origin\"],[\"central_meridian\",\"Longitude of false origin\"],[\"latitude_of_origin\",\"Latitude_Of_Origin\"],[\"latitude_of_origin\",\"Central_Parallel\"],[\"latitude_of_origin\",\"Latitude of natural origin\"],[\"latitude_of_origin\",\"Latitude of false origin\"],[\"scale_factor\",\"Scale_Factor\"],[\"k0\",\"scale_factor\"],[\"latitude_of_center\",\"Latitude_Of_Center\"],[\"latitude_of_center\",\"Latitude_of_center\"],[\"lat0\",\"latitude_of_center\",_],[\"longitude_of_center\",\"Longitude_Of_Center\"],[\"longitude_of_center\",\"Longitude_of_center\"],[\"longc\",\"longitude_of_center\",_],[\"x0\",\"false_easting\",l],[\"y0\",\"false_northing\",l],[\"long0\",\"central_meridian\",_],[\"lat0\",\"latitude_of_origin\",_],[\"lat0\",\"standard_parallel_1\",_],[\"lat1\",\"standard_parallel_1\",_],[\"lat2\",\"standard_parallel_2\",_],[\"azimuth\",\"Azimuth\"],[\"alpha\",\"azimuth\",_],[\"srsCode\",\"name\"]].forEach((function(a){return t=e,n=(o=a)[0],r=o[1],void(!(n in t)&&r in t&&(t[n]=t[r],3===o.length&&(t[n]=o[2](t[n]))));var t,o,n,r})),e.long0||!e.longc||\"Albers_Conic_Equal_Area\"!==e.projName&&\"Lambert_Azimuthal_Equal_Area\"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||\"Stereographic_South_Pole\"!==e.projName&&\"Polar Stereographic (variant B)\"!==e.projName||(e.lat0=_(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(n),n}},\n function _(t,e,r,i,s){i(),r.default=function(t){return new c(t).output()};var h=1,o=/\\s/,n=/[A-Za-z]/,a=/[A-Za-z84_]/,u=/[,\\]]/,d=/[\\d\\.E\\-\\+]/;function c(t){if(\"string\"!=typeof t)throw new Error(\"not a string\");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=h}c.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;o.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case h:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},c.prototype.afterquote=function(t){if('\"'===t)return this.word+='\"',void(this.state=4);if(u.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in afterquote yet, index '+this.place)},c.prototype.afterItem=function(t){return\",\"===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=h)):\"]\"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=h,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},c.prototype.number=function(t){if(!d.test(t)){if(u.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in number yet, index '+this.place)}this.word+=t},c.prototype.quoted=function(t){'\"'!==t?this.word+=t:this.state=5},c.prototype.keyword=function(t){if(a.test(t))this.word+=t;else{if(\"[\"===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=h)}if(!u.test(t))throw new Error(\"havn't handled \\\"\"+t+'\" in keyword yet, index '+this.place);this.afterItem(t)}},c.prototype.neutral=function(t){if(n.test(t))return this.word=t,void(this.state=2);if('\"'===t)return this.word=\"\",void(this.state=4);if(d.test(t))return this.word=t,void(this.state=3);if(!u.test(t))throw new Error(\"havn't handled \\\"\"+t+'\" in neutral yet, index '+this.place);this.afterItem(t)},c.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string \"'+this.text+'\". State is '+this.state)}},\n function _(e,a,r,s,c){function n(e,a,r){Array.isArray(a)&&(r.unshift(a),a=null);var s=a?{}:e,c=r.reduce((function(e,a){return E(a,e),e}),s);a&&(e[a]=c)}function E(e,a){if(Array.isArray(e)){var r=e.shift();if(\"PARAMETER\"===r&&(r=e.shift()),1===e.length)return Array.isArray(e[0])?(a[r]={},void E(e[0],a[r])):void(a[r]=e[0]);if(e.length)if(\"TOWGS84\"!==r){if(\"AXIS\"===r)return r in a||(a[r]=[]),void a[r].push(e);var s;switch(Array.isArray(r)||(a[r]={}),r){case\"UNIT\":case\"PRIMEM\":case\"VERT_DATUM\":return a[r]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&E(e[2],a[r]));case\"SPHEROID\":case\"ELLIPSOID\":return a[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&E(e[3],a[r]));case\"PROJECTEDCRS\":case\"PROJCRS\":case\"GEOGCS\":case\"GEOCCS\":case\"PROJCS\":case\"LOCAL_CS\":case\"GEODCRS\":case\"GEODETICCRS\":case\"GEODETICDATUM\":case\"EDATUM\":case\"ENGINEERINGDATUM\":case\"VERT_CS\":case\"VERTCRS\":case\"VERTICALCRS\":case\"COMPD_CS\":case\"COMPOUNDCRS\":case\"ENGINEERINGCRS\":case\"ENGCRS\":case\"FITTED_CS\":case\"LOCAL_DATUM\":case\"DATUM\":return e[0]=[\"name\",e[0]],void n(a,r,e);default:for(s=-1;++s<e.length;)if(!Array.isArray(e[s]))return E(e,a[r]);return n(a,r,e)}}else a[r]=e;else a[r]=!0}else a[e]=!0}s(),r.sExpr=E},\n function _(n,r,f,i,t){i(),f.default=function(n,r){var f,i;if(n=n||{},!r)return n;for(i in r)void 0!==(f=r[i])&&(n[i]=f);return n}},\n function _(t,o,a,e,n){e();const r=t(1),f=r.__importDefault(t(121)),u=r.__importDefault(t(127));var i=[f.default,u.default],c={},d=[];function s(t,o){var a=d.length;return t.names?(d[a]=t,t.names.forEach((function(t){c[t.toLowerCase()]=a})),this):(console.log(o),!0)}function l(t){if(!t)return!1;var o=t.toLowerCase();return void 0!==c[o]&&d[c[o]]?d[c[o]]:void 0}function v(){i.forEach(s)}a.add=s,a.get=l,a.start=v,a.default={start:v,add:s,get:l}},\n function _(t,i,s,h,a){h();const e=t(1),r=e.__importDefault(t(122)),n=e.__importDefault(t(123)),l=e.__importDefault(t(125)),u=e.__importDefault(t(126)),o=t(112);function f(){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=(0,r.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function _(t){var i,s,h=t.x,a=t.y;if(a*o.R2D>90&&a*o.R2D<-90&&h*o.R2D>180&&h*o.R2D<-180)return null;if(Math.abs(Math.abs(a)-o.HALF_PI)<=o.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*(0,n.default)(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(o.FORTPI+.5*a));else{var e=Math.sin(a),r=(0,l.default)(this.e,a,e);i=this.x0+this.a*this.k0*(0,n.default)(h-this.long0),s=this.y0-this.a*this.k0*Math.log(r)}return t.x=i,t.y=s,t}function M(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=o.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var e=Math.exp(-a/(this.a*this.k0));if(-9999===(s=(0,u.default)(this.e,e)))return null}return i=(0,n.default)(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.init=f,s.forward=_,s.inverse=M,s.names=[\"Mercator\",\"Popular Visualisation Pseudo Mercator\",\"Mercator_1SP\",\"Mercator_Auxiliary_Sphere\",\"merc\"],s.default={init:f,forward:_,inverse:M,names:s.names}},\n function _(t,n,r,u,a){u(),r.default=function(t,n,r){var u=t*n;return r/Math.sqrt(1-u*u)}},\n function _(t,n,u,a,f){a();const e=t(1),o=t(112),_=e.__importDefault(t(124));u.default=function(t){return Math.abs(t)<=o.SPI?t:t-(0,_.default)(t)*o.TWO_PI}},\n function _(n,t,u,f,c){f(),u.default=function(n){return n<0?-1:1}},\n function _(t,n,a,o,u){o();const c=t(112);a.default=function(t,n,a){var o=t*a,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(c.HALF_PI-n))/o}},\n function _(t,a,n,r,f){r();const h=t(112);n.default=function(t,a){for(var n,r,f=.5*t,o=h.HALF_PI-2*Math.atan(a),u=0;u<=15;u++)if(n=t*Math.sin(o),o+=r=h.HALF_PI-2*Math.atan(a*Math.pow((1-n)/(1+n),f))-o,Math.abs(r)<=1e-10)return o;return-9999}},\n function _(n,i,e,t,r){function a(){}function f(n){return n}t(),e.init=a,e.forward=f,e.inverse=f,e.names=[\"longlat\",\"identity\"],e.default={init:a,forward:f,inverse:f,names:e.names}},\n function _(t,r,e,a,n){a();const f=t(1),i=t(112),u=f.__importStar(t(129)),c=f.__importDefault(t(115));e.eccentricity=function(t,r,e,a){var n=t*t,f=r*r,u=(n-f)/n,c=0;return a?(n=(t*=1-u*(i.SIXTH+u*(i.RA4+u*i.RA6)))*t,u=0):c=Math.sqrt(u),{es:u,e:c,ep2:(n-f)/f}},e.sphere=function(t,r,e,a,n){if(!t){var f=(0,c.default)(u.default,a);f||(f=u.WGS84),t=f.a,r=f.b,e=f.rf}return e&&!r&&(r=(1-1/e)*t),(0===e||Math.abs(t-r)<i.EPSLN)&&(n=!0,r=t),{a:t,b:r,rf:e,sphere:n}}},\n function _(e,a,l,s,r){s();var i={};l.default=i,i.MERIT={a:6378137,rf:298.257,ellipseName:\"MERIT 1983\"},i.SGS85={a:6378136,rf:298.257,ellipseName:\"Soviet Geodetic System 85\"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:\"GRS 1980(IUGG, 1980)\"},i.IAU76={a:6378140,rf:298.257,ellipseName:\"IAU 1976\"},i.airy={a:6377563.396,b:6356256.91,ellipseName:\"Airy 1830\"},i.APL4={a:6378137,rf:298.25,ellipseName:\"Appl. Physics. 1965\"},i.NWL9D={a:6378145,rf:298.25,ellipseName:\"Naval Weapons Lab., 1965\"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:\"Modified Airy\"},i.andrae={a:6377104.43,rf:300,ellipseName:\"Andrae 1876 (Den., Iclnd.)\"},i.aust_SA={a:6378160,rf:298.25,ellipseName:\"Australian Natl & S. Amer. 1969\"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:\"GRS 67(IUGG 1967)\"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:\"Bessel 1841\"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:\"Bessel 1841 (Namibia)\"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:\"Clarke 1866\"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:\"Clarke 1880 mod.\"},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:\"Clarke 1858\"},i.CPM={a:6375738.7,rf:334.29,ellipseName:\"Comm. des Poids et Mesures 1799\"},i.delmbr={a:6376428,rf:311.5,ellipseName:\"Delambre 1810 (Belgium)\"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:\"Engelis 1985\"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:\"Everest 1830\"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:\"Everest 1948\"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:\"Everest 1956\"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:\"Everest 1969\"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:\"Everest (Sabah & Sarawak)\"},i.fschr60={a:6378166,rf:298.3,ellipseName:\"Fischer (Mercury Datum) 1960\"},i.fschr60m={a:6378155,rf:298.3,ellipseName:\"Fischer 1960\"},i.fschr68={a:6378150,rf:298.3,ellipseName:\"Fischer 1968\"},i.helmert={a:6378200,rf:298.3,ellipseName:\"Helmert 1906\"},i.hough={a:6378270,rf:297,ellipseName:\"Hough\"},i.intl={a:6378388,rf:297,ellipseName:\"International 1909 (Hayford)\"},i.kaula={a:6378163,rf:298.24,ellipseName:\"Kaula 1961\"},i.lerch={a:6378139,rf:298.257,ellipseName:\"Lerch 1979\"},i.mprts={a:6397300,rf:191,ellipseName:\"Maupertius 1738\"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:\"New International 1967\"},i.plessis={a:6376523,rf:6355863,ellipseName:\"Plessis 1817 (France)\"},i.krass={a:6378245,rf:298.3,ellipseName:\"Krassovsky, 1942\"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:\"Southeast Asia\"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:\"Walbeck\"},i.WGS60={a:6378165,rf:298.3,ellipseName:\"WGS 60\"},i.WGS66={a:6378145,rf:298.25,ellipseName:\"WGS 66\"},i.WGS7={a:6378135,rf:298.26,ellipseName:\"WGS 72\"},l.WGS84=i.WGS84={a:6378137,rf:298.257223563,ellipseName:\"WGS 84\"},i.sphere={a:6370997,b:6370997,ellipseName:\"Normal Sphere (r=6370997)\"}},\n function _(e,a,s,t,l){t();var m={};s.default=m,m.wgs84={towgs84:\"0,0,0\",ellipse:\"WGS84\",datumName:\"WGS84\"},m.ch1903={towgs84:\"674.374,15.056,405.346\",ellipse:\"bessel\",datumName:\"swiss\"},m.ggrs87={towgs84:\"-199.87,74.79,246.62\",ellipse:\"GRS80\",datumName:\"Greek_Geodetic_Reference_System_1987\"},m.nad83={towgs84:\"0,0,0\",ellipse:\"GRS80\",datumName:\"North_American_Datum_1983\"},m.nad27={nadgrids:\"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat\",ellipse:\"clrk66\",datumName:\"North_American_Datum_1927\"},m.potsdam={towgs84:\"598.1,73.7,418.2,0.202,0.045,-2.455,6.7\",ellipse:\"bessel\",datumName:\"Potsdam Rauenberg 1950 DHDN\"},m.carthage={towgs84:\"-263.0,6.0,431.0\",ellipse:\"clark80\",datumName:\"Carthage 1934 Tunisia\"},m.hermannskogel={towgs84:\"577.326,90.129,463.919,5.137,1.474,5.297,2.4232\",ellipse:\"bessel\",datumName:\"Hermannskogel\"},m.osni52={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"airy\",datumName:\"Irish National\"},m.ire65={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"mod_airy\",datumName:\"Ireland 1965\"},m.rassadiran={towgs84:\"-133.63,-157.5,-158.62\",ellipse:\"intl\",datumName:\"Rassadiran\"},m.nzgd49={towgs84:\"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993\",ellipse:\"intl\",datumName:\"New Zealand Geodetic Datum 1949\"},m.osgb36={towgs84:\"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894\",ellipse:\"airy\",datumName:\"Airy 1830\"},m.s_jtsk={towgs84:\"589,76,480\",ellipse:\"bessel\",datumName:\"S-JTSK (Ferro)\"},m.beduaram={towgs84:\"-106,-87,188\",ellipse:\"clrk80\",datumName:\"Beduaram\"},m.gunung_segara={towgs84:\"-403,684,41\",ellipse:\"bessel\",datumName:\"Gunung Segara Jakarta\"},m.rnb72={towgs84:\"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1\",ellipse:\"intl\",datumName:\"Reseau National Belge 1972\"}},\n function _(a,m,_,t,u){t();const d=a(112);_.default=function(a,m,_,t,u,p,r){var s={};return s.datum_type=void 0===a||\"none\"===a?d.PJD_NODATUM:d.PJD_WGS84,m&&(s.datum_params=m.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=d.PJD_3PARAM),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=d.PJD_7PARAM,s.datum_params[3]*=d.SEC_TO_RAD,s.datum_params[4]*=d.SEC_TO_RAD,s.datum_params[5]*=d.SEC_TO_RAD,s.datum_params[6]=s.datum_params[6]/1e6+1))),r&&(s.datum_type=d.PJD_GRIDSHIFT,s.grids=r),s.a=_,s.b=t,s.es=u,s.ep2=p,s}},\n function _(t,e,n,r,i){r();var u={};function l(t){if(0===t.length)return null;var e=\"@\"===t[0];return e&&(t=t.slice(1)),\"null\"===t?{name:\"null\",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:u[t]||null,isNull:!1}}function o(t){return t/3600*Math.PI/180}function a(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function d(t){return t.map((function(t){return[o(t.longitudeShift),o(t.latitudeShift)]}))}function g(t,e,n){return{name:a(t,e+8,e+16).trim(),parent:a(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function s(t,e,n,r){for(var i=e+176,u=[],l=0;l<n.gridNodeCount;l++){var o={latitudeShift:t.getFloat32(i+16*l,r),longitudeShift:t.getFloat32(i+16*l+4,r),latitudeAccuracy:t.getFloat32(i+16*l+8,r),longitudeAccuracy:t.getFloat32(i+16*l+12,r)};u.push(o)}return u}n.default=function(t,e){var n=new DataView(e),r=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn(\"Failed to detect nadgrid endian-ness, defaulting to little-endian\");return!0}(n),i=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:a(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(n,r);i.nSubgrids>1&&console.log(\"Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored\");var l=function(t,e,n){for(var r=176,i=[],u=0;u<e.nSubgrids;u++){var l=g(t,r,n),a=s(t,r,l,n),f=Math.round(1+(l.upperLongitude-l.lowerLongitude)/l.longitudeInterval),c=Math.round(1+(l.upperLatitude-l.lowerLatitude)/l.latitudeInterval);i.push({ll:[o(l.lowerLongitude),o(l.lowerLatitude)],del:[o(l.longitudeInterval),o(l.latitudeInterval)],lim:[f,c],count:l.gridNodeCount,cvs:d(a)})}return i}(n,i,r),f={header:i,subgrids:l};return u[t]=f,f},n.getNadgrids=function(t){return void 0===t?null:t.split(\",\").map(l)}},\n function _(t,e,a,u,m){u();const r=t(1),_=t(112),d=r.__importDefault(t(134)),o=r.__importDefault(t(136)),f=r.__importDefault(t(107)),i=r.__importDefault(t(137)),n=r.__importDefault(t(138));a.default=function t(e,a,u,m){var r,y=void 0!==(u=Array.isArray(u)?(0,i.default)(u):{x:u.x,y:u.y,z:u.z,m:u.m}).z;if((0,n.default)(u),e.datum&&a.datum&&function(t,e){return(t.datum.datum_type===_.PJD_3PARAM||t.datum.datum_type===_.PJD_7PARAM||t.datum.datum_type===_.PJD_GRIDSHIFT)&&\"WGS84\"!==e.datumCode||(e.datum.datum_type===_.PJD_3PARAM||e.datum.datum_type===_.PJD_7PARAM||e.datum.datum_type===_.PJD_GRIDSHIFT)&&\"WGS84\"!==t.datumCode}(e,a)&&(u=t(e,r=new f.default(\"WGS84\"),u,m),e=r),m&&\"enu\"!==e.axis&&(u=(0,o.default)(e,!1,u)),\"longlat\"===e.projName)u={x:u.x*_.D2R,y:u.y*_.D2R,z:u.z||0};else if(e.to_meter&&(u={x:u.x*e.to_meter,y:u.y*e.to_meter,z:u.z||0}),!(u=e.inverse(u)))return;if(e.from_greenwich&&(u.x+=e.from_greenwich),u=(0,d.default)(e.datum,a.datum,u))return a.from_greenwich&&(u={x:u.x-a.from_greenwich,y:u.y,z:u.z||0}),\"longlat\"===a.projName?u={x:u.x*_.R2D,y:u.y*_.R2D,z:u.z||0}:(u=a.forward(u),a.to_meter&&(u={x:u.x/a.to_meter,y:u.y/a.to_meter,z:u.z||0})),m&&\"enu\"!==a.axis?(0,o.default)(a,!0,u):(y||delete u.z,u)}},\n function _(r,e,t,a,i){a();const l=r(1),n=r(112),o=r(135),u=l.__importDefault(r(123));function d(r){return r===n.PJD_3PARAM||r===n.PJD_7PARAM}function s(r,e,t){if(null===r.grids||0===r.grids.length)return console.log(\"Grid shift grids not found\"),-1;for(var a={x:-t.x,y:t.y},i={x:Number.NaN,y:Number.NaN},l=[],o=0;o<r.grids.length;o++){var u=r.grids[o];if(l.push(u.name),u.isNull){i=a;break}if(u.mandatory,null!==u.grid){var d=u.grid.subgrids[0],s=(Math.abs(d.del[1])+Math.abs(d.del[0]))/1e4,f=d.ll[0]-s,x=d.ll[1]-s,m=d.ll[0]+(d.lim[0]-1)*d.del[0]+s,N=d.ll[1]+(d.lim[1]-1)*d.del[1]+s;if(!(x>a.y||f>a.x||N<a.y||m<a.x||(i=y(a,e,d),isNaN(i.x))))break}else if(u.mandatory)return console.log(\"Unable to find mandatory grid '\"+u.name+\"'\"),-1}return isNaN(i.x)?(console.log(\"Failed to find a grid shift table for location '\"+-a.x*n.R2D+\" \"+a.y*n.R2D+\" tried: '\"+l+\"'\"),-1):(t.x=-i.x,t.y=i.y,0)}function y(r,e,t){var a={x:Number.NaN,y:Number.NaN};if(isNaN(r.x))return a;var i={x:r.x,y:r.y};i.x-=t.ll[0],i.y-=t.ll[1],i.x=(0,u.default)(i.x-Math.PI)+Math.PI;var l=f(i,t);if(e){if(isNaN(l.x))return a;l.x=i.x-l.x,l.y=i.y-l.y;var n,o,d=9;do{if(o=f(l,t),isNaN(o.x)){console.log(\"Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.\");break}n={x:i.x-(o.x+l.x),y:i.y-(o.y+l.y)},l.x+=n.x,l.y+=n.y}while(d--&&Math.abs(n.x)>1e-12&&Math.abs(n.y)>1e-12);if(d<0)return console.log(\"Inverse grid shift iterator failed to converge.\"),a;a.x=(0,u.default)(l.x+t.ll[0]),a.y=l.y+t.ll[1]}else isNaN(l.x)||(a.x=r.x+l.x,a.y=r.y+l.y);return a}function f(r,e){var t,a={x:r.x/e.del[0],y:r.y/e.del[1]},i=Math.floor(a.x),l=Math.floor(a.y),n=a.x-1*i,o=a.y-1*l,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=e.lim[0])return u;if(l<0||l>=e.lim[1])return u;t=l*e.lim[0]+i;var d=e.cvs[t][0],s=e.cvs[t][1];t++;var y=e.cvs[t][0],f=e.cvs[t][1];t+=e.lim[0];var x=e.cvs[t][0],m=e.cvs[t][1];t--;var N=e.cvs[t][0],c=e.cvs[t][1],_=n*o,g=n*(1-o),v=(1-n)*(1-o),S=(1-n)*o;return u.x=v*d+g*y+S*N+_*x,u.y=v*s+g*f+S*c+_*m,u}t.default=function(r,e,t){if((0,o.compareDatums)(r,e))return t;if(r.datum_type===n.PJD_NODATUM||e.datum_type===n.PJD_NODATUM)return t;var a=r.a,i=r.es;if(r.datum_type===n.PJD_GRIDSHIFT){if(0!==s(r,!1,t))return;a=n.SRS_WGS84_SEMIMAJOR,i=n.SRS_WGS84_ESQUARED}var l=e.a,u=e.b,y=e.es;if(e.datum_type===n.PJD_GRIDSHIFT&&(l=n.SRS_WGS84_SEMIMAJOR,u=n.SRS_WGS84_SEMIMINOR,y=n.SRS_WGS84_ESQUARED),i===y&&a===l&&!d(r.datum_type)&&!d(e.datum_type))return t;if(t=(0,o.geodeticToGeocentric)(t,i,a),d(r.datum_type)&&(t=(0,o.geocentricToWgs84)(t,r.datum_type,r.datum_params)),d(e.datum_type)&&(t=(0,o.geocentricFromWgs84)(t,e.datum_type,e.datum_params)),t=(0,o.geocentricToGeodetic)(t,y,l,u),e.datum_type===n.PJD_GRIDSHIFT&&0!==s(e,!0,t))return;return t},t.applyGridShift=s},\n function _(a,t,r,m,s){m();const u=a(112);r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===u.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==u.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,s,_,e,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-u.HALF_PI&&d>-1.001*u.HALF_PI)d=-u.HALF_PI;else if(d>u.HALF_PI&&d<1.001*u.HALF_PI)d=u.HALF_PI;else{if(d<-u.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>u.HALF_PI)return{x:1/0,y:1/0,z:a.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(d),e=Math.cos(d),_=s*s,{x:((m=r/Math.sqrt(1-t*_))+i)*e*Math.cos(n),y:(m+i)*e*Math.sin(n),z:(m*(1-t)+i)*s}},r.geocentricToGeodetic=function(a,t,r,m){var s,_,e,n,d,i,p,P,y,z,M,o,A,c,x,h=1e-12,f=a.x,I=a.y,F=a.z?a.z:0;if(s=Math.sqrt(f*f+I*I),_=Math.sqrt(f*f+I*I+F*F),s/r<h){if(c=0,_/r<h)return u.HALF_PI,x=-m,{x:a.x,y:a.y,z:a.z}}else c=Math.atan2(I,f);e=F/_,P=(n=s/_)*(1-t)*(d=1/Math.sqrt(1-t*(2-t)*n*n)),y=e*d,A=0;do{A++,i=t*(p=r/Math.sqrt(1-t*y*y))/(p+(x=s*P+F*y-p*(1-t*y*y))),o=(M=e*(d=1/Math.sqrt(1-i*(2-i)*n*n)))*P-(z=n*(1-i)*d)*y,P=z,y=M}while(o*o>1e-24&&A<30);return{x:c,y:Math.atan(M/Math.abs(z)),z:x}},r.geocentricToWgs84=function(a,t,r){if(t===u.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===u.PJD_7PARAM){var m=r[0],s=r[1],_=r[2],e=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-e*a.z)+s,z:i*(-n*a.x+e*a.y+a.z)+_}}},r.geocentricFromWgs84=function(a,t,r){if(t===u.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===u.PJD_7PARAM){var m=r[0],s=r[1],_=r[2],e=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-s)/i,y=(a.z-_)/i;return{x:p+d*P-n*y,y:-d*p+P+e*y,z:n*p-e*P+y}}}},\n function _(e,a,i,s,n){s(),i.default=function(e,a,i){var s,n,r,c=i.x,d=i.y,f=i.z||0,u={};for(r=0;r<3;r++)if(!a||2!==r||void 0!==i.z)switch(0===r?(s=c,n=-1!==\"ew\".indexOf(e.axis[r])?\"x\":\"y\"):1===r?(s=d,n=-1!==\"ns\".indexOf(e.axis[r])?\"y\":\"x\"):(s=f,n=\"z\"),e.axis[r]){case\"e\":case\"n\":u[n]=s;break;case\"w\":case\"s\":u[n]=-s;break;case\"u\":void 0!==i[n]&&(u.z=s);break;case\"d\":void 0!==i[n]&&(u.z=-s);break;default:return null}return u}},\n function _(n,t,e,u,f){u(),e.default=function(n){var t={x:n[0],y:n[1]};return n.length>2&&(t.z=n[2]),n.length>3&&(t.m=n[3]),t}},\n function _(e,i,n,t,r){function o(e){if(\"function\"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError(\"coordinates must be finite numbers\")}if(\"number\"!=typeof e||e!=e||!isFinite(e))throw new TypeError(\"coordinates must be finite numbers\")}t(),n.default=function(e){o(e.x),o(e.y)}},\n function _(e,i,s,o,n){var l,t,a,r,_;o();const c=e(1),d=e(140),p=e(78),T=c.__importStar(e(17));class m extends d.MarkingView{}s.ArrowHeadView=m,m.__name__=\"ArrowHeadView\";class v extends d.Marking{constructor(e){super(e)}}s.ArrowHead=v,l=v,v.__name__=\"ArrowHead\",l.define((()=>({size:[T.NumberSpec,25]})));class u extends m{clip(e,i){this.visuals.line.set_vectorize(e,i);const s=this.size.get(i);e.moveTo(.5*s,s),e.lineTo(.5*s,-2),e.lineTo(-.5*s,-2),e.lineTo(-.5*s,s),e.lineTo(0,0),e.lineTo(.5*s,s)}render(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,s),e.lineTo(0,0),e.lineTo(-.5*s,s),this.visuals.line.apply(e,i)}}s.OpenHeadView=u,u.__name__=\"OpenHeadView\";class h extends v{constructor(e){super(e)}}s.OpenHead=h,t=h,h.__name__=\"OpenHead\",t.prototype.default_view=u,t.mixins(p.LineVector);class V extends m{clip(e,i){this.visuals.line.set_vectorize(e,i);const s=this.size.get(i);e.moveTo(.5*s,s),e.lineTo(.5*s,-2),e.lineTo(-.5*s,-2),e.lineTo(-.5*s,s),e.lineTo(.5*s,s)}render(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,s),e.lineTo(0,0),e.lineTo(-.5*s,s),e.closePath(),this.visuals.fill.apply(e,i),this.visuals.line.apply(e,i)}}s.NormalHeadView=V,V.__name__=\"NormalHeadView\";class H extends v{constructor(e){super(e)}}s.NormalHead=H,a=H,H.__name__=\"NormalHead\",a.prototype.default_view=V,a.mixins([p.LineVector,p.FillVector]),a.override({fill_color:\"black\"});class w extends m{clip(e,i){this.visuals.line.set_vectorize(e,i);const s=this.size.get(i);e.moveTo(.5*s,s),e.lineTo(.5*s,-2),e.lineTo(-.5*s,-2),e.lineTo(-.5*s,s),e.lineTo(0,.5*s),e.lineTo(.5*s,s)}render(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,s),e.lineTo(0,0),e.lineTo(-.5*s,s),e.lineTo(0,.5*s),e.closePath(),this.visuals.fill.apply(e,i),this.visuals.line.apply(e,i)}}s.VeeHeadView=w,w.__name__=\"VeeHeadView\";class x extends v{constructor(e){super(e)}}s.VeeHead=x,r=x,x.__name__=\"VeeHead\",r.prototype.default_view=w,r.mixins([p.LineVector,p.FillVector]),r.override({fill_color:\"black\"});class g extends m{render(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,0),e.lineTo(-.5*s,0),this.visuals.line.apply(e,i)}clip(e,i){}}s.TeeHeadView=g,g.__name__=\"TeeHeadView\";class z extends v{constructor(e){super(e)}}s.TeeHead=z,_=z,z.__name__=\"TeeHead\",_.prototype.default_view=g,_.mixins(p.LineVector)},\n function _(e,t,n,i,s){var a;i();const r=e(1),c=e(50),o=e(54),_=r.__importStar(e(75)),u=r.__importStar(e(17));class l extends o.View{initialize(){super.initialize(),this.visuals=new _.Visuals(this)}request_render(){this.parent.request_render()}get canvas(){return this.parent.canvas}set_data(e,t){const n=this;for(const i of this.model){if(!(i instanceof u.VectorSpec||i instanceof u.ScalarSpec))continue;const s=i.uniform(e).select(t);n[`${i.attr}`]=s}}}n.MarkingView=l,l.__name__=\"MarkingView\";class d extends c.Model{constructor(e){super(e)}}n.Marking=d,a=d,d.__name__=\"Marking\",a.define((({})=>({})))},\n function _(t,e,i,r,o){var a;r();const n=t(1),s=t(73),_=t(142),l=t(157),h=t(158),c=t(161),u=t(192),d=t(162),p=t(219),m=t(163),f=t(223),g=t(225),w=t(147),b=t(19),y=n.__importStar(t(78)),x=t(226),v=t(227),j=t(229),k=t(144),z=t(59),B=t(57),L=t(8),T=t(9);class S extends s.AnnotationView{get orientation(){return this._orientation}*children(){yield*super.children(),yield this._axis_view,yield this._title_view}initialize(){super.initialize();const{ticker:t,formatter:e}=this.model;this._ticker=\"auto\"!=t?t:this._create_ticker(),this._formatter=\"auto\"!=e?e:this._create_formatter(),this._major_range=this._create_major_range(),this._major_scale=this._create_major_scale(),this._minor_range=new g.Range1d({start:0,end:1}),this._minor_scale=new f.LinearScale,this._frame=new l.CartesianFrame(this._major_scale,this._minor_scale,this._major_range,this._minor_range),this._axis=this._create_axis(),this._apply_axis_properties(),this._title=new _.Title,this._apply_title_properties()}async lazy_initialize(){await super.lazy_initialize();const t=this,e={get parent(){return t.parent},get root(){return t.root},get frame(){return t._frame},get canvas_view(){return t.parent.canvas_view},request_layout(){t.parent.request_layout()},request_paint(){t.parent.request_paint(t)},request_render(){t.request_paint()}};this._axis_view=await(0,z.build_view)(this._axis,{parent:e}),this._title_view=await(0,z.build_view)(this._title,{parent:e})}remove(){this._title_view.remove(),this._axis_view.remove(),super.remove()}_apply_axis_properties(){const t=Object.assign(Object.assign(Object.assign({ticker:this._ticker,formatter:this._formatter,major_label_standoff:this.model.label_standoff,axis_line_color:null,major_tick_in:this.model.major_tick_in,major_tick_out:this.model.major_tick_out,minor_tick_in:this.model.minor_tick_in,minor_tick_out:this.model.minor_tick_out,major_label_overrides:this.model.major_label_overrides,major_label_policy:this.model.major_label_policy},y.attrs_of(this.model,\"major_label_\",y.Text,!0)),y.attrs_of(this.model,\"major_tick_\",y.Line,!0)),y.attrs_of(this.model,\"minor_tick_\",y.Line,!0));this._axis.setv(t)}_apply_title_properties(){var t;const e=Object.assign({text:null!==(t=this.model.title)&&void 0!==t?t:\"\",standoff:this.model.title_standoff},y.attrs_of(this.model,\"title_\",y.Text,!1));this._title.setv(e)}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this._apply_title_properties(),this._apply_axis_properties()})),this.connect(this._ticker.change,(()=>this.request_render())),this.connect(this._formatter.change,(()=>this.request_render()))}_update_frame(){const[t,e,i,r]=(()=>\"horizontal\"==this.orientation?[this._major_scale,this._minor_scale,this._major_range,this._minor_range]:[this._minor_scale,this._major_scale,this._minor_range,this._major_range])();this._frame.in_x_scale=t,this._frame.in_y_scale=e,this._frame.x_range=i,this._frame.y_range=r,this._frame.configure_scales()}update_layout(){const{location:t,width:e,height:i,padding:r,margin:o}=this.model,[a,n]=(()=>{if(!(0,L.isString)(t))return[\"end\",\"start\"];switch(t){case\"top_left\":return[\"start\",\"start\"];case\"top\":case\"top_center\":return[\"start\",\"center\"];case\"top_right\":return[\"start\",\"end\"];case\"bottom_left\":return[\"end\",\"start\"];case\"bottom\":case\"bottom_center\":return[\"end\",\"center\"];case\"bottom_right\":return[\"end\",\"end\"];case\"left\":case\"center_left\":return[\"center\",\"start\"];case\"center\":case\"center_center\":return[\"center\",\"center\"];case\"right\":case\"center_right\":return[\"center\",\"end\"]}})(),s=this._orientation=(()=>{const{orientation:t}=this.model;return\"auto\"==t?null!=this.panel?this.panel.is_horizontal?\"horizontal\":\"vertical\":\"start\"==n||\"end\"==n||\"center\"==a?\"vertical\":\"horizontal\":t})();this._update_frame();const _=new v.NodeLayout,l=new v.VStack,h=new v.VStack,c=new v.HStack,u=new v.HStack;_.absolute=!0,l.absolute=!0,h.absolute=!0,c.absolute=!0,u.absolute=!0,_.on_resize((t=>this._frame.set_geometry(t)));const d=new j.BorderLayout;this._inner_layout=d,d.absolute=!0,d.center_panel=_,d.top_panel=l,d.bottom_panel=h,d.left_panel=c,d.right_panel=u;const p={left:r,right:r,top:r,bottom:r},m=(()=>{if(null==this.panel){if((0,L.isString)(t))return{left:o,right:o,top:o,bottom:o};{const[e,i]=t;return{left:e,right:o,top:o,bottom:i}}}if(!(0,L.isString)(t)){const[e,i]=t;return d.fixup_geometry=(t,r)=>{const o=t,a=this.layout.bbox,{width:n,height:s}=t;if(t=new B.BBox({left:a.left+e,bottom:a.bottom-i,width:n,height:s}),null!=r){const e=t.left-o.left,i=t.top-o.top,{left:a,top:n,width:s,height:_}=r;r=new B.BBox({left:a+e,top:n+i,width:s,height:_})}return[t,r]},{left:e,right:0,top:0,bottom:i}}d.fixup_geometry=(t,e)=>{const i=t;if(\"horizontal\"==s){const{top:e,width:i,height:r}=t;if(\"end\"==n){const{right:o}=this.layout.bbox;t=new B.BBox({right:o,top:e,width:i,height:r})}else if(\"center\"==n){const{hcenter:o}=this.layout.bbox;t=new B.BBox({hcenter:Math.round(o),top:e,width:i,height:r})}}else{const{left:e,width:i,height:r}=t;if(\"end\"==a){const{bottom:o}=this.layout.bbox;t=new B.BBox({left:e,bottom:o,width:i,height:r})}else if(\"center\"==a){const{vcenter:o}=this.layout.bbox;t=new B.BBox({left:e,vcenter:Math.round(o),width:i,height:r})}}if(null!=e){const r=t.left-i.left,o=t.top-i.top,{left:a,top:n,width:s,height:_}=e;e=new B.BBox({left:a+r,top:n+o,width:s,height:_})}return[t,e]}})();let f,g,w,b;if(d.padding=p,null!=this.panel)f=\"max\",g=void 0,w=void 0,b=void 0;else if(\"auto\"==(\"horizontal\"==s?e:i)){f=\"fixed\";const t=this._get_major_size_factor();null!=t&&(g=25*t),w={percent:.3},b={percent:.8}}else f=\"fit\",g=void 0;if(\"horizontal\"==s){const t=\"auto\"==e?void 0:e,r=\"auto\"==i?25:i;d.set_sizing({width_policy:f,height_policy:\"min\",width:g,min_width:w,max_width:b,halign:n,valign:a,margin:m}),d.center_panel.set_sizing({width_policy:\"auto\"==e?\"fit\":\"fixed\",height_policy:\"fixed\",width:t,height:r})}else{const t=\"auto\"==e?25:e,r=\"auto\"==i?void 0:i;d.set_sizing({width_policy:\"min\",height_policy:f,height:g,min_height:w,max_height:b,halign:n,valign:a,margin:m}),d.center_panel.set_sizing({width_policy:\"fixed\",height_policy:\"auto\"==i?\"fit\":\"fixed\",width:t,height:r})}l.set_sizing({width_policy:\"fit\",height_policy:\"min\"}),h.set_sizing({width_policy:\"fit\",height_policy:\"min\"}),c.set_sizing({width_policy:\"min\",height_policy:\"fit\"}),u.set_sizing({width_policy:\"min\",height_policy:\"fit\"});const{_title_view:y}=this;\"horizontal\"==s?(y.panel=new k.Panel(\"above\"),y.update_layout(),l.children.push(y.layout)):(y.panel=new k.Panel(\"left\"),y.update_layout(),c.children.push(y.layout));const{panel:z}=this,T=null!=z&&s==z.orientation?z.side:\"horizontal\"==s?\"below\":\"right\",S=(()=>{switch(T){case\"above\":return l;case\"below\":return h;case\"left\":return c;case\"right\":return u}})(),{_axis_view:O}=this;if(O.panel=new k.Panel(T),O.update_layout(),S.children.push(O.layout),null!=this.panel){const t=new x.Grid([{layout:d,row:0,col:0}]);t.absolute=!0,\"horizontal\"==s?t.set_sizing({width_policy:\"max\",height_policy:\"min\"}):t.set_sizing({width_policy:\"min\",height_policy:\"max\"}),this.layout=t}else this.layout=this._inner_layout;const{visible:q}=this.model;this.layout.sizing.visible=q}_create_axis(){return new h.LinearAxis}_create_formatter(){return new p.BasicTickFormatter}_create_major_range(){return new g.Range1d({start:0,end:1})}_create_major_scale(){return new f.LinearScale}_create_ticker(){return new u.BasicTicker}_get_major_size_factor(){return null}_render(){const{ctx:t}=this.layer;t.save(),this._paint_bbox(t,this._inner_layout.bbox),this._paint_colors(t,this._inner_layout.center_panel.bbox),this._title_view.render(),this._axis_view.render(),t.restore()}_paint_bbox(t,e){const{x:i,y:r}=e;let{width:o,height:a}=e;i+o>=this.parent.canvas_view.bbox.width&&(o-=1),r+a>=this.parent.canvas_view.bbox.height&&(a-=1),t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(i,r,o,a)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(i,r,o,a)),t.restore()}serializable_state(){const t=super.serializable_state(),{children:e=[]}=t,i=n.__rest(t,[\"children\"]);return e.push(this._title_view.serializable_state()),e.push(this._axis_view.serializable_state()),Object.assign(Object.assign({},i),{children:e})}}i.BaseColorBarView=S,S.__name__=\"BaseColorBarView\";class O extends s.Annotation{constructor(t){super(t)}}i.BaseColorBar=O,a=O,O.__name__=\"BaseColorBar\",a.mixins([[\"major_label_\",y.Text],[\"title_\",y.Text],[\"major_tick_\",y.Line],[\"minor_tick_\",y.Line],[\"border_\",y.Line],[\"bar_\",y.Line],[\"background_\",y.Fill]]),a.define((({Alpha:t,Number:e,String:i,Tuple:r,Map:o,Or:a,Ref:n,Auto:s,Nullable:_})=>({location:[a(b.Anchor,r(e,e)),\"top_right\"],orientation:[a(b.Orientation,s),\"auto\"],title:[_(i),null],title_standoff:[e,2],width:[a(e,s),\"auto\"],height:[a(e,s),\"auto\"],scale_alpha:[t,1],ticker:[a(n(c.Ticker),s),\"auto\"],formatter:[a(n(d.TickFormatter),s),\"auto\"],major_label_overrides:[o(a(i,e),a(i,n(w.BaseText))),new globalThis.Map,{convert:t=>(0,L.isPlainObject)(t)?new T.Dict(t):t}],major_label_policy:[n(m.LabelingPolicy),()=>new m.NoOverlap],label_standoff:[e,5],margin:[e,30],padding:[e,10],major_tick_in:[e,5],major_tick_out:[e,0],minor_tick_in:[e,0],minor_tick_out:[e,0]}))),a.override({background_fill_color:\"#ffffff\",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_font_size:\"11px\",major_tick_line_color:\"#ffffff\",minor_tick_line_color:null,title_text_font_size:\"13px\",title_text_font_style:\"italic\"})},\n function _(e,t,i,s,a){var c;s();const o=e(143),r=e(19);class n extends o.TextAnnotationView{_get_position(){const e=this.model.offset,t=this.model.standoff/2,{align:i,vertical_align:s}=this.model;let a,c;const{bbox:o}=this.layout;switch(this.panel.side){case\"above\":case\"below\":switch(s){case\"top\":c=o.top+t;break;case\"middle\":c=o.vcenter;break;case\"bottom\":c=o.bottom-t}switch(i){case\"left\":a=o.left+e;break;case\"center\":a=o.hcenter;break;case\"right\":a=o.right-e}break;case\"left\":switch(s){case\"top\":a=o.left+t;break;case\"middle\":a=o.hcenter;break;case\"bottom\":a=o.right-t}switch(i){case\"left\":c=o.bottom-e;break;case\"center\":c=o.vcenter;break;case\"right\":c=o.top+e}break;case\"right\":switch(s){case\"top\":a=o.right-t;break;case\"middle\":a=o.hcenter;break;case\"bottom\":a=o.left+t}switch(i){case\"left\":c=o.top+e;break;case\"center\":c=o.vcenter;break;case\"right\":c=o.bottom-e}}return{sx:a,sy:c,x_anchor:i,y_anchor:\"middle\"==s?\"center\":s}}_render(){const e=this._get_position(),t=this.panel.get_label_angle_heuristic(\"parallel\");this._paint(this.layer.ctx,e,t)}_get_size(){if(!this.displayed)return{width:0,height:0};const e=this._text_view.graphics();e.visuals=this.visuals.text.values();const{width:t,height:i}=e._size();return{width:t,height:0==i?0:2+i+this.model.standoff}}}i.TitleView=n,n.__name__=\"TitleView\";class l extends o.TextAnnotation{constructor(e){super(e)}}i.Title=l,c=l,l.__name__=\"Title\",c.prototype.default_view=n,c.define((({Number:e})=>({vertical_align:[r.VerticalAlign,\"bottom\"],align:[r.TextAlign,\"left\"],offset:[e,0],standoff:[e,10]}))),c.override({text_font_size:\"13px\",text_font_style:\"bold\",text_line_height:1})},\n function _(t,i,e,n,s){var a;n();const o=t(1),l=t(73),_=t(144),r=t(147),d=t(59),h=t(8),c=t(148),u=o.__importStar(t(78));class x extends l.AnnotationView{*children(){yield*super.children(),yield this._text_view}async lazy_initialize(){await super.lazy_initialize(),await this._init_text()}async _init_text(){const{text:t}=this.model,i=(0,h.isString)(t)?(0,c.parse_delimited_string)(t):t;this._text_view=await(0,d.build_view)(i,{parent:this})}update_layout(){const{panel:t}=this;this.layout=null!=t?new _.SideLayout(t,(()=>this.get_size()),!0):void 0}connect_signals(){super.connect_signals();const{text:t}=this.model.properties;this.on_change(t,(async()=>{this._text_view.remove(),await this._init_text()})),this.connect(this.model.change,(()=>this.request_render()))}remove(){this._text_view.remove(),super.remove()}has_finished(){return!!super.has_finished()&&!!this._text_view.has_finished()}get displayed(){return super.displayed&&\"\"!=this._text_view.model.text&&this.visuals.text.doit}_paint(t,i,e){const n=this._text_view.graphics();n.angle=e,n.position=i,n.align=\"auto\",n.visuals=this.visuals.text.values();const{background_fill:s,border_line:a}=this.visuals;if(s.doit||a.doit){const{p0:i,p1:e,p2:s,p3:a}=n.rect();t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(e.x,e.y),t.lineTo(s.x,s.y),t.lineTo(a.x,a.y),t.closePath(),this.visuals.background_fill.apply(t),this.visuals.border_line.apply(t)}this.visuals.text.doit&&n.paint(t)}}e.TextAnnotationView=x,x.__name__=\"TextAnnotationView\";class p extends l.Annotation{constructor(t){super(t)}}e.TextAnnotation=p,a=p,p.__name__=\"TextAnnotation\",a.mixins([u.Text,[\"border_\",u.Line],[\"background_\",u.Fill]]),a.define((({String:t,Or:i,Ref:e})=>({text:[i(t,e(r.BaseText)),\"\"]}))),a.override({background_fill_color:null,border_line_color:null})},\n function _(t,e,i,l,r){l();const a=t(145),o=t(146),n=t(8),h=Math.PI/2,s={above:{parallel:0,normal:-h,horizontal:0,vertical:-h},below:{parallel:0,normal:h,horizontal:0,vertical:h},left:{parallel:-h,normal:0,horizontal:0,vertical:-h},right:{parallel:h,normal:0,horizontal:0,vertical:h}},c={above:{parallel:\"bottom\",normal:\"center\",horizontal:\"bottom\",vertical:\"center\"},below:{parallel:\"top\",normal:\"center\",horizontal:\"top\",vertical:\"center\"},left:{parallel:\"bottom\",normal:\"center\",horizontal:\"center\",vertical:\"bottom\"},right:{parallel:\"bottom\",normal:\"center\",horizontal:\"center\",vertical:\"bottom\"}},g={above:{parallel:\"center\",normal:\"left\",horizontal:\"center\",vertical:\"left\"},below:{parallel:\"center\",normal:\"left\",horizontal:\"center\",vertical:\"left\"},left:{parallel:\"center\",normal:\"right\",horizontal:\"right\",vertical:\"center\"},right:{parallel:\"center\",normal:\"left\",horizontal:\"left\",vertical:\"center\"}},_={above:\"right\",below:\"left\",left:\"right\",right:\"left\"},b={above:\"left\",below:\"right\",left:\"right\",right:\"left\"};class z{constructor(t){this.side=t}get dimension(){return\"above\"==this.side||\"below\"==this.side?0:1}get normals(){switch(this.side){case\"above\":return[0,-1];case\"below\":return[0,1];case\"left\":return[-1,0];case\"right\":return[1,0]}}get orientation(){return this.is_horizontal?\"horizontal\":\"vertical\"}get is_horizontal(){return 0==this.dimension}get is_vertical(){return 1==this.dimension}get_label_text_heuristics(t){const{side:e}=this;return(0,n.isString)(t)?{vertical_align:c[e][t],align:g[e][t]}:{vertical_align:\"center\",align:(t<0?_:b)[e]}}get_label_angle_heuristic(t){return(0,n.isString)(t)?s[this.side][t]:-t}}i.Panel=z,z.__name__=\"Panel\";class m extends o.ContentLayoutable{constructor(t,e,i=!1){super(),this.panel=t,this.get_size=e,this.rotate=i,this.panel.is_horizontal?this.set_sizing({width_policy:\"max\",height_policy:\"fixed\"}):this.set_sizing({width_policy:\"fixed\",height_policy:\"max\"})}_content_size(){const{width:t,height:e}=this.get_size();return!this.rotate||this.panel.is_horizontal?new a.Sizeable({width:t,height:e}):new a.Sizeable({width:e,height:t})}has_size_changed(){const{width:t,height:e}=this._content_size();return this.panel.is_horizontal?this.bbox.height!=e:this.bbox.width!=t}}i.SideLayout=m,m.__name__=\"SideLayout\"},\n function _(h,t,i,e,w){e();const n=h(20),{min:d,max:s}=Math;class g{constructor(h={}){this.width=null!=h.width?h.width:0,this.height=null!=h.height?h.height:0}bounded_to({width:h,height:t}){return new g({width:this.width==1/0&&null!=h?h:this.width,height:this.height==1/0&&null!=t?t:this.height})}expanded_to({width:h,height:t}){return new g({width:h!=1/0?s(this.width,h):this.width,height:t!=1/0?s(this.height,t):this.height})}expand_to({width:h,height:t}){this.width=s(this.width,h),this.height=s(this.height,t)}narrowed_to({width:h,height:t}){return new g({width:d(this.width,h),height:d(this.height,t)})}narrow_to({width:h,height:t}){this.width=d(this.width,h),this.height=d(this.height,t)}grow_by({left:h,right:t,top:i,bottom:e}){const w=this.width+h+t,n=this.height+i+e;return new g({width:w,height:n})}shrink_by({left:h,right:t,top:i,bottom:e}){const w=s(this.width-h-t,0),n=s(this.height-i-e,0);return new g({width:w,height:n})}map(h,t){return new g({width:h(this.width),height:(null!=t?t:h)(this.height)})}}i.Sizeable=g,g.__name__=\"Sizeable\",i.SizingPolicy=(0,n.Enum)(\"fixed\",\"fit\",\"min\",\"max\")},\n function _(i,t,h,e,s){e();const n=i(145),g=i(57),r=i(8),l=i(12),{abs:o,min:_,max:d,round:a}=Math;class u{constructor(){this.absolute=!1,this.position={left:0,top:0},this._bbox=new g.BBox,this._inner_bbox=new g.BBox,this._sizing=null,this._dirty=!1,this._handlers=[]}*[Symbol.iterator](){}get bbox(){return this._bbox}get inner_bbox(){return this._inner_bbox}get sizing(){return(0,l.assert)(null!=this._sizing),this._sizing}get visible(){return this.sizing.visible}set visible(i){this.sizing.visible!=i&&(this.sizing.visible=i,this._dirty=!0)}set_sizing(i={}){var t,h,e,s,n,g;const r=null!==(t=i.width_policy)&&void 0!==t?t:\"fit\",l=i.width,o=i.min_width,_=i.max_width,d=null!==(h=i.height_policy)&&void 0!==h?h:\"fit\",a=i.height,u=i.min_height,c=i.max_height,w=i.aspect,b=null!==(e=i.margin)&&void 0!==e?e:{top:0,right:0,bottom:0,left:0},x=null===(s=i.visible)||void 0===s||s,m=null!==(n=i.halign)&&void 0!==n?n:\"start\",z=null!==(g=i.valign)&&void 0!==g?g:\"start\";this._sizing={width_policy:r,min_width:o,width:l,max_width:_,height_policy:d,min_height:u,height:a,max_height:c,aspect:w,margin:b,visible:x,halign:m,valign:z,size:{width:l,height:a}},this._init()}_init(){}_set_geometry(i,t){this._bbox=i,this._inner_bbox=t}set_geometry(i,t){const{fixup_geometry:h}=this;null!=h&&([i,t]=h(i,t)),this._set_geometry(i,null!=t?t:i);for(const i of this._handlers)i(this._bbox,this._inner_bbox)}on_resize(i){this._handlers.push(i)}is_width_expanding(){return\"max\"==this.sizing.width_policy}is_height_expanding(){return\"max\"==this.sizing.height_policy}apply_aspect(i,{width:t,height:h}){const{aspect:e}=this.sizing;if(null!=e){const{width_policy:s,height_policy:n}=this.sizing,g=(i,t)=>{const h={max:4,fit:3,min:2,fixed:1};return h[i]>h[t]};if(\"fixed\"!=s&&\"fixed\"!=n)if(s==n){const s=t,n=a(t/e),g=a(h*e),r=h;o(i.width-s)+o(i.height-n)<=o(i.width-g)+o(i.height-r)?(t=s,h=n):(t=g,h=r)}else g(s,n)?h=a(t/e):t=a(h*e);else\"fixed\"==s?h=a(t/e):\"fixed\"==n&&(t=a(h*e))}return{width:t,height:h}}measure(i){if(null==this._sizing&&this.set_sizing(),!this.sizing.visible)return{width:0,height:0};const t=i=>\"fixed\"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:i,h=i=>\"fixed\"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:i,e=new n.Sizeable(i).shrink_by(this.sizing.margin).map(t,h),s=this._measure(e),g=this.clip_size(s,e),r=t(g.width),l=h(g.height),o=this.apply_aspect(e,{width:r,height:l});return Object.assign(Object.assign({},s),o)}compute(i={}){const t=this.measure({width:null!=i.width&&this.is_width_expanding()?i.width:1/0,height:null!=i.height&&this.is_height_expanding()?i.height:1/0}),{width:h,height:e}=t,{left:s,top:n}=this.position,r=new g.BBox({left:s,top:n,width:h,height:e});let l;if(null!=t.inner){const{left:i,top:s,right:n,bottom:r}=t.inner;l=new g.BBox({left:i,top:s,right:h-n,bottom:e-r})}this.set_geometry(r,l)}get xview(){return this.bbox.xview}get yview(){return this.bbox.yview}clip_size(i,t){function h(i,t,h,e){return null==h?h=0:(0,r.isNumber)(h)||(h=a(h.percent*t)),null==e?e=1/0:(0,r.isNumber)(e)||(e=a(e.percent*t)),d(h,_(i,e))}return{width:h(i.width,t.width,this.sizing.min_width,this.sizing.max_width),height:h(i.height,t.height,this.sizing.min_height,this.sizing.max_height)}}has_size_changed(){const{_dirty:i}=this;return this._dirty=!1,i}}h.Layoutable=u,u.__name__=\"Layoutable\";class c extends u{_measure(i){const t=this._content_size(),h=i.bounded_to(this.sizing.size).bounded_to(t);return{width:(()=>{switch(this.sizing.width_policy){case\"fixed\":return null!=this.sizing.width?this.sizing.width:t.width;case\"min\":return t.width;case\"fit\":return h.width;case\"max\":return d(t.width,h.width)}})(),height:(()=>{switch(this.sizing.height_policy){case\"fixed\":return null!=this.sizing.height?this.sizing.height:t.height;case\"min\":return t.height;case\"fit\":return h.height;case\"max\":return d(t.height,h.height)}})()}}}h.ContentLayoutable=c,c.__name__=\"ContentLayoutable\"},\n function _(e,s,t,n,a){var _;n();const x=e(50),c=e(54);class i extends c.View{}t.BaseTextView=i,i.__name__=\"BaseTextView\";class o extends x.Model{constructor(e){super(e)}}t.BaseText=o,_=o,o.__name__=\"BaseText\",_.define((({String:e})=>({text:[e]})))},\n function _(n,e,t,i,r){i();const s=n(149),l=n(156),d=[{start:\"$$\",end:\"$$\",inline:!1},{start:\"\\\\[\",end:\"\\\\]\",inline:!1},{start:\"\\\\(\",end:\"\\\\)\",inline:!0}];t.parse_delimited_string=function(n){for(const e of d){const t=n.indexOf(e.start),i=t+e.start.length;if(0==t){const t=n.indexOf(e.end,i),r=t;if(t==n.length-e.end.length)return new s.TeX({text:n.slice(i,r),inline:e.inline});break}}return new l.PlainText({text:n})}},\n function _(t,e,i,s,n){var h,o,r;s();const a=t(8),l=t(150),_=t(21),c=t(151),d=t(152),u=t(38),g=t(153),x=t(57),p=t(147),f=t(154);class m extends p.BaseTextView{constructor(){super(...arguments),this._position={sx:0,sy:0},this.align=\"left\",this._x_anchor=\"left\",this._y_anchor=\"center\",this._base_font_size=13,this.font_size_scale=1,this.svg_image=null}graphics(){return this}infer_text_height(){return\"ascent_descent\"}set base_font_size(t){null!=t&&(this._base_font_size=t)}get base_font_size(){return this._base_font_size}_rect(){const{width:t,height:e}=this._size(),{x:i,y:s}=this._computed_position();return new x.BBox({x:i,y:s,width:t,height:e}).rect}set position(t){this._position=t}get position(){return this._position}get text(){return this.model.text}get provider(){return f.default_provider}async lazy_initialize(){await super.lazy_initialize(),\"not_started\"==this.provider.status&&await this.provider.fetch()}connect_signals(){super.connect_signals(),this.on_change(this.model.properties.text,(()=>this.load_image()))}set visuals(t){const e=t.color,i=t.alpha,s=t.font_style;let n=t.font_size;const h=t.font,{font_size_scale:o,_base_font_size:r}=this,a=(0,d.parse_css_font_size)(n);if(null!=a){let{value:t,unit:e}=a;t*=o,\"em\"==e&&0!=r&&(t*=r,e=\"px\"),n=`${t}${e}`}const l=`${s} ${n} ${h}`;this.font=l,this.color=(0,_.color2css)(e,i);const c=t.align;this._x_anchor=c;const u=t.baseline;this._y_anchor=(()=>{switch(u){case\"top\":return\"top\";case\"middle\":return\"center\";case\"bottom\":return\"bottom\";default:return\"baseline\"}})()}_computed_position(){const{width:t,height:e}=this._size(),{sx:i,sy:s,x_anchor:n=this._x_anchor,y_anchor:h=this._y_anchor}=this.position,o=(0,d.font_metrics)(this.font);return{x:i-(()=>{if((0,a.isNumber)(n))return n*t;switch(n){case\"left\":return 0;case\"center\":return.5*t;case\"right\":return t}})(),y:s-(()=>{if((0,a.isNumber)(h))return h*e;switch(h){case\"top\":return o.height>e?e-(-this.valign-o.descent)-o.height:0;case\"center\":case\"baseline\":return.5*e;case\"bottom\":return o.height>e?e+o.descent+this.valign:e}})()}}size(){const{width:t,height:e}=this._size(),{angle:i}=this;if(null==i||0==i)return{width:t,height:e};{const s=Math.cos(Math.abs(i)),n=Math.sin(Math.abs(i));return{width:Math.abs(t*s+e*n),height:Math.abs(t*n+e*s)}}}get_image_dimensions(){var t;const e=(0,d.font_metrics)(this.font),i=null===(t=this.svg_element.getAttribute(\"style\"))||void 0===t?void 0:t.split(\";\");if(null!=i){const t=new Map;i.forEach((e=>{const[i,s]=e.split(\":\");\"\"!=i.trim()&&t.set(i.trim(),s.trim())}));const s=(0,d.parse_css_length)(t.get(\"vertical-align\"));\"ex\"==(null==s?void 0:s.unit)?this.valign=s.value*e.x_height:\"px\"==(null==s?void 0:s.unit)&&(this.valign=s.value)}const s=(()=>{const t=this.svg_element.getAttribute(\"width\"),e=this.svg_element.getAttribute(\"height\");return{width:null!=t&&t.endsWith(\"ex\")?parseFloat(t):1,height:null!=e&&e.endsWith(\"ex\")?parseFloat(e):1}})();return{width:e.x_height*s.width,height:e.x_height*s.height}}get truncated_text(){return this.model.text.length>6?`${this.model.text.substring(0,6)}...`:this.model.text}_size(){var t,e;if(null==this.svg_image)return\"failed\"==this.provider.status||\"not_started\"==this.provider.status?{width:(0,c.text_width)(this.truncated_text,this.font),height:(0,d.font_metrics)(this.font).height}:{width:this._base_font_size,height:this._base_font_size};const i=(0,d.font_metrics)(this.font);let{width:s,height:n}=this.get_image_dimensions();n=Math.max(n,i.height);return{width:s*(\"%\"==(null===(t=this.width)||void 0===t?void 0:t.unit)?this.width.value:1),height:n*(\"%\"==(null===(e=this.height)||void 0===e?void 0:e.unit)?this.height.value:1)}}bbox(){const{p0:t,p1:e,p2:i,p3:s}=this.rect(),n=Math.min(t.x,e.x,i.x,s.x),h=Math.min(t.y,e.y,i.y,s.y),o=Math.max(t.x,e.x,i.x,s.x),r=Math.max(t.y,e.y,i.y,s.y);return new x.BBox({left:n,right:o,top:h,bottom:r})}rect(){const t=this._rect(),{angle:e}=this;if(null==e||0==e)return t;{const{sx:i,sy:s}=this.position,n=new g.AffineTransform;return n.translate(i,s),n.rotate(e),n.translate(-i,-s),n.apply_rect(t)}}paint_rect(t){const{p0:e,p1:i,p2:s,p3:n}=this.rect();t.save(),t.strokeStyle=\"red\",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e.x),h(e.y)),t.lineTo(h(i.x),h(i.y)),t.lineTo(h(s.x),h(s.y)),t.lineTo(h(n.x),h(n.y)),t.closePath(),t.stroke(),t.restore()}paint_bbox(t){const{x:e,y:i,width:s,height:n}=this.bbox();t.save(),t.strokeStyle=\"blue\",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e),h(i)),t.lineTo(h(e),h(i+n)),t.lineTo(h(e+s),h(i+n)),t.lineTo(h(e+s),h(i)),t.closePath(),t.stroke(),t.restore()}async load_image(){if(null==this.provider.MathJax)return null;const t=this._process_text();if(null==t)return this._has_finished=!0,null;const e=t.children[0];this.svg_element=e,e.setAttribute(\"font\",this.font),e.setAttribute(\"stroke\",this.color);const i=e.outerHTML,s=`data:image/svg+xml;utf-8,${encodeURIComponent(i)}`;return this.svg_image=await(0,l.load_image)(s),this.parent.request_layout(),this.svg_image}paint(t){null==this.svg_image&&(\"not_started\"!=this.provider.status&&\"loading\"!=this.provider.status||this.provider.ready.connect((()=>this.load_image())),\"loaded\"==this.provider.status&&this.load_image()),t.save();const{sx:e,sy:i}=this.position,{angle:s}=this;null!=s&&0!=s&&(t.translate(e,i),t.rotate(s),t.translate(-e,-i));const{x:n,y:h}=this._computed_position();if(null!=this.svg_image){const{width:e,height:i}=this.get_image_dimensions();t.drawImage(this.svg_image,n,h,e,i)}else\"failed\"!=this.provider.status&&\"not_started\"!=this.provider.status||(t.fillStyle=this.color,t.font=this.font,t.textAlign=\"left\",t.textBaseline=\"alphabetic\",t.fillText(this.truncated_text,n,h+(0,d.font_metrics)(this.font).ascent));t.restore(),this._has_finished||\"failed\"!=this.provider.status&&null==this.svg_image||(this._has_finished=!0,this.parent.notify_finished_after_paint())}}i.MathTextView=m,m.__name__=\"MathTextView\";class v extends p.BaseText{constructor(t){super(t)}}i.MathText=v,v.__name__=\"MathText\";class y extends m{get styled_text(){return this.text}_process_text(){}_size(){return{width:(0,c.text_width)(this.text,this.font),height:(0,d.font_metrics)(this.font).height}}paint(t){t.save();const{sx:e,sy:i}=this.position,{angle:s}=this;null!=s&&0!=s&&(t.translate(e,i),t.rotate(s),t.translate(-e,-i));const{x:n,y:h}=this._computed_position();t.fillStyle=this.color,t.font=this.font,t.textAlign=\"left\",t.textBaseline=\"alphabetic\",t.fillText(this.text,n,h+(0,d.font_metrics)(this.font).ascent),t.restore(),this._has_finished=!0,this.parent.notify_finished_after_paint()}}i.AsciiView=y,y.__name__=\"AsciiView\";class b extends v{constructor(t){super(t)}}i.Ascii=b,h=b,b.__name__=\"Ascii\",h.prototype.default_view=y;class w extends m{get styled_text(){let t=this.text.trim(),e=t.match(/<math(.*?[^?])?>/s);return null==e?this.text.trim():(t=(0,u.insert_text_on_position)(t,t.indexOf(e[0])+e[0].length,`<mstyle displaystyle=\"true\" mathcolor=\"${(0,_.color2hexrgb)(this.color)}\" ${this.font.includes(\"bold\")?'mathvariant=\"bold\"':\"\"}>`),e=t.match(/<\\/[^>]*?math.*?>/s),null==e?this.text.trim():(0,u.insert_text_on_position)(t,t.indexOf(e[0]),\"</mstyle>\"))}_process_text(){var t;const e=(0,d.font_metrics)(this.font);return null===(t=this.provider.MathJax)||void 0===t?void 0:t.mathml2svg(this.styled_text,{em:this.base_font_size,ex:e.x_height})}}i.MathMLView=w,w.__name__=\"MathMLView\";class M extends v{constructor(t){super(t)}}i.MathML=M,o=M,M.__name__=\"MathML\",o.prototype.default_view=w;class z extends m{get styled_text(){const[t,e,i]=(0,_.color2rgba)(this.color);return`\\\\color[RGB]{${t}, ${e}, ${i}} ${this.font.includes(\"bold\")?`\\\\pmb{${this.text}}`:this.text}`}_process_text(){var t;const e=(0,d.font_metrics)(this.font);return null===(t=this.provider.MathJax)||void 0===t?void 0:t.tex2svg(this.styled_text,{display:!this.model.inline,em:this.base_font_size,ex:e.x_height},this.model.macros)}}i.TeXView=z,z.__name__=\"TeXView\";class T extends v{constructor(t){super(t)}}i.TeX=T,r=T,T.__name__=\"TeX\",r.prototype.default_view=z,r.define((({Boolean:t,Number:e,String:i,Dict:s,Tuple:n,Or:h})=>({macros:[s(h(i,n(i,e))),{}],inline:[t,!1]})))},\n function _(i,e,t,s,a){s();const o=i(18);t.load_image=async function(i,e){return new n(i,e).promise};class n{constructor(i,e={}){this.image=new Image,this._finished=!1;const{attempts:t=1,timeout:s=1}=e;this.promise=new Promise(((a,n)=>{this.image.crossOrigin=\"anonymous\";let r=0;this.image.onerror=()=>{if(++r==t){const s=`unable to load ${i} image after ${t} attempts`;if(o.logger.warn(s),null==this.image.crossOrigin)return void(null!=e.failed&&e.failed());o.logger.warn(`attempting to load ${i} without a cross origin policy`),this.image.crossOrigin=null,r=0}setTimeout((()=>this.image.src=i),s)},this.image.onload=()=>{this._finished=!0,null!=e.loaded&&e.loaded(this.image),a(this.image)},this.image.src=i}))}get finished(){return this._finished}}t.ImageLoader=n,n.__name__=\"ImageLoader\"},\n function _(t,e,s,i,n){i();const h=t(57),o=t(152),a=t(10),r=t(8),c=t(153),_=t(21);s.text_width=(()=>{const t=document.createElement(\"canvas\").getContext(\"2d\");let e=\"\";return(s,i)=>(i!=e&&(e=i,t.font=i),t.measureText(s).width)})();class l{constructor(){this._position={sx:0,sy:0},this.font_size_scale=1,this.align=\"left\",this._base_font_size=13,this._x_anchor=\"left\",this._y_anchor=\"center\"}set base_font_size(t){null!=t&&(this._base_font_size=t)}get base_font_size(){return this._base_font_size}set position(t){this._position=t}get position(){return this._position}infer_text_height(){return\"ascent_descent\"}bbox(){const{p0:t,p1:e,p2:s,p3:i}=this.rect(),n=Math.min(t.x,e.x,s.x,i.x),o=Math.min(t.y,e.y,s.y,i.y),a=Math.max(t.x,e.x,s.x,i.x),r=Math.max(t.y,e.y,s.y,i.y);return new h.BBox({left:n,right:a,top:o,bottom:r})}size(){const{width:t,height:e}=this._size(),{angle:s}=this;if(null==s||0==s)return{width:t,height:e};{const i=Math.cos(Math.abs(s)),n=Math.sin(Math.abs(s));return{width:Math.abs(t*i+e*n),height:Math.abs(t*n+e*i)}}}rect(){const t=this._rect(),{angle:e}=this;if(null==e||0==e)return t;{const{sx:s,sy:i}=this.position,n=new c.AffineTransform;return n.translate(s,i),n.rotate(e),n.translate(-s,-i),n.apply_rect(t)}}paint_rect(t){const{p0:e,p1:s,p2:i,p3:n}=this.rect();t.save(),t.strokeStyle=\"red\",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e.x),h(e.y)),t.lineTo(h(s.x),h(s.y)),t.lineTo(h(i.x),h(i.y)),t.lineTo(h(n.x),h(n.y)),t.closePath(),t.stroke(),t.restore()}paint_bbox(t){const{x:e,y:s,width:i,height:n}=this.bbox();t.save(),t.strokeStyle=\"blue\",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e),h(s)),t.lineTo(h(e),h(s+n)),t.lineTo(h(e+i),h(s+n)),t.lineTo(h(e+i),h(s)),t.closePath(),t.stroke(),t.restore()}}s.GraphicsBox=l,l.__name__=\"GraphicsBox\";class u extends l{set visuals(t){const e=t.color,s=t.alpha,i=t.outline_color,n=t.font_style;let h=t.font_size;const a=t.font,{font_size_scale:r,base_font_size:c}=this,l=(0,o.parse_css_font_size)(h);if(null!=l){let{value:t,unit:e}=l;t*=r,\"em\"==e&&0!=c&&(t*=c,e=\"px\"),h=`${t}${e}`}const u=`${n} ${h} ${a}`;this.font=u,this.color=(0,_.color2css)(e,s),this.outline_color=(0,_.color2css)(i,s),this.line_height=t.line_height;const x=t.align;this._visual_align=x,this._x_anchor=x;const p=t.baseline;this._y_anchor=(()=>{switch(p){case\"top\":return\"top\";case\"middle\":return\"center\";case\"bottom\":return\"bottom\";default:return\"baseline\"}})()}constructor({text:t}){super(),this._visual_align=\"left\",this.text=t}infer_text_height(){if(this.text.includes(\"\\n\"))return\"ascent_descent\";{function t(t){for(const e of new Set(t))if(!(\"0\"<=e&&e<=\"9\"))switch(e){case\",\":case\".\":case\"+\":case\"-\":case\"\\u2212\":case\"e\":continue;default:return!1}return!0}return t(this.text)?\"cap\":\"ascent_descent\"}}_text_line(t){var e;const s=null!==(e=this.text_height_metric)&&void 0!==e?e:this.infer_text_height(),i=(()=>{switch(s){case\"x\":case\"x_descent\":return t.x_height;case\"cap\":case\"cap_descent\":return t.cap_height;case\"ascent\":case\"ascent_descent\":return t.ascent}})(),n=(()=>{switch(s){case\"x\":case\"cap\":case\"ascent\":return 0;case\"x_descent\":case\"cap_descent\":case\"ascent_descent\":return t.descent}})();return{height:i+n,ascent:i,descent:n}}get nlines(){return this.text.split(\"\\n\").length}_size(){var t,e;const{font:i}=this,n=(0,o.font_metrics)(i),h=(this.line_height-1)*n.height,r=\"\"==this.text,c=this.text.split(\"\\n\"),_=c.length,l=c.map((t=>(0,s.text_width)(t,i))),u=this._text_line(n).height*_,x=\"%\"==(null===(t=this.width)||void 0===t?void 0:t.unit)?this.width.value:1,p=\"%\"==(null===(e=this.height)||void 0===e?void 0:e.unit)?this.height.value:1;return{width:(0,a.max)(l)*x,height:r?0:(u+h*(_-1))*p,metrics:n}}_computed_position(t,e,s){const{width:i,height:n}=t,{sx:h,sy:o,x_anchor:a=this._x_anchor,y_anchor:c=this._y_anchor}=this.position;return{x:h-(()=>{if((0,r.isNumber)(a))return a*i;switch(a){case\"left\":return 0;case\"center\":return.5*i;case\"right\":return i}})(),y:o-(()=>{var t;if((0,r.isNumber)(c))return c*n;switch(c){case\"top\":return 0;case\"center\":return.5*n;case\"bottom\":return n;case\"baseline\":if(1!=s)return.5*n;switch(null!==(t=this.text_height_metric)&&void 0!==t?t:this.infer_text_height()){case\"x\":case\"x_descent\":return e.x_height;case\"cap\":case\"cap_descent\":return e.cap_height;case\"ascent\":case\"ascent_descent\":return e.ascent}}})()}}_rect(){const{width:t,height:e,metrics:s}=this._size(),i=this.text.split(\"\\n\").length,{x:n,y:o}=this._computed_position({width:t,height:e},s,i);return new h.BBox({x:n,y:o,width:t,height:e}).rect}paint(t){var e,i;const{font:n}=this,h=(0,o.font_metrics)(n),r=(this.line_height-1)*h.height,c=this.text.split(\"\\n\"),_=c.length,l=c.map((t=>(0,s.text_width)(t,n))),u=this._text_line(h),x=u.height*_,p=\"%\"==(null===(e=this.width)||void 0===e?void 0:e.unit)?this.width.value:1,f=\"%\"==(null===(i=this.height)||void 0===i?void 0:i.unit)?this.height.value:1,g=(0,a.max)(l)*p,d=(x+r*(_-1))*f;t.save(),t.fillStyle=this.color,t.strokeStyle=this.outline_color,t.font=this.font,t.textAlign=\"left\",t.textBaseline=\"alphabetic\";const{sx:b,sy:m}=this.position,{align:y}=this,{angle:w}=this;null!=w&&0!=w&&(t.translate(b,m),t.rotate(w),t.translate(-b,-m));let{x:v,y:z}=this._computed_position({width:g,height:d},h,_);if(\"justify\"==y)for(let e=0;e<_;e++){let i=v;const h=c[e].split(\" \"),o=h.length,_=h.map((t=>(0,s.text_width)(t,n))),l=(g-(0,a.sum)(_))/(o-1);for(let e=0;e<o;e++)t.fillText(h[e],i,z),t.strokeText(h[e],i,z),i+=_[e]+l;z+=u.height+r}else for(let e=0;e<_;e++){const s=v+(()=>{switch(\"auto\"==y?this._visual_align:y){case\"left\":return 0;case\"center\":return.5*(g-l[e]);case\"right\":return g-l[e]}})(),i=c[e],n=z+u.ascent;t.fillText(i,s,n),t.strokeText(i,s,n),z+=u.height+r}t.restore()}}s.TextBox=u,u.__name__=\"TextBox\";class x extends l{constructor(t,e){super(),this.base=t,this.expo=e}get children(){return[this.base,this.expo]}set base_font_size(t){super.base_font_size=t,this.base.base_font_size=t,this.expo.base_font_size=t}set position(t){this._position=t;const e=this.base.size(),s=this.expo.size(),i=this._shift_scale()*e.height,n=Math.max(e.height,i+s.height);this.base.position={sx:0,x_anchor:\"left\",sy:n,y_anchor:\"bottom\"},this.expo.position={sx:e.width,x_anchor:\"left\",sy:i,y_anchor:\"bottom\"}}get position(){return this._position}set visuals(t){this.expo.font_size_scale=.7,this.base.visuals=t,this.expo.visuals=t}_shift_scale(){if(this.base instanceof u&&1==this.base.nlines){const{x_height:t,cap_height:e}=(0,o.font_metrics)(this.base.font);return t/e}return 2/3}infer_text_height(){return this.base.infer_text_height()}_rect(){const t=this.base.bbox(),e=this.expo.bbox(),s=t.union(e),{x:i,y:n}=this._computed_position();return s.translate(i,n).rect}_size(){const t=this.base.size(),e=this.expo.size();return{width:t.width+e.width,height:Math.max(t.height,this._shift_scale()*t.height+e.height)}}paint(t){t.save();const{angle:e}=this;if(null!=e&&0!=e){const{sx:s,sy:i}=this.position;t.translate(s,i),t.rotate(e),t.translate(-s,-i)}const{x:s,y:i}=this._computed_position();t.translate(s,i),this.base.paint(t),this.expo.paint(t),t.restore()}paint_bbox(t){super.paint_bbox(t);const{x:e,y:s}=this._computed_position();t.save(),t.translate(e,s);for(const e of this.children)e.paint_bbox(t);t.restore()}_computed_position(){const{width:t,height:e}=this._size(),{sx:s,sy:i,x_anchor:n=this._x_anchor,y_anchor:h=this._y_anchor}=this.position;return{x:s-(()=>{if((0,r.isNumber)(n))return n*t;switch(n){case\"left\":return 0;case\"center\":return.5*t;case\"right\":return t}})(),y:i-(()=>{if((0,r.isNumber)(h))return h*e;switch(h){case\"top\":return 0;case\"center\":case\"baseline\":return.5*e;case\"bottom\":return e}})()}}}s.BaseExpo=x,x.__name__=\"BaseExpo\";class p{constructor(t){this.items=t}set base_font_size(t){for(const e of this.items)e.base_font_size=t}get length(){return this.items.length}set visuals(t){for(const e of this.items)e.visuals=t;const e={x:0,cap:1,ascent:2,x_descent:3,cap_descent:4,ascent_descent:5},s=(0,a.max_by)(this.items.map((t=>t.infer_text_height())),(t=>e[t]));for(const t of this.items)t.text_height_metric=s}set angle(t){for(const e of this.items)e.angle=t}max_size(){let t=0,e=0;for(const s of this.items){const i=s.size();t=Math.max(t,i.width),e=Math.max(e,i.height)}return{width:t,height:e}}}s.GraphicsBoxes=p,p.__name__=\"GraphicsBoxes\"},\n function _(t,e,n,c,s){c();const a=t(12),o=t(8),r=(()=>{try{return\"undefined\"!=typeof OffscreenCanvas&&null!=new OffscreenCanvas(0,0).getContext(\"2d\")}catch(t){return!1}})()?(t,e)=>new OffscreenCanvas(t,e):(t,e)=>{const n=document.createElement(\"canvas\");return n.width=t,n.height=e,n},i=(()=>{const t=r(0,0).getContext(\"2d\");return(0,a.assert)(null!=t,\"can't obtain 2d context\"),e=>{t.font=e;const n=t.measureText(\"M\"),c=t.measureText(\"x\"),s=t.measureText(\"\\xc5\\u015ag|\"),r=s.fontBoundingBoxAscent,i=s.fontBoundingBoxDescent;if((0,o.is_defined)(r)&&(0,o.is_defined)(i))return{height:r+i,ascent:r,descent:i,cap_height:n.actualBoundingBoxAscent,x_height:c.actualBoundingBoxAscent};const u=s.actualBoundingBoxAscent,l=s.actualBoundingBoxDescent;if((0,o.is_defined)(u)&&(0,o.is_defined)(l))return{height:u+l,ascent:u,descent:l,cap_height:n.actualBoundingBoxAscent,x_height:c.actualBoundingBoxAscent};(0,a.unreachable)()}})(),u=(()=>{const t=document.createElement(\"canvas\"),e=t.getContext(\"2d\");let n=-1,c=-1;return(s,a=1)=>{e.font=s;const{width:o}=e.measureText(\"M\"),r=o*a,i=Math.ceil(r),u=Math.ceil(2*r),l=Math.ceil(1.5*r);n<i&&(n=i,t.width=i),c<u&&(c=u,t.height=u),e.save(),e.scale(a,a),e.fillStyle=\"#f00\",e.fillRect(0,0,i,u);const f=t=>{let e=0;for(let n=0;n<=l;n++)for(let c=0;c<i;c++,e+=4)if(255!=t[e])return l-n;return 0};e.font=s,e.fillStyle=\"#000\";for(const t of\"xa\")e.fillText(t,0,l/a);const{data:d}=e.getImageData(0,0,i,u),h=f(d)/a;for(const t of\"ASQ\")e.fillText(t,0,l/a);const{data:g}=e.getImageData(0,0,i,u),x=f(g)/a;for(const t of\"\\xc5\\u015agy\")e.fillText(t,0,l/a);const{data:m}=e.getImageData(0,0,i,u),_=f(m)/a,B=(t=>{let e=t.length-4;for(let n=u;n>=l;n--)for(let c=0;c<i;c++,e-=4)if(255!=t[e])return n-l;return 0})(m)/a;return e.restore(),{height:_+B,ascent:_,cap_height:x,x_height:h,descent:B}}})(),l=(()=>{try{return i(\"normal 10px sans-serif\"),i}catch(t){return u}})(),f=new Map;n.font_metrics=function(t){let e=f.get(t);if(null==e){const n=document.fonts.check(t);e={font:l(t)},n&&f.set(t,e)}return e.font},n.parse_css_font_size=function(t){const e=t.match(/^\\s*(\\d+(\\.\\d+)?)(\\w+)\\s*$/);if(null!=e){const[,t,,n]=e,c=Number(t);if(isFinite(c))return{value:c,unit:n}}return null},n.parse_css_length=function(t){const e=t.match(/^\\s*(-?\\d+(\\.\\d+)?)(\\w+)\\s*$/);if(null!=e){const[,t,,n]=e,c=Number(t);if(isFinite(c))return{value:c,unit:n}}return null}},\n function _(t,s,r,e,i){e();const n=t(25),{sin:a,cos:h}=Math;class o{constructor(t=1,s=0,r=0,e=1,i=0,n=0){this.a=t,this.b=s,this.c=r,this.d=e,this.e=i,this.f=n}toString(){const{a:t,b:s,c:r,d:e,e:i,f:n}=this;return`matrix(${t}, ${s}, ${r}, ${e}, ${i}, ${n})`}static from_DOMMatrix(t){const{a:s,b:r,c:e,d:i,e:n,f:a}=t;return new o(s,r,e,i,n,a)}to_DOMMatrix(){const{a:t,b:s,c:r,d:e,e:i,f:n}=this;return new DOMMatrix([t,s,r,e,i,n])}clone(){const{a:t,b:s,c:r,d:e,e:i,f:n}=this;return new o(t,s,r,e,i,n)}[n.equals](t,s){return s.eq(this.a,t.a)&&s.eq(this.b,t.b)&&s.eq(this.c,t.c)&&s.eq(this.d,t.d)&&s.eq(this.e,t.e)&&s.eq(this.f,t.f)}reset(){this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0}get is_identity(){const{a:t,b:s,c:r,d:e,e:i,f:n}=this;return 1==t&&0==s&&0==r&&1==e&&0==i&&0==n}apply_point(t){const[s,r]=this.apply(t.x,t.y);return{x:s,y:r}}apply_rect(t){return{p0:this.apply_point(t.p0),p1:this.apply_point(t.p1),p2:this.apply_point(t.p2),p3:this.apply_point(t.p3)}}apply(t,s){const{a:r,b:e,c:i,d:n,e:a,f:h}=this;return[r*t+i*s+a,e*t+n*s+h]}iv_apply(t,s){const{a:r,b:e,c:i,d:n,e:a,f:h}=this,o=t.length;for(let c=0;c<o;c++){const o=t[c],p=s[c];t[c]=r*o+i*p+a,s[c]=e*o+n*p+h}}transform(t,s,r,e,i,n){const{a,b:h,c:o,d:c,e:p,f}=this;return this.a=a*t+o*s,this.c=a*r+o*e,this.e=a*i+o*n+p,this.b=h*t+c*s,this.d=h*r+c*e,this.f=h*i+c*n+f,this}translate(t,s){return this.transform(1,0,0,1,t,s)}scale(t,s){return this.transform(t,0,0,s,0,0)}skew(t,s){return this.transform(1,s,t,1,0,0)}rotate(t){if(0==t)return this;const s=a(t),r=h(t);return this.transform(r,s,-s,r,0,0)}rotate_ccw(t){return this.rotate(-t)}rotate_around(t,s,r){return this.translate(t,s),this.rotate(r),this.translate(-t,-s),this}translate_x(t){return this.translate(t,0)}translate_y(t){return this.translate(0,t)}flip(){return this.scale(-1,-1)}flip_x(){return this.scale(1,-1)}flip_y(){return this.scale(-1,1)}}r.AffineTransform=o,o.__name__=\"AffineTransform\",r.rotate_around=function(t,s,r){if(0==r)return t;{const e=new o;e.rotate_around(s.x,s.y,r);const[i,n]=e.apply(t.x,t.y);return{x:i,y:n}}}},\n function _(t,e,a,r,s){var n=this&&this.__createBinding||(Object.create?function(t,e,a,r){void 0===r&&(r=a);var s=Object.getOwnPropertyDescriptor(e,a);s&&!(\"get\"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,r,s)}:function(t,e,a,r){void 0===r&&(r=a),t[r]=e[a]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)\"default\"!==a&&Object.prototype.hasOwnProperty.call(t,a)&&n(e,t,a);return i(e,t),e};r();const d=t(15),u=t(155);class c{constructor(){this.ready=new d.Signal0(this,\"ready\"),this.status=\"not_started\"}}a.MathJaxProvider=c,c.__name__=\"MathJaxProvider\";class l extends c{get MathJax(){return null}async fetch(){this.status=\"failed\"}}a.NoProvider=l,l.__name__=\"NoProvider\";class h extends c{get MathJax(){return\"undefined\"!=typeof MathJax?MathJax:null}async fetch(){const t=document.createElement(\"script\");t.src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js\",t.onload=()=>{this.status=\"loaded\",this.ready.emit()},t.onerror=()=>{this.status=\"failed\"},this.status=\"loading\",document.head.appendChild(t)}}a.CDNProvider=h,h.__name__=\"CDNProvider\";class _ extends c{get MathJax(){return this._mathjax}async fetch(){this.status=\"loading\";try{const e=await(0,u.load_module)(Promise.resolve().then((()=>o(t(647)))));this._mathjax=e,this.status=\"loaded\",this.ready.emit()}catch(t){this.status=\"failed\"}}}a.BundleProvider=_,_.__name__=\"BundleProvider\",a.default_provider=new _},\n function _(n,r,o,t,c){t(),o.load_module=async function(n){try{return await n}catch(n){if((r=n)instanceof Error&&\"code\"in r&&\"MODULE_NOT_FOUND\"===n.code)return null;throw n}var r}},\n function _(e,t,i,n,s){var a;n();const x=e(147),_=e(151);class l extends x.BaseTextView{initialize(){super.initialize(),this._has_finished=!0}graphics(){return new _.TextBox({text:this.model.text})}}i.PlainTextView=l,l.__name__=\"PlainTextView\";class r extends x.BaseText{constructor(e){super(e)}}i.PlainText=r,a=r,r.__name__=\"PlainText\",a.prototype.default_view=l},\n function _(e,s,t,a,_){a();const r=e(92),n=e(91),i=e(88),g=e(93),c=e(96),h=e(57),l=e(9),o=e(12),u=e(15);class x{get bbox(){return this._bbox}constructor(e,s,t,a,_={},r={},n={},i={}){this._bbox=new h.BBox,this.change=new u.Signal0(this,\"change\"),this.in_x_scale=e,this.in_y_scale=s,this.x_range=t,this.y_range=a,this.extra_x_ranges=_,this.extra_y_ranges=r,this.extra_x_scales=n,this.extra_y_scales=i,(0,o.assert)(e.properties.source_range.is_unset&&e.properties.target_range.is_unset),(0,o.assert)(s.properties.source_range.is_unset&&s.properties.target_range.is_unset),this._configure_scales()}_get_ranges(e,s){return new Map((0,l.entries)(Object.assign(Object.assign({},s),{default:e})))}_get_scales(e,s,t,a){var _;const i=new Map((0,l.entries)(Object.assign(Object.assign({},s),{default:e}))),h=new Map;for(const[s,l]of t){if(l instanceof c.FactorRange!=e instanceof r.CategoricalScale)throw new Error(`Range ${l.type} is incompatible is Scale ${e.type}`);e instanceof n.LogScale&&l instanceof g.DataRange1d&&(l.scale_hint=\"log\");const t=(null!==(_=i.get(s))&&void 0!==_?_:e).clone();t.setv({source_range:l,target_range:a}),h.set(s,t)}return h}_configure_frame_ranges(){const{bbox:e}=this;this._x_target=new i.Range1d({start:e.left,end:e.right}),this._y_target=new i.Range1d({start:e.bottom,end:e.top})}_configure_scales(){this._configure_frame_ranges(),this._x_ranges=this._get_ranges(this.x_range,this.extra_x_ranges),this._y_ranges=this._get_ranges(this.y_range,this.extra_y_ranges),this._x_scales=this._get_scales(this.in_x_scale,this.extra_x_scales,this._x_ranges,this._x_target),this._y_scales=this._get_scales(this.in_y_scale,this.extra_y_scales,this._y_ranges,this._y_target)}configure_scales(){this._configure_scales(),this.change.emit()}_update_scales(){this._configure_frame_ranges();for(const[,e]of this._x_scales)e.target_range=this._x_target;for(const[,e]of this._y_scales)e.target_range=this._y_target}set_geometry(e){this._bbox=e,this._update_scales()}get x_target(){return this._x_target}get y_target(){return this._y_target}get x_ranges(){return this._x_ranges}get y_ranges(){return this._y_ranges}get ranges(){return new Set([...this.x_ranges.values(),...this.y_ranges.values()])}get x_scales(){return this._x_scales}get y_scales(){return this._y_scales}get scales(){return new Set([...this.x_scales.values(),...this.y_scales.values()])}get x_scale(){return this._x_scales.get(\"default\")}get y_scale(){return this._y_scales.get(\"default\")}}t.CartesianFrame=x,x.__name__=\"CartesianFrame\"},\n function _(i,s,x,A,o){A(),o(\"Axis\",i(159).Axis),o(\"CategoricalAxis\",i(164).CategoricalAxis),o(\"ContinuousAxis\",i(167).ContinuousAxis),o(\"DatetimeAxis\",i(168).DatetimeAxis),o(\"LinearAxis\",i(184).LinearAxis),o(\"LogAxis\",i(186).LogAxis),o(\"MercatorAxis\",i(189).MercatorAxis)},\n function _(t,e,i,s,a){var l;s();const o=t(1),n=t(160),_=t(161),r=t(162),h=t(163),c=o.__importStar(t(78)),b=t(19),u=t(23),m=t(144),d=t(10),x=t(9),f=t(8),g=t(151),p=t(96),v=t(147),w=t(59),j=t(12),k=t(8),y=t(148),{abs:z}=Math;class M extends n.GuideRendererView{constructor(){super(...arguments),this._axis_label_view=null,this._major_label_views=new Map}*children(){yield*super.children(),null!=this._axis_label_view&&(yield this._axis_label_view),yield*this._major_label_views.values()}async lazy_initialize(){await super.lazy_initialize(),await this._init_axis_label(),await this._init_major_labels()}async _init_axis_label(){const{axis_label:t}=this.model;if(null!=t){const e=(0,k.isString)(t)?(0,y.parse_delimited_string)(t):t;this._axis_label_view=await(0,w.build_view)(e,{parent:this})}else this._axis_label_view=null}async _init_major_labels(){for(const[t,e]of this.model.major_label_overrides){const i=(0,k.isString)(e)?(0,y.parse_delimited_string)(e):e;this._major_label_views.set(t,await(0,w.build_view)(i,{parent:this}))}}update_layout(){this.layout=new m.SideLayout(this.panel,(()=>this.get_size()),!0),this.layout.on_resize((()=>this._coordinates=void 0))}get_size(){const{visible:t,fixed_location:e}=this.model;if(t&&null==e&&this.is_renderable){const{extents:t}=this;return{width:0,height:Math.round(t.tick+t.tick_label+t.axis_label)}}return{width:0,height:0}}get is_renderable(){const[t,e]=this.ranges;return t.is_valid&&e.is_valid&&t.span>0&&e.span>0}_render(){var t;if(!this.is_renderable)return;const{tick_coords:e,extents:i}=this,s=this.layer.ctx;s.save(),this._draw_rule(s,i),this._draw_major_ticks(s,i,e),this._draw_minor_ticks(s,i,e),this._draw_major_labels(s,i,e),this._draw_axis_label(s,i,e),null===(t=this._paint)||void 0===t||t.call(this,s,i,e),s.restore()}connect_signals(){super.connect_signals();const{axis_label:t,major_label_overrides:e}=this.model.properties;this.on_change(t,(async()=>{var t;null===(t=this._axis_label_view)||void 0===t||t.remove(),await this._init_axis_label()})),this.on_change(e,(async()=>{for(const t of this._major_label_views.values())t.remove();await this._init_major_labels()})),this.connect(this.model.change,(()=>this.plot_view.request_layout()))}get needs_clip(){return null!=this.model.fixed_location}_draw_rule(t,e){if(!this.visuals.axis_line.doit)return;const[i,s]=this.rule_coords,[a,l]=this.coordinates.map_to_screen(i,s),[o,n]=this.normals,[_,r]=this.offsets;this.visuals.axis_line.set_value(t),t.beginPath();for(let e=0;e<a.length;e++){const i=Math.round(a[e]+o*_),s=Math.round(l[e]+n*r);t.lineTo(i,s)}t.stroke()}_draw_major_ticks(t,e,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,l=this.visuals.major_tick_line;this._draw_ticks(t,i.major,s,a,l)}_draw_minor_ticks(t,e,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,l=this.visuals.minor_tick_line;this._draw_ticks(t,i.minor,s,a,l)}_draw_major_labels(t,e,i){const s=i.major,a=this.compute_labels(s[this.dimension]),l=this.model.major_label_orientation,o=e.tick+this.model.major_label_standoff,n=this.visuals.major_label_text;this._draw_oriented_labels(t,a,s,l,this.panel.side,o,n)}_axis_label_extent(){if(null==this._axis_label_view)return 0;const t=this._axis_label_view.graphics();t.visuals=this.visuals.axis_label_text.values(),t.angle=this.panel.get_label_angle_heuristic(\"parallel\"),(0,f.isNumber)(this.plot_view.base_font_size)&&(t.base_font_size=this.plot_view.base_font_size);const e=t.size(),i=0==this.dimension?e.height:e.width,s=this.model.axis_label_standoff;return i>0?s+i+3:0}_draw_axis_label(t,e,i){if(null==this._axis_label_view||null!=this.model.fixed_location)return;const[s,a]=(()=>{const{bbox:t}=this.layout;switch(this.panel.side){case\"above\":return[t.hcenter,t.bottom];case\"below\":return[t.hcenter,t.top];case\"left\":return[t.right,t.vcenter];case\"right\":return[t.left,t.vcenter]}})(),[l,o]=this.normals,n=e.tick+e.tick_label+this.model.axis_label_standoff,{vertical_align:_,align:r}=this.panel.get_label_text_heuristics(\"parallel\"),h={sx:s+l*n,sy:a+o*n,x_anchor:r,y_anchor:_},c=this._axis_label_view.graphics();c.visuals=this.visuals.axis_label_text.values(),c.angle=this.panel.get_label_angle_heuristic(\"parallel\"),null!=this.plot_view.base_font_size&&(c.base_font_size=this.plot_view.base_font_size),c.position=h,c.align=r,c.paint(t)}_draw_ticks(t,e,i,s,a){if(!a.doit)return;const[l,o]=e,[n,_]=this.coordinates.map_to_screen(l,o),[r,h]=this.normals,[c,b]=this.offsets,[u,m]=[r*(c-i),h*(b-i)],[d,x]=[r*(c+s),h*(b+s)];a.set_value(t),t.beginPath();for(let e=0;e<n.length;e++){const i=Math.round(n[e]+d),s=Math.round(_[e]+x),a=Math.round(n[e]+u),l=Math.round(_[e]+m);t.moveTo(i,s),t.lineTo(a,l)}t.stroke()}_draw_oriented_labels(t,e,i,s,a,l,o){if(!o.doit||0==e.length)return;const[n,_]=i,[r,h]=this.coordinates.map_to_screen(n,_),[c,b]=this.offsets,[m,d]=this.normals,x=m*(c+l),f=d*(b+l),{vertical_align:p,align:v}=this.panel.get_label_text_heuristics(s),w=this.panel.get_label_angle_heuristic(s);e.visuals=o.values(),e.angle=w,e.base_font_size=this.plot_view.base_font_size;for(let t=0;t<e.length;t++){const i=e.items[t];i.position={sx:r[t]+x,sy:h[t]+f,x_anchor:v,y_anchor:p},i instanceof g.TextBox&&(i.align=v)}const j=e.length,k=u.Indices.all_set(j),{items:y}=e,z=y.map((t=>t.bbox())),M=(()=>{const[t]=this.ranges;return t.is_reversed?0==this.dimension?(t,e)=>z[t].left-z[e].right:(t,e)=>z[e].top-z[t].bottom:0==this.dimension?(t,e)=>z[e].left-z[t].right:(t,e)=>z[t].top-z[e].bottom})(),{major_label_policy:O}=this.model,T=O.filter(k,z,M),A=[...T.ones()];if(0!=A.length){const t=this.parent.canvas_view.bbox,e=e=>{const i=z[e];if(i.left<0){const t=-i.left,{position:s}=y[e];y[e].position=Object.assign(Object.assign({},s),{sx:s.sx+t})}else if(i.right>t.width){const s=i.right-t.width,{position:a}=y[e];y[e].position=Object.assign(Object.assign({},a),{sx:a.sx-s})}},i=e=>{const i=z[e];if(i.top<0){const t=-i.top,{position:s}=y[e];y[e].position=Object.assign(Object.assign({},s),{sy:s.sy+t})}else if(i.bottom>t.height){const s=i.bottom-t.height,{position:a}=y[e];y[e].position=Object.assign(Object.assign({},a),{sy:a.sy-s})}},s=A[0],a=A[A.length-1];0==this.dimension?(e(s),e(a)):(i(s),i(a))}for(const e of T){y[e].paint(t)}}_tick_extent(){return this.model.major_tick_out}_tick_label_extents(){const t=this.tick_coords.major,e=this.compute_labels(t[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(e,i,s,a)]}get extents(){const t=this._tick_label_extents();return{tick:this._tick_extent(),tick_labels:t,tick_label:(0,d.sum)(t),axis_label:this._axis_label_extent()}}_oriented_labels_extent(t,e,i,s){if(0==t.length||!s.doit)return 0;const a=this.panel.get_label_angle_heuristic(e);t.visuals=s.values(),t.angle=a,t.base_font_size=this.plot_view.base_font_size;const l=t.max_size(),o=0==this.dimension?l.height:l.width;return o>0?i+o+3:0}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(t){const e=this.model.formatter.format_graphics(t,this),{_major_label_views:i}=this,s=new Set;for(let a=0;a<t.length;a++){const l=i.get(t[a]);null!=l&&(s.add(l),e[a]=l.graphics())}for(const t of this._major_label_views.values())s.has(t)||(t._has_finished=!0);return new g.GraphicsBoxes(e)}get offsets(){if(null!=this.model.fixed_location)return[0,0];const{frame:t}=this.plot_view;let[e,i]=[0,0];switch(this.panel.side){case\"below\":i=z(this.layout.bbox.top-t.bbox.bottom);break;case\"above\":i=z(this.layout.bbox.bottom-t.bbox.top);break;case\"right\":e=z(this.layout.bbox.left-t.bbox.right);break;case\"left\":e=z(this.layout.bbox.right-t.bbox.left)}return[e,i]}get ranges(){const t=this.dimension,e=1-t,{ranges:i}=this.coordinates;return[i[t],i[e]]}get computed_bounds(){const[t]=this.ranges,e=this.model.bounds,i=[t.min,t.max];if(\"auto\"==e)return[t.min,t.max];{let t,s;const[a,l]=e,[o,n]=i,{min:_,max:r}=Math;return z(a-l)>z(o-n)?(t=r(_(a,l),o),s=_(r(a,l),n)):(t=_(a,l),s=r(a,l)),[t,s]}}get rule_coords(){const t=this.dimension,e=1-t,[i]=this.ranges,[s,a]=this.computed_bounds,l=[new Array(2),new Array(2)];return l[t][0]=Math.max(s,i.min),l[t][1]=Math.min(a,i.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}get tick_coords(){const t=this.dimension,e=1-t,[i]=this.ranges,[s,a]=this.computed_bounds,l=this.model.ticker.get_ticks(s,a,i,this.loc),o=l.major,n=l.minor,_=[[],[]],r=[[],[]],[h,c]=[i.min,i.max];for(let i=0;i<o.length;i++)o[i]<h||o[i]>c||(_[t].push(o[i]),_[e].push(this.loc));for(let i=0;i<n.length;i++)n[i]<h||n[i]>c||(r[t].push(n[i]),r[e].push(this.loc));return{major:_,minor:r}}get loc(){const{fixed_location:t}=this.model;if(null!=t){if((0,f.isNumber)(t))return t;const[,e]=this.ranges;if(e instanceof p.FactorRange)return e.synthetic(t);(0,j.unreachable)()}const[,e]=this.ranges;switch(this.panel.side){case\"left\":case\"below\":return e.start;case\"right\":case\"above\":return e.end}}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.layout.bbox})}remove(){var t;null===(t=this._axis_label_view)||void 0===t||t.remove();for(const t of this._major_label_views.values())t.remove();super.remove()}has_finished(){if(!super.has_finished())return!1;if(null!=this._axis_label_view&&!this._axis_label_view.has_finished())return!1;for(const t of this._major_label_views.values())if(!t.has_finished())return!1;return!0}}i.AxisView=M,M.__name__=\"AxisView\";class O extends n.GuideRenderer{constructor(t){super(t)}}i.Axis=O,l=O,O.__name__=\"Axis\",l.prototype.default_view=M,l.mixins([[\"axis_\",c.Line],[\"major_tick_\",c.Line],[\"minor_tick_\",c.Line],[\"major_label_\",c.Text],[\"axis_label_\",c.Text]]),l.define((({Any:t,Int:e,Number:i,String:s,Ref:a,Map:l,Tuple:o,Or:n,Nullable:c,Auto:u})=>({bounds:[n(o(i,i),u),\"auto\"],ticker:[a(_.Ticker)],formatter:[a(r.TickFormatter)],axis_label:[c(n(s,a(v.BaseText))),null],axis_label_standoff:[e,5],major_label_standoff:[e,5],major_label_orientation:[n(b.TickLabelOrientation,i),\"horizontal\"],major_label_overrides:[l(n(s,i),n(s,a(v.BaseText))),new globalThis.Map,{convert:t=>(0,f.isPlainObject)(t)?new x.Dict(t):t}],major_label_policy:[a(h.LabelingPolicy),()=>new h.AllLabels],major_tick_in:[i,2],major_tick_out:[i,6],minor_tick_in:[i,0],minor_tick_out:[i,4],fixed_location:[c(n(i,t)),null]}))),l.override({axis_line_color:\"black\",major_tick_line_color:\"black\",minor_tick_line_color:\"black\",major_label_text_font_size:\"11px\",major_label_text_align:\"center\",major_label_text_baseline:\"alphabetic\",axis_label_text_font_size:\"13px\",axis_label_text_font_style:\"italic\"})},\n function _(e,r,d,n,i){var s;n();const _=e(74);class u extends _.RendererView{}d.GuideRendererView=u,u.__name__=\"GuideRendererView\";class c extends _.Renderer{constructor(e){super(e)}}d.GuideRenderer=c,s=c,c.__name__=\"GuideRenderer\",s.override({level:\"guide\"})},\n function _(c,e,n,s,o){s();const r=c(50);class t extends r.Model{constructor(c){super(c)}}n.Ticker=t,t.__name__=\"Ticker\"},\n function _(t,o,r,e,c){e();const n=t(50),a=t(151);class m extends n.Model{constructor(t){super(t)}format_graphics(t,o){return this.doFormat(t,o).map((t=>new a.TextBox({text:t})))}compute(t,o){return this.doFormat([t],null!=o?o:{loc:0})[0]}v_compute(t,o){return this.doFormat(t,null!=o?o:{loc:0})}}r.TickFormatter=m,m.__name__=\"TickFormatter\"},\n function _(e,n,s,t,i){var l,r;t();const c=e(50),o=e(9),a=e(38),u=e(8),d=e(23);class _ extends c.Model{constructor(e){super(e)}}s.LabelingPolicy=_,_.__name__=\"LabelingPolicy\";class f extends _{constructor(e){super(e)}filter(e,n,s){return e}}s.AllLabels=f,f.__name__=\"AllLabels\";class v extends _{constructor(e){super(e)}filter(e,n,s){const{min_distance:t}=this;let i=null;for(const n of e)null!=i&&s(i,n)<t?e.unset(n):i=n;return e}}s.NoOverlap=v,l=v,v.__name__=\"NoOverlap\",l.define((({Number:e})=>({min_distance:[e,5]})));class m extends _{constructor(e){super(e)}get names(){return(0,o.keys)(this.args)}get values(){return(0,o.values)(this.args)}get func(){const e=(0,a.use_strict)(this.code);return new d.GeneratorFunction(\"indices\",\"bboxes\",\"distance\",...this.names,e)}filter(e,n,s){var t,i;const l=Object.create(null),r=this.func.call(l,e,n,s,...this.values);let c=r.next();if(null!==(t=c.done)&&void 0!==t&&t&&void 0!==c.value){const{value:n}=c;return n instanceof d.Indices?n:void 0===n?e:(0,u.isIterable)(n)?d.Indices.from_indices(e.size,n):d.Indices.all_unset(e.size)}{const n=[];do{n.push(c.value),c=r.next()}while(null===(i=c.done)||void 0===i||!i);return d.Indices.from_indices(e.size,n)}}}s.CustomLabelingPolicy=m,r=m,m.__name__=\"CustomLabelingPolicy\",r.define((({Unknown:e,String:n,Dict:s})=>({args:[s(e),{}],code:[n,\"\"]})))},\n function _(t,s,e,o,i){var r;o();const a=t(1),l=t(159),_=t(165),n=t(166),p=a.__importStar(t(78)),c=t(19),h=t(151),m=t(8);class u extends l.AxisView{_paint(t,s,e){this._draw_group_separators(t,s,e)}_draw_group_separators(t,s,e){const[o]=this.ranges,[i,r]=this.computed_bounds;if(null==o.tops||o.tops.length<2||!this.visuals.separator_line.doit)return;const a=this.dimension,l=1-a,_=[[],[]];let n=0;for(let t=0;t<o.tops.length-1;t++){let s,e;for(let i=n;i<o.factors.length;i++)if(o.factors[i][0]==o.tops[t+1]){[s,e]=[o.factors[i-1],o.factors[i]],n=i;break}const p=(o.synthetic(s)+o.synthetic(e))/2;p>i&&p<r&&(_[a].push(p),_[l].push(this.loc))}const p=this.extents.tick_label;this._draw_ticks(t,_,-3,p-6,this.visuals.separator_line)}_draw_major_labels(t,s,e){const o=this._get_factor_info();let i=s.tick+this.model.major_label_standoff;for(let e=0;e<o.length;e++){const[r,a,l,_]=o[e];this._draw_oriented_labels(t,r,a,l,this.panel.side,i,_),i+=s.tick_labels[e]}}_tick_label_extents(){const t=this._get_factor_info(),s=[];for(const[e,,o,i]of t){const t=this._oriented_labels_extent(e,o,this.model.major_label_standoff,i);s.push(t)}return s}_get_factor_info(){const[t]=this.ranges,[s,e]=this.computed_bounds,o=this.loc,i=this.model.ticker.get_ticks(s,e,t,o),r=this.tick_coords,a=[],l=t=>new h.GraphicsBoxes(t.map((t=>(0,m.isString)(t)?new h.TextBox({text:t}):t))),_=t=>l(this.model.formatter.doFormat(t,this));if(1==t.levels){const t=_(i.major);a.push([t,r.major,this.model.major_label_orientation,this.visuals.major_label_text])}else if(2==t.levels){const t=_(i.major.map((t=>t[1])));a.push([t,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([l(i.tops),r.tops,this.model.group_label_orientation,this.visuals.group_text])}else if(3==t.levels){const t=_(i.major.map((t=>t[2]))),s=i.mids.map((t=>t[1]));a.push([t,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([l(s),r.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),a.push([l(i.tops),r.tops,this.model.group_label_orientation,this.visuals.group_text])}return a}get tick_coords(){const t=this.dimension,s=1-t,[e]=this.ranges,[o,i]=this.computed_bounds,r=this.model.ticker.get_ticks(o,i,e,this.loc),a={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};return a.major[t]=r.major,a.major[s]=r.major.map((()=>this.loc)),3==e.levels&&(a.mids[t]=r.mids,a.mids[s]=r.mids.map((()=>this.loc))),e.levels>1&&(a.tops[t]=r.tops,a.tops[s]=r.tops.map((()=>this.loc))),a}}e.CategoricalAxisView=u,u.__name__=\"CategoricalAxisView\";class d extends l.Axis{constructor(t){super(t)}}e.CategoricalAxis=d,r=d,d.__name__=\"CategoricalAxis\",r.prototype.default_view=u,r.mixins([[\"separator_\",p.Line],[\"group_\",p.Text],[\"subgroup_\",p.Text]]),r.define((({Number:t,Or:s})=>({group_label_orientation:[s(c.TickLabelOrientation,t),\"parallel\"],subgroup_label_orientation:[s(c.TickLabelOrientation,t),\"parallel\"]}))),r.override({ticker:()=>new _.CategoricalTicker,formatter:()=>new n.CategoricalTickFormatter,separator_line_color:\"lightgrey\",separator_line_width:2,group_text_font_style:\"bold\",group_text_font_size:\"11px\",group_text_color:\"grey\",subgroup_text_font_style:\"bold\",subgroup_text_font_size:\"11px\"})},\n function _(t,c,o,s,e){s();const r=t(161);class i extends r.Ticker{constructor(t){super(t)}get_ticks(t,c,o,s){var e,r;return{major:this._collect(o.factors,o,t,c),minor:[],tops:this._collect(null!==(e=o.tops)&&void 0!==e?e:[],o,t,c),mids:this._collect(null!==(r=o.mids)&&void 0!==r?r:[],o,t,c)}}_collect(t,c,o,s){const e=[];for(const r of t){const t=c.synthetic(r);t>o&&t<s&&e.push(r)}return e}}o.CategoricalTicker=i,i.__name__=\"CategoricalTicker\"},\n function _(t,r,o,c,a){c();const e=t(162),n=t(10);class i extends e.TickFormatter{constructor(t){super(t)}doFormat(t,r){return(0,n.copy)(t)}}o.CategoricalTickFormatter=i,i.__name__=\"CategoricalTickFormatter\"},\n function _(s,n,i,o,u){o();const e=s(159);class t extends e.AxisView{}i.ContinuousAxisView=t,t.__name__=\"ContinuousAxisView\";class _ extends e.Axis{constructor(s){super(s)}}i.ContinuousAxis=_,_.__name__=\"ContinuousAxis\"},\n function _(e,t,i,s,a){var n;s();const o=e(167),r=e(169),m=e(175);class _ extends o.ContinuousAxisView{}i.DatetimeAxisView=_,_.__name__=\"DatetimeAxisView\";class c extends o.ContinuousAxis{constructor(e){super(e)}}i.DatetimeAxis=c,n=c,c.__name__=\"DatetimeAxis\",n.prototype.default_view=_,n.override({ticker:()=>new m.DatetimeTicker,formatter:()=>new r.DatetimeTickFormatter})},\n function _(t,e,o,n,r){var s;n();const i=t(1),c=t(19),_=t(32),u=t(170),l=t(8),m=t(162),a=t(174),d=i.__importDefault(t(173));o.resolution_order=[\"microseconds\",\"milliseconds\",\"seconds\",\"minsec\",\"minutes\",\"hourmin\",\"hours\",\"days\",\"months\",\"years\"],o.tm_index_for_resolution=new Map;for(const t of o.resolution_order)o.tm_index_for_resolution.set(t,0);function h(t,e){const o=1.1*t*1e3,n=1e3*e;return o<a.ONE_MILLI?\"microseconds\":o<a.ONE_SECOND?\"milliseconds\":o<a.ONE_MINUTE?n>=a.ONE_MINUTE?\"minsec\":\"seconds\":o<a.ONE_HOUR?n>=a.ONE_HOUR?\"hourmin\":\"minutes\":o<a.ONE_DAY?\"hours\":o<a.ONE_MONTH?\"days\":o<a.ONE_YEAR?\"months\":\"years\"}function f(t){return(0,d.default)(t,\"%Y %m %d %H %M %S\").split(/\\s+/).map((t=>parseInt(t,10)))}function x(t,e){const o=(0,u.sprintf)(\"$1%06d\",N(t));return-1==(e=e.replace(/((^|[^%])(%%)*)%f/,o)).indexOf(\"%\")?e:(0,d.default)(t,e)}function N(t){return Math.round(t/1e3%1*1e6)}o.tm_index_for_resolution.set(\"seconds\",5),o.tm_index_for_resolution.set(\"minsec\",4),o.tm_index_for_resolution.set(\"minutes\",4),o.tm_index_for_resolution.set(\"hourmin\",3),o.tm_index_for_resolution.set(\"hours\",3),o._get_resolution=h,o._mktime=f,o._strftime=x,o._us=N;class O extends m.TickFormatter{constructor(t){super(t)}doFormat(t,e,o){if(0==t.length)return[];const n=Math.abs(t[t.length-1]-t[0])/1e3,r=n/(t.length-1),s=(0,l.is_undefined)(o)?h(r,n):o,i=[];for(const[e,o]of(0,_.enumerate)(t)){const n=this._compute_label(e,s),r=this._add_context(e,n,o,t.length,s);i.push(r)}return i}_compute_label(t,e){const n=x(t,this[e]),r=f(t),s=o.resolution_order.indexOf(e);let i,c=n,_=!1,u=s;for(;0==r[o.tm_index_for_resolution.get(o.resolution_order[u])]&&(u+=1,u!=o.resolution_order.length);){if((\"minsec\"==e||\"hourmin\"==e)&&!_){if(\"minsec\"==e&&0==r[4]&&0!=r[5]||\"hourmin\"==e&&0==r[3]&&0!=r[4]){i=o.resolution_order[s-1],c=x(t,this[i]);break}_=!0}i=o.resolution_order[u],c=x(t,this[i])}if(this.strip_leading_zeros){const t=c.replace(/^0+/g,\"\");return t!=c&&isNaN(parseInt(t))?`0${t}`:t}return c}_add_context(t,e,o,n,r){const s=this.context_location,i=this.context_which;if(null==this.context)return e;if(\"start\"==i&&0==o||\"end\"==i&&o==n-1||\"center\"==i&&o==Math.floor(n/2)||\"all\"==i){const o=(0,l.isString)(this.context)?x(t,this.context):this.context.doFormat([t],{loc:0},r)[0];if(\"\"==o)return e;switch(s){case\"above\":return`${o}\\n${e}`;case\"below\":return`${e}\\n${o}`;case\"left\":return`${o} ${e}`;case\"right\":return`${e} ${o}`}}return e}}o.DatetimeTickFormatter=O,s=O,O.__name__=\"DatetimeTickFormatter\",s.define((({Boolean:t,Nullable:e,Or:o,Ref:n,String:r})=>({microseconds:[r,\"%fus\"],milliseconds:[r,\"%3Nms\"],seconds:[r,\"%Ss\"],minsec:[r,\":%M:%S\"],minutes:[r,\":%M\"],hourmin:[r,\"%H:%M\"],hours:[r,\"%Hh\"],days:[r,\"%m/%d\"],months:[r,\"%m/%Y\"],years:[r,\"%Y\"],strip_leading_zeros:[t,!0],context:[e(o(r,n(O))),null],context_which:[c.ContextWhich,\"start\"],context_location:[c.Location,\"below\"]})))},\n function _(r,n,t,e,u){e();const i=r(1),l=i.__importStar(r(171)),a=r(172),f=i.__importDefault(r(173)),o=r(20),s=r(8);function c(r,...n){return(0,a.sprintf)(r,...n)}function m(r,n,t){if((0,s.isNumber)(r)){return c((()=>{switch(!1){case Math.floor(r)!=r:return\"%d\";case!(Math.abs(r)>.1&&Math.abs(r)<1e3):return\"%0.3f\";default:return\"%0.3e\"}})(),r)}return`${r}`}function _(r,n,e){if(null==n)return m;if(null!=e&&r in e){const n=e[r];if((0,s.isString)(n)){if(n in t.DEFAULT_FORMATTERS)return t.DEFAULT_FORMATTERS[n];throw new Error(`Unknown tooltip field formatter type '${n}'`)}return function(r,t,e){return n.format(r,t,e)}}return t.DEFAULT_FORMATTERS.numeral}function p(r,n,t){const e=n.get_column(r);if(null==e)return null;if(null==t)return null;if((0,s.isNumber)(t))return e[t];const u=e[t.index];if((0,s.isTypedArray)(u)||(0,s.isArray)(u)){if((0,s.isArray)(u[0])){return u[t.j][t.i]}return u[t.flat_index]}return u}function T(r,n,t,e){if(\"$\"==r[0]){return function(r,n){if(r in n)return n[r];throw new Error(`Unknown special variable '$${r}'`)}(r.substring(1),e)}return p(r.substring(1).replace(/[{}]/g,\"\"),n,t)}t.FormatterType=(0,o.Enum)(\"numeral\",\"printf\",\"datetime\"),t.DEFAULT_FORMATTERS={numeral:(r,n,t)=>l.format(r,n),datetime:(r,n,t)=>(0,f.default)(r,n),printf:(r,n,t)=>c(n,r)},t.sprintf=c,t.basic_formatter=m,t.get_formatter=_,t._get_column_value=p,t.get_value=T,t.replace_placeholders=function(r,n,t,e,u={},i){let l,a;if((0,s.isString)(r)?(l=r,a=!1):(l=r.html,a=!0),l=l.replace(/@\\$name/g,(r=>`@{${u.name}}`)),l=l.replace(/((?:\\$\\w+)|(?:@\\w+)|(?:@{(?:[^{}]+)}))(?:{([^{}]+)})?/g,((r,l,f)=>{const o=T(l,n,t,u);if(null==o)return null!=i?i(\"???\"):\"???\";if(\"safe\"==f)return a=!0,`${o}`;const s=`${_(l,f,e)(o,f,u)}`;return null!=i?i(s):s})),a){return[...(new DOMParser).parseFromString(l,\"text/html\").body.childNodes]}return l}},\n function _(e,n,t,r,i){\n /*!\n * numbro.js\n * version : 1.6.2\n * author : Företagsplatsen AB\n * license : MIT\n * http://www.foretagsplatsen.se\n */\n var a,o={},l=o,u=\"en-US\",c=null,s=\"0,0\";void 0!==n&&n.exports;function f(e){this._value=e}function d(e){var n,t=\"\";for(n=0;n<e;n++)t+=\"0\";return t}function h(e,n,t,r){var i,a,o=Math.pow(10,n);return a=e.toFixed(0).search(\"e\")>-1?function(e,n){var t,r,i,a;return t=(a=e.toString()).split(\"e\")[0],i=a.split(\"e\")[1],a=t.split(\".\")[0]+(r=t.split(\".\")[1]||\"\")+d(i-r.length),n>0&&(a+=\".\"+d(n)),a}(e,n):(t(e*o)/o).toFixed(n),r&&(i=new RegExp(\"0{1,\"+r+\"}$\"),a=a.replace(i,\"\")),a}function p(e,n,t){var r;return r=n.indexOf(\"$\")>-1?function(e,n,t){var r,i,a=n,l=a.indexOf(\"$\"),c=a.indexOf(\"(\"),s=a.indexOf(\"+\"),f=a.indexOf(\"-\"),d=\"\",h=\"\";-1===a.indexOf(\"$\")?\"infix\"===o[u].currency.position?(h=o[u].currency.symbol,o[u].currency.spaceSeparated&&(h=\" \"+h+\" \")):o[u].currency.spaceSeparated&&(d=\" \"):a.indexOf(\" $\")>-1?(d=\" \",a=a.replace(\" $\",\"\")):a.indexOf(\"$ \")>-1?(d=\" \",a=a.replace(\"$ \",\"\")):a=a.replace(\"$\",\"\");if(i=m(e,a,t,h),-1===n.indexOf(\"$\"))switch(o[u].currency.position){case\"postfix\":i.indexOf(\")\")>-1?((i=i.split(\"\")).splice(-1,0,d+o[u].currency.symbol),i=i.join(\"\")):i=i+d+o[u].currency.symbol;break;case\"infix\":break;case\"prefix\":i.indexOf(\"(\")>-1||i.indexOf(\"-\")>-1?(i=i.split(\"\"),r=Math.max(c,f)+1,i.splice(r,0,o[u].currency.symbol+d),i=i.join(\"\")):i=o[u].currency.symbol+d+i;break;default:throw Error('Currency position should be among [\"prefix\", \"infix\", \"postfix\"]')}else l<=1?i.indexOf(\"(\")>-1||i.indexOf(\"+\")>-1||i.indexOf(\"-\")>-1?(r=1,(l<c||l<s||l<f)&&(r=0),(i=i.split(\"\")).splice(r,0,o[u].currency.symbol+d),i=i.join(\"\")):i=o[u].currency.symbol+d+i:i.indexOf(\")\")>-1?((i=i.split(\"\")).splice(-1,0,d+o[u].currency.symbol),i=i.join(\"\")):i=i+d+o[u].currency.symbol;return i}(e,n,t):n.indexOf(\"%\")>-1?function(e,n,t){var r,i=\"\";e*=100,n.indexOf(\" %\")>-1?(i=\" \",n=n.replace(\" %\",\"\")):n=n.replace(\"%\",\"\");r=m(e,n,t),r.indexOf(\")\")>-1?((r=r.split(\"\")).splice(-1,0,i+\"%\"),r=r.join(\"\")):r=r+i+\"%\";return r}(e,n,t):n.indexOf(\":\")>-1?function(e){var n=Math.floor(e/60/60),t=Math.floor((e-60*n*60)/60),r=Math.round(e-60*n*60-60*t);return n+\":\"+(t<10?\"0\"+t:t)+\":\"+(r<10?\"0\"+r:r)}(e):m(e,n,t),r}function m(e,n,t,r){var i,a,l,s,f,d,p,m,x,g,O,b,w,y,M,v,$,B=!1,E=!1,F=!1,k=\"\",U=!1,N=!1,S=!1,j=!1,D=!1,C=\"\",L=\"\",T=Math.abs(e),K=[\"B\",\"KiB\",\"MiB\",\"GiB\",\"TiB\",\"PiB\",\"EiB\",\"ZiB\",\"YiB\"],G=[\"B\",\"KB\",\"MB\",\"GB\",\"TB\",\"PB\",\"EB\",\"ZB\",\"YB\"],I=\"\",P=!1,R=!1;if(0===e&&null!==c)return c;if(!isFinite(e))return\"\"+e;if(0===n.indexOf(\"{\")){var W=n.indexOf(\"}\");if(-1===W)throw Error('Format should also contain a \"}\"');b=n.slice(1,W),n=n.slice(W+1)}else b=\"\";if(n.indexOf(\"}\")===n.length-1){var Y=n.indexOf(\"{\");if(-1===Y)throw Error('Format should also contain a \"{\"');w=n.slice(Y+1,-1),n=n.slice(0,Y+1)}else w=\"\";if(v=null===($=-1===n.indexOf(\".\")?n.match(/([0-9]+).*/):n.match(/([0-9]+)\\..*/))?-1:$[1].length,-1!==n.indexOf(\"-\")&&(P=!0),n.indexOf(\"(\")>-1?(B=!0,n=n.slice(1,-1)):n.indexOf(\"+\")>-1&&(E=!0,n=n.replace(/\\+/g,\"\")),n.indexOf(\"a\")>-1){if(g=n.split(\".\")[0].match(/[0-9]+/g)||[\"0\"],g=parseInt(g[0],10),U=n.indexOf(\"aK\")>=0,N=n.indexOf(\"aM\")>=0,S=n.indexOf(\"aB\")>=0,j=n.indexOf(\"aT\")>=0,D=U||N||S||j,n.indexOf(\" a\")>-1?(k=\" \",n=n.replace(\" a\",\"\")):n=n.replace(\"a\",\"\"),p=0===(p=(f=Math.floor(Math.log(T)/Math.LN10)+1)%3)?3:p,g&&0!==T&&(d=Math.floor(Math.log(T)/Math.LN10)+1-g,m=3*~~((Math.min(g,f)-p)/3),T/=Math.pow(10,m),-1===n.indexOf(\".\")&&g>3))for(n+=\"[.]\",M=(M=0===d?0:3*~~(d/3)-d)<0?M+3:M,i=0;i<M;i++)n+=\"0\";Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==g&&(T>=Math.pow(10,12)&&!D||j?(k+=o[u].abbreviations.trillion,e/=Math.pow(10,12)):T<Math.pow(10,12)&&T>=Math.pow(10,9)&&!D||S?(k+=o[u].abbreviations.billion,e/=Math.pow(10,9)):T<Math.pow(10,9)&&T>=Math.pow(10,6)&&!D||N?(k+=o[u].abbreviations.million,e/=Math.pow(10,6)):(T<Math.pow(10,6)&&T>=Math.pow(10,3)&&!D||U)&&(k+=o[u].abbreviations.thousand,e/=Math.pow(10,3)))}if(n.indexOf(\"b\")>-1)for(n.indexOf(\" b\")>-1?(C=\" \",n=n.replace(\" b\",\"\")):n=n.replace(\"b\",\"\"),s=0;s<=K.length;s++)if(a=Math.pow(1024,s),l=Math.pow(1024,s+1),e>=a&&e<l){C+=K[s],a>0&&(e/=a);break}if(n.indexOf(\"d\")>-1)for(n.indexOf(\" d\")>-1?(C=\" \",n=n.replace(\" d\",\"\")):n=n.replace(\"d\",\"\"),s=0;s<=G.length;s++)if(a=Math.pow(1e3,s),l=Math.pow(1e3,s+1),e>=a&&e<l){C+=G[s],a>0&&(e/=a);break}if(n.indexOf(\"o\")>-1&&(n.indexOf(\" o\")>-1?(L=\" \",n=n.replace(\" o\",\"\")):n=n.replace(\"o\",\"\"),o[u].ordinal&&(L+=o[u].ordinal(e))),n.indexOf(\"[.]\")>-1&&(F=!0,n=n.replace(\"[.]\",\".\")),x=e.toString().split(\".\")[0],O=n.split(\".\")[1],y=n.indexOf(\",\"),O){if(x=(I=-1!==O.indexOf(\"*\")?h(e,e.toString().split(\".\")[1].length,t):O.indexOf(\"[\")>-1?h(e,(O=(O=O.replace(\"]\",\"\")).split(\"[\"))[0].length+O[1].length,t,O[1].length):h(e,O.length,t)).split(\".\")[0],I.split(\".\")[1].length)I=(r?k+r:o[u].delimiters.decimal)+I.split(\".\")[1];else I=\"\";F&&0===Number(I.slice(1))&&(I=\"\")}else x=h(e,null,t);return x.indexOf(\"-\")>-1&&(x=x.slice(1),R=!0),x.length<v&&(x=new Array(v-x.length+1).join(\"0\")+x),y>-1&&(x=x.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g,\"$1\"+o[u].delimiters.thousands)),0===n.indexOf(\".\")&&(x=\"\"),b+(n.indexOf(\"(\")<n.indexOf(\"-\")?(B&&R?\"(\":\"\")+(P&&R||!B&&R?\"-\":\"\"):(P&&R||!B&&R?\"-\":\"\")+(B&&R?\"(\":\"\"))+(!R&&E&&0!==e?\"+\":\"\")+x+I+(L||\"\")+(k&&!r?k:\"\")+(C||\"\")+(B&&R?\")\":\"\")+w}function x(e,n){o[e]=n}function g(e){u=e;var n=o[e].defaults;n&&n.format&&a.defaultFormat(n.format),n&&n.currencyFormat&&a.defaultCurrencyFormat(n.currencyFormat)}(a=function(e){return a.isNumbro(e)?e=e.value():0===e||void 0===e?e=0:Number(e)||(e=a.fn.unformat(e)),new f(Number(e))}).version=\"1.6.2\",a.isNumbro=function(e){return e instanceof f},a.setLanguage=function(e,n){console.warn(\"`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead\");var t=e,r=e.split(\"-\")[0],i=null;l[t]||(Object.keys(l).forEach((function(e){i||e.split(\"-\")[0]!==r||(i=e)})),t=i||n||\"en-US\"),g(t)},a.setCulture=function(e,n){var t=e,r=e.split(\"-\")[1],i=null;o[t]||(r&&Object.keys(o).forEach((function(e){i||e.split(\"-\")[1]!==r||(i=e)})),t=i||n||\"en-US\"),g(t)},a.language=function(e,n){if(console.warn(\"`language` is deprecated since version 1.6.0. Use `culture` instead\"),!e)return u;if(e&&!n){if(!l[e])throw new Error(\"Unknown language : \"+e);g(e)}return!n&&l[e]||x(e,n),a},a.culture=function(e,n){if(!e)return u;if(e&&!n){if(!o[e])throw new Error(\"Unknown culture : \"+e);g(e)}return!n&&o[e]||x(e,n),a},a.languageData=function(e){if(console.warn(\"`languageData` is deprecated since version 1.6.0. Use `cultureData` instead\"),!e)return l[u];if(!l[e])throw new Error(\"Unknown language : \"+e);return l[e]},a.cultureData=function(e){if(!e)return o[u];if(!o[e])throw new Error(\"Unknown culture : \"+e);return o[e]},a.culture(\"en-US\",{delimiters:{thousands:\",\",decimal:\".\"},abbreviations:{thousand:\"k\",million:\"m\",billion:\"b\",trillion:\"t\"},ordinal:function(e){var n=e%10;return 1==~~(e%100/10)?\"th\":1===n?\"st\":2===n?\"nd\":3===n?\"rd\":\"th\"},currency:{symbol:\"$\",position:\"prefix\"},defaults:{currencyFormat:\",0000 a\"},formats:{fourDigits:\"0000 a\",fullWithTwoDecimals:\"$ ,0.00\",fullWithTwoDecimalsNoCurrency:\",0.00\"}}),a.languages=function(){return console.warn(\"`languages` is deprecated since version 1.6.0. Use `cultures` instead\"),l},a.cultures=function(){return o},a.zeroFormat=function(e){c=\"string\"==typeof e?e:null},a.defaultFormat=function(e){s=\"string\"==typeof e?e:\"0.0\"},a.defaultCurrencyFormat=function(e){\"string\"==typeof e?e:\"0$\"},a.validate=function(e,n){var t,r,i,o,l,u,c,s;if(\"string\"!=typeof e&&(e+=\"\",console.warn&&console.warn(\"Numbro.js: Value is not string. It has been co-erced to: \",e)),(e=e.trim()).match(/^\\d+$/))return!0;if(\"\"===e)return!1;try{c=a.cultureData(n)}catch(e){c=a.cultureData(a.culture())}return i=c.currency.symbol,l=c.abbreviations,t=c.delimiters.decimal,r=\".\"===c.delimiters.thousands?\"\\\\.\":c.delimiters.thousands,(null===(s=e.match(/^[^\\d]+/))||(e=e.substr(1),s[0]===i))&&((null===(s=e.match(/[^\\d]+$/))||(e=e.slice(0,-1),s[0]===l.thousand||s[0]===l.million||s[0]===l.billion||s[0]===l.trillion))&&(u=new RegExp(r+\"{2}\"),!e.match(/[^\\d.,]/g)&&(!((o=e.split(t)).length>2)&&(o.length<2?!!o[0].match(/^\\d+.*\\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\\d+$/):!!o[0].match(/^\\d+.*\\d$/)&&!o[0].match(u)&&!!o[1].match(/^\\d+$/)))))},n.exports={format:function(e,n,t,r){return null!=t&&t!==a.culture()&&a.setCulture(t),p(Number(e),null!=n?n:s,null==r?Math.round:r)}}},\n function _(e,n,t,r,i){!function(){\"use strict\";var e={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 n(t){return function(t,r){var i,s,a,o,p,c,l,u,f,d=1,g=t.length,y=\"\";for(s=0;s<g;s++)if(\"string\"==typeof t[s])y+=t[s];else if(\"object\"==typeof t[s]){if((o=t[s]).keys)for(i=r[d],a=0;a<o.keys.length;a++){if(null==i)throw new Error(n('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"',o.keys[a],o.keys[a-1]));i=i[o.keys[a]]}else i=o.param_no?r[o.param_no]:r[d++];if(e.not_type.test(o.type)&&e.not_primitive.test(o.type)&&i instanceof Function&&(i=i()),e.numeric_arg.test(o.type)&&\"number\"!=typeof i&&isNaN(i))throw new TypeError(n(\"[sprintf] expecting number but found %T\",i));switch(e.number.test(o.type)&&(u=i>=0),o.type){case\"b\":i=parseInt(i,10).toString(2);break;case\"c\":i=String.fromCharCode(parseInt(i,10));break;case\"d\":case\"i\":i=parseInt(i,10);break;case\"j\":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case\"e\":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case\"f\":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case\"g\":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case\"o\":i=(parseInt(i,10)>>>0).toString(8);break;case\"s\":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case\"t\":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case\"T\":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case\"u\":i=parseInt(i,10)>>>0;break;case\"v\":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case\"x\":i=(parseInt(i,10)>>>0).toString(16);break;case\"X\":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(o.type)?y+=i:(!e.number.test(o.type)||u&&!o.sign?f=\"\":(f=u?\"+\":\"-\",i=i.toString().replace(e.sign,\"\")),c=o.pad_char?\"0\"===o.pad_char?\"0\":o.pad_char.charAt(1):\" \",l=o.width-(f+i).length,p=o.width&&l>0?c.repeat(l):\"\",y+=o.align?f+i+p:\"0\"===c?f+p+i:p+f+i)}return y}(function(n){if(i[n])return i[n];var t,r=n,s=[],a=0;for(;r;){if(null!==(t=e.text.exec(r)))s.push(t[0]);else if(null!==(t=e.modulo.exec(r)))s.push(\"%\");else{if(null===(t=e.placeholder.exec(r)))throw new SyntaxError(\"[sprintf] unexpected placeholder\");if(t[2]){a|=1;var o=[],p=t[2],c=[];if(null===(c=e.key.exec(p)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");for(o.push(c[1]);\"\"!==(p=p.substring(c[0].length));)if(null!==(c=e.key_access.exec(p)))o.push(c[1]);else{if(null===(c=e.index_access.exec(p)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");s.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return i[n]=s}(t),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}var i=Object.create(null);void 0!==t&&(t.sprintf=n,t.vsprintf=r),\"undefined\"!=typeof window&&(window.sprintf=n,window.vsprintf=r,\"function\"==typeof define&&define.amd&&define((function(){return{sprintf:n,vsprintf:r}})))}()},\n function _(e,t,n,r,o){!function(e){\"object\"==typeof t&&t.exports?t.exports=e():\"function\"==typeof define?define(e):this.tz=e()}((function(){function e(e,t,n){var r,o=t.day[1];do{r=new Date(Date.UTC(n,t.month,Math.abs(o++)))}while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return(r={clock:t.clock,sort:r.getTime(),rule:t,save:6e4*t.save,offset:e.offset})[r.clock]=r.sort+6e4*t.time,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var o,a,u,i,l,s,c,f=t[t.zone],h=[],T=new Date(r).getUTCFullYear(),g=1;for(o=1,a=f.length;o<a&&!(f[o][n]<=r);o++);if((u=f[o]).rules){for(s=t[u.rules],c=T+1;c>=T-g;--c)for(o=0,a=s.length;o<a;o++)s[o].from<=c&&c<=s[o].to?h.push(e(u,s[o],c)):s[o].to<c&&1==g&&(g=c-s[o].to);for(h.sort((function(e,t){return e.sort-t.sort})),o=0,a=h.length;o<a;o++)r>=h[o][n]&&h[o][h[o].clock]>u[h[o].clock]&&(i=h[o])}return i&&((l=/^(.*)\\/(.*)$/.exec(u.format))?i.abbrev=l[i.save?2:1]:i.abbrev=u.format.replace(/%s/,i.rule.letter)),i||u}function n(e,n){return\"UTC\"==e.zone?n:(e.entry=t(e,\"posix\",n),n+e.entry.offset+e.entry.save)}function r(e,n){return\"UTC\"==e.zone?n:(e.entry=r=t(e,\"wallclock\",n),0<(o=n-r.wallclock)&&o<r.save?null:n-r.offset-r.save);var r,o}function o(e,t,o){var a,i=+(o[1]+1),s=o[2]*i,c=u.indexOf(o[3].toLowerCase());if(c>9)t+=s*l[c-10];else{if(a=new Date(n(e,t)),c<7)for(;s;)a.setUTCDate(a.getUTCDate()+i),a.getUTCDay()==c&&(s-=i);else 7==c?a.setUTCFullYear(a.getUTCFullYear()+s):8==c?a.setUTCMonth(a.getUTCMonth()+s):a.setUTCDate(a.getUTCDate()+s);null==(t=r(e,a.getTime()))&&(t=r(e,a.getTime()+864e5*i)-864e5*i)}return t}var a={clock:function(){return+new Date},zone:\"UTC\",entry:{abbrev:\"UTC\",offset:0,save:0},UTC:1,z:function(e,t,n,r){var o,a,u=this.entry.offset+this.entry.save,i=Math.abs(u/1e3),l=[],s=3600;for(o=0;o<3;o++)l.push((\"0\"+Math.floor(i/s)).slice(-2)),i%=s,s/=60;return\"^\"!=n||u?(\"^\"==n&&(r=3),3==r?(a=(a=l.join(\":\")).replace(/:00$/,\"\"),\"^\"!=n&&(a=a.replace(/:00$/,\"\"))):r?(a=l.slice(0,r+1).join(\":\"),\"^\"==n&&(a=a.replace(/:00$/,\"\"))):a=l.slice(0,2).join(\"\"),a=(a=(u<0?\"-\":\"+\")+a).replace(/([-+])(0)/,{_:\" $1\",\"-\":\"$1\"}[n]||\"$1$2\")):\"Z\"},\"%\":function(e){return\"%\"},n:function(e){return\"\\n\"},t:function(e){return\"\\t\"},U:function(e){return s(e,0)},W:function(e){return s(e,1)},V:function(e){return c(e)[0]},G:function(e){return c(e)[1]},g:function(e){return c(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,\"%H:%M\"])},T:function(e,t){return this.convert([t,\"%H:%M:%S\"])},D:function(e,t){return this.convert([t,\"%m/%d/%y\"])},F:function(e,t){return this.convert([t,\"%Y-%m-%d\"])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||\"%I:%M:%S\"])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:function(e){if(!e.length)return\"1.0.23\";var t,a,u,l,s,c=Object.create(this),f=[];for(t=0;t<e.length;t++)if(l=e[t],Array.isArray(l))t||isNaN(l[1])?l.splice.apply(e,[t--,1].concat(l)):s=l;else if(isNaN(l)){if(\"string\"==(u=typeof l))~l.indexOf(\"%\")?c.format=l:t||\"*\"!=l?!t&&(u=/^(\\d{4})-(\\d{2})-(\\d{2})(?:[T\\s](\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d+))?)?(Z|(([+-])(\\d{2}(:\\d{2}){0,2})))?)?$/.exec(l))?((s=[]).push.apply(s,u.slice(1,8)),u[9]?(s.push(u[10]+1),s.push.apply(s,u[11].split(/:/))):u[8]&&s.push(1)):/^\\w{2,3}_\\w{2}$/.test(l)?c.locale=l:(u=i.exec(l))?f.push(u):c.zone=l:s=l;else if(\"function\"==u){if(u=l.call(c))return u}else if(/^\\w{2,3}_\\w{2}$/.test(l.name))c[l.name]=l;else if(l.zones){for(u in l.zones)c[u]=l.zones[u];for(u in l.rules)c[u]=l.rules[u]}}else t||(s=l);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=s){if(\"*\"==s)s=c.clock();else if(Array.isArray(s)){for(u=[],a=!s[7],t=0;t<11;t++)u[t]=+(s[t]||0);--u[1],s=Date.UTC.apply(Date.UTC,u)+-u[7]*(36e5*u[8]+6e4*u[9]+1e3*u[10])}else s=Math.floor(s);if(!isNaN(s)){if(a&&(s=r(c,s)),null==s)return s;for(t=0,a=f.length;t<a;t++)s=o(c,s,f[t]);return c.format?(u=new Date(n(c,s)),c.format.replace(/%([-0_^]?)(:{0,3})(\\d*)(.)/g,(function(e,t,n,r,o){var a,i,l=\"0\";if(a=c[o]){for(e=String(a.call(c,u,s,t,n.length)),\"_\"==(t||a.style)&&(l=\" \"),i=\"-\"==t?0:a.pad||0;e.length<i;)e=l+e;for(i=\"-\"==t?0:r||a.pad;e.length<i;)e=l+e;\"N\"==o&&i<e.length&&(e=e.slice(0,i)),\"^\"==t&&(e=e.toUpperCase())}return e}))):s}}return function(){return c.convert(arguments)}},locale:\"en_US\",en_US:{date:\"%m/%d/%Y\",time24:\"%I:%M:%S %p\",time12:\"%I:%M:%S %p\",dateTime:\"%a %d %b %Y %I:%M:%S %p %Z\",meridiem:[\"AM\",\"PM\"],month:{abbrev:\"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec\".split(\"|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|\")},day:{abbrev:\"Sun|Mon|Tue|Wed|Thu|Fri|Sat\".split(\"|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|\")}}},u=\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond\",i=new RegExp(\"^\\\\s*([+-])(\\\\d+)\\\\s+(\"+u+\")s?\\\\s*$\",\"i\"),l=[36e5,6e4,1e3,1];function s(e,t){var n,r,o;return r=new Date(Date.UTC(e.getUTCFullYear(),0)),n=Math.floor((e.getTime()-r.getTime())/864e5),r.getUTCDay()==t?o=0:8==(o=7-r.getUTCDay()+t)&&(o=1),n>=o?Math.floor((n-o)/7)+1:0}function c(e){var t,n,r;return n=e.getUTCFullYear(),t=new Date(Date.UTC(n,0)).getUTCDay(),(r=s(e,1)+(t>1&&t<=4?1:0))?53!=r||4==t||3==t&&29==new Date(n,1,29).getDate()?[r,e.getUTCFullYear()]:[1,e.getUTCFullYear()+1]:(n=e.getUTCFullYear()-1,[r=4==(t=new Date(Date.UTC(n,0)).getUTCDay())||3==t&&29==new Date(n,1,29).getDate()?53:52,e.getUTCFullYear()-1])}return u=u.toLowerCase().split(\"|\"),\"delmHMSUWVgCIky\".replace(/./g,(function(e){a[e].pad=2})),a.N.pad=9,a.j.pad=3,a.k.style=\"_\",a.l.style=\"_\",a.e.style=\"_\",function(){return a.convert(arguments)}}))},\n function _(t,n,e,_,E){function N(t){return new Date(t.getTime())}function O(t){const n=N(t);return n.setUTCDate(1),n.setUTCHours(0),n.setUTCMinutes(0),n.setUTCSeconds(0),n.setUTCMilliseconds(0),n}_(),e.ONE_MILLI=1,e.ONE_SECOND=1e3,e.ONE_MINUTE=60*e.ONE_SECOND,e.ONE_HOUR=60*e.ONE_MINUTE,e.ONE_DAY=24*e.ONE_HOUR,e.ONE_MONTH=30*e.ONE_DAY,e.ONE_YEAR=365*e.ONE_DAY,e.copy_date=N,e.last_month_no_later_than=O,e.last_year_no_later_than=function(t){const n=O(t);return n.setUTCMonth(0),n}},\n function _(e,n,i,a,s){var r;a();const t=e(10),c=e(176),m=e(178),_=e(179),k=e(181),o=e(182),T=e(174);class w extends m.CompositeTicker{constructor(e){super(e)}}i.DatetimeTicker=w,r=w,w.__name__=\"DatetimeTicker\",r.override({num_minor_ticks:0,tickers:()=>[new c.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*T.ONE_MILLI,num_minor_ticks:0}),new c.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:T.ONE_SECOND,max_interval:30*T.ONE_MINUTE,num_minor_ticks:0}),new c.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:T.ONE_HOUR,max_interval:12*T.ONE_HOUR,num_minor_ticks:0}),new _.DaysTicker({days:(0,t.range)(1,32)}),new _.DaysTicker({days:(0,t.range)(1,31,3)}),new _.DaysTicker({days:[1,8,15,22]}),new _.DaysTicker({days:[1,15]}),new k.MonthsTicker({months:(0,t.range)(0,12,1)}),new k.MonthsTicker({months:(0,t.range)(0,12,2)}),new k.MonthsTicker({months:(0,t.range)(0,12,4)}),new k.MonthsTicker({months:(0,t.range)(0,12,6)}),new o.YearsTicker({})]})},\n function _(t,i,a,s,e){var n;s();const r=t(177),_=t(10),l=t(11);class h extends r.ContinuousTicker{constructor(t){super(t)}get_min_interval(){return this.min_interval}get_max_interval(){var t;return null!==(t=this.max_interval)&&void 0!==t?t:1/0}initialize(){super.initialize();const t=(0,_.nth)(this.mantissas,-1)/this.base,i=(0,_.nth)(this.mantissas,0)*this.base;this.extended_mantissas=[t,...this.mantissas,i],this.base_factor=0===this.get_min_interval()?1:this.get_min_interval()}get_interval(t,i,a){const s=i-t,e=this.get_ideal_interval(t,i,a),n=Math.floor((0,l.log)(e/this.base_factor,this.base)),r=this.base**n*this.base_factor,h=this.extended_mantissas,m=h.map((t=>Math.abs(a-s/(t*r)))),v=h[(0,_.argmin)(m)]*r;return(0,l.clamp)(v,this.get_min_interval(),this.get_max_interval())}}a.AdaptiveTicker=h,n=h,h.__name__=\"AdaptiveTicker\",n.define((({Number:t,Array:i,Nullable:a})=>({base:[t,10],mantissas:[i(t),[1,2,5]],min_interval:[t,0],max_interval:[a(t),null]})))},\n function _(t,n,i,s,e){var o;s();const r=t(161),c=t(10);class _ extends r.Ticker{constructor(t){super(t)}get_ticks(t,n,i,s){return this.get_ticks_no_defaults(t,n,s,this.desired_num_ticks)}get_ticks_no_defaults(t,n,i,s){const e=this.get_interval(t,n,s),o=Math.floor(t/e),r=Math.ceil(n/e);let _;_=isFinite(o)&&isFinite(r)?(0,c.range)(o,r+1):[];const u=_.map((t=>t*e)).filter((i=>t<=i&&i<=n)),a=this.num_minor_ticks,f=[];if(a>0&&u.length>0){const i=e/a,s=(0,c.range)(0,a).map((t=>t*i));for(const i of s.slice(1)){const s=u[0]-i;t<=s&&s<=n&&f.push(s)}for(const i of u)for(const e of s){const s=i+e;t<=s&&s<=n&&f.push(s)}}return{major:u,minor:f}}get_ideal_interval(t,n,i){return(n-t)/i}}i.ContinuousTicker=_,o=_,_.__name__=\"ContinuousTicker\",o.define((({Int:t})=>({num_minor_ticks:[t,5],desired_num_ticks:[t,6]})))},\n function _(t,e,i,r,s){var n;r();const _=t(177),a=t(10);class l extends _.ContinuousTicker{constructor(t){super(t)}get min_intervals(){return this.tickers.map((t=>t.get_min_interval()))}get max_intervals(){return this.tickers.map((t=>t.get_max_interval()))}get_min_interval(){return this.min_intervals[0]}get_max_interval(){return this.max_intervals[0]}get_best_ticker(t,e,i){const r=e-t,s=this.get_ideal_interval(t,e,i),n=[(0,a.sorted_index)(this.min_intervals,s)-1,(0,a.sorted_index)(this.max_intervals,s)],_=[this.min_intervals[n[0]],this.max_intervals[n[1]]].map((t=>Math.abs(i-r/t)));let l;if((0,a.is_empty)(_.filter((t=>!isNaN(t)))))l=this.tickers[0];else{const t=n[(0,a.argmin)(_)];l=this.tickers[t]}return l}get_interval(t,e,i){return this.get_best_ticker(t,e,i).get_interval(t,e,i)}get_ticks_no_defaults(t,e,i,r){return this.get_best_ticker(t,e,r).get_ticks_no_defaults(t,e,i,r)}}i.CompositeTicker=l,n=l,l.__name__=\"CompositeTicker\",n.define((({Array:t,Ref:e})=>({tickers:[t(e(_.ContinuousTicker)),[]]})))},\n function _(t,e,n,s,a){var o;s();const i=t(180),r=t(174),c=t(10);class _ extends i.BaseSingleIntervalTicker{constructor(t){super(t)}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*r.ONE_DAY:this.interval=31*r.ONE_DAY}get_ticks_no_defaults(t,e,n,s){const a=function(t,e){const n=(0,r.last_month_no_later_than)(new Date(t)),s=(0,r.last_month_no_later_than)(new Date(e));s.setUTCMonth(s.getUTCMonth()+1);const a=[],o=n;for(;a.push((0,r.copy_date)(o)),o.setUTCMonth(o.getUTCMonth()+1),!(o>s););return a}(t,e),o=this.days;return{major:(0,c.concat)(a.map((t=>((t,e)=>{const n=t.getUTCMonth(),s=[];for(const a of o){const o=(0,r.copy_date)(t);o.setUTCDate(a),new Date(o.getTime()+e/2).getUTCMonth()==n&&s.push(o)}return s})(t,this.interval)))).map((t=>t.getTime())).filter((n=>t<=n&&n<=e)),minor:[]}}}n.DaysTicker=_,o=_,_.__name__=\"DaysTicker\",o.define((({Int:t,Array:e})=>({days:[e(t),[]]}))),o.override({num_minor_ticks:0})},\n function _(e,n,r,t,i){var a;t();const l=e(177);class s extends l.ContinuousTicker{constructor(e){super(e)}get_interval(e,n,r){return this.interval}get_min_interval(){return this.interval}get_max_interval(){return this.interval}}r.BaseSingleIntervalTicker=s,s.__name__=\"BaseSingleIntervalTicker\";class _ extends s{constructor(e){super(e)}}r.SingleIntervalTicker=_,a=_,_.__name__=\"SingleIntervalTicker\",a.define((({Number:e})=>({interval:[e]})))},\n function _(t,e,n,a,r){var s;a();const i=t(180),o=t(174),l=t(10);class _ extends i.BaseSingleIntervalTicker{constructor(t){super(t)}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*o.ONE_MONTH:this.interval=12*o.ONE_MONTH}get_ticks_no_defaults(t,e,n,a){const r=function(t,e){const n=(0,o.last_year_no_later_than)(new Date(t)),a=(0,o.last_year_no_later_than)(new Date(e));a.setUTCFullYear(a.getUTCFullYear()+1);const r=[],s=n;for(;r.push((0,o.copy_date)(s)),s.setUTCFullYear(s.getUTCFullYear()+1),!(s>a););return r}(t,e),s=this.months;return{major:(0,l.concat)(r.map((t=>s.map((e=>{const n=(0,o.copy_date)(t);return n.setUTCMonth(e),n}))))).map((t=>t.getTime())).filter((n=>t<=n&&n<=e)),minor:[]}}}n.MonthsTicker=_,s=_,_.__name__=\"MonthsTicker\",s.define((({Int:t,Array:e})=>({months:[e(t),[]]})))},\n function _(e,t,a,r,_){r();const n=e(183),s=e(180),i=e(174);class c extends s.BaseSingleIntervalTicker{constructor(e){super(e),this.interval=i.ONE_YEAR,this.basic_ticker=new n.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,r){const _=(0,i.last_year_no_later_than)(new Date(e)).getUTCFullYear(),n=(0,i.last_year_no_later_than)(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(_,n,a,r).major.map((e=>Date.UTC(e,0,1))).filter((a=>e<=a&&a<=t)),minor:[]}}}a.YearsTicker=c,c.__name__=\"YearsTicker\"},\n function _(c,e,s,i,n){i();const r=c(176);class t extends r.AdaptiveTicker{constructor(c){super(c)}}s.BasicTicker=t,t.__name__=\"BasicTicker\"},\n function _(e,i,s,n,r){var t;n();const a=e(167),o=e(185),c=e(183);class _ extends a.ContinuousAxisView{}s.LinearAxisView=_,_.__name__=\"LinearAxisView\";class u extends a.ContinuousAxis{constructor(e){super(e)}}s.LinearAxis=u,t=u,u.__name__=\"LinearAxis\",t.prototype.default_view=_,t.override({ticker:()=>new c.BasicTicker,formatter:()=>new o.BasicTickFormatter})},\n function _(i,t,e,n,o){var r;n();const s=i(162),c=i(38);function _(i){let t=\"\";for(const e of i)t+=\"-\"==e?\"\\u2212\":e;return t}e.unicode_replace=_;class a extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,n=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const o of i){const i=Math.abs(o);if(!(i<=n)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){return t?i.map((i=>_(i.toExponential(e)))):i.map((i=>_((0,c.to_fixed)(i,e))))}_auto_precision(i,t){const e=new Array(i.length),n=this.last_precision<=15;i:for(let o=this.last_precision;n?o<=15:o>=1;n?o++:o--){if(t){e[0]=i[0].toExponential(o);for(let t=1;t<i.length;t++)if(e[t]==e[t-1])continue i;this.last_precision=o;break}e[0]=(0,c.to_fixed)(i[0],o);for(let t=1;t<i.length;t++)if(e[t]=(0,c.to_fixed)(i[t],o),e[t]==e[t-1])continue i;this.last_precision=o;break}return this.last_precision}doFormat(i,t){if(0==i.length)return[];const e=this._need_sci(i),n=\"auto\"==this.precision?this._auto_precision(i,e):this.precision;return this._format_with_precision(i,e,n)}}e.BasicTickFormatter=a,r=a,a.__name__=\"BasicTickFormatter\",r.define((({Boolean:i,Int:t,Auto:e,Or:n})=>({precision:[n(t,e),\"auto\"],use_scientific:[i,!0],power_limit_high:[t,5],power_limit_low:[t,-3]})))},\n function _(e,o,i,s,t){var n;s();const r=e(167),_=e(187),c=e(188);class a extends r.ContinuousAxisView{}i.LogAxisView=a,a.__name__=\"LogAxisView\";class u extends r.ContinuousAxis{constructor(e){super(e)}}i.LogAxis=u,n=u,u.__name__=\"LogAxis\",n.prototype.default_view=a,n.override({ticker:()=>new c.LogTicker,formatter:()=>new _.LogTickFormatter})},\n function _(e,t,n,o,r){var i;o();const a=e(162),s=e(185),c=e(188),l=e(151),{abs:u,log:x,round:_}=Math;class p extends a.TickFormatter{constructor(e){super(e)}initialize(){super.initialize(),this.basic_formatter=new s.BasicTickFormatter}format_graphics(e,t){var n,o;if(0==e.length)return[];const r=null!==(o=null===(n=this.ticker)||void 0===n?void 0:n.base)&&void 0!==o?o:10,i=this._exponents(e,r);return null==i?this.basic_formatter.format_graphics(e,t):i.map((e=>{if(u(e)<this.min_exponent){const t=new l.TextBox({text:(0,s.unicode_replace)(`${r**e}`)}),n=new l.TextBox({text:\"\"});return new l.BaseExpo(t,n)}{const t=new l.TextBox({text:(0,s.unicode_replace)(`${r}`)}),n=new l.TextBox({text:(0,s.unicode_replace)(`${e}`)});return new l.BaseExpo(t,n)}}))}_exponents(e,t){let n=null;const o=[];for(const r of e){const e=_(x(r)/x(t));if(n==e)return null;n=e,o.push(e)}return o}doFormat(e,t){var n,o;if(0==e.length)return[];const r=null!==(o=null===(n=this.ticker)||void 0===n?void 0:n.base)&&void 0!==o?o:10,i=this._exponents(e,r);return null==i?this.basic_formatter.doFormat(e,t):i.map((e=>u(e)<this.min_exponent?(0,s.unicode_replace)(`${r**e}`):(0,s.unicode_replace)(`${r}^${e}`)))}}n.LogTickFormatter=p,i=p,p.__name__=\"LogTickFormatter\",i.define((({Int:e,Ref:t,Nullable:n})=>({ticker:[n(t(c.LogTicker)),null],min_exponent:[e,0]})))},\n function _(t,o,e,s,n){var r;s();const i=t(176),a=t(10);class c extends i.AdaptiveTicker{constructor(t){super(t)}get_ticks_no_defaults(t,o,e,s){const n=this.num_minor_ticks,r=[],i=this.base,c=Math.log(t)/Math.log(i),f=Math.log(o)/Math.log(i),l=f-c;let h;if(isFinite(l)&&0!=l)if(l<2){const e=this.get_interval(t,o,s),i=Math.floor(t/e),c=Math.ceil(o/e);if(h=(0,a.range)(i,c+1).filter((t=>0!=t)).map((t=>t*e)).filter((e=>t<=e&&e<=o)),n>0&&h.length>0){const t=e/n,o=(0,a.range)(0,n).map((o=>o*t));for(const t of o.slice(1))r.push(h[0]-t);for(const t of h)for(const e of o)r.push(t+e)}}else{const t=Math.ceil(.999999*c),o=Math.floor(1.000001*f),e=Math.ceil((o-t)/9);if(h=(0,a.range)(t-1,o+1,e).map((t=>i**t)),n>0&&h.length>0){const t=i**e/n,o=(0,a.range)(1,n+1).map((o=>o*t));for(const t of o)r.push(h[0]/t);r.push(h[0]);for(const t of h)for(const e of o)r.push(t*e)}}else h=[];return{major:h.filter((e=>t<=e&&e<=o)),minor:r.filter((e=>t<=e&&e<=o))}}}e.LogTicker=c,r=c,c.__name__=\"LogTicker\",r.override({mantissas:[1,5]})},\n function _(e,r,t,i,a){var o;i();const s=e(159),c=e(184),n=e(190),_=e(191);class x extends s.AxisView{}t.MercatorAxisView=x,x.__name__=\"MercatorAxisView\";class d extends c.LinearAxis{constructor(e){super(e)}}t.MercatorAxis=d,o=d,d.__name__=\"MercatorAxis\",o.prototype.default_view=x,o.override({ticker:()=>new _.MercatorTicker({dimension:\"lat\"}),formatter:()=>new n.MercatorTickFormatter({dimension:\"lat\"})})},\n function _(r,t,e,o,n){var i;o();const c=r(185),s=r(19),a=r(105);class l extends c.BasicTickFormatter{constructor(r){super(r)}doFormat(r,t){if(null==this.dimension)throw new Error(\"MercatorTickFormatter.dimension not configured\");if(0==r.length)return[];const e=r.length,o=new Array(e);if(\"lon\"==this.dimension)for(let n=0;n<e;n++){const[e]=a.wgs84_mercator.invert(r[n],t.loc);o[n]=e}else for(let n=0;n<e;n++){const[,e]=a.wgs84_mercator.invert(t.loc,r[n]);o[n]=e}return super.doFormat(o,t)}}e.MercatorTickFormatter=l,i=l,l.__name__=\"MercatorTickFormatter\",i.define((({Nullable:r})=>({dimension:[r(s.LatLon),null]})))},\n function _(t,o,n,s,r){var e;s();const i=t(183),c=t(19),_=t(105);class a extends i.BasicTicker{constructor(t){super(t)}get_ticks_no_defaults(t,o,n,s){if(null==this.dimension)throw new Error(`${this}.dimension wasn't configured`);return[t,o]=(0,_.clip_mercator)(t,o,this.dimension),\"lon\"==this.dimension?this._get_ticks_lon(t,o,n,s):this._get_ticks_lat(t,o,n,s)}_get_ticks_lon(t,o,n,s){const[r]=_.wgs84_mercator.invert(t,n),[e,i]=_.wgs84_mercator.invert(o,n),c=super.get_ticks_no_defaults(r,e,n,s),a=[];for(const t of c.major)if((0,_.in_bounds)(t,\"lon\")){const[o]=_.wgs84_mercator.compute(t,i);a.push(o)}const m=[];for(const t of c.minor)if((0,_.in_bounds)(t,\"lon\")){const[o]=_.wgs84_mercator.compute(t,i);m.push(o)}return{major:a,minor:m}}_get_ticks_lat(t,o,n,s){const[,r]=_.wgs84_mercator.invert(n,t),[e,i]=_.wgs84_mercator.invert(n,o),c=super.get_ticks_no_defaults(r,i,n,s),a=[];for(const t of c.major)if((0,_.in_bounds)(t,\"lat\")){const[,o]=_.wgs84_mercator.compute(e,t);a.push(o)}const m=[];for(const t of c.minor)if((0,_.in_bounds)(t,\"lat\")){const[,o]=_.wgs84_mercator.compute(e,t);m.push(o)}return{major:a,minor:m}}}n.MercatorTicker=a,e=a,a.__name__=\"MercatorTicker\",e.define((({Nullable:t})=>({dimension:[t(c.LatLon),null]})))},\n function _(e,i,r,c,k){c(),k(\"AdaptiveTicker\",e(176).AdaptiveTicker),k(\"BasicTicker\",e(183).BasicTicker),k(\"CategoricalTicker\",e(165).CategoricalTicker),k(\"CompositeTicker\",e(178).CompositeTicker),k(\"ContinuousTicker\",e(177).ContinuousTicker),k(\"DatetimeTicker\",e(175).DatetimeTicker),k(\"DaysTicker\",e(179).DaysTicker),k(\"FixedTicker\",e(193).FixedTicker),k(\"LogTicker\",e(188).LogTicker),k(\"MercatorTicker\",e(191).MercatorTicker),k(\"MonthsTicker\",e(181).MonthsTicker),k(\"SingleIntervalTicker\",e(180).SingleIntervalTicker),k(\"Ticker\",e(161).Ticker),k(\"YearsTicker\",e(182).YearsTicker),k(\"BinnedTicker\",e(194).BinnedTicker)},\n function _(e,r,t,i,n){var s;i();const _=e(177);class c extends _.ContinuousTicker{constructor(e){super(e)}get_ticks_no_defaults(e,r,t,i){return{major:[...this.ticks],minor:[...this.minor_ticks]}}get_interval(e,r,t){return 0}get_min_interval(){return 0}get_max_interval(){return 0}}t.FixedTicker=c,s=c,c.__name__=\"FixedTicker\",s.define((({Number:e,Arrayable:r})=>({ticks:[r(e),[]],minor_ticks:[r(e),[]]})))},\n function _(e,n,t,r,i){var o;r();const a=e(161),s=e(195),c=e(13);class m extends a.Ticker{constructor(e){super(e)}get_ticks(e,n,t,r){const{binning:i}=this.mapper.metrics,o=Math.max(0,(0,c.left_edge_index)(e,i)),a=Math.min((0,c.left_edge_index)(n,i)+1,i.length-1),s=[];for(let e=o;e<=a;e++)s.push(i[e]);const{num_major_ticks:m}=this,_=[],h=\"auto\"==m?s.length:m,l=Math.max(1,Math.floor(s.length/h));for(let e=0;e<s.length;e+=l)_.push(s[e]);return{major:_,minor:[]}}}t.BinnedTicker=m,o=m,m.__name__=\"BinnedTicker\",o.define((({Number:e,Ref:n,Or:t,Auto:r})=>({mapper:[n(s.ScanningColorMapper)],num_major_ticks:[t(e,r),8]})))},\n function _(n,i,e,t,a){t();const o=n(196),_=n(13);class r extends o.ContinuousColorMapper{constructor(n){super(n)}index_to_value(n){return this._scan_data.binning[n]}value_to_index(n,i){const e=this._scan_data;return n<e.binning[0]?-1:n>e.binning[e.binning.length-1]?i:(0,_.left_edge_index)(n,e.binning)}}e.ScanningColorMapper=r,r.__name__=\"ScanningColorMapper\"},\n function _(t,e,o,n,s){var l;n();const i=t(197),c=t(199),a=t(10),h=t(8);class r extends i.ColorMapper{constructor(t){super(t),this._scan_data=null}connect_signals(){super.connect_signals();const t=()=>{for(const[t]of this.domain)this.connect(t.view.change,(()=>this.update_data())),this.connect(t.data_source.selected.change,(()=>this.update_data()))},{high:e,low:o,high_color:n,low_color:s,palette:l,nan_color:i}=this.properties;this.on_change([e,o,n,s,l,i],(()=>this.update_data())),this.connect(this.properties.domain.change,(()=>t())),t()}update_data(){const{domain:t,palette:e}=this,o=[...this._collect(t)];this._scan_data=this.scan(o,e.length),this.metrics_change.emit(),this.change.emit()}get metrics(){return null==this._scan_data&&this.update_data(),this._scan_data}*_collect(t){for(const[e,o]of t)for(const t of(0,h.isArray)(o)?o:[o]){if(e.view.properties.indices.is_unset)continue;const o=e.data_source.get_column(t);if(null==o)continue;let n=e.view.indices.select(o);const s=e.view.masked,l=e.data_source.selected.indices;let i;if(null!=s&&l.length>0?i=(0,a.intersection)([...s],l):null!=s?i=[...s]:l.length>0&&(i=l),null!=i&&(n=(0,a.map)(i,(t=>n[t]))),n.length>0&&!(0,h.isNumber)(n[0]))for(const t of n)yield*t;else yield*n}}_v_compute(t,e,o,n){const{nan_color:s}=n;let{low_color:l,high_color:i}=n;null==l&&(l=o[0]),null==i&&(i=o[o.length-1]);const{domain:c}=this,h=(0,a.is_empty)(c)?t:[...this._collect(c)];this._scan_data=this.scan(h,o.length),this.metrics_change.emit();for(let n=0,c=t.length;n<c;n++){const c=t[n];isNaN(c)?e[n]=s:e[n]=this.cmap(c,o,l,i)}}_colors(t){return Object.assign(Object.assign({},super._colors(t)),{low_color:null!=this.low_color?t(this.low_color):void 0,high_color:null!=this.high_color?t(this.high_color):void 0})}cmap(t,e,o,n){const s=this.value_to_index(t,e.length);return s<0?o:s>=e.length?n:e[s]}}o.ContinuousColorMapper=r,l=r,r.__name__=\"ContinuousColorMapper\",l.define((({Number:t,String:e,Ref:o,Color:n,Or:s,Tuple:l,Array:i,Nullable:a})=>({high:[a(t),null],low:[a(t),null],high_color:[a(n),null],low_color:[a(n),null],domain:[i(l(o(c.GlyphRenderer),s(e,i(e)))),[]]})))},\n function _(t,e,r,n,o){var i;n();const _=t(198),a=t(15),c=t(23),s=t(21),l=t(26),p=t(29);function u(t){return(0,s.encode_rgba)((0,s.color2rgba)(t))}function h(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=u(t[r]);return e}r._convert_color=u,r._convert_palette=h;class g extends _.Mapper{constructor(t){super(t)}initialize(){super.initialize(),this.metrics_change=new a.Signal0(this,\"metrics_change\")}v_compute(t){const e=new Array(t.length);return this._v_compute(t,e,this.palette,this._colors((t=>t))),e}get rgba_mapper(){const t=this,e=h(this.palette),r=this._colors(u);return{v_compute(n){const o=(0,p.is_NDArray)(n)&&3==n.dimension?n.shape[2]:1,i=new c.ColorArray(n.length/o);return t._v_compute_uint32(n,i,e,r),new Uint8ClampedArray((0,l.to_big_endian)(i).buffer)}}}_colors(t){return{nan_color:t(this.nan_color)}}_v_compute_uint32(t,e,r,n){this._v_compute(t,e,r,n)}}r.ColorMapper=g,i=g,g.__name__=\"ColorMapper\",i.define((({Color:t,Array:e})=>({palette:[e(t)],nan_color:[t,\"gray\"]})))},\n function _(r,e,n,s,o){s();const p=r(86);class t extends p.Transform{constructor(r){super(r)}compute(r){throw new Error(\"mapping single values is not supported\")}}n.Mapper=t,t.__name__=\"Mapper\"},\n function _(e,t,i,s,l){var h;s();const n=e(200),o=e(201),c=e(211),a=e(212),d=e(214),_=e(203),r=e(99),p=e(215),g=e(23),y=e(13),u=e(9),m=e(59),v=e(25),w=e(96),f=e(208),b={fill:{},line:{}},V={fill:{fill_alpha:.3,fill_color:\"grey\"},line:{line_alpha:.3,line_color:\"grey\"}},G={fill:{fill_alpha:.2},line:{}},x={fill:{fill_alpha:.2},line:{}};class R extends n.DataRendererView{get glyph_view(){return this.glyph}*children(){yield*super.children(),yield this.cds_view,yield this.glyph,yield this.selection_glyph,yield this.nonselection_glyph,null!=this.hover_glyph&&(yield this.hover_glyph),yield this.muted_glyph,yield this.decimated_glyph}get data_source(){return this.model.properties.data_source}async lazy_initialize(){var e;await super.lazy_initialize(),this.cds_view=await(0,m.build_view)(this.model.view,{parent:this});const t=this.model.glyph;this.glyph=await this.build_glyph_view(t);const i=\"fill\"in this.glyph.visuals,s=\"line\"in this.glyph.visuals,l=Object.assign({},t.attributes);function h(e){const h=(0,u.clone)(l);return i&&(0,u.extend)(h,e.fill),s&&(0,u.extend)(h,e.line),new t.constructor(h)}function n(e,t){return t instanceof _.Glyph?t:h(\"auto\"==t?e:{fill:{},line:{}})}delete l.id;let{selection_glyph:o,nonselection_glyph:c,hover_glyph:a,muted_glyph:d}=this.model;o=n(b,o),this.selection_glyph=await this.build_glyph_view(o),c=n(G,c),this.nonselection_glyph=await this.build_glyph_view(c),null!=a&&(this.hover_glyph=await this.build_glyph_view(a)),d=n(x,d),this.muted_glyph=await this.build_glyph_view(d);const r=n(V,\"auto\");this.decimated_glyph=await this.build_glyph_view(r),this.selection_glyph.set_base(this.glyph),this.nonselection_glyph.set_base(this.glyph),null===(e=this.hover_glyph)||void 0===e||e.set_base(this.glyph),this.muted_glyph.set_base(this.glyph),this.decimated_glyph.set_base(this.glyph),this.set_data()}async build_glyph_view(e){return(0,m.build_view)(e,{parent:this})}remove(){var e;this.cds_view.remove(),this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),null===(e=this.hover_glyph)||void 0===e||e.remove(),this.muted_glyph.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals();const e=()=>this.request_render(),t=()=>this.update_data();this.connect(this.model.change,e),this.connect(this.glyph.model.change,t),this.connect(this.selection_glyph.model.change,t),this.connect(this.nonselection_glyph.model.change,t),null!=this.hover_glyph&&this.connect(this.hover_glyph.model.change,t),this.connect(this.muted_glyph.model.change,t),this.connect(this.decimated_glyph.model.change,t),this.connect(this.model.data_source.change,t),this.connect(this.model.data_source.streaming,t),this.connect(this.model.data_source.patching,(e=>this.update_data(e))),this.connect(this.model.data_source.selected.change,e),this.connect(this.model.data_source._select,e),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,(()=>{const{inspected:t}=this.model.data_source,i={indices:t.indices,line_indices:t.line_indices,multiline_indices:t.multiline_indices,image_indices:t.image_indices,selected_glyphs:t.selected_glyphs};(0,v.is_equal)(this._previous_inspected,i)||(this._previous_inspected=i,e())})),this.connect(this.model.properties.view.change,(async()=>{this.cds_view.remove(),this.cds_view=await(0,m.build_view)(this.model.view,{parent:this}),t()})),this.connect(this.model.view.properties.indices.change,t),this.connect(this.model.view.properties.masked.change,(()=>this.set_visuals())),this.connect(this.model.properties.visible.change,(()=>this.plot_view.invalidate_dataranges=!0));const{x_ranges:i,y_ranges:s}=this.plot_view.frame;for(const[,e]of i)e instanceof w.FactorRange&&this.connect(e.change,t);for(const[,e]of s)e instanceof w.FactorRange&&this.connect(e.change,t);const{transformchange:l,exprchange:h}=this.model.glyph;this.connect(l,t),this.connect(h,t)}_update_masked_indices(){const e=this.glyph.mask_data();return this.model.view.masked=e,e}update_data(e){this.set_data(e),this.request_render()}set_data(e){const t=this.model.data_source;this.all_indices=this.model.view.indices;const{all_indices:i}=this;this.glyph.set_data(t,i,e),this.set_visuals(),this._update_masked_indices();const{lod_factor:s}=this.plot_model,l=this.all_indices.count;this.decimated=new g.Indices(l);for(let e=0;e<l;e+=s)this.decimated.set(e);this.plot_view.invalidate_dataranges=!0}set_visuals(){var e;const t=this.model.data_source,{all_indices:i}=this;this.glyph.set_visuals(t,i),this.decimated_glyph.set_visuals(t,i),this.selection_glyph.set_visuals(t,i),this.nonselection_glyph.set_visuals(t,i),null===(e=this.hover_glyph)||void 0===e||e.set_visuals(t,i),this.muted_glyph.set_visuals(t,i),this.glyph.after_visuals()}get has_webgl(){return this.glyph.has_webgl}_render(){const e=this.has_webgl;this.glyph.map_data();const t=[...this.all_indices];let i=[...this._update_masked_indices()];const{ctx:s}=this.layer;s.save();const{selected:l}=this.model.data_source,h=(()=>l.is_empty()?[]:this.glyph instanceof o.LineView&&l.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(i):l.indices)(),{inspected:n}=this.model.data_source;this._previous_inspected={indices:n.indices,line_indices:n.line_indices,multiline_indices:n.multiline_indices,image_indices:n.image_indices,selected_glyphs:n.selected_glyphs};const _=new Set((()=>n.is_empty()?[]:null!=n.selected_glyph?this.model.view.convert_indices_from_subset(i):n.indices.length>0?n.indices:Object.keys(n.multiline_indices).map((e=>parseInt(e))))()),r=(0,y.filter)(i,(e=>_.has(t[e]))),{lod_threshold:p}=this.plot_model;let g,u,m;if(null!=this.model.document&&this.model.document.interactive_duration()>0&&!e&&null!=p&&t.length>p?(i=[...this.decimated],g=this.decimated_glyph,u=this.decimated_glyph,m=this.selection_glyph):(g=this.model.muted?this.muted_glyph:this.glyph,u=this.nonselection_glyph,m=this.selection_glyph),null!=this.hover_glyph&&0!=r.length){const e=new Set(i);for(const t of r)e.delete(t);i=[...e]}if(0==h.length)if(this.glyph instanceof o.LineView)null!=this.hover_glyph&&0!=r.length?this.hover_glyph.render(s,this.model.view.convert_indices_from_subset(r)):g.render(s,t);else if(this.glyph instanceof c.PatchView||this.glyph instanceof a.HAreaView||this.glyph instanceof d.VAreaView)if(0==n.selected_glyphs.length||null==this.hover_glyph)g.render(s,t);else for(const e of n.selected_glyphs)e==this.glyph.model&&this.hover_glyph.render(s,t);else g.render(s,i),null!=this.hover_glyph&&0!=r.length&&this.hover_glyph.render(s,r);else{const e=new Set(h),l=new Array,n=new Array;if(this.glyph instanceof o.LineView)for(const i of t)e.has(i)?l.push(i):n.push(i);else for(const s of i)e.has(t[s])?l.push(s):n.push(s);u.render(s,n),m.render(s,l),null!=this.hover_glyph&&(this.glyph instanceof o.LineView?this.hover_glyph.render(s,this.model.view.convert_indices_from_subset(r)):this.hover_glyph.render(s,r))}s.restore()}get_reference_point(e,t){if(null!=e){const i=this.model.data_source.get_column(e);if(null!=i)for(const[e,s]of(0,u.entries)(this.model.view.indices_map))if(i[parseInt(e)]==t)return s}return 0}draw_legend(e,t,i,s,l,h,n,o){0!=this.glyph.data_size&&(null==o&&(o=this.get_reference_point(h,n)),this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o))}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=R,R.__name__=\"GlyphRendererView\";class k extends n.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.data_source.selection_manager}add_decoration(e,t){const i=new f.Decoration({marking:e,node:t}),s=[this.glyph,this.selection_glyph,this.nonselection_glyph,this.hover_glyph,this.muted_glyph];for(const e of s)e instanceof _.Glyph&&(e.decorations=[...e.decorations,i]);return i}}i.GlyphRenderer=k,h=k,k.__name__=\"GlyphRenderer\",h.prototype.default_view=R,h.define((({Boolean:e,Auto:t,Or:i,Ref:s,Null:l,Nullable:h})=>({data_source:[s(r.ColumnarDataSource)],view:[s(p.CDSView),()=>new p.CDSView],glyph:[s(_.Glyph)],hover_glyph:[h(s(_.Glyph)),null],nonselection_glyph:[i(s(_.Glyph),t,l),\"auto\"],selection_glyph:[i(s(_.Glyph),t,l),\"auto\"],muted_glyph:[i(s(_.Glyph),t,l),\"auto\"],muted:[e,!1]})))},\n function _(e,r,t,n,s){var a,o;n();const _=e(74),i=e(93);class c extends _.RendererView{constructor(){super(...arguments),this[a]=!0}get xscale(){return this.coordinates.x_scale}get yscale(){return this.coordinates.y_scale}bounds(){return this.glyph_view.bounds()}log_bounds(){return this.glyph_view.log_bounds()}}t.DataRendererView=c,a=i.auto_ranged,c.__name__=\"DataRendererView\";class d extends _.Renderer{constructor(e){super(e)}get selection_manager(){return this.get_selection_manager()}}t.DataRenderer=d,o=d,d.__name__=\"DataRenderer\",o.override({level:\"glyph\"})},\n function _(e,i,t,n,s){var l;n();const o=e(1),_=e(202),r=e(209),h=o.__importStar(e(78)),a=o.__importStar(e(210)),c=e(101);class d extends _.XYGlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:i}=this.renderer.plot_view.canvas_view;if(null!=i&&i.regl_wrapper.has_webgl){const{LineGL:t}=await Promise.resolve().then((()=>o.__importStar(e(521))));this.glglyph=new t(i.regl_wrapper,this)}}_render(e,i,t){const{sx:n,sy:s}=null!=t?t:this,l=this.parent.nonselection_glyph==this;let o=null;const _=e=>null!=o&&e-o!=1;let r=!0;e.beginPath();for(const t of i){const i=n[t],h=s[t];l&&!r&&null!=o&&t-o>1&&isFinite(n[o+1]+s[o+1])&&e.lineTo(n[o+1],s[o+1]),isFinite(i+h)?(r||_(t)?(l&&t>0&&isFinite(n[t-1]+s[t-1])?(e.moveTo(n[t-1],s[t-1]),e.lineTo(i,h)):e.moveTo(i,h),r=!1):e.lineTo(i,h),o=t):r=!0}if(l&&!r&&null!=o){const i=n.length;o<i-1&&isFinite(n[o+1]+s[o+1])&&e.lineTo(n[o+1],s[o+1])}this.visuals.line.set_value(e),e.stroke()}_hit_point(e){const i=new c.Selection,t={x:e.sx,y:e.sy};let n=9999;const s=Math.max(2,this.line_width.value/2);for(let e=0,l=this.sx.length-1;e<l;e++){const l={x:this.sx[e],y:this.sy[e]},o={x:this.sx[e+1],y:this.sy[e+1]},_=a.dist_to_segment(t,l,o);_<s&&_<n&&(n=_,i.add_to_selected_glyphs(this.model),i.view=this,i.line_indices=[e])}return i}_hit_span(e){const{sx:i,sy:t}=e;let n,s;\"v\"==e.direction?(n=this.renderer.yscale.invert(t),s=this._y):(n=this.renderer.xscale.invert(i),s=this._x);const l=[];for(let e=0,i=s.length-1;e<i;e++){const i=s[e],t=s[e+1];(i<=n&&n<=t||t<=n&&n<=i)&&l.push(e)}const o=new c.Selection;return 0!=l.length&&(o.add_to_selected_glyphs(this.model),o.view=this,o.line_indices=l),o}get_interpolation_hit(e,i){const[t,n,s,l]=[this._x[e],this._y[e],this._x[e+1],this._y[e+1]];return(0,r.line_interpolation)(this.renderer,i,t,n,s,l)}draw_legend_for_index(e,i,t){(0,r.generic_line_scalar_legend)(this.visuals,e,i)}}t.LineView=d,d.__name__=\"LineView\";class p extends _.XYGlyph{constructor(e){super(e)}}t.Line=p,l=p,p.__name__=\"Line\",l.prototype.default_view=d,l.mixins(h.LineScalar)},\n function _(e,t,_,s,i){var n;s();const a=e(1),o=e(105),c=a.__importStar(e(17)),p=e(203);class r extends p.GlyphView{_project_data(){o.inplace.project_xy(this._x,this._y)}_index_data(e){const{_x:t,_y:_,data_size:s}=this;for(let i=0;i<s;i++){const s=t[i],n=_[i];e.add_point(s,n)}}scenterxy(e){return[this.sx[e],this.sy[e]]}}_.XYGlyphView=r,r.__name__=\"XYGlyphView\";class d extends p.Glyph{constructor(e){super(e)}}_.XYGlyph=d,n=d,d.__name__=\"XYGlyph\",n.define((({})=>({x:[c.XCoordinateSpec,{field:\"x\"}],y:[c.YCoordinateSpec,{field:\"y\"}]})))},\n function _(e,t,i,s,n){var a;s();const r=e(1),o=r.__importStar(e(17)),_=r.__importStar(e(57)),l=r.__importStar(e(75)),c=e(54),d=e(50),h=e(59),u=e(18),f=e(23),p=e(8),g=e(204),y=e(13),v=e(25),x=e(205),m=e(96),w=e(101),b=e(208),{abs:S,ceil:z}=Math;class $ extends c.View{constructor(){super(...arguments),this._index=null,this._data_size=null,this._nohit_warned=new Set,this.decorations=new Map}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}get index(){const{_index:e}=this;if(null!=e)return e;throw new Error(`${this}.index_data() wasn't called`)}get data_size(){const{_data_size:e}=this;if(null!=e)return e;throw new Error(`${this}.set_data() wasn't called`)}initialize(){super.initialize(),this.visuals=new l.Visuals(this)}*children(){yield*super.children(),yield*this.decorations.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,h.build_views)(this.decorations,this.model.decorations,{parent:this.parent})}request_render(){this.parent.request_render()}get canvas(){return this.renderer.parent.canvas_view}render(e,t,i){var s;null!=this.glglyph&&(this.renderer.needs_webgl_blit=this.glglyph.render(e,t,null!==(s=this.base)&&void 0!==s?s:this),this.renderer.needs_webgl_blit)||this._render(e,t,null!=i?i:this.base)}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(e){return e}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const{x0:e,x1:t}=this.index.bounds(_.positive_x()),{y0:i,y1:s}=this.index.bounds(_.positive_y());return this._bounds({x0:e,y0:i,x1:t,y1:s})}get_anchor_point(e,t,[i,s]){switch(e){case\"center\":case\"center_center\":{const[e,n]=this.scenterxy(t,i,s);return{x:e,y:n}}default:return null}}sdist(e,t,i,s=\"edge\",n=!1){const a=t.length,r=new f.ScreenArray(a),o=e.s_compute;if(\"center\"==s)for(let e=0;e<a;e++){const s=t[e],n=i.get(e)/2,a=o(s-n),_=o(s+n);r[e]=S(_-a)}else for(let e=0;e<a;e++){const s=t[e],n=o(s),a=o(s+i.get(e));r[e]=S(a-n)}return n&&(0,y.inplace_map)(r,(e=>z(e))),r}draw_legend_for_index(e,t,i){}hit_test(e){switch(e.type){case\"point\":if(null!=this._hit_point)return this._hit_point(e);break;case\"span\":if(null!=this._hit_span)return this._hit_span(e);break;case\"rect\":if(null!=this._hit_rect)return this._hit_rect(e);break;case\"poly\":if(null!=this._hit_poly)return this._hit_poly(e)}return this._nohit_warned.has(e.type)||(u.logger.debug(`'${e.type}' selection not available for ${this.model.type}`),this._nohit_warned.add(e.type)),null}_hit_rect_against_index(e){const{sx0:t,sx1:i,sy0:s,sy1:n}=e,[a,r]=this.renderer.coordinates.x_scale.r_invert(t,i),[o,_]=this.renderer.coordinates.y_scale.r_invert(s,n),l=[...this.index.indices({x0:a,x1:r,y0:o,y1:_})];return new w.Selection({indices:l})}_project_data(){}*_iter_visuals(){for(const e of this.visuals)for(const t of e)(t instanceof o.VectorSpec||t instanceof o.ScalarSpec)&&(yield t)}set_base(e){e!=this&&e instanceof this.constructor&&(this.base=e)}_configure(e,t){Object.defineProperty(this,(0,p.isString)(e)?e:e.attr,Object.assign({configurable:!0,enumerable:!0},t))}set_visuals(e,t){var i;for(const i of this._iter_visuals()){const{base:s}=this;if(null!=s){const e=s.model.properties[i.attr];if(null!=e&&(0,v.is_equal)(i.get_value(),e.get_value())){this._configure(i,{get:()=>s[`${i.attr}`]});continue}}const n=i.uniform(e).select(t);this._configure(i,{value:n})}for(const e of this.visuals)e.update();null===(i=this.glglyph)||void 0===i||i.set_visuals_changed()}set_data(e,t,i){var s;const{x_source:n,y_source:a}=this.renderer.coordinates,r=new Set(this._iter_visuals());this._data_size=t.count;for(const i of this.model)if((i instanceof o.VectorSpec||i instanceof o.ScalarSpec)&&!r.has(i))if(i instanceof o.BaseCoordinateSpec){const s=i.array(e);let r=t.select(s);const _=\"x\"==i.dimension?n:a;if(_ instanceof m.FactorRange)if(i instanceof o.CoordinateSpec)r=_.v_synthetic(r);else if(i instanceof o.CoordinateSeqSpec)for(let e=0;e<r.length;e++)r[e]=_.v_synthetic(r[e]);let l;l=i instanceof o.CoordinateSeqSpec?g.RaggedArray.from(r,Float64Array):r,this._configure(`_${i.attr}`,{value:l})}else{const s=i.uniform(e).select(t);if(this._configure(i,{value:s}),i instanceof o.DistanceSpec){const e=s.is_Scalar()?s.value:(0,y.max)(s.array);this._configure(`max_${i.attr}`,{value:e})}}this.renderer.plot_view.model.use_map&&this._project_data(),this._set_data(null!=i?i:null);for(const i of this.decorations.values())i.marking.set_data(e,t);null===(s=this.glglyph)||void 0===s||s.set_data_changed(),this.index_data()}_set_data(e){}after_visuals(){}get _index_size(){return this.data_size}index_data(){const e=new x.SpatialIndex(this._index_size);this._index_data(e),e.finish(),this._index=e}mask_data(){return null==this._mask_data?f.Indices.all_set(this.data_size):this._mask_data()}map_data(){var e;const t=this,{x_scale:i,y_scale:s}=this.renderer.coordinates;for(const e of this.model)if(e instanceof o.BaseCoordinateSpec){const n=\"x\"==e.dimension?i:s;let a=t[`_${e.attr}`];if(a instanceof g.RaggedArray){const e=n.v_compute(a.array);a=new g.RaggedArray(a.offsets,e)}else a=n.v_compute(a);this[`s${e.attr}`]=a}this._map_data(),null===(e=this.glglyph)||void 0===e||e.set_data_changed()}_map_data(){}}i.GlyphView=$,$.__name__=\"GlyphView\";class k extends d.Model{constructor(e){super(e)}}i.Glyph=k,a=k,k.__name__=\"Glyph\",a.define((({Array:e,Ref:t})=>({decorations:[e(t(b.Decoration)),[]]})))},\n function _(t,s,r,e,a){var n;e();const o=t(25),h=t(12);class i{constructor(t,s){this.offsets=t,this.array=s}[(n=Symbol.toStringTag,o.equals)](t,s){return s.arrays(this.offsets,t.offsets)&&s.arrays(this.array,t.array)}get length(){return this.offsets.length}clone(){return new i(this.offsets.slice(),this.array.slice())}static from(t,s){const r=t.length;let e=0;const a=(()=>{const s=new Uint32Array(r);for(let a=0;a<r;a++){const r=t[a].length;s[a]=e,e+=r}return e<256?new Uint8Array(s):e<65536?new Uint16Array(s):s})(),n=new s(e);for(let s=0;s<r;s++)n.set(t[s],a[s]);return new i(a,n)}*[Symbol.iterator](){const{offsets:t,length:s}=this;for(let r=0;r<s;r++)yield this.array.subarray(t[r],t[r+1])}_check_bounds(t){(0,h.assert)(0<=t&&t<this.length,`Out of bounds: 0 <= ${t} < ${this.length}`)}get(t){this._check_bounds(t);const{offsets:s}=this;return this.array.subarray(s[t],s[t+1])}set(t,s){this._check_bounds(t),this.array.set(s,this.offsets[t])}}r.RaggedArray=i,i.__name__=\"RaggedArray\",i[n]=\"RaggedArray\"},\n function _(i,t,n,e,s){e();const d=i(1).__importDefault(i(206)),o=i(23),x=i(57);function h(i,t){let n=0,e=t.length-1;for(;n<e;){const s=n+e>>1;t[s]>i?e=s:n=s+1}return t[n]}class r extends d.default{get boxes(){return this._boxes}search_indices(i,t,n,e){if(this._pos!==this._boxes.length)throw new Error(\"Data not yet indexed - call index.finish().\");let s=this._boxes.length-4;const d=[],x=new o.Indices(this.numItems);for(;void 0!==s;){const o=Math.min(s+4*this.nodeSize,h(s,this._levelBounds));for(let h=s;h<o;h+=4){const o=0|this._indices[h>>2],r=this._boxes[h+0],l=this._boxes[h+1],a=this._boxes[h+2],_=this._boxes[h+3];n<r||(e<l||i>a||t>_||(s<4*this.numItems?x.set(o):d.push(o)))}s=d.pop()}return x}}r.__name__=\"_FlatBush\";class l{constructor(i){this.index=null,i>0&&(this.index=new r(i))}add_rect(i,t,n,e){var s;isFinite(i+t+n+e)?null===(s=this.index)||void 0===s||s.add(i,t,n,e):this.add_empty()}add_point(i,t){var n;isFinite(i+t)?null===(n=this.index)||void 0===n||n.add(i,t,i,t):this.add_empty()}add_empty(){var i;null===(i=this.index)||void 0===i||i.add(1/0,1/0,-1/0,-1/0)}finish(){var i;null===(i=this.index)||void 0===i||i.finish()}_normalize(i){let{x0:t,y0:n,x1:e,y1:s}=i;return t>e&&([t,e]=[e,t]),n>s&&([n,s]=[s,n]),{x0:t,y0:n,x1:e,y1:s}}get bbox(){if(null==this.index)return(0,x.empty)();{const{minX:i,minY:t,maxX:n,maxY:e}=this.index;return{x0:i,y0:t,x1:n,y1:e}}}indices(i){if(null==this.index)return new o.Indices(0);{const{x0:t,y0:n,x1:e,y1:s}=this._normalize(i);return this.index.search_indices(t,n,e,s)}}bounds(i){const t=(0,x.empty)();if(null==this.index)return t;const{boxes:n}=this.index;for(const e of this.indices(i)){const s=n[4*e+0],d=n[4*e+1],o=n[4*e+2],x=n[4*e+3];s>=i.x0&&s<t.x0&&(t.x0=s),o<=i.x1&&o>t.x1&&(t.x1=o),d>=i.y0&&d<t.y0&&(t.y0=d),x<=i.y1&&x>t.y1&&(t.y1=x)}return t}}n.SpatialIndex=l,l.__name__=\"SpatialIndex\"},\n function _(t,s,i,e,h){e();const n=t(1).__importDefault(t(207)),o=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class r{static from(t){if(!(t instanceof ArrayBuffer))throw new Error(\"Data must be an instance of ArrayBuffer.\");const[s,i]=new Uint8Array(t,0,2);if(251!==s)throw new Error(\"Data does not appear to be in a Flatbush format.\");if(i>>4!=3)throw new Error(`Got v${i>>4} data when expected v3.`);const[e]=new Uint16Array(t,2,1),[h]=new Uint32Array(t,4,1);return new r(h,e,o[15&i],t)}constructor(t,s=16,i=Float64Array,e){if(void 0===t)throw new Error(\"Missing required argument: numItems.\");if(isNaN(t)||t<=0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+s,2),65535);let h=t,r=h;this._levelBounds=[4*h];do{h=Math.ceil(h/this.nodeSize),r+=h,this._levelBounds.push(4*r)}while(1!==h);this.ArrayType=i||Float64Array,this.IndexArrayType=r<16384?Uint16Array:Uint32Array;const a=o.indexOf(this.ArrayType),_=4*r*this.ArrayType.BYTES_PER_ELEMENT;if(a<0)throw new Error(`Unexpected typed array class: ${i}.`);e&&e instanceof ArrayBuffer?(this.data=e,this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),this._pos=4*r,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+_+r*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*r),this._indices=new this.IndexArrayType(this.data,8+_,r),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+a]),new Uint16Array(this.data,2,1)[0]=s,new Uint32Array(this.data,4,1)[0]=t),this._queue=new n.default}add(t,s,i,e){const h=this._pos>>2;return this._indices[h]=h,this._boxes[this._pos++]=t,this._boxes[this._pos++]=s,this._boxes[this._pos++]=i,this._boxes[this._pos++]=e,t<this.minX&&(this.minX=t),s<this.minY&&(this.minY=s),i>this.maxX&&(this.maxX=i),e>this.maxY&&(this.maxY=e),h}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);if(this.numItems<=this.nodeSize)return this._boxes[this._pos++]=this.minX,this._boxes[this._pos++]=this.minY,this._boxes[this._pos++]=this.maxX,void(this._boxes[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,s=this.maxY-this.minY||1,i=new Uint32Array(this.numItems);for(let e=0;e<this.numItems;e++){let h=4*e;const n=this._boxes[h++],o=this._boxes[h++],r=this._boxes[h++],a=this._boxes[h++],_=Math.floor(65535*((n+r)/2-this.minX)/t),x=Math.floor(65535*((o+a)/2-this.minY)/s);i[e]=m(_,x)}x(i,this._boxes,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,s=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;s<i;){const t=s;let e=1/0,h=1/0,n=-1/0,o=-1/0;for(let t=0;t<this.nodeSize&&s<i;t++)e=Math.min(e,this._boxes[s++]),h=Math.min(h,this._boxes[s++]),n=Math.max(n,this._boxes[s++]),o=Math.max(o,this._boxes[s++]);this._indices[this._pos>>2]=t,this._boxes[this._pos++]=e,this._boxes[this._pos++]=h,this._boxes[this._pos++]=n,this._boxes[this._pos++]=o}}}search(t,s,i,e,h){if(this._pos!==this._boxes.length)throw new Error(\"Data not yet indexed - call index.finish().\");let n=this._boxes.length-4;const o=[],r=[];for(;void 0!==n;){const a=Math.min(n+4*this.nodeSize,_(n,this._levelBounds));for(let _=n;_<a;_+=4){if(i<this._boxes[_])continue;if(e<this._boxes[_+1])continue;if(t>this._boxes[_+2])continue;if(s>this._boxes[_+3])continue;const a=0|this._indices[_>>2];n<4*this.numItems?(void 0===h||h(a))&&r.push(a):o.push(a)}n=o.pop()}return r}neighbors(t,s,i=1/0,e=1/0,h){if(this._pos!==this._boxes.length)throw new Error(\"Data not yet indexed - call index.finish().\");let n=this._boxes.length-4;const o=this._queue,r=[],x=e*e;for(;void 0!==n;){const e=Math.min(n+4*this.nodeSize,_(n,this._levelBounds));for(let i=n;i<e;i+=4){const e=0|this._indices[i>>2],r=a(t,this._boxes[i],this._boxes[i+2]),_=a(s,this._boxes[i+1],this._boxes[i+3]),x=r*r+_*_;n<4*this.numItems?(void 0===h||h(e))&&o.push(1+(e<<1),x):o.push(e<<1,x)}for(;o.length&&1&o.peek();){if(o.peekValue()>x)return o.clear(),r;if(r.push(o.pop()>>1),r.length===i)return o.clear(),r}n=o.pop()>>1}return o.clear(),r}}function a(t,s,i){return t<s?s-t:t<=i?0:t-i}function _(t,s){let i=0,e=s.length-1;for(;i<e;){const h=i+e>>1;s[h]>t?e=h:i=h+1}return s[i]}function x(t,s,i,e,h,n){if(Math.floor(e/n)>=Math.floor(h/n))return;const o=t[e+h>>1];let r=e-1,a=h+1;for(;;){do{r++}while(t[r]<o);do{a--}while(t[a]>o);if(r>=a)break;d(t,s,i,r,a)}x(t,s,i,e,a,n),x(t,s,i,a+1,h,n)}function d(t,s,i,e,h){const n=t[e];t[e]=t[h],t[h]=n;const o=4*e,r=4*h,a=s[o],_=s[o+1],x=s[o+2],d=s[o+3];s[o]=s[r],s[o+1]=s[r+1],s[o+2]=s[r+2],s[o+3]=s[r+3],s[r]=a,s[r+1]=_,s[r+2]=x,s[r+3]=d;const m=i[e];i[e]=i[h],i[h]=m}function m(t,s){let i=t^s,e=65535^i,h=65535^(t|s),n=t&(65535^s),o=i|e>>1,r=i>>1^i,a=h>>1^e&n>>1^h,_=i&h>>1^n>>1^n;i=o,e=r,h=a,n=_,o=i&i>>2^e&e>>2,r=i&e>>2^e&(i^e)>>2,a^=i&h>>2^e&n>>2,_^=e&h>>2^(i^e)&n>>2,i=o,e=r,h=a,n=_,o=i&i>>4^e&e>>4,r=i&e>>4^e&(i^e)>>4,a^=i&h>>4^e&n>>4,_^=e&h>>4^(i^e)&n>>4,i=o,e=r,h=a,n=_,a^=i&h>>8^e&n>>8,_^=e&h>>8^(i^e)&n>>8,i=a^a>>1,e=_^_>>1;let x=t^s,d=e|65535^(x|i);return x=16711935&(x|x<<8),x=252645135&(x|x<<4),x=858993459&(x|x<<2),x=1431655765&(x|x<<1),d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),(d<<1|x)>>>0}i.default=r},\n function _(s,t,i,h,e){h();i.default=class{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(s,t){let i=this.length++;for(;i>0;){const s=i-1>>1,h=this.values[s];if(t>=h)break;this.ids[i]=this.ids[s],this.values[i]=h,i=s}this.ids[i]=s,this.values[i]=t}pop(){if(0===this.length)return;const s=this.ids[0];if(this.length--,this.length>0){const s=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],i=this.length>>1;let h=0;for(;h<i;){let s=1+(h<<1);const i=s+1;let e=this.ids[s],l=this.values[s];const n=this.values[i];if(i<this.length&&n<l&&(s=i,e=this.ids[i],l=n),l>=t)break;this.ids[h]=e,this.values[h]=l,h=s}this.ids[h]=s,this.values[h]=t}return s}peek(){if(0!==this.length)return this.ids[0]}peekValue(){if(0!==this.length)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}},\n function _(e,i,n,a,t){var r;a();const o=e(140),s=e(50),d=e(54),l=e(59);class c extends d.View{*children(){yield*super.children(),yield this.marking}async lazy_initialize(){await super.lazy_initialize(),this.marking=await(0,l.build_view)(this.model.marking,{parent:this.parent})}}n.DecorationView=c,c.__name__=\"DecorationView\";class _ extends s.Model{constructor(e){super(e)}}n.Decoration=_,r=_,_.__name__=\"Decoration\",r.prototype.default_view=c,r.define((({Enum:e,Ref:i})=>({marking:[i(o.Marking)],node:[e(\"start\",\"middle\",\"end\")]})))},\n function _(e,n,a,t,i){t();const l=e(1).__importStar(e(210));function r(e,n,{x0:a,x1:t,y0:i,y1:l},r){n.save(),n.beginPath(),n.moveTo(a,(i+l)/2),n.lineTo(t,(i+l)/2),e.line.apply(n,r),n.restore()}function c(e,n,{x0:a,x1:t,y0:i,y1:l},r){var c,o;const _=.1*Math.abs(t-a),s=.1*Math.abs(l-i),y=a+_,p=t-_,g=i+s,h=l-s;n.beginPath(),n.rect(y,g,p-y,h-g),e.fill.apply(n,r),null===(c=e.hatch)||void 0===c||c.apply(n,r),null===(o=e.line)||void 0===o||o.apply(n,r)}a.generic_line_scalar_legend=function(e,n,{x0:a,x1:t,y0:i,y1:l}){n.save(),n.beginPath(),n.moveTo(a,(i+l)/2),n.lineTo(t,(i+l)/2),e.line.apply(n),n.restore()},a.generic_line_vector_legend=r,a.generic_line_legend=r,a.generic_area_scalar_legend=function(e,n,{x0:a,x1:t,y0:i,y1:l}){var r,c;const o=.1*Math.abs(t-a),_=.1*Math.abs(l-i),s=a+o,y=t-o,p=i+_,g=l-_;n.beginPath(),n.rect(s,p,y-s,g-p),e.fill.apply(n),null===(r=e.hatch)||void 0===r||r.apply(n),null===(c=e.line)||void 0===c||c.apply(n)},a.generic_area_vector_legend=c,a.generic_area_legend=c,a.line_interpolation=function(e,n,a,t,i,r){const{sx:c,sy:o}=n;let _,s,y,p;\"point\"==n.type?([y,p]=e.yscale.r_invert(o-1,o+1),[_,s]=e.xscale.r_invert(c-1,c+1)):\"v\"==n.direction?([y,p]=e.yscale.r_invert(o,o),[_,s]=[Math.min(a-1,i-1),Math.max(a+1,i+1)]):([_,s]=e.xscale.r_invert(c,c),[y,p]=[Math.min(t-1,r-1),Math.max(t+1,r+1)]);const{x:g,y:h}=l.check_2_segments_intersect(_,y,s,p,a,t,i,r);return[g,h]}},\n function _(t,n,e,i,r){function s(t,n){return(t.x-n.x)**2+(t.y-n.y)**2}function o(t,n,e){const i=s(n,e);if(0==i)return s(t,n);const r=((t.x-n.x)*(e.x-n.x)+(t.y-n.y)*(e.y-n.y))/i;if(r<0)return s(t,n);if(r>1)return s(t,e);return s(t,{x:n.x+r*(e.x-n.x),y:n.y+r*(e.y-n.y)})}i(),e.point_in_poly=function(t,n,e,i){let r=!1,s=e[e.length-1],o=i[i.length-1];for(let u=0;u<e.length;u++){const c=e[u],_=i[u];o<n!=_<n&&s+(n-o)/(_-o)*(c-s)<t&&(r=!r),s=c,o=_}return r},e.point_in_ellipse=function(t,n,e,i,r,s,o){return((Math.cos(e)/r)**2+(Math.sin(e)/i)**2)*(t-s)**2+2*Math.cos(e)*Math.sin(e)*((1/r)**2-(1/i)**2)*(t-s)*(n-o)+((Math.cos(e)/i)**2+(Math.sin(e)/r)**2)*(n-o)**2<=1},e.dist_2_pts=s,e.dist_to_segment_squared=o,e.dist_to_segment=function(t,n,e){return Math.sqrt(o(t,n,e))},e.check_2_segments_intersect=function(t,n,e,i,r,s,o,u){const c=(u-s)*(e-t)-(o-r)*(i-n);if(0==c)return{hit:!1,x:null,y:null};{let _=n-s,h=t-r;const l=(e-t)*_-(i-n)*h;_=((o-r)*_-(u-s)*h)/c,h=l/c;return{hit:_>0&&_<1&&h>0&&h<1,x:t+_*(e-t),y:n+_*(i-n)}}}},\n function _(t,s,e,i,a){var l;i();const n=t(1),_=t(202),o=t(209),c=n.__importStar(t(210)),h=n.__importStar(t(78)),r=t(101);class p extends _.XYGlyphView{_render(t,s,e){const{sx:i,sy:a}=null!=e?e:this;let l=!0;t.beginPath();for(const e of s){const s=i[e],n=a[e];isFinite(s+n)?l?(t.moveTo(s,n),l=!1):t.lineTo(s,n):(t.closePath(),l=!0)}t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t),this.visuals.line.apply(t)}draw_legend_for_index(t,s,e){(0,o.generic_area_scalar_legend)(this.visuals,t,s)}_hit_point(t){const s=new r.Selection;return c.point_in_poly(t.sx,t.sy,this.sx,this.sy)&&(s.add_to_selected_glyphs(this.model),s.view=this),s}}e.PatchView=p,p.__name__=\"PatchView\";class d extends _.XYGlyph{constructor(t){super(t)}}e.Patch=d,l=d,d.__name__=\"Patch\",l.prototype.default_view=p,l.mixins([h.LineScalar,h.FillScalar,h.HatchScalar])},\n function _(t,s,e,i,h){var n;i();const r=t(1),a=t(213),_=r.__importStar(t(210)),o=r.__importStar(t(17)),l=t(101);class c extends a.AreaView{_index_data(t){const{min:s,max:e}=Math,{data_size:i}=this;for(let h=0;h<i;h++){const i=this._x1[h],n=this._x2[h],r=this._y[h];t.add_rect(s(i,n),r,e(i,n),r)}}_render(t,s,e){const{sx1:i,sx2:h,sy:n}=null!=e?e:this;t.beginPath();for(let s=0,e=i.length;s<e;s++)t.lineTo(i[s],n[s]);for(let s=h.length-1;s>=0;s--)t.lineTo(h[s],n[s]);t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t)}_hit_point(t){const s=this.sy.length,e=new l.Selection;for(let i=0,h=s-1;i<h;i++){const s=[this.sx1[i],this.sx1[i+1],this.sx2[i+1],this.sx2[i]],h=[this.sy[i],this.sy[i+1],this.sy[i+1],this.sy[i]];if(_.point_in_poly(t.sx,t.sy,s,h)){e.add_to_selected_glyphs(this.model),e.view=this,e.line_indices=[i];break}}return e}scenterxy(t){return[(this.sx1[t]+this.sx2[t])/2,this.sy[t]]}_map_data(){this.sx1=this.renderer.xscale.v_compute(this._x1),this.sx2=this.renderer.xscale.v_compute(this._x2),this.sy=this.renderer.yscale.v_compute(this._y)}}e.HAreaView=c,c.__name__=\"HAreaView\";class x extends a.Area{constructor(t){super(t)}}e.HArea=x,n=x,x.__name__=\"HArea\",n.prototype.default_view=c,n.define((({})=>({x1:[o.XCoordinateSpec,{field:\"x1\"}],x2:[o.XCoordinateSpec,{field:\"x2\"}],y:[o.YCoordinateSpec,{field:\"y\"}]})))},\n function _(e,a,r,_,s){var n;_();const i=e(1),l=e(203),c=e(209),t=i.__importStar(e(78));class d extends l.GlyphView{draw_legend_for_index(e,a,r){(0,c.generic_area_scalar_legend)(this.visuals,e,a)}}r.AreaView=d,d.__name__=\"AreaView\";class o extends l.Glyph{constructor(e){super(e)}}r.Area=o,n=o,o.__name__=\"Area\",n.mixins([t.FillScalar,t.HatchScalar])},\n function _(t,s,e,i,h){var n;i();const r=t(1),a=t(213),_=r.__importStar(t(210)),o=r.__importStar(t(17)),l=t(101);class c extends a.AreaView{_index_data(t){const{min:s,max:e}=Math,{data_size:i}=this;for(let h=0;h<i;h++){const i=this._x[h],n=this._y1[h],r=this._y2[h];t.add_rect(i,s(n,r),i,e(n,r))}}_render(t,s,e){const{sx:i,sy1:h,sy2:n}=null!=e?e:this;t.beginPath();for(let s=0,e=h.length;s<e;s++)t.lineTo(i[s],h[s]);for(let s=n.length-1;s>=0;s--)t.lineTo(i[s],n[s]);t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t)}scenterxy(t){return[this.sx[t],(this.sy1[t]+this.sy2[t])/2]}_hit_point(t){const s=this.sx.length,e=new l.Selection;for(let i=0,h=s-1;i<h;i++){const s=[this.sx[i],this.sx[i+1],this.sx[i+1],this.sx[i]],h=[this.sy1[i],this.sy1[i+1],this.sy2[i+1],this.sy2[i]];if(_.point_in_poly(t.sx,t.sy,s,h)){e.add_to_selected_glyphs(this.model),e.view=this,e.line_indices=[i];break}}return e}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sy1=this.renderer.yscale.v_compute(this._y1),this.sy2=this.renderer.yscale.v_compute(this._y2)}}e.VAreaView=c,c.__name__=\"VAreaView\";class y extends a.Area{constructor(t){super(t)}}e.VArea=y,n=y,y.__name__=\"VArea\",n.prototype.default_view=c,n.define((({})=>({x:[o.XCoordinateSpec,{field:\"x\"}],y1:[o.YCoordinateSpec,{field:\"y1\"}],y2:[o.YCoordinateSpec,{field:\"y2\"}]})))},\n function _(e,i,t,s,n){var c;s();const o=e(50),_=e(54),r=e(23),l=e(216),a=e(217),d=e(218);class h extends _.View{initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals();const{filter:e}=this.model.properties;this.on_change(e,(()=>this.compute_indices()));const i=()=>{const e=()=>this.compute_indices(),i=this.parent.data_source.get_value();this.connect(i.change,e),this.connect(i.streaming,e),this.connect(i.patching,e),this.connect(i.properties.data.change,e)};i();const{data_source:t}=this.parent;this.on_change(t,(()=>{i()}))}compute_indices(){var e;const i=this.parent.data_source.get_value(),t=null!==(e=i.get_length())&&void 0!==e?e:1,s=r.Indices.all_set(t),n=this.model.filter.compute_indices(i);s.intersect(n),this.model.indices=s,this.model._indices_map_to_subset()}}t.CDSViewView=h,h.__name__=\"CDSViewView\";class p extends o.Model{constructor(e){super(e)}_indices_map_to_subset(){this._indices=[...this.indices],this.indices_map={};for(let e=0;e<this._indices.length;e++)this.indices_map[this._indices[e]]=e}convert_selection_from_subset(e){return e.map((e=>this._indices[e]))}convert_selection_to_subset(e){return e.map((e=>this.indices_map[e]))}convert_indices_from_subset(e){return e.map((e=>this._indices[e]))}get filters(){const{filter:e}=this;return e instanceof d.IntersectionFilter?e.operands:e instanceof a.AllIndices?[]:[e]}set filters(e){0==e.length?this.filter=new a.AllIndices:1==e.length?this.filter=e[0]:this.filter=new d.IntersectionFilter({operands:e})}}t.CDSView=p,c=p,p.__name__=\"CDSView\",c.prototype.default_view=h,c.define((({Ref:e})=>({filter:[e(l.Filter),()=>new a.AllIndices]}))),c.internal((({Int:e,Dict:i,Ref:t,Nullable:s})=>({indices:[t(r.Indices)],indices_map:[i(e),{}],masked:[s(t(r.Indices)),null]})))},\n function _(e,t,n,s,c){s();const o=e(50);class r extends o.Model{constructor(e){super(e)}}n.Filter=r,r.__name__=\"Filter\"},\n function _(e,n,s,t,c){t();const l=e(216),i=e(23);class _ extends l.Filter{constructor(e){super(e)}compute_indices(e){var n;const s=null!==(n=e.get_length())&&void 0!==n?n:1;return i.Indices.all_set(s)}}s.AllIndices=_,_.__name__=\"AllIndices\"},\n function _(e,t,n,r,s){var c;r();const i=e(216),o=e(23);class l extends i.Filter{constructor(e){super(e)}compute_indices(e){var t;const{operands:n}=this;if(0==n.length){const n=null!==(t=e.get_length())&&void 0!==t?t:1;return o.Indices.all_set(n)}{const[t,...r]=n.map((t=>t.compute_indices(e)));for(const e of r)t.intersect(e);return t}}}n.IntersectionFilter=l,c=l,l.__name__=\"IntersectionFilter\",c.define((({Array:e,Ref:t})=>({operands:[e(t(i.Filter))]})))},\n function _(t,r,a,e,i){e(),i(\"BasicTickFormatter\",t(185).BasicTickFormatter),i(\"CategoricalTickFormatter\",t(166).CategoricalTickFormatter),i(\"DatetimeTickFormatter\",t(169).DatetimeTickFormatter),i(\"CustomJSTickFormatter\",t(220).CustomJSTickFormatter),i(\"LogTickFormatter\",t(187).LogTickFormatter),i(\"MercatorTickFormatter\",t(190).MercatorTickFormatter),i(\"NumeralTickFormatter\",t(221).NumeralTickFormatter),i(\"PrintfTickFormatter\",t(222).PrintfTickFormatter),i(\"TickFormatter\",t(162).TickFormatter)},\n function _(t,e,s,n,r){var c;n();const i=t(162),a=t(9),o=t(38);class u extends i.TickFormatter{constructor(t){super(t)}get names(){return(0,a.keys)(this.args)}get values(){return(0,a.values)(this.args)}_make_func(){const t=(0,o.use_strict)(this.code);return new Function(\"tick\",\"index\",\"ticks\",...this.names,t)}doFormat(t,e){const s=this._make_func().bind({});return t.map(((t,e,n)=>`${s(t,e,n,...this.values)}`))}}s.CustomJSTickFormatter=u,c=u,u.__name__=\"CustomJSTickFormatter\",c.define((({Unknown:t,String:e,Dict:s})=>({args:[s(t),{}],code:[e,\"\"]})))},\n function _(r,n,t,o,e){var a;o();const u=r(1).__importStar(r(171)),c=r(162),i=r(19);class s extends c.TickFormatter{constructor(r){super(r)}get _rounding_fn(){switch(this.rounding){case\"round\":case\"nearest\":return Math.round;case\"floor\":case\"rounddown\":return Math.floor;case\"ceil\":case\"roundup\":return Math.ceil}}doFormat(r,n){const{format:t,language:o,_rounding_fn:e}=this;return r.map((r=>u.format(r,t,o,e)))}}t.NumeralTickFormatter=s,a=s,s.__name__=\"NumeralTickFormatter\",a.define((({String:r})=>({format:[r,\"0,0\"],language:[r,\"en\"],rounding:[i.RoundingFunction,\"round\"]})))},\n function _(t,r,n,o,a){var e;o();const i=t(162),s=t(170);class c extends i.TickFormatter{constructor(t){super(t)}doFormat(t,r){return t.map((t=>(0,s.sprintf)(this.format,t)))}}n.PrintfTickFormatter=c,e=c,c.__name__=\"PrintfTickFormatter\",e.define((({String:t})=>({format:[t,\"%s\"]})))},\n function _(a,e,l,c,n){c(),n(\"CategoricalScale\",a(92).CategoricalScale),n(\"ContinuousScale\",a(90).ContinuousScale),n(\"LinearScale\",a(89).LinearScale),n(\"LinearInterpolationScale\",a(224).LinearInterpolationScale),n(\"LogScale\",a(91).LogScale),n(\"Scale\",a(85).Scale)},\n function _(e,r,n,t,a){var i;t();const s=e(85),o=e(89),c=e(13);class _ extends s.Scale{constructor(e){super(e)}initialize(){super.initialize();const{source_range:e,target_range:r}=this.properties;e.is_unset||r.is_unset||(this.linear_scale=new o.LinearScale({source_range:e.get_value(),target_range:r.get_value()}))}connect_signals(){super.connect_signals();const{source_range:e,target_range:r}=this.properties;this.on_change([e,r],(()=>{this.linear_scale=new o.LinearScale({source_range:this.source_range,target_range:this.target_range})}))}get s_compute(){throw new Error(\"not implemented\")}get s_invert(){throw new Error(\"not implemented\")}compute(e){return e}v_compute(e){const{binning:r}=this,{start:n,end:t}=this.source_range,a=n,i=t,s=r.length,o=(t-n)/(s-1),_=new Float64Array(s);for(let e=0;e<s;e++)_[e]=n+e*o;const l=(0,c.map)(e,(e=>{if(e<a)return a;if(e>i)return i;const n=(0,c.left_edge_index)(e,r);if(-1==n)return a;if(n>=s-1)return i;const t=r[n],o=(e-t)/(r[n+1]-t),l=_[n];return l+o*(_[n+1]-l)}));return this.linear_scale.v_compute(l)}invert(e){return e}v_invert(e){return new Float64Array(e)}}n.LinearInterpolationScale=_,i=_,_.__name__=\"LinearInterpolationScale\",i.internal((({Number:e,Arrayable:r,Ref:n})=>({binning:[r(e)],linear_scale:[n(o.LinearScale)]})))},\n function _(a,n,e,g,R){g(),R(\"DataRange\",a(94).DataRange),R(\"DataRange1d\",a(93).DataRange1d),R(\"FactorRange\",a(96).FactorRange),R(\"Range\",a(87).Range),R(\"Range1d\",a(88).Range1d)},\n function _(a,o,t,i,e){i();var l=a(145);e(\"Sizeable\",l.Sizeable),e(\"SizingPolicy\",l.SizingPolicy);var n=a(146);e(\"Layoutable\",n.Layoutable),e(\"ContentLayoutable\",n.ContentLayoutable);var S=a(227);e(\"HStack\",S.HStack),e(\"VStack\",S.VStack);var c=a(228);e(\"Grid\",c.Grid),e(\"Row\",c.Row),e(\"Column\",c.Column)},\n function _(t,e,h,i,r){i();const n=t(146),s=t(57),{max:o,round:c}=Math;class l extends n.Layoutable{constructor(){super(...arguments),this.children=[]}*[Symbol.iterator](){yield*this.children}}h.Stack=l,l.__name__=\"Stack\";class a extends l{_measure(t){let e=0,h=0;for(const t of this.children){const i=t.measure({width:0,height:0});e+=i.width,h=o(h,i.height)}return{width:e,height:h}}_set_geometry(t,e){if(super._set_geometry(t,e),t.is_empty)for(const t of this.children)t.set_geometry(new s.BBox);else{const e=this.absolute?t.top:0;let h=this.absolute?t.left:0;const{height:i}=t;for(const t of this.children){const{width:r}=t.measure({width:0,height:0});t.set_geometry(new s.BBox({left:h,width:r,top:e,height:i})),h+=r}}}}h.HStack=a,a.__name__=\"HStack\";class d extends l{_measure(t){let e=0,h=0;for(const t of this.children){const i=t.measure({width:0,height:0});e=o(e,i.width),h+=i.height}return{width:e,height:h}}_set_geometry(t,e){if(super._set_geometry(t,e),t.is_empty)for(const t of this.children)t.set_geometry(new s.BBox);else{const e=this.absolute?t.left:0;let h=this.absolute?t.top:0;const{width:i}=t;for(const t of this.children){const{height:r}=t.measure({width:0,height:0});t.set_geometry(new s.BBox({top:h,height:r,left:e,width:i})),h+=r}}}}h.VStack=d,d.__name__=\"VStack\";class g extends n.Layoutable{constructor(){super(...arguments),this.children=[]}*[Symbol.iterator](){yield*this.children}_measure(t){const{width_policy:e,height_policy:h}=this.sizing,{min:i,max:r}=Math;let n=0,s=0;for(const e of this.children){const{width:h,height:i}=e.measure(t);n=r(n,h),s=r(s,i)}return{width:(()=>{const{width:h}=this.sizing;if(t.width==1/0)return\"fixed\"==e&&null!=h?h:n;switch(e){case\"fixed\":return null!=h?h:n;case\"min\":return n;case\"fit\":return null!=h?i(t.width,h):t.width;case\"max\":return null!=h?r(t.width,h):t.width}})(),height:(()=>{const{height:e}=this.sizing;if(t.height==1/0)return\"fixed\"==h&&null!=e?e:s;switch(h){case\"fixed\":return null!=e?e:s;case\"min\":return s;case\"fit\":return null!=e?i(t.height,e):t.height;case\"max\":return null!=e?r(t.height,e):t.height}})()}}_set_geometry(t,e){if(super._set_geometry(t,e),t.is_empty)for(const t of this.children)t.set_geometry(new s.BBox);else{const e=this.absolute?t:t.relative(),{left:h,right:i,top:r,bottom:n}=e,o=c(e.vcenter),l=c(e.hcenter);for(const e of this.children){const{margin:c,halign:a=\"start\",valign:d=\"start\"}=e.sizing,{width:g,height:u,inner:_}=e.measure(t),w=(()=>{switch(`${d}_${a}`){case\"start_start\":return new s.BBox({left:h+c.left,top:r+c.top,width:g,height:u});case\"start_center\":return new s.BBox({hcenter:l,top:r+c.top,width:g,height:u});case\"start_end\":return new s.BBox({right:i-c.right,top:r+c.top,width:g,height:u});case\"center_start\":return new s.BBox({left:h+c.left,vcenter:o,width:g,height:u});case\"center_center\":return new s.BBox({hcenter:l,vcenter:o,width:g,height:u});case\"center_end\":return new s.BBox({right:i-c.right,vcenter:o,width:g,height:u});case\"end_start\":return new s.BBox({left:h+c.left,bottom:n-c.bottom,width:g,height:u});case\"end_center\":return new s.BBox({hcenter:l,bottom:n-c.bottom,width:g,height:u});case\"end_end\":return new s.BBox({right:i-c.right,bottom:n-c.bottom,width:g,height:u})}})(),m=null==_?w:new s.BBox({left:w.left+_.left,top:w.top+_.top,right:w.right-_.right,bottom:w.bottom-_.bottom});e.set_geometry(w,m)}}}}h.NodeLayout=g,g.__name__=\"NodeLayout\"},\n function _(t,i,s,e,o){e();const n=t(145),r=t(146),l=t(8),h=t(57),c=t(10),{max:a,round:g}=Math;class p{constructor(t){this._map=new Map,this.def=t}get(t){let i=this._map.get(t);return void 0===i&&(i=this.def(),this._map.set(t,i)),i}apply(t,i){const s=this.get(t);this._map.set(t,i(s))}}s.DefaultMap=p,p.__name__=\"DefaultMap\";class _{constructor(){this._items=[],this._nrows=0,this._ncols=0}get size(){return this._items.length}get nrows(){return this._nrows}get ncols(){return this._ncols}add(t,i){const{r1:s,c1:e}=t;this._nrows=a(this._nrows,s+1),this._ncols=a(this._ncols,e+1),this._items.push({span:t,data:i})}at(t,i){return this._items.filter((({span:s})=>s.r0<=t&&t<=s.r1&&s.c0<=i&&i<=s.c1)).map((({data:t})=>t))}row(t){return this._items.filter((({span:i})=>i.r0<=t&&t<=i.r1)).map((({data:t})=>t))}col(t){return this._items.filter((({span:i})=>i.c0<=t&&t<=i.c1)).map((({data:t})=>t))}*[Symbol.iterator](){yield*this._items}foreach(t){for(const{span:i,data:s}of this._items)t(i,s)}map(t){const i=new _;for(const{span:s,data:e}of this._items)i.add(s,t(s,e));return i}}s.Container=_,_.__name__=\"Container\";class f extends r.Layoutable{*[Symbol.iterator](){for(const{layout:t}of this.items)yield t}constructor(t=[]){super(),this.rows=\"auto\",this.cols=\"auto\",this.spacing=0,this.items=t}is_width_expanding(){if(super.is_width_expanding())return!0;if(\"fixed\"==this.sizing.width_policy)return!1;const{cols:t}=this._state;return(0,c.some)(t,(t=>\"max\"==t.policy))}is_height_expanding(){if(super.is_height_expanding())return!0;if(\"fixed\"==this.sizing.height_policy)return!1;const{rows:t}=this._state;return(0,c.some)(t,(t=>\"max\"==t.policy))}_init(){var t,i,s,e;super._init();const o=new _;for(const{layout:t,row:i,col:s,row_span:e=1,col_span:n=1}of this.items)if(t.sizing.visible){const r=i,l=s,h=i+e-1,c=s+n-1;o.add({r0:r,c0:l,r1:h,c1:c},t)}const{nrows:n,ncols:r}=o,h=new Array(n);for(let s=0;s<n;s++){const e=(()=>{var t;const i=(0,l.isPlainObject)(this.rows)?null!==(t=this.rows[s])&&void 0!==t?t:this.rows[\"*\"]:this.rows;return null==i?{policy:\"auto\"}:(0,l.isNumber)(i)?{policy:\"fixed\",height:i}:(0,l.isString)(i)?{policy:i}:i})(),n=null!==(t=e.align)&&void 0!==t?t:\"auto\";\"fixed\"==e.policy?h[s]={policy:\"fixed\",height:e.height,align:n}:\"min\"==e.policy?h[s]={policy:\"min\",align:n}:\"fit\"==e.policy||\"max\"==e.policy?h[s]={policy:e.policy,flex:null!==(i=e.flex)&&void 0!==i?i:1,align:n}:(0,c.some)(o.row(s),(t=>t.is_height_expanding()))?h[s]={policy:\"max\",flex:1,align:n}:h[s]={policy:\"min\",align:n}}const a=new Array(r);for(let t=0;t<r;t++){const i=(()=>{var i;const s=(0,l.isPlainObject)(this.cols)?null!==(i=this.cols[t])&&void 0!==i?i:this.cols[\"*\"]:this.cols;return null==s?{policy:\"auto\"}:(0,l.isNumber)(s)?{policy:\"fixed\",width:s}:(0,l.isString)(s)?{policy:s}:s})(),n=null!==(s=i.align)&&void 0!==s?s:\"auto\";\"fixed\"==i.policy?a[t]={policy:\"fixed\",width:i.width,align:n}:\"min\"==i.policy?a[t]={policy:\"min\",align:n}:\"fit\"==i.policy||\"max\"==i.policy?a[t]={policy:i.policy,flex:null!==(e=i.flex)&&void 0!==e?e:1,align:n}:(0,c.some)(o.col(t),(t=>t.is_width_expanding()))?a[t]={policy:\"max\",flex:1,align:n}:a[t]={policy:\"min\",align:n}}const[g,p]=(0,l.isNumber)(this.spacing)?[this.spacing,this.spacing]:this.spacing;this._state={items:o,nrows:n,ncols:r,rows:h,cols:a,rspacing:g,cspacing:p}}_measure_totals(t,i){const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state;return{height:(0,c.sum)(t)+(s-1)*o,width:(0,c.sum)(i)+(e-1)*n}}_measure_cells(t){const{items:i,nrows:s,ncols:e,rows:o,cols:r,rspacing:l,cspacing:h}=this._state,c=new Array(s);for(let t=0;t<s;t++){const i=o[t];c[t]=\"fixed\"==i.policy?i.height:0}const p=new Array(e);for(let t=0;t<e;t++){const i=r[t];p[t]=\"fixed\"==i.policy?i.width:0}const f=new _;i.foreach(((i,s)=>{const{r0:e,c0:_,r1:d,c1:u}=i,w=(d-e)*l,m=(u-_)*h;let y=0;for(let i=e;i<=d;i++)y+=t(i,_).height;y+=w;let x=0;for(let i=_;i<=u;i++)x+=t(e,i).width;x+=m;const b=s.measure({width:x,height:y});f.add(i,{layout:s,size_hint:b});const z=new n.Sizeable(b).grow_by(s.sizing.margin);z.height-=w,z.width-=m;const v=[];for(let t=e;t<=d;t++){const i=o[t];\"fixed\"==i.policy?z.height-=i.height:v.push(t)}if(z.height>0){const t=g(z.height/v.length);for(const i of v)c[i]=a(c[i],t)}const j=[];for(let t=_;t<=u;t++){const i=r[t];\"fixed\"==i.policy?z.width-=i.width:j.push(t)}if(z.width>0){const t=g(z.width/j.length);for(const i of j)p[i]=a(p[i],t)}}));return{size:this._measure_totals(c,p),row_heights:c,col_widths:p,size_hints:f}}_measure_grid(t){const{nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}=this._state,l=this._measure_cells(((t,i)=>{const s=e[t],n=o[i];return{width:\"fixed\"==n.policy?n.width:1/0,height:\"fixed\"==s.policy?s.height:1/0}}));let h;h=\"fixed\"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:t.height!=1/0&&this.is_height_expanding()?t.height:l.size.height;let c,p=0;for(let t=0;t<i;t++){const i=e[t];\"fit\"==i.policy||\"max\"==i.policy?p+=i.flex:h-=l.row_heights[t]}if(h-=(i-1)*n,0!=p&&h>0)for(let t=0;t<i;t++){const i=e[t];if(\"fit\"==i.policy||\"max\"==i.policy){const s=g(h*(i.flex/p));h-=s,l.row_heights[t]=s,p-=i.flex}}else if(h<0){let t=0;for(let s=0;s<i;s++){\"fixed\"!=e[s].policy&&t++}let s=-h;for(let o=0;o<i;o++){if(\"fixed\"!=e[o].policy){const i=l.row_heights[o],e=g(s/t);l.row_heights[o]=a(i-e,0),s-=e>i?i:e,t--}}}c=\"fixed\"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:l.size.width;let _=0;for(let t=0;t<s;t++){const i=o[t];\"fit\"==i.policy||\"max\"==i.policy?_+=i.flex:c-=l.col_widths[t]}if(c-=(s-1)*r,0!=_&&c>0)for(let t=0;t<s;t++){const i=o[t];if(\"fit\"==i.policy||\"max\"==i.policy){const s=g(c*(i.flex/_));c-=s,l.col_widths[t]=s,_-=i.flex}}else if(c<0){let t=0;for(let i=0;i<s;i++){\"fixed\"!=o[i].policy&&t++}let i=-c;for(let e=0;e<s;e++){if(\"fixed\"!=o[e].policy){const s=l.col_widths[e],o=g(i/t);l.col_widths[e]=a(s-o,0),i-=o>s?s:o,t--}}}const{row_heights:f,col_widths:d,size_hints:u}=this._measure_cells(((t,i)=>({width:l.col_widths[i],height:l.row_heights[t]})));return{size:this._measure_totals(f,d),row_heights:f,col_widths:d,size_hints:u}}_measure(t){const{size:i}=this._measure_grid(t);return i}_set_geometry(t,i){super._set_geometry(t,i);const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state,{row_heights:r,col_widths:l,size_hints:c}=this._measure_grid(t),_=this._state.rows.map(((t,i)=>Object.assign(Object.assign({},t),{top:0,height:r[i],get bottom(){return this.top+this.height}}))),f=this._state.cols.map(((t,i)=>Object.assign(Object.assign({},t),{left:0,width:l[i],get right(){return this.left+this.width}}))),d=c.map(((t,i)=>Object.assign(Object.assign({},i),{outer:new h.BBox,inner:new h.BBox})));for(let i=0,e=this.absolute?t.top:this.position.top;i<s;i++){const t=_[i];t.top=e,e+=t.height+o}for(let i=0,s=this.absolute?t.left:this.position.left;i<e;i++){const t=f[i];t.left=s,s+=t.width+n}d.foreach((({r0:t,c0:i,r1:s,c1:e},r)=>{const{layout:l,size_hint:c}=r,{sizing:a}=l,{width:p,height:d}=c,u=function(t,i){let s=(i-t)*n;for(let e=t;e<=i;e++)s+=f[e].width;return s}(i,e),w=function(t,i){let s=(i-t)*o;for(let e=t;e<=i;e++)s+=_[e].height;return s}(t,s),m=i==e&&\"auto\"!=f[i].align?f[i].align:a.halign,y=t==s&&\"auto\"!=_[t].align?_[t].align:a.valign;let x=f[i].left;\"start\"==m?x+=a.margin.left:\"center\"==m?x+=g((u-p)/2):\"end\"==m&&(x+=u-a.margin.right-p);let b=_[t].top;\"start\"==y?b+=a.margin.top:\"center\"==y?b+=g((w-d)/2):\"end\"==y&&(b+=w-a.margin.bottom-d),r.outer=new h.BBox({left:x,top:b,width:p,height:d})}));const u=_.map((()=>({start:new p((()=>0)),end:new p((()=>0))}))),w=f.map((()=>({start:new p((()=>0)),end:new p((()=>0))})));d.foreach((({r0:t,c0:i,r1:s,c1:e},{size_hint:o,outer:n})=>{const{inner:r}=o;null!=r&&(u[t].start.apply(n.top,(t=>a(t,r.top))),u[s].end.apply(_[s].bottom-n.bottom,(t=>a(t,r.bottom))),w[i].start.apply(n.left,(t=>a(t,r.left))),w[e].end.apply(f[e].right-n.right,(t=>a(t,r.right))))})),d.foreach((({r0:t,c0:i,r1:s,c1:e},o)=>{const{size_hint:n,outer:r}=o,l=t=>{const i=this.absolute?r:r.relative(),s=i.left+t.left,e=i.top+t.top,o=i.right-t.right,n=i.bottom-t.bottom;return new h.BBox({left:s,top:e,right:o,bottom:n})};if(null!=n.inner){let h=l(n.inner);const c=u[t].start.get(r.top),a=u[s].end.get(_[s].bottom-r.bottom),g=w[i].start.get(r.left),p=w[e].end.get(f[e].right-r.right);try{h=l({top:c,bottom:a,left:g,right:p})}catch(t){}o.inner=h}else o.inner=r})),d.foreach(((t,{layout:i,outer:s,inner:e})=>{i.set_geometry(s,e)}))}}s.Grid=f,f.__name__=\"Grid\";class d extends f{constructor(t){super(),this.items=t.map(((t,i)=>({layout:t,row:0,col:i}))),this.rows=\"fit\"}}s.Row=d,d.__name__=\"Row\";class u extends f{constructor(t){super(),this.items=t.map(((t,i)=>({layout:t,row:i,col:0}))),this.cols=\"fit\"}}s.Column=u,u.__name__=\"Column\"},\n function _(t,e,i,h,o){h();const n=t(145),s=t(146),r=t(57);class l extends s.Layoutable{constructor(){super(...arguments),this.aligns={left:!0,right:!0,top:!0,bottom:!0},this.min_border={left:0,top:0,right:0,bottom:0},this.padding={left:0,top:0,right:0,bottom:0},this.center_border_width=0}*[Symbol.iterator](){yield this.top_panel,yield this.bottom_panel,yield this.left_panel,yield this.right_panel,yield this.center_panel}_measure(t){t=new n.Sizeable({width:\"fixed\"==this.sizing.width_policy||t.width==1/0?this.sizing.width:t.width,height:\"fixed\"==this.sizing.height_policy||t.height==1/0?this.sizing.height:t.height});const e=this.left_panel.measure({width:0,height:t.height}),i=Math.max(e.width,this.min_border.left)+this.padding.left,h=this.right_panel.measure({width:0,height:t.height}),o=Math.max(h.width,this.min_border.right)+this.padding.right,s=this.top_panel.measure({width:t.width,height:0}),r=Math.max(s.height,this.min_border.top)+this.padding.top,l=this.bottom_panel.measure({width:t.width,height:0}),_=Math.max(l.height,this.min_border.bottom)+this.padding.bottom,g=new n.Sizeable(t).shrink_by({left:i,right:o,top:r,bottom:_}),a=this.center_panel.measure(g);return{width:i+a.width+o,height:r+a.height+_,inner:{left:i,right:o,top:r,bottom:_},align:(()=>{const{width_policy:t,height_policy:e}=this.center_panel.sizing;return Object.assign(Object.assign({},this.aligns),{fixed_width:\"fixed\"==t,fixed_height:\"fixed\"==e})})()}}_set_geometry(t,e){var i,h,o,n;if(super._set_geometry(t,e),this.sizing.visible){this.center_panel.set_geometry(e);const i=this.left_panel.measure({width:0,height:t.height}),h=this.right_panel.measure({width:0,height:t.height}),o=this.top_panel.measure({width:t.width,height:0}),n=this.bottom_panel.measure({width:t.width,height:0}),{left:s,top:l,right:_,bottom:g}=e;this.top_panel.set_geometry(new r.BBox({left:s,right:_,bottom:l,height:o.height})),this.bottom_panel.set_geometry(new r.BBox({left:s,right:_,top:g,height:n.height})),this.left_panel.set_geometry(new r.BBox({top:l,bottom:g,right:s,width:i.width})),this.right_panel.set_geometry(new r.BBox({top:l,bottom:g,left:_,width:h.width}));const a=e.shrink_by(this.center_border_width);if(null!=this.inner_top_panel){const{left:t,right:e,top:i,width:h}=a,o=this.inner_top_panel.measure({width:h,height:0});this.inner_top_panel.set_geometry(new r.BBox({left:t,right:e,top:i,height:o.height}))}if(null!=this.inner_bottom_panel){const{left:t,right:e,bottom:i,width:h}=a,o=this.inner_bottom_panel.measure({width:h,height:0});this.inner_bottom_panel.set_geometry(new r.BBox({left:t,right:e,bottom:i,height:o.height}))}if(null!=this.inner_left_panel){const{top:t,bottom:e,left:i,height:h}=a,o=this.inner_left_panel.measure({width:0,height:h});this.inner_left_panel.set_geometry(new r.BBox({top:t,bottom:e,left:i,width:o.width}))}if(null!=this.inner_right_panel){const{top:t,bottom:e,right:i,height:h}=a,o=this.inner_right_panel.measure({width:0,height:h});this.inner_right_panel.set_geometry(new r.BBox({top:t,bottom:e,right:i,width:o.width}))}}else this.center_panel.set_geometry(new r.BBox),this.top_panel.set_geometry(new r.BBox),this.bottom_panel.set_geometry(new r.BBox),this.left_panel.set_geometry(new r.BBox),this.right_panel.set_geometry(new r.BBox),null===(i=this.inner_top_panel)||void 0===i||i.set_geometry(new r.BBox),null===(h=this.inner_bottom_panel)||void 0===h||h.set_geometry(new r.BBox),null===(o=this.inner_left_panel)||void 0===o||o.set_geometry(new r.BBox),null===(n=this.inner_right_panel)||void 0===n||n.set_geometry(new r.BBox)}}i.BorderLayout=l,l.__name__=\"BorderLayout\"},\n function _(e,s,_,i,l){var t;i();const o=e(1),r=e(231),p=o.__importStar(e(78));class h extends r.UpperLowerView{paint(e){e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let s=0,_=this._lower_sx.length;s<_;s++)e.lineTo(this._lower_sx[s],this._lower_sy[s]);for(let s=this._upper_sx.length-1;s>=0;s--)e.lineTo(this._upper_sx[s],this._upper_sy[s]);e.closePath(),this.visuals.fill.apply(e),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let s=0,_=this._lower_sx.length;s<_;s++)e.lineTo(this._lower_sx[s],this._lower_sy[s]);this.visuals.line.apply(e),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let s=0,_=this._upper_sx.length;s<_;s++)e.lineTo(this._upper_sx[s],this._upper_sy[s]);this.visuals.line.apply(e)}}_.BandView=h,h.__name__=\"BandView\";class n extends r.UpperLower{constructor(e){super(e)}}_.Band=n,t=n,n.__name__=\"Band\",t.prototype.default_view=h,t.mixins([p.Line,p.Fill]),t.override({fill_color:\"#fff9ba\",fill_alpha:.4,line_color:\"#cccccc\",line_alpha:.3})},\n function _(e,t,s,r,i){var n;r();const a=e(1),o=e(98),_=e(23),c=e(19),p=a.__importStar(e(17));class u extends o.DataAnnotationView{map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=this.coordinates.x_scale,r=this.coordinates.y_scale,i=\"height\"==t?r:s,n=\"height\"==t?s:r,a=\"height\"==t?e.bbox.yview:e.bbox.xview,o=\"height\"==t?e.bbox.xview:e.bbox.yview,c=(()=>{switch(this.model.properties.lower.units){case\"canvas\":return new _.ScreenArray(this._lower);case\"screen\":return a.v_compute(this._lower);case\"data\":return i.v_compute(this._lower)}})(),p=(()=>{switch(this.model.properties.upper.units){case\"canvas\":return new _.ScreenArray(this._upper);case\"screen\":return a.v_compute(this._upper);case\"data\":return i.v_compute(this._upper)}})(),u=(()=>{switch(this.model.properties.base.units){case\"canvas\":return new _.ScreenArray(this._base);case\"screen\":return o.v_compute(this._base);case\"data\":return n.v_compute(this._base)}})(),[h,d]=\"height\"==t?[1,0]:[0,1],w=[c,u],l=[p,u];this._lower_sx=w[h],this._lower_sy=w[d],this._upper_sx=l[h],this._upper_sy=l[d]}}s.UpperLowerView=u,u.__name__=\"UpperLowerView\";class h extends p.CoordinateSpec{constructor(){super(...arguments),this._value=p.unset}get dimension(){return\"width\"==this.obj.dimension?\"x\":\"y\"}get units(){var e;return this._value===p.unset?\"data\":null!==(e=this._value.units)&&void 0!==e?e:\"data\"}}s.XOrYCoordinateSpec=h,h.__name__=\"XOrYCoordinateSpec\";class d extends o.DataAnnotation{constructor(e){super(e)}}s.UpperLower=d,n=d,d.__name__=\"UpperLower\",n.define((()=>({dimension:[c.Dimension,\"height\"],lower:[h,{field:\"lower\"}],upper:[h,{field:\"upper\"}],base:[h,{field:\"base\"}]})))},\n function _(t,e,o,i,r){var s,n;i();const l=t(1),a=t(73),h=t(93),_=l.__importStar(t(78)),u=t(19),c=t(57),b=t(20),m=t(15),d=t(12),p=t(233),f=t(234),v=l.__importStar(t(235));o.EDGE_TOLERANCE=2.5;const{abs:g}=Math,x=(0,b.Enum)(\"none\",\"left\",\"right\",\"top\",\"bottom\",\"x\",\"y\",\"all\"),w=(0,b.Enum)(\"none\",\"x\",\"y\",\"both\");class y extends a.AnnotationView{constructor(){super(...arguments),this.bbox=new c.BBox,this[s]=!0,this._pan_state=null,this._pinch_state=null,this._is_hovered=!1}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.bbox.round()})}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_render()))}bounds(){const{left:t,left_units:e,right:o,right_units:i,top:r,top_units:s,bottom:n,bottom_units:l}=this.model,a=\"data\"==e&&null!=t,h=\"data\"==i&&null!=o,_=\"data\"==s&&null!=r,u=\"data\"==l&&null!=n,[c,b]=a&&h?t<=o?[t,o]:[o,t]:a?[t,t]:h?[o,o]:[NaN,NaN],[m,d]=_&&u?r<=n?[r,n]:[n,r]:_?[r,r]:u?[n,n]:[NaN,NaN];return{x0:c,x1:b,y0:m,y1:d}}log_bounds(){return(0,c.empty)()}get mappers(){function t(t,e,o,i){switch(t){case\"canvas\":return i;case\"screen\":return o;case\"data\":return e}}const e=this.model,{x_scale:o,y_scale:i}=this.coordinates,{x_view:r,y_view:s}=this.plot_view.frame.bbox,{x_screen:n,y_screen:l}=this.plot_view.canvas.bbox;return{left:t(e.left_units,o,r,n),right:t(e.right_units,o,r,n),top:t(e.top_units,i,s,l),bottom:t(e.bottom_units,i,s,l)}}_render(){function t(t,e,o){return null==t?o:e.compute(t)}const{left:e,right:o,top:i,bottom:r}=this.model,{frame:s}=this.plot_view,{mappers:n}=this;this.bbox=c.BBox.from_lrtb({left:t(e,n.left,s.bbox.left),right:t(o,n.right,s.bbox.right),top:t(i,n.top,s.bbox.top),bottom:t(r,n.bottom,s.bbox.bottom)}),this.bbox.is_valid&&this._paint_box()}get border_radius(){return v.border_radius(this.model.border_radius)}_paint_box(){const{ctx:t}=this.layer;t.save(),t.beginPath(),(0,f.round_rect)(t,this.bbox,this.border_radius);const{_is_hovered:e,visuals:o}=this,i=e&&o.hover_fill.doit?o.hover_fill:o.fill,r=e&&o.hover_hatch.doit?o.hover_hatch:o.hatch,s=e&&o.hover_line.doit?o.hover_line:o.line;i.apply(t),r.apply(t),s.apply(t),t.restore()}interactive_bbox(){const t=this.model.line_width+o.EDGE_TOLERANCE;return this.bbox.grow_by(t)}interactive_hit(t,e){if(!this.model.visible||!this.model.editable)return!1;return this.interactive_bbox().contains(t,e)}_hit_test(t,e){const{left:i,right:r,bottom:s,top:n}=this.bbox,l=Math.max(o.EDGE_TOLERANCE,this.model.line_width/2),a=g(i-t),h=g(r-t),_=g(n-e),u=g(s-e),c=a<l&&a<h,b=h<l&&h<a,m=_<l&&_<u,d=u<l&&u<_;return m&&c?\"top_left\":m&&b?\"top_right\":d&&c?\"bottom_left\":d&&b?\"bottom_right\":c?\"left\":b?\"right\":m?\"top\":d?\"bottom\":this.bbox.contains(t,e)?\"area\":null}get resizable(){const{resizable:t}=this.model;return{left:\"left\"==t||\"x\"==t||\"all\"==t,right:\"right\"==t||\"x\"==t||\"all\"==t,top:\"top\"==t||\"y\"==t||\"all\"==t,bottom:\"bottom\"==t||\"y\"==t||\"all\"==t}}_can_hit(t){const{left:e,right:o,top:i,bottom:r}=this.resizable;switch(t){case\"top_left\":return i&&e;case\"top_right\":return i&&o;case\"bottom_left\":return r&&e;case\"bottom_right\":return r&&o;case\"left\":return e;case\"right\":return o;case\"top\":return i;case\"bottom\":return r;case\"area\":return\"none\"!=this.model.movable}}_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:o}=t,i=this._hit_test(e,o);if(null!=i&&this._can_hit(i))return this._pan_state={bbox:this.bbox.clone(),target:i},this.model.pan.emit([\"pan:start\",t]),!0}return!1}_pan(t){(0,d.assert)(null!=this._pan_state);const e=(()=>{const{dx:e,dy:o}=t,{bbox:i,target:r}=this._pan_state,{left:s,top:n,right:l,bottom:a}=i,{symmetric:h}=this.model,[_,u]=h?[-e,-o]:[0,0],[b,m,d,p]=(()=>{switch(r){case\"top_left\":return[e,_,o,u];case\"top_right\":return[_,e,o,u];case\"bottom_left\":return[e,_,u,o];case\"bottom_right\":return[_,e,u,o];case\"left\":return[e,_,0,0];case\"right\":return[_,e,0,0];case\"top\":return[0,0,o,u];case\"bottom\":return[0,0,u,o];case\"area\":switch(this.model.movable){case\"both\":return[e,e,o,o];case\"x\":return[e,e,0,0];case\"y\":return[0,0,o,o];case\"none\":return[0,0,0,0]}}})();return c.BBox.from_lrtb({left:s+b,right:l+m,top:n+d,bottom:a+p})})(),{mappers:o}=this,i={left:null==this.model.left?null:o.left.invert(e.left),right:null==this.model.right?null:o.right.invert(e.right),top:null==this.model.top?null:o.top.invert(e.top),bottom:null==this.model.bottom?null:o.bottom.invert(e.bottom)};this.model.update(i),this.model.pan.emit([\"pan\",t])}_pan_end(t){this._pan_state=null,this.model.pan.emit([\"pan:end\",t])}_pinch_start(t){if(this.model.visible&&this.model.editable&&\"none\"!=this.model.resizable){const{sx:e,sy:o}=t;if(this.bbox.contains(e,o))return this._pinch_state={bbox:this.bbox.clone()},this.model.pan.emit([\"pan:start\",t]),!0}return!1}_pinch(t){(0,d.assert)(null!=this._pinch_state);const e=(()=>{const{scale:e}=t,{bbox:o}=this._pinch_state,{left:i,top:r,right:s,bottom:n,width:l,height:a}=o,h=l*(e-1),_=a*(e-1),{resizable:u}=this,b=u.left?-h/2:0,m=u.right?h/2:0,d=u.top?-_/2:0,p=u.bottom?_/2:0;return c.BBox.from_lrtb({left:i+b,right:s+m,top:r+d,bottom:n+p})})(),{mappers:o}=this,i={left:null==this.model.left?null:o.left.invert(e.left),right:null==this.model.right?null:o.right.invert(e.right),top:null==this.model.top?null:o.top.invert(e.top),bottom:null==this.model.bottom?null:o.bottom.invert(e.bottom)};this.model.update(i),this.model.pan.emit([\"pan\",t])}_pinch_end(t){this._pinch_state=null,this.model.pan.emit([\"pan:end\",t])}get _has_hover(){const{hover_line:t,hover_fill:e,hover_hatch:o}=this.visuals;return t.doit||e.doit||o.doit}_move_start(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}_move(t){}_move_end(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){var o,i;const r=null!==(i=null===(o=this._pan_state)||void 0===o?void 0:o.target)&&void 0!==i?i:this._hit_test(t,e);if(null==r||!this._can_hit(r))return null;switch(r){case\"top_left\":return this.model.tl_cursor;case\"top_right\":return this.model.tr_cursor;case\"bottom_left\":return this.model.bl_cursor;case\"bottom_right\":return this.model.br_cursor;case\"left\":case\"right\":return this.model.ew_cursor;case\"top\":case\"bottom\":return this.model.ns_cursor;case\"area\":switch(this.model.movable){case\"both\":return this.model.in_cursor;case\"x\":return this.model.ew_cursor;case\"y\":return this.model.ns_cursor;case\"none\":return null}}}}o.BoxAnnotationView=y,s=h.auto_ranged,y.__name__=\"BoxAnnotationView\";class z extends a.Annotation{constructor(t){super(t),this.pan=new m.Signal(this,\"pan\")}update({left:t,right:e,top:o,bottom:i}){this.setv({left:t,right:e,top:o,bottom:i,visible:!0})}clear(){this.visible=!1}}o.BoxAnnotation=z,n=z,z.__name__=\"BoxAnnotation\",n.prototype.default_view=y,n.mixins([_.Line,_.Fill,_.Hatch,[\"hover_\",_.Line],[\"hover_\",_.Fill],[\"hover_\",_.Hatch]]),n.define((({Boolean:t,Number:e,Nullable:o})=>({top:[o(e),null],bottom:[o(e),null],left:[o(e),null],right:[o(e),null],top_units:[u.CoordinateUnits,\"data\"],bottom_units:[u.CoordinateUnits,\"data\"],left_units:[u.CoordinateUnits,\"data\"],right_units:[u.CoordinateUnits,\"data\"],border_radius:[p.BorderRadius,0],editable:[t,!1],resizable:[x,\"all\"],movable:[w,\"both\"],symmetric:[t,!1]}))),n.internal((({String:t})=>({tl_cursor:[t,\"nwse-resize\"],tr_cursor:[t,\"nesw-resize\"],bl_cursor:[t,\"nesw-resize\"],br_cursor:[t,\"nwse-resize\"],ew_cursor:[t,\"ew-resize\"],ns_cursor:[t,\"ns-resize\"],in_cursor:[t,\"move\"]}))),n.override({fill_color:\"#fff9ba\",fill_alpha:.4,line_color:\"#cccccc\",line_alpha:.3,hover_fill_color:null,hover_fill_alpha:.4,hover_line_color:null,hover_line_alpha:.3})},\n function _(t,n,e,r,i){r();const g=t(1),a=t(20),h=g.__importStar(t(19));e.Length=(0,a.NonNegative)(a.Int);var c;e.Anchor=(0,a.Or)(h.Anchor,(0,a.Tuple)((0,a.Or)(h.Align,h.HAlign,a.Percent),(0,a.Or)(h.Align,h.VAlign,a.Percent))),e.TextAnchor=(0,a.Or)(e.Anchor,a.Auto),e.Padding=(0,a.Or)(e.Length,(0,a.Tuple)(e.Length,e.Length),(c=e.Length,(0,a.PartialStruct)({x:c,y:c})),(0,a.Tuple)(e.Length,e.Length,e.Length,e.Length),(t=>(0,a.PartialStruct)({left:t,right:t,top:t,bottom:t}))(e.Length)),e.BorderRadius=(0,a.Or)(e.Length,(0,a.Tuple)(e.Length,e.Length,e.Length,e.Length),(0,a.PartialStruct)({top_left:e.Length,top_right:e.Length,bottom_right:e.Length,bottom_left:e.Length})),e.Index=(0,a.NonNegative)(a.Int),e.Span=(0,a.NonNegative)(a.Int);e.GridChild=t=>(0,a.Tuple)((0,a.Ref)(t),e.Index,e.Index,(0,a.Opt)(e.Span),(0,a.Opt)(e.Span)),e.GridSpacing=(0,a.Or)(e.Length,(0,a.Tuple)(e.Length,e.Length)),e.TrackAlign=(0,a.Enum)(\"start\",\"center\",\"end\",\"auto\"),e.TrackSize=a.String,e.TrackSizing=(0,a.PartialStruct)({size:e.TrackSize,align:e.TrackAlign}),e.TrackSizingLike=(0,a.Or)(e.TrackSize,e.TrackSizing),e.TracksSizing=(0,a.Or)(e.TrackSizingLike,(0,a.Array)(e.TrackSizingLike),(0,a.Map)(a.Int,e.TrackSizingLike))},\n function _(t,o,e,i,n){i(),e.round_rect=function(t,o,e){let{top_left:i,top_right:n,bottom_right:c,bottom_left:h}=e;if(0!=i||0!=n||0!=c||0!=h){const{left:e,right:l,top:r,bottom:T,width:f,height:a}=o,_=Math.min(f/(i+n),a/(n+c),f/(c+h),a/(i+h));_<1&&(i*=_,n*=_,c*=_,h*=_),t.moveTo(e+i,r),t.lineTo(l-n,r),t.arcTo(l,r,l,r+n,n),t.lineTo(l,T-c),t.arcTo(l,T,l-c,T,c),t.lineTo(e+h,T),t.arcTo(e,T,e,T-h,h),t.lineTo(e,r+i),t.arcTo(e,r,e+i,r,i),t.closePath()}else{const{left:e,top:i,width:n,height:c}=o;t.rect(e,i,n,c)}}},\n function _(t,e,r,n,o){n();const c=t(8),i=t(12);function s(t){if(!(0,c.isString)(t)){return{x:(()=>{const[e]=t;switch(e){case\"start\":case\"left\":return 0;case\"center\":return.5;case\"end\":case\"right\":return 1;default:return e}})(),y:(()=>{const[,e]=t;switch(e){case\"start\":case\"top\":return 0;case\"center\":return.5;case\"end\":case\"bottom\":return 1;default:return e}})()}}switch(t){case\"top_left\":return{x:0,y:0};case\"top\":case\"top_center\":return{x:.5,y:0};case\"top_right\":return{x:1,y:0};case\"right\":case\"center_right\":return{x:1,y:.5};case\"bottom_right\":return{x:1,y:1};case\"bottom\":case\"bottom_center\":return{x:.5,y:1};case\"bottom_left\":return{x:0,y:1};case\"left\":case\"center_left\":return{x:0,y:.5};case\"center\":case\"center_center\":return{x:.5,y:.5}}}r.anchor=s,r.text_anchor=function(t,e,r){return s(\"auto\"!=t?t:[(()=>{switch(e){case\"left\":return\"start\";case\"center\":return\"center\";case\"right\":return\"end\"}})(),(()=>{switch(r){case\"alphabetic\":case\"ideographic\":case\"hanging\":case\"middle\":return\"center\";case\"top\":return\"start\";case\"bottom\":return\"end\"}})()])},r.padding=function(t){if((0,c.isNumber)(t))return{left:t,right:t,top:t,bottom:t};if(!(0,c.isPlainObject)(t)){if(2==t.length){const[e=0,r=0]=t;return{left:e,right:e,top:r,bottom:r}}{const[e=0,r=0,n=0,o=0]=t;return{left:e,right:r,top:n,bottom:o}}}if(\"x\"in t||\"y\"in t){const{x:e=0,y:r=0}=t;return{left:e,right:e,top:r,bottom:r}}if(\"left\"in t||\"right\"in t||\"top\"in t||\"bottom\"in t){const{left:e=0,right:r=0,top:n=0,bottom:o=0}=t;return{left:e,right:r,top:n,bottom:o}}(0,i.unreachable)()},r.border_radius=function(t){var e,r,n,o;if((0,c.isNumber)(t))return{top_left:t,top_right:t,bottom_right:t,bottom_left:t};if((0,c.isPlainObject)(t))return{top_left:null!==(e=t.top_left)&&void 0!==e?e:0,top_right:null!==(r=t.top_right)&&void 0!==r?r:0,bottom_right:null!==(n=t.bottom_right)&&void 0!==n?n:0,bottom_left:null!==(o=t.bottom_left)&&void 0!==o?o:0};{const[e=0,r=0,n=0,o=0]=t;return{top_left:e,top_right:r,bottom_right:n,bottom_left:o}}}},\n function _(e,i,n,t,a){var o;t();const l=e(141),r=e(158),s=e(219),_=e(197),c=e(237),h=e(225),p=e(223),g=e(192),m=e(10),u=e(12);class d extends l.BaseColorBarView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.color_mapper.change,(async()=>{this._title_view.remove(),this._axis_view.remove(),this.initialize(),await this.lazy_initialize(),this.plot_view.invalidate_layout()})),this.connect(this.model.color_mapper.metrics_change,(()=>this._metrics_changed())),this.connect(this.model.properties.display_low.change,(()=>this._metrics_changed())),this.connect(this.model.properties.display_high.change,(()=>this._metrics_changed()))}get color_mapper(){let e=this.model.color_mapper;return e instanceof c.WeightedStackColorMapper&&(e=e.alpha_mapper),e}update_layout(){super.update_layout(),this._set_canvas_image()}_create_axis(){const{color_mapper:e}=this;return e instanceof c.CategoricalColorMapper?new r.CategoricalAxis:e instanceof c.LogColorMapper?new r.LogAxis:new r.LinearAxis}_create_formatter(){const{color_mapper:e}=this;return this._ticker instanceof g.LogTicker?new s.LogTickFormatter:e instanceof c.CategoricalColorMapper?new s.CategoricalTickFormatter:new s.BasicTickFormatter}_create_major_range(){const{color_mapper:e}=this;if(e instanceof c.CategoricalColorMapper)return new h.FactorRange({factors:e.factors});if(e instanceof c.ContinuousColorMapper){const{min:i,max:n}=this._continuous_metrics(e);return new h.Range1d({start:i,end:n})}(0,u.unreachable)()}_create_major_scale(){const{color_mapper:e}=this;return e instanceof c.LinearColorMapper?new p.LinearScale:e instanceof c.LogColorMapper?new p.LogScale:e instanceof c.ScanningColorMapper?new p.LinearInterpolationScale({binning:this._scanning_binning(e)}):e instanceof c.CategoricalColorMapper?new p.CategoricalScale:void(0,u.unreachable)()}_create_ticker(){const{color_mapper:e}=this;return e instanceof c.LogColorMapper?new g.LogTicker:e instanceof c.ScanningColorMapper?new g.BinnedTicker({mapper:e}):e instanceof c.CategoricalColorMapper?new g.CategoricalTicker:new g.BasicTicker}_continuous_metrics(e){const{display_low:i,display_high:n}=this.model;let{min:t,max:a}=e.metrics;if(null!=n&&null!=i&&n<i)return this._index_low=0,this._index_high=-1,{min:NaN,max:NaN};if(this._index_high=null,null!=n){const i=e.palette.length,t=e.value_to_index(n,i);t<i-1&&(this._index_high=t,a=e.index_to_value(t+1))}if(this._index_low=null,null!=i){const n=e.value_to_index(i,e.palette.length);n>0&&(this._index_low=n,t=e.index_to_value(n))}return{min:t,max:a}}_get_major_size_factor(){return this.color_mapper.palette.length}_metrics_changed(){const e=this._major_range,i=this._major_scale,{color_mapper:n}=this;if(n instanceof c.ScanningColorMapper&&i instanceof p.LinearInterpolationScale){const e=this._scanning_binning(n);i.binning=e;const t=\"vertical\"==this.orientation,a=t?this._frame.y_scale:this._frame.x_scale;if(a instanceof p.LinearInterpolationScale){a.binning=e;const i=t?this._frame.y_range:this._frame.x_range;i instanceof h.Range1d&&(i.start=e[0],i.end=e[e.length-1])}}else if(n instanceof c.ContinuousColorMapper&&e instanceof h.Range1d){const{min:i,max:t}=this._continuous_metrics(n);e.setv({start:i,end:t})}this._set_canvas_image(),this.plot_view.request_layout()}_paint_colors(e,i){const{x:n,y:t,width:a,height:o}=i;e.save(),e.globalAlpha=this.model.scale_alpha,null!=this._image&&(e.imageSmoothingEnabled=!1,e.drawImage(this._image,n,t,a,o)),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(e),e.strokeRect(n,t,a,o)),e.restore()}_scanning_binning(e){let{binning:i,force_low_cutoff:n}=e.metrics;const{display_high:t}=this.model;let{display_low:a}=this.model;if(n&&(null==a||e.metrics.min>a)&&(a=e.metrics.min),null!=t&&null!=a&&t<a)return this._index_low=0,this._index_high=-1,[NaN];if(this._index_high=null,null!=t){const n=e.value_to_index(t,i.length);n<i.length-1&&(this._index_high=n)}if(this._index_low=null,null!=a){const n=e.value_to_index(a,i.length);n>0&&(this._index_low=n)}if(null!=this._index_low||null!=this._index_high){const e=null!=this._index_low?this._index_low:0,n=(null!=this._index_high?this._index_high+1:i.length-1)-e+1;if(n>0){const t=new Array(n);for(let a=0;a<n;a++)t[a]=i[a+e];i=t}else i=[NaN]}return i}_set_canvas_image(){const{orientation:e}=this;let{palette:i}=this.color_mapper;if(null==this._index_high&&null==this._index_low||(i=i.slice(null!=this._index_low?this._index_low:0,null!=this._index_high?this._index_high+1:i.length)),i.length<1)return void(this._image=null);\"vertical\"==e&&(i=(0,m.reversed)(i));const[n,t]=\"vertical\"==e?[1,i.length]:[i.length,1],a=this._image=document.createElement(\"canvas\");a.width=n,a.height=t;const o=a.getContext(\"2d\"),l=o.getImageData(0,0,n,t),r=new c.LinearColorMapper({palette:i}).rgba_mapper.v_compute((0,m.range)(0,i.length));l.data.set(r),o.putImageData(l,0,0)}}n.ColorBarView=d,d.__name__=\"ColorBarView\";class f extends l.BaseColorBar{constructor(e){super(e)}}n.ColorBar=f,o=f,f.__name__=\"ColorBar\",o.prototype.default_view=d,o.define((({Nullable:e,Number:i,Ref:n})=>({color_mapper:[n(_.ColorMapper)],display_low:[e(i),null],display_high:[e(i),null]})))},\n function _(r,o,a,p,e){p(),e(\"CategoricalColorMapper\",r(238).CategoricalColorMapper),e(\"CategoricalMarkerMapper\",r(240).CategoricalMarkerMapper),e(\"CategoricalPatternMapper\",r(241).CategoricalPatternMapper),e(\"ContinuousColorMapper\",r(196).ContinuousColorMapper),e(\"ColorMapper\",r(197).ColorMapper),e(\"LinearColorMapper\",r(242).LinearColorMapper),e(\"LogColorMapper\",r(243).LogColorMapper),e(\"ScanningColorMapper\",r(195).ScanningColorMapper),e(\"EqHistColorMapper\",r(244).EqHistColorMapper),e(\"StackColorMapper\",r(245).StackColorMapper),e(\"WeightedStackColorMapper\",r(246).WeightedStackColorMapper)},\n function _(t,o,r,a,e){var c;a();const s=t(239),l=t(197),n=t(96);class _ extends l.ColorMapper{constructor(t){super(t)}_v_compute(t,o,r,{nan_color:a}){(0,s.cat_v_compute)(t,this.factors,r,o,this.start,this.end,a)}}r.CategoricalColorMapper=_,c=_,_.__name__=\"CategoricalColorMapper\",c.define((({Number:t,Nullable:o})=>({factors:[n.FactorSeq],start:[t,0],end:[o(t),null]})))},\n function _(n,t,e,i,l){i();const o=n(13),f=n(8);function c(n,t){if(n.length!=t.length)return!1;for(let e=0,i=n.length;e<i;e++)if(n[e]!==t[e])return!1;return!0}e._cat_equals=c,e.cat_v_compute=function(n,t,e,i,l,r,u){const _=n.length;for(let g=0;g<_;g++){let _,h,d=n[g];(0,f.isString)(d)?_=(0,o.index_of)(t,d):(d=d.slice(l,null!=r?r:void 0),_=1==d.length?(0,o.index_of)(t,d[0]):(0,o.find_index)(t,(n=>c(n,d)))),h=_<0||_>=e.length?u:e[_],i[g]=h}}},\n function _(e,r,a,t,s){var c;t();const l=e(239),n=e(96),u=e(198),o=e(19);class p extends u.Mapper{constructor(e){super(e)}v_compute(e){const r=new Array(e.length);return(0,l.cat_v_compute)(e,this.factors,this.markers,r,this.start,this.end,this.default_value),r}}a.CategoricalMarkerMapper=p,c=p,p.__name__=\"CategoricalMarkerMapper\",c.define((({Number:e,Array:r,Nullable:a})=>({factors:[n.FactorSeq],markers:[r(o.MarkerType)],start:[e,0],end:[a(e),null],default_value:[o.MarkerType,\"circle\"]})))},\n function _(t,e,a,r,n){var s;r();const c=t(239),l=t(96),p=t(198),u=t(19);class o extends p.Mapper{constructor(t){super(t)}v_compute(t){const e=new Array(t.length);return(0,c.cat_v_compute)(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=o,s=o,o.__name__=\"CategoricalPatternMapper\",s.define((({Number:t,Array:e,Nullable:a})=>({factors:[l.FactorSeq],patterns:[e(u.HatchPatternType)],start:[t,0],end:[a(t),null],default_value:[u.HatchPatternType,\" \"]})))},\n function _(n,r,o,t,a){t();const e=n(196),i=n(13),s=n(11);class _ extends e.ContinuousColorMapper{constructor(n){super(n)}scan(n,r){const o=null!=this.low?this.low:(0,i.min)(n),t=null!=this.high?this.high:(0,i.max)(n);return{max:t,min:o,norm_factor:1/(t-o),normed_interval:1/r}}index_to_value(n){const r=this._scan_data;return r.min+r.normed_interval*n/r.norm_factor}value_to_index(n,r){const o=this._scan_data;if(n==o.max)return r-1;const t=(n-o.min)*o.norm_factor,a=Math.floor(t/o.normed_interval);return(0,s.clamp)(a,-1,r)}}o.LinearColorMapper=_,_.__name__=\"LinearColorMapper\"},\n function _(n,t,a,o,s){o();const r=n(196),e=n(13),i=n(11);class l extends r.ContinuousColorMapper{constructor(n){super(n)}scan(n,t){const a=null!=this.low?this.low:(0,e.min)(n),o=null!=this.high?this.high:(0,e.max)(n);return{max:o,min:a,scale:t/Math.log(o/a)}}index_to_value(n){const t=this._scan_data;return t.min*Math.exp(n/t.scale)}value_to_index(n,t){const a=this._scan_data;if(n==a.max)return t-1;if(n>a.max)return t;if(n<a.min)return-1;const o=Math.log(n/a.min),s=Math.floor(o*a.scale);return(0,i.clamp)(s,-1,t)}}a.LogColorMapper=l,l.__name__=\"LogColorMapper\"},\n function _(e,n,s,t,l){var o;t();const i=e(195),r=e(13),c=e(10);class a extends i.ScanningColorMapper{constructor(e){super(e)}scan(e,n){const s=null!=this.low?this.low:(0,r.min)(e),t=null!=this.high?this.high:(0,r.max)(e),l=this.bins,o=(0,c.linspace)(s,t,l+1),i=(0,r.bin_counts)(e,o);let a=0;for(let e=0;e<l;e++)0!=i[e]&&a++;const _=new Array(a+1),h=new Array(a+1);for(let e=0,n=1;e<l;e++)0!=i[e]&&(_[n]=i[e],h[n]=(o[e]+o[e+1])/2,n++);_[0]=0,h[0]=2*h[1]-h[a];const f=(0,c.cumsum)(_),p=f[1],u=f[a]-p;for(let e=1;e<=a;e++)f[e]=(f[e]-p)/u;f[0]=-1;let{rescale_discrete_levels:m}=this,d=0;if(m){const e=-.5/98,n=e*a+(1.5-2*e);n>1?d=1-n:m=!1}const g=(0,c.linspace)(d,1,n+1),w=(0,r.interpolate)(g,f,h);let b=!1;if(m){const e=(0,r.sorted_index)(w,s);s<w[e]&&e>0&&(w[e-1]=s),b=!0}else w[0]=s;return w[w.length-1]=t,{min:s,max:t,binning:w,force_low_cutoff:b}}}s.EqHistColorMapper=a,o=a,a.__name__=\"EqHistColorMapper\",o.define((({Boolean:e,Int:n})=>({bins:[n,65536],rescale_discrete_levels:[e,!1]})))},\n function _(o,r,a,c,e){c();const p=o(197);class t extends p.ColorMapper{constructor(o){super(o)}}a.StackColorMapper=t,t.__name__=\"StackColorMapper\"},\n function _(e,t,o,n,r){var l;n();const a=e(197),c=e(196),s=e(245),i=e(23),_=e(13),p=e(12),u=e(21);class h extends s.StackColorMapper{constructor(e){super(e)}_mix_colors(e,t,o,n){if(isNaN(n))return t;let r=0,l=0,a=0,c=0;const s=o.length;if(0!=n)for(let t=0;t<s;t++){if(isNaN(o[t]))continue;const s=o[t]/n;r+=e[4*t]*s,l+=e[4*t+1]*s,a+=e[4*t+2]*s,c+=e[4*t+3]*s}else{let t=0;for(let n=0;n<s;n++)0==o[n]&&(r+=e[4*n],l+=e[4*n+1],a+=e[4*n+2],c+=e[4*n+3],t++);r/=t,l/=t,a/=t,c/=t}return(0,u.encode_rgba)([(0,u.byte)(r),(0,u.byte)(l),(0,u.byte)(a),(0,u.byte)(c)])}_v_compute(e,t,o,n){(0,p.unreachable)()}_v_compute_uint32(e,t,o,n){const r=t.length,l=o.length,c=e.length/r;(0,p.assert)(c==l,`Expected ${c} not ${l} colors in palette`);const s=new i.RGBAArray(4*l);for(let e=0;e<l;e++){const[t,n,r,l]=(0,u.decode_rgba)(o[e]);s[4*e]=t,s[4*e+1]=n,s[4*e+2]=r,s[4*e+3]=l}const h=this.color_baseline,f=null==h?(0,_.min)(e):h;if(0!=f)for(let t=0,o=e.length;t<o;t++)e[t]=Math.max(e[t]-f,0);const{nan_color:b}=n,m=new Array(r),N=new Array(l);for(let o=0;o<r;o++){let n=NaN;for(let t=0;t<l;t++){const r=e[o*l+t];N[t]=r,isNaN(r)||(isNaN(n)?n=r:n+=r)}t[o]=this._mix_colors(s,b,N,n),m[o]=n}const g=(0,a._convert_palette)(this.alpha_mapper.palette),y=new Uint32Array(r);this.alpha_mapper._v_compute(m,y,g,n);for(let e=0;e<r;e++){const o=(0,u.byte)((255&t[e])*(255&y[e])/255);t[e]=4294967040&t[e]|o}}}o.WeightedStackColorMapper=h,l=h,h.__name__=\"WeightedStackColorMapper\",l.define((({Nullable:e,Number:t,Ref:o})=>({alpha_mapper:[o(c.ContinuousColorMapper)],color_baseline:[e(t),null]})))},\n function _(e,t,r,i,l){var n;i();const o=e(141),s=e(225),a=e(199),_=e(59),h=e(12);class d extends o.BaseColorBarView{*children(){yield*super.children(),yield this._fill_view,yield this._line_view}async lazy_initialize(){await super.lazy_initialize();const{fill_renderer:e,line_renderer:t}=this.model;this._fill_view=await(0,_.build_view)(e,{parent:this.parent}),this._line_view=await(0,_.build_view)(t,{parent:this.parent})}remove(){this._fill_view.remove(),this._line_view.remove(),super.remove()}_create_major_range(){const e=this.model.levels;return e.length>0?new s.Range1d({start:e[0],end:e[e.length-1]}):new s.Range1d({start:0,end:1})}_paint_colors(e,t){const r=\"vertical\"==this.orientation,i=this.model.levels,l=this._major_scale;l.source_range=this._major_range,l.target_range=r?new s.Range1d({start:t.bottom,end:t.top}):new s.Range1d({start:t.left,end:t.right});const n=l.v_compute(i),o=this._fill_view.glyph,a=o.data_size;if(a>0){(0,h.assert)(i.length==a+1,\"Inconsistent number of filled contour levels\"),e.save();for(let i=0;i<a;i++)e.beginPath(),r?e.rect(t.left,n[i],t.width,n[i+1]-n[i]):e.rect(n[i],t.top,n[i+1]-n[i],t.height),o.visuals.fill.apply(e,i),o.visuals.hatch.apply(e,i);e.restore()}const _=this._line_view.glyph,d=_.data_size;if(d>0){(0,h.assert)(i.length==d,\"Inconsistent number of line contour levels\"),e.save();for(let i=0;i<d;i++)e.beginPath(),r?(e.moveTo(t.left,n[i]),e.lineTo(t.right,n[i])):(e.moveTo(n[i],t.bottom),e.lineTo(n[i],t.top)),_.visuals.line.set_vectorize(e,i),e.stroke();e.restore()}}}r.ContourColorBarView=d,d.__name__=\"ContourColorBarView\";class v extends o.BaseColorBar{constructor(e){super(e)}}r.ContourColorBar=v,n=v,v.__name__=\"ContourColorBar\",n.prototype.default_view=d,n.define((({Array:e,Number:t,Ref:r})=>({fill_renderer:[r(a.GlyphRenderer)],line_renderer:[r(a.GlyphRenderer)],levels:[e(t),[]]})))},\n function _(e,t,s,i,n){var a;i();const o=e(143),l=e(11),h=e(19),u=e(144);class c extends o.TextAnnotationView{update_layout(){const{panel:e}=this;this.layout=null!=e?new u.SideLayout(e,(()=>this.get_size()),!1):void 0}_get_size(){if(!this.displayed)return{width:0,height:0};const e=this._text_view.graphics(),{angle:t,angle_units:s}=this.model;e.angle=(0,l.compute_angle)(t,s),e.visuals=this.visuals.text.values();const{width:i,height:n}=e.size();return{width:i,height:n}}_render(){const{angle:e,angle_units:t}=this.model,s=(0,l.compute_angle)(e,t),i=null!=this.layout?this.layout:this.plot_view.frame,n=this.coordinates.x_scale,a=this.coordinates.y_scale;let o=(()=>{switch(this.model.x_units){case\"canvas\":return this.model.x;case\"screen\":return i.bbox.xview.compute(this.model.x);case\"data\":return n.compute(this.model.x)}})(),h=(()=>{switch(this.model.y_units){case\"canvas\":return this.model.y;case\"screen\":return i.bbox.yview.compute(this.model.y);case\"data\":return a.compute(this.model.y)}})();o+=this.model.x_offset,h-=this.model.y_offset,this._paint(this.layer.ctx,{sx:o,sy:h},s)}}s.LabelView=c,c.__name__=\"LabelView\";class d extends o.TextAnnotation{constructor(e){super(e)}}s.Label=d,a=d,d.__name__=\"Label\",a.prototype.default_view=c,a.define((({Number:e,Angle:t})=>({x:[e],x_units:[h.CoordinateUnits,\"data\"],y:[e],y_units:[h.CoordinateUnits,\"data\"],angle:[t,0],angle_units:[h.AngleUnits,\"rad\"],x_offset:[e,0],y_offset:[e,0]})))},\n function _(t,e,i,s,a){var n;s();const o=t(1),l=t(98),r=o.__importStar(t(78)),c=t(19),_=t(151),u=o.__importStar(t(17)),x=t(23);class h extends l.DataAnnotationView{map_data(){const{x_scale:t,y_scale:e}=this.coordinates,i=null!=this.layout?this.layout:this.plot_view.frame;this.sx=(()=>{switch(this.model.x_units){case\"canvas\":return new x.ScreenArray(this._x);case\"screen\":return i.bbox.xview.v_compute(this._x);case\"data\":return t.v_compute(this._x)}})(),this.sy=(()=>{switch(this.model.y_units){case\"canvas\":return new x.ScreenArray(this._y);case\"screen\":return i.bbox.yview.v_compute(this._y);case\"data\":return e.v_compute(this._y)}})()}paint(){const{ctx:t}=this.layer;for(let e=0,i=this.text.length;e<i;e++){const i=this.x_offset.get(e),s=this.y_offset.get(e),a=this.sx[e]+i,n=this.sy[e]-s,o=this.angle.get(e),l=this.text.get(e);isFinite(a+n+o)&&null!=l&&this._paint(t,e,`${l}`,a,n,o)}}_paint(t,e,i,s,a,n){const o=new _.TextBox({text:i});o.angle=n,o.position={sx:s,sy:a},o.visuals=this.visuals.text.values(e);const{background_fill:l,border_line:r}=this.visuals;if(l.doit||r.doit){const{p0:i,p1:s,p2:a,p3:n}=o.rect();t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(s.x,s.y),t.lineTo(a.x,a.y),t.lineTo(n.x,n.y),t.closePath(),this.visuals.background_fill.apply(t,e),this.visuals.border_line.apply(t,e)}this.visuals.text.doit&&o.paint(t)}}i.LabelSetView=h,h.__name__=\"LabelSetView\";class d extends l.DataAnnotation{constructor(t){super(t)}}i.LabelSet=d,n=d,d.__name__=\"LabelSet\",n.prototype.default_view=h,n.mixins([r.TextVector,[\"border_\",r.LineVector],[\"background_\",r.FillVector]]),n.define((()=>({x:[u.XCoordinateSpec,{field:\"x\"}],y:[u.YCoordinateSpec,{field:\"y\"}],x_units:[c.CoordinateUnits,\"data\"],y_units:[c.CoordinateUnits,\"data\"],text:[u.NullStringSpec,{field:\"text\"}],angle:[u.AngleSpec,0],x_offset:[u.NumberSpec,{value:0}],y_offset:[u.NumberSpec,{value:0}]}))),n.override({background_fill_color:null,border_line_color:null})},\n function _(t,e,i,s,n){var o;s();const l=t(1),r=t(73),a=t(251),_=t(19),c=l.__importStar(t(78)),h=t(15),d=t(144),u=t(57),b=t(10),g=t(32),p=t(8),m=t(151),f=t(226),{max:x,floor:w}=Math;class y extends f.ContentLayoutable{constructor(t){super(),this.text=t}_content_size(){return new f.Sizeable(this.text.size())}}y.__name__=\"TextLayout\";class v extends f.ContentLayoutable{constructor(t,e,i,s){super(),this.item=t,this.label=e,this.text=i,this.settings=s}get field(){return this.item.get_field_from_label_prop()}_content_size(){const t=this.text.size(),{glyph_width:e,glyph_height:i,label_standoff:s,label_width:n,label_height:o}=this.settings,l=e+s+x(t.width,n),r=x(i,t.height,o);return new f.Sizeable({width:l,height:r})}}v.__name__=\"LegendEntry\";class k extends r.AnnotationView{constructor(){super(...arguments),this.bbox=new u.BBox}_get_size(){const{width:t,height:e}=this.bbox,{margin:i}=this.model;return{width:t+2*i,height:e+2*i}}update_layout(){this.update_geometry();const{panel:t}=this;this.layout=null!=t?new d.SideLayout(t,(()=>this.get_size())):void 0}connect_signals(){super.connect_signals();const t=()=>{this.update_geometry(),this.request_render()};this.connect(this.model.change,t),this.connect(this.model.item_change,t)}get padding(){return null!=this.model.border_line_color?this.model.padding:0}update_geometry(){super.update_geometry();const{spacing:t,orientation:e}=this.model,i=\"vertical\"==e,{padding:s}=this,n=s,o=s,{title:l}=this.model,r=new m.TextBox({text:null!=l?l:\"\"});r.position={sx:0,sy:0,x_anchor:\"left\",y_anchor:\"top\"},r.visuals=this.visuals.title_text.values();const a=new d.Panel(this.model.title_location);r.angle=a.get_label_angle_heuristic(\"parallel\");const _=[];for(const t of this.model.items){t.legend=this.model;const e=t.get_labels_list_from_label_prop();for(const i of e){const e=new m.TextBox({text:`${i}`});e.position={sx:0,sy:0,x_anchor:\"left\",y_anchor:\"center\"},e.visuals=this.visuals.label_text.values();const s=new v(t,i,e,this.model);s.set_sizing({visible:t.visible}),_.push({layout:s,row:0,col:0})}}const{ncols:c,nrows:h}=(()=>{let{ncols:t,nrows:e}=this.model;const s=_.length;return i?(\"auto\"!=e||(e=\"auto\"!=t?w(s/t):1/0),t=1/0):(\"auto\"!=t||(t=\"auto\"!=e?w(s/e):1/0),e=1/0),{ncols:t,nrows:e}})();let b=0,g=0;for(const t of _)t.row=b,t.col=g,i?(b+=1,b>=h&&(b=0,g+=1)):(g+=1,g>=c&&(g=0,b+=1));const p=new f.Grid(_);this.grid=p,p.spacing=t,p.set_sizing();const x=new y(r);this.title_panel=x;const k=\"\"!=r.text&&this.visuals.title_text.doit;x.set_sizing({visible:k});const z=(()=>{if(!k)return new f.Column([p]);switch(this.model.title_location){case\"above\":return new f.Column([x,p]);case\"below\":return new f.Column([p,x]);case\"left\":return new f.Row([x,p]);case\"right\":return new f.Row([p,x])}})();this.border_box=z,z.position={left:n,top:o},z.spacing=this.model.title_standoff,z.set_sizing(),z.compute();const L=s+z.bbox.width+s,B=s+z.bbox.height+s;this.bbox=new u.BBox({left:0,top:0,width:L,height:B})}compute_geometry(){super.compute_geometry();const{margin:t,location:e}=this.model,{width:i,height:s}=this.bbox,n=null!=this.layout?this.layout:this.plot_view.frame,[o,l]=n.bbox.ranges;let r,a;if((0,p.isString)(e))switch(e){case\"top_left\":r=o.start+t,a=l.start+t;break;case\"top\":case\"top_center\":r=(o.end+o.start)/2-i/2,a=l.start+t;break;case\"top_right\":r=o.end-t-i,a=l.start+t;break;case\"bottom_right\":r=o.end-t-i,a=l.end-t-s;break;case\"bottom\":case\"bottom_center\":r=(o.end+o.start)/2-i/2,a=l.end-t-s;break;case\"bottom_left\":r=o.start+t,a=l.end-t-s;break;case\"left\":case\"center_left\":r=o.start+t,a=(l.end+l.start)/2-s/2;break;case\"center\":case\"center_center\":r=(o.end+o.start)/2-i/2,a=(l.end+l.start)/2-s/2;break;case\"right\":case\"center_right\":r=o.end-t-i,a=(l.end+l.start)/2-s/2}else{const[t,i]=e;r=n.bbox.xview.compute(t),a=n.bbox.yview.compute(i)-s}this.bbox=new u.BBox({left:r,top:a,width:i,height:s})}interactive_hit(t,e){return this.bbox.contains(t,e)}_hit_test(t,e){const{left:i,top:s}=this.bbox;t-=i+this.grid.bbox.left,e-=s+this.grid.bbox.top;for(const i of this.grid)if(i.bbox.contains(t,e))return{type:\"entry\",entry:i};return null}cursor(t,e){return\"none\"==this.model.click_policy?null:null!=this._hit_test(t,e)?\"pointer\":null}on_hit(t,e){const i=(()=>{switch(this.model.click_policy){case\"hide\":return t=>t.visible=!t.visible;case\"mute\":return t=>t.muted=!t.muted;case\"none\":return t=>{}}})(),s=this._hit_test(t,e);if(null!=s){const{renderers:t}=s.entry.item;for(const e of t)i(e);return!0}return!1}_render(){if(this.compute_geometry(),0==this.model.items.length)return;if(!(0,b.some)(this.model.items,(t=>t.visible)))return;const{ctx:t}=this.layer;t.save(),this._draw_legend_box(t),this._draw_legend_items(t),this._draw_title(t),t.restore()}_draw_legend_box(t){const{x:e,y:i,width:s,height:n}=this.bbox;t.beginPath(),t.rect(e,i,s,n),this.visuals.background_fill.apply(t),this.visuals.border_line.apply(t)}_draw_title(t){const{title:e}=this.model;if(null==e||0==e.length||!this.visuals.title_text.doit)return;const{left:i,top:s}=this.bbox;switch(t.save(),t.translate(i,s),t.translate(this.title_panel.bbox.left,this.title_panel.bbox.top),this.model.title_location){case\"left\":t.translate(0,this.title_panel.bbox.height);break;case\"right\":t.translate(this.title_panel.bbox.width,0)}this.title_panel.text.paint(t),t.restore()}_draw_legend_items(t){const e=(()=>{switch(this.model.click_policy){case\"none\":return t=>!0;case\"hide\":return t=>(0,b.every)(t.renderers,(t=>t.visible));case\"mute\":return t=>(0,b.every)(t.renderers,(t=>!t.muted))}})(),i=(t,e,i)=>{if(!this.visuals.item_background_fill.doit)return!1;switch(this.model.item_background_policy){case\"every\":return!0;case\"even\":return e%2==0==(i%2==0);case\"odd\":return e%2==0!=(i%2==0);case\"none\":return!1}},{left:s,top:n}=this.bbox;t.translate(s,n),t.translate(this.grid.bbox.left,this.grid.bbox.top);for(const[{layout:s,row:n,col:o},l]of(0,g.enumerate)(this.grid.items)){const{bbox:l,text:r,item:a,label:_,field:c,settings:h}=s,{glyph_width:d,glyph_height:u,label_standoff:b}=h,{left:g,top:p,width:m,height:f}=l;t.translate(g,p),i(0,n,o)&&(t.beginPath(),t.rect(0,0,m,f),this.visuals.item_background_fill.apply(t));const x=f/2,w=0,y=x-u/2,v=w+d,k=y+u;for(const e of a.renderers){const i=this.plot_view.renderer_view(e);null==i||i.draw_legend(t,w,v,y,k,c,_,a.index)}t.translate(v+b,x),r.paint(t),t.translate(-v-b,-x),e(a)||(t.beginPath(),t.rect(0,0,m,f),this.visuals.inactive_fill.set_value(t),t.fill()),t.translate(-g,-p)}t.translate(-this.grid.bbox.left,-this.grid.bbox.top),t.translate(-s,-n)}}i.LegendView=k,k.__name__=\"LegendView\";class z extends r.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new h.Signal0(this,\"item_change\")}get_legend_names(){const t=[];for(const e of this.items){const i=e.get_labels_list_from_label_prop();t.push(...i)}return t}}i.Legend=z,o=z,z.__name__=\"Legend\",o.prototype.default_view=k,o.mixins([[\"label_\",c.Text],[\"title_\",c.Text],[\"inactive_\",c.Fill],[\"border_\",c.Line],[\"background_\",c.Fill],[\"item_background_\",c.Fill]]),o.define((({Number:t,Int:e,String:i,Array:s,Tuple:n,Or:o,Ref:l,Nullable:r,Positive:c,Auto:h})=>({orientation:[_.Orientation,\"vertical\"],ncols:[o(c(e),h),\"auto\"],nrows:[o(c(e),h),\"auto\"],location:[o(_.LegendLocation,n(t,t)),\"top_right\"],title:[r(i),null],title_location:[_.Location,\"above\"],title_standoff:[t,5],label_standoff:[t,5],glyph_height:[t,20],glyph_width:[t,20],label_height:[t,20],label_width:[t,20],margin:[t,10],padding:[t,10],spacing:[t,3],items:[s(l(a.LegendItem)),[]],click_policy:[_.LegendClickPolicy,\"none\"],item_background_policy:[_.AlternationPolicy,\"none\"]}))),o.override({border_line_color:\"#e5e5e5\",border_line_alpha:.5,border_line_width:1,background_fill_color:\"#ffffff\",background_fill_alpha:.95,item_background_fill_color:\"#f1f1f1\",item_background_fill_alpha:.8,inactive_fill_color:\"white\",inactive_fill_alpha:.7,label_text_font_size:\"13px\",label_text_baseline:\"middle\",title_text_font_size:\"13px\",title_text_font_style:\"italic\"})},\n function _(e,r,l,n,t){var i;n();const s=e(1),o=e(50),_=e(199),a=e(99),u=e(27),d=s.__importStar(e(17)),c=e(18),f=e(10);class h extends o.Model{constructor(e){super(e)}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(!(0,f.includes)(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,(()=>{var e;return null===(e=this.legend)||void 0===e?void 0:e.item_change.emit()}));this._check_data_sources_on_renderers()||c.logger.error(\"Non matching data sources on legend item renderers\");this._check_field_label_on_data_source()||c.logger.error(`Bad column name on label: ${this.label}`)}get_field_from_label_prop(){const{label:e}=this;return(0,u.isField)(e)?e.field:null}get_labels_list_from_label_prop(){if(!this.visible)return[];if((0,u.isValue)(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const e=this.get_field_from_label_prop();if(null!=e){let r;if(0==this.renderers.length)return[\"No source found\"];if(r=this.renderers[0].data_source,r instanceof a.ColumnarDataSource){const l=r.get_column(e);return null!=l?(0,f.uniq)(Array.from(l)):[\"Invalid field\"]}}return[]}}l.LegendItem=h,i=h,h.__name__=\"LegendItem\",i.define((({Boolean:e,Int:r,Array:l,Ref:n,Nullable:t})=>({label:[d.NullStringSpec,null],renderers:[l(n(_.GlyphRenderer)),[]],index:[t(r),null],visible:[e,!0]})))},\n function _(t,e,s,n,i){var o,a;n();const r=t(1),l=t(73),h=t(93),_=r.__importStar(t(78)),c=t(19),u=t(210),d=t(15),y=t(57),p=t(13),v=t(12);class x{constructor(t=[],e=[]){this.xs=t,this.ys=e,(0,v.assert)(t.length==e.length)}clone(){return new x(this.xs.slice(),this.ys.slice())}[Symbol.iterator](){return this.nodes()}*nodes(){const{xs:t,ys:e,n:s}=this;for(let n=0;n<s;n++)yield[t[n],e[n],n]}*edges(){const{xs:t,ys:e,n:s}=this;for(let n=1;n<s;n++){const s={x:t[n-1],y:e[n-1]},i={x:t[n],y:e[n]};yield[s,i,n-1]}if(s>=3){const n={x:t[s-1],y:e[s-1]},i={x:t[0],y:e[0]};yield[n,i,s-1]}}contains(t,e){return(0,u.point_in_poly)(t,e,this.xs,this.ys)}get bbox(){const[t,e]=(0,p.minmax)(this.xs),[s,n]=(0,p.minmax)(this.ys);return new y.BBox({x0:t,x1:e,y0:s,y1:n})}get n(){return this.xs.length}translate(t,e,...s){const n=this.clone(),{xs:i,ys:o,n:a}=n;if(0!=s.length)for(const n of s){const s=n%a;i[s]+=t,o[s]+=e}else for(let s=0;s<a;s++)i[s]+=t,o[s]+=e;return n}}x.__name__=\"Polygon\";class m extends l.AnnotationView{constructor(){super(...arguments),this.poly=new x,this[o]=!0,this._pan_state=null,this._is_hovered=!1}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.poly.bbox.round()})}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_render()))}bounds(){const{xs_units:t,ys_units:e}=this.model;if(\"data\"==t&&\"data\"==e){const{xs:t,ys:e}=this.model,[s,n]=(0,p.minmax)(t),[i,o]=(0,p.minmax)(e);return{x0:s,x1:n,y0:i,y1:o}}return(0,y.empty)()}log_bounds(){return(0,y.empty)()}_mappers(){const t=(t,e,s,n)=>{switch(t){case\"canvas\":return n;case\"screen\":return s;case\"data\":return e}},e=this.model,{frame:s,canvas:n}=this.plot_view,{x_scale:i,y_scale:o}=s,{x_view:a,y_view:r}=s.bbox,{x_screen:l,y_screen:h}=n.bbox;return{x:t(e.xs_units,i,a,l),y:t(e.ys_units,o,r,h)}}_render(){const{xs:t,ys:e}=this.model;(0,v.assert)(t.length==e.length),this.poly=(()=>{const{x:s,y:n}=this._mappers();return new x(s.v_compute(t),n.v_compute(e))})();const{ctx:s}=this.layer;s.beginPath();for(const[t,e]of this.poly)s.lineTo(t,e);const{_is_hovered:n,visuals:i}=this,o=n&&i.hover_fill.doit?i.hover_fill:i.fill,a=n&&i.hover_hatch.doit?i.hover_hatch:i.hatch,r=n&&i.hover_line.doit?i.hover_line:i.line;this.poly.n>=3&&(s.closePath(),o.apply(s),a.apply(s)),r.apply(s)}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&this.poly.contains(t,e)}_hit_test(t,e){const{abs:s}=Math,n=Math.max(2.5,this.model.line_width/2);for(const[i,o,a]of this.poly)if(s(i-t)<n&&s(o-e)<n)return{type:\"node\",i:a};const i={x:t,y:e};let o=null,a=1/0;for(const[t,e,s]of this.poly.edges()){const r=(0,u.dist_to_segment)(i,t,e);r<n&&r<a&&(a=r,o=s)}return null!=o?{type:\"edge\",i:o}:this.poly.contains(t,e)?{type:\"area\"}:null}_can_hit(t){return!0}_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:s}=t,n=this._hit_test(e,s);if(null!=n&&this._can_hit(n))return this._pan_state={poly:this.poly.clone(),target:n},this.model.pan.emit([\"pan:start\",t]),!0}return!1}_pan(t){(0,v.assert)(null!=this._pan_state);const e=(()=>{const{poly:e,target:s}=this._pan_state,{dx:n,dy:i}=t;switch(s.type){case\"node\":{const{i:t}=s;return e.translate(n,i,t)}case\"edge\":{const{i:t}=s;return e.translate(n,i,t,t+1)}case\"area\":return e.translate(n,i)}})(),{x:s,y:n}=this._mappers(),i=s.v_invert(e.xs),o=n.v_invert(e.ys);this.model.update({xs:i,ys:o}),this.model.pan.emit([\"pan\",t])}_pan_end(t){this._pan_state=null,this.model.pan.emit([\"pan:end\",t])}get _has_hover(){const{hover_line:t,hover_fill:e,hover_hatch:s}=this.visuals;return t.doit||e.doit||s.doit}_move_start(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}_move(t){}_move_end(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){var s,n;const i=null!==(n=null===(s=this._pan_state)||void 0===s?void 0:s.target)&&void 0!==n?n:this._hit_test(t,e);if(null==i||!this._can_hit(i))return null;switch(i.type){case\"node\":case\"edge\":case\"area\":return\"move\"}}}s.PolyAnnotationView=m,o=h.auto_ranged,m.__name__=\"PolyAnnotationView\";class f extends l.Annotation{constructor(t){super(t),this.pan=new d.Signal(this,\"pan\")}update({xs:t,ys:e}){this.setv({xs:t.slice(),ys:e.slice(),visible:!0})}clear(){this.setv({xs:[],ys:[],visible:!1})}}s.PolyAnnotation=f,a=f,f.__name__=\"PolyAnnotation\",a.prototype.default_view=m,a.mixins([_.Line,_.Fill,_.Hatch,[\"hover_\",_.Line],[\"hover_\",_.Fill],[\"hover_\",_.Hatch]]),a.define((({Boolean:t,Number:e,Arrayable:s})=>({xs:[s(e),[]],ys:[s(e),[]],xs_units:[c.CoordinateUnits,\"data\"],ys_units:[c.CoordinateUnits,\"data\"],editable:[t,!1]}))),a.override({fill_color:\"#fff9ba\",fill_alpha:.4,line_color:\"#cccccc\",line_alpha:.3,hover_fill_color:null,hover_fill_alpha:.4,hover_line_color:null,hover_line_alpha:.3})},\n function _(e,l,o,i,t){var n;i();const s=e(1),a=e(73),_=s.__importStar(e(78));class c extends a.AnnotationView{connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_render()))}_render(){const{gradient:e,y_intercept:l}=this.model;if(null==e||null==l)return;const{frame:o}=this.plot_view,i=this.coordinates.x_scale,t=this.coordinates.y_scale,[n,s,a,_]=(()=>{if(0==e){const e=t.compute(l),i=e;return[o.bbox.left,o.bbox.right,e,i]}{const n=o.bbox.top,s=o.bbox.bottom,a=t.invert(n),_=t.invert(s),c=(a-l)/e,r=(_-l)/e,h=i.compute(c),b=i.compute(r);return h<=b?[h,b,n,s]:[b,h,s,n]}})(),{ctx:c}=this.layer;if(c.save(),this.visuals.above_fill.doit||this.visuals.above_hatch.doit){const{left:e,right:l,top:i,bottom:t}=o.bbox;c.beginPath(),c.moveTo(n,a),c.lineTo(n,a),c.lineTo(s,_),c.lineTo(s,_),a<=_?(s<l&&c.lineTo(l,t),c.lineTo(l,i),c.lineTo(e,i)):(c.lineTo(l,i),c.lineTo(e,i),n>e&&c.lineTo(e,t)),c.closePath(),this.visuals.above_fill.apply(c),this.visuals.above_hatch.apply(c)}if(this.visuals.below_fill.doit||this.visuals.below_hatch.doit){const{left:e,right:l,top:i,bottom:t}=o.bbox;c.beginPath(),c.moveTo(n,a),c.lineTo(n,a),c.lineTo(s,_),a<=_?(c.lineTo(l,t),c.lineTo(e,t),n>e&&c.lineTo(e,i)):(s<l&&c.lineTo(l,i),c.lineTo(l,t),c.lineTo(e,t)),c.closePath(),this.visuals.below_fill.apply(c),this.visuals.below_hatch.apply(c)}c.beginPath(),c.moveTo(n,a),c.lineTo(s,_),this.visuals.line.apply(c),c.restore()}}o.SlopeView=c,c.__name__=\"SlopeView\";class r extends a.Annotation{constructor(e){super(e)}}o.Slope=r,n=r,r.__name__=\"Slope\",n.prototype.default_view=c,n.mixins([_.Line,[\"above_\",_.Fill],[\"above_\",_.Hatch],[\"below_\",_.Fill],[\"below_\",_.Hatch]]),n.define((({Number:e,Nullable:l})=>({gradient:[l(e),null],y_intercept:[l(e),null]}))),n.override({line_color:\"black\",above_fill_color:null,above_fill_alpha:.4,below_fill_color:null,below_fill_alpha:.4})},\n function _(t,e,i,n,s){var o;n();const a=t(1),l=t(73),r=a.__importStar(t(78)),h=t(19),_=t(210),c=t(15),d=t(12);class u{constructor(t,e){this.p0=t,this.p1=e}clone(){return new u(Object.assign({},this.p0),Object.assign({},this.p1))}hit_test(t,e=2.5){return(0,_.dist_to_segment)(t,this.p0,this.p1)<e}translate(t,e){const{p0:i,p1:n}=this,s={x:i.x+t,y:i.y+e},o={x:n.x+t,y:n.y+e};return new u(s,o)}}u.__name__=\"Line\";class p extends l.AnnotationView{constructor(){super(...arguments),this._pan_state=null,this._is_hovered=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.plot_view.request_paint(this)))}_render(){const{location:t,location_units:e}=this.model;if(null==t)return;function i(t,e,i,n,s){switch(e){case\"canvas\":return s.compute(t);case\"screen\":return n.compute(t);case\"data\":return i.compute(t)}}const{frame:n,canvas:s}=this.plot_view,{x_scale:o,y_scale:a}=this.coordinates;let l,r,h,_;\"width\"==this.model.dimension?(h=i(t,e,a,n.bbox.yview,s.bbox.y_screen),r=n.bbox.left,_=n.bbox.width,l=this.model.line_width):(h=n.bbox.top,r=i(t,e,o,n.bbox.xview,s.bbox.y_screen),_=this.model.line_width,l=n.bbox.height);const c={x:r,y:h},d={x:r+_,y:h+l};this.line=new u(c,d);const{_is_hovered:p,visuals:m}=this,v=p&&m.hover_line.doit?m.hover_line:m.line,{ctx:b}=this.layer;b.save(),b.beginPath(),this.visuals.line.set_value(b),b.moveTo(r,h),\"width\"==this.model.dimension?b.lineTo(r+_,h):b.lineTo(r,h+l),v.apply(b),b.restore()}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&null!=this._hit_test(t,e)}_hit_test(t,e){const i=Math.max(2.5,this.model.line_width/2);return this.line.hit_test({x:t,y:e},i)?\"edge\":null}_can_hit(t){return!0}_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:i}=t,n=this._hit_test(e,i);if(null!=n&&this._can_hit(n))return this._pan_state={line:this.line.clone(),target:n},this.model.pan.emit([\"pan:start\",t]),!0}return!1}_pan(t){function e(t,e,i,n,s){switch(e){case\"canvas\":return s.invert(t);case\"screen\":return n.invert(t);case\"data\":return i.invert(t)}}(0,d.assert)(null!=this._pan_state);const i=(()=>{const{dx:e,dy:i}=t,{line:n}=this._pan_state;return\"width\"==this.model.dimension?n.translate(0,i).p0.y:n.translate(e,0).p0.x})(),n=(()=>{const{location_units:t}=this.model,{frame:n,canvas:s}=this.plot_view,{x_scale:o,y_scale:a}=this.coordinates;return\"width\"==this.model.dimension?e(i,t,a,n.bbox.yview,s.bbox.y_screen):e(i,t,o,n.bbox.xview,s.bbox.y_screen)})();this.model.location=n,this.model.pan.emit([\"pan\",t])}_pan_end(t){this._pan_state=null,this.model.pan.emit([\"pan:end\",t])}get _has_hover(){const{hover_line:t}=this.visuals;return t.doit}_move_start(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}_move(t){}_move_end(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){var i,n;const s=null!==(n=null===(i=this._pan_state)||void 0===i?void 0:i.target)&&void 0!==n?n:this._hit_test(t,e);return null!=s&&this._can_hit(s)?\"width\"==this.model.dimension?\"ns-resize\":\"ew-resize\":null}}i.SpanView=p,p.__name__=\"SpanView\";class m extends l.Annotation{constructor(t){super(t),this.pan=new c.Signal(this,\"pan\")}}i.Span=m,o=m,m.__name__=\"Span\",o.prototype.default_view=p,o.mixins([r.Line,[\"hover_\",r.Line]]),o.define((({Boolean:t,Number:e,Nullable:i})=>({location:[i(e),null],location_units:[h.CoordinateUnits,\"data\"],dimension:[h.Dimension,\"width\"],editable:[t,!1]}))),o.override({line_color:\"black\",hover_line_color:null,hover_line_alpha:.3})},\n function _(e,i,t,o,s){var l;o();const a=e(73),n=e(256),r=e(59),h=e(56),_=e(144),v=e(57);class b extends a.AnnotationView{constructor(){super(...arguments),this.el=(0,h.div)(),this._previous_bbox=new v.BBox}update_layout(){this.layout=new _.SideLayout(this.panel,(()=>this.get_size()),!0)}has_finished(){return super.has_finished()&&this.toolbar_view.has_finished()}*children(){yield*super.children(),yield this.toolbar_view}async lazy_initialize(){await super.lazy_initialize(),this.toolbar_view=await(0,r.build_view)(this.model.toolbar,{parent:this.canvas})}connect_signals(){super.connect_signals(),this.plot_view.mouseenter.connect((()=>{this.toolbar_view.set_visibility(!0)})),this.plot_view.mouseleave.connect((()=>{this.toolbar_view.set_visibility(!1)}))}remove(){this.toolbar_view.remove(),(0,h.remove)(this.el),super.remove()}_render(){(0,h.display)(this.el);const{bbox:e}=this.layout;if(!this._previous_bbox.equals(e)){(0,h.position)(this.el,e),this._previous_bbox=e,(0,h.empty)(this.el),this.el.style.position=\"absolute\";const{style:i}=this.toolbar_view.el;this.toolbar_view.model.horizontal?(i.width=\"100%\",i.height=\"unset\"):(i.width=\"unset\",i.height=\"100%\"),this.toolbar_view.render(),this.plot_view.canvas_view.add_event(this.el),this.el.appendChild(this.toolbar_view.el),this.toolbar_view.after_render()}this.model.visible||(0,h.undisplay)(this.el)}_get_size(){const{tools:e,logo:i}=this.model.toolbar;return{width:30*e.length+(null!=i?25:0)+15,height:30}}}t.ToolbarPanelView=b,b.__name__=\"ToolbarPanelView\";class d extends a.Annotation{constructor(e){super(e)}}t.ToolbarPanel=d,l=d,d.__name__=\"ToolbarPanel\",l.prototype.default_view=b,l.define((({Ref:e})=>({toolbar:[e(n.Toolbar)]})))},\n function _(t,e,o,s,i){var l;s();const n=t(1),a=t(18),r=t(56),c=t(59),h=t(257),_=t(19),u=t(10),v=t(32),p=t(9),d=t(8),f=t(264),g=t(265),b=t(266),m=t(271),w=t(273),T=t(274),y=t(276),z=t(267),x=n.__importStar(t(277)),C=x,I=n.__importStar(t(278)),A=I,L=n.__importDefault(t(269));class P extends h.UIElementView{constructor(){super(...arguments),this._tool_button_views=new Map,this._items=[],this._visible=null}get tool_buttons(){return this._tool_buttons.flat()}get overflow_el(){return this._overflow_el}get visible(){var t;return!!this.model.visible&&(!this.model.autohide||null!==(t=this._visible)&&void 0!==t&&t)}*children(){yield*super.children(),yield*this._tool_button_views.values()}has_finished(){if(!super.has_finished())return!1;for(const t of this._tool_button_views.values())if(!t.has_finished())return!1;return!0}initialize(){super.initialize();const{location:t}=this.model,e=\"left\"==t||\"above\"==t,o=this.model.horizontal?\"vertical\":\"horizontal\";this._overflow_menu=new z.ContextMenu([],{target:this.root.el,orientation:o,reversed:e,prevent_hide:t=>t.composedPath().includes(this._overflow_el)})}async lazy_initialize(){await super.lazy_initialize(),await this._build_tool_button_views()}connect_signals(){super.connect_signals();const{buttons:t,tools:e}=this.model.properties;this.on_change([t,e],(async()=>{await this._build_tool_button_views(),this.render()})),this.connect(this.model.properties.autohide.change,(()=>{this._on_visible_change()}))}stylesheets(){return[...super.stylesheets(),x.default,I.default,L.default]}remove(){(0,c.remove_views)(this._tool_button_views),super.remove()}async _build_tool_button_views(){this._tool_buttons=(()=>{const{buttons:t}=this.model;if(\"auto\"==t){return[...(0,p.values)(this.model.gestures).map((t=>t.tools)),this.model.actions,this.model.inspectors.filter((t=>t.toggleable)),this.model.auxiliaries].map((t=>t.map((t=>t.tool_button()))))}return(0,u.split)(t,null)})(),await(0,c.build_views)(this._tool_button_views,this._tool_buttons.flat(),{parent:this})}set_visibility(t){t!=this._visible&&(this._visible=t,this._on_visible_change())}_on_visible_change(){this.el.classList.toggle(C.hidden,!this.visible)}_after_resize(){super._after_resize(),this._after_render()}render(){super.render(),this.el.classList.add(C[this.model.location]),this.el.classList.toggle(C.inner,this.model.inner),this._on_visible_change();const{horizontal:t}=this.model;this._overflow_el=(0,r.div)({class:C.tool_overflow,tabIndex:0},t?\"\\u22ee\":\"\\u22ef\");const e=()=>{const t=(()=>{switch(this.model.location){case\"right\":return{left_of:this._overflow_el};case\"left\":return{right_of:this._overflow_el};case\"above\":return{below:this._overflow_el};case\"below\":return{above:this._overflow_el}}})();this._overflow_menu.toggle(t)};if(this._overflow_el.addEventListener(\"click\",(()=>{e()})),this._overflow_el.addEventListener(\"keydown\",(t=>{\"Enter\"==t.key&&e()})),this._items=[],null!=this.model.logo){const t=\"grey\"===this.model.logo?A.grey:null,e=(0,r.a)({href:\"https://bokeh.org/\",target:\"_blank\",class:[A.logo,A.logo_small,t]});this._items.push(e),this.shadow_el.appendChild(e)}for(const[,t]of this._tool_button_views)t.render(),t.after_render();const o=this._tool_buttons.map((t=>t.map((t=>this._tool_button_views.get(t).el)))).filter((t=>0!=t.length)),s=()=>(0,r.div)({class:C.divider});for(const t of(0,v.join)(o,s))this._items.push(t),this.shadow_el.appendChild(t)}_after_render(){super._after_render(),(0,u.clear)(this._overflow_menu.items),this.shadow_el.contains(this._overflow_el)&&this.shadow_el.removeChild(this._overflow_el);for(const t of this._items)this.shadow_el.contains(t)||this.shadow_el.append(t);const{horizontal:t}=this.model,{bbox:e}=this,o=t?C.right:C.above;let s=0,i=!1;for(const l of this._items)if(i)this.shadow_el.removeChild(l),this._overflow_menu.items.push({content:l,class:o});else{const{width:n,height:a}=l.getBoundingClientRect();s+=t?n:a,i=t?s>e.width-15:s>e.height-15,i&&(this.shadow_el.removeChild(l),this.shadow_el.appendChild(this._overflow_el),this._overflow_menu.items.push({content:l,class:o}))}}}function S(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}}}o.ToolbarView=P,P.__name__=\"ToolbarView\",o.Drag=f.Tool,o.Inspection=f.Tool,o.Scroll=f.Tool,o.Tap=f.Tool;class k extends h.UIElement{constructor(t){super(t)}get horizontal(){return\"above\"==this.location||\"below\"==this.location}get vertical(){return\"left\"==this.location||\"right\"==this.location}connect_signals(){super.connect_signals();const{tools:t,active_drag:e,active_inspect:o,active_scroll:s,active_tap:i,active_multi:l}=this.properties;this.on_change([t,e,o,s,i,l],(()=>{this._init_tools(),this._activate_tools()}))}initialize(){super.initialize(),this._init_tools(),this._activate_tools()}_init_tools(){const t=new Set;function e(e,o){const s=(e instanceof g.ToolProxy?e.underlying:e)instanceof o;return s&&t.add(e),s}const o=this.tools.filter((t=>e(t,w.InspectTool)));this.inspectors=o;const s=this.tools.filter((t=>e(t,y.HelpTool)));this.help=s;const i=this.tools.filter((t=>e(t,T.ActionTool)));this.actions=i;const l={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)e(t,m.GestureTool)&&l[t.event_role].tools.push(t);for(const t of(0,p.fields)(l)){const e=this.gestures[t];e.tools=(0,u.sort_by)(l[t].tools,(t=>t.default_order)),null!=e.active&&(0,u.every)(e.tools,(t=>{var o;return t.id!=(null===(o=e.active)||void 0===o?void 0:o.id)}))&&(e.active=null)}const n=this.tools.filter((e=>!t.has(e)));this.auxiliaries=n}_activate_tools(){if(\"auto\"==this.active_inspect);else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;else if((0,d.isArray)(this.active_inspect)){const t=(0,u.intersection)(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)(0,u.includes)(this.active_inspect,t)||(t.active=!1)}else{let t=!1;for(const e of this.inspectors)e!=this.active_inspect?e.active=!1:t=!0;t||(this.active_inspect=null)}const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t of(0,p.values)(this.gestures))for(const e of t.tools)this.connect(e.properties.active.change,(()=>this._active_change(e)));function e(t){switch(t){case\"tap\":return\"active_tap\";case\"pan\":return\"active_drag\";case\"pinch\":case\"scroll\":return\"active_scroll\";case\"multi\":return\"active_multi\";default:return null}}function o(t){return\"tap\"==t||\"pan\"==t}for(const[s,i]of(0,p.entries)(this.gestures)){const l=s,n=e(l);if(null!=n){const e=this[n];if(\"auto\"==e)0!=i.tools.length&&o(l)&&t(i.tools[0]);else if(null!=e)(0,u.includes)(this.tools,e)?t(e):this[n]=null;else{this.gestures[l].active=null;for(const t of this.gestures[l].tools)t.active=!1}}}}_active_change(t){const{event_types:e}=t;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(a.logger.debug(`Toolbar: deactivating tool: ${e} for event type '${o}'`),e.active=!1),this.gestures[o].active=t,a.logger.debug(`Toolbar: activating tool: ${t} for event type '${o}'`)}else this.gestures[o].active=null}}o.Toolbar=k,l=k,k.__name__=\"Toolbar\",l.prototype.default_view=P,l.define((({Boolean:t,Array:e,Or:s,Ref:i,Nullable:l,Auto:n})=>({tools:[e(s(i(f.Tool),i(g.ToolProxy))),[]],logo:[l(_.Logo),\"normal\"],autohide:[t,!1],active_drag:[l(s(i(o.Drag),n)),\"auto\"],active_inspect:[l(s(i(o.Inspection),e(i(o.Inspection)),n)),\"auto\"],active_scroll:[l(s(i(o.Scroll),n)),\"auto\"],active_tap:[l(s(i(o.Tap),n)),\"auto\"],active_multi:[l(s(i(m.GestureTool),n)),\"auto\"]}))),l.internal((({Array:t,Boolean:e,Ref:o,Or:s,Struct:i,Nullable:l,Null:n,Auto:a})=>{const r=i({tools:t(o(m.GestureTool)),active:l(o(m.GestureTool))}),c=i({pan:r,scroll:r,pinch:r,tap:r,doubletap:r,press:r,pressup:r,rotate:r,move:r,multi:r});return{buttons:[s(t(s(o(b.ToolButton),n)),a),\"auto\"],location:[_.Location,\"right\"],inner:[e,!1],gestures:[c,S],actions:[t(s(o(T.ActionTool),o(g.ToolProxy))),[]],inspectors:[t(s(o(w.InspectTool),o(g.ToolProxy))),[]],auxiliaries:[t(s(o(f.Tool),o(g.ToolProxy))),[]],help:[t(s(o(y.HelpTool),o(g.ToolProxy))),[]]}}))},\n function _(e,t,s,i,l){var n;i();const r=e(1),o=e(50),_=e(258),h=e(259),a=e(18),p=e(55),d=e(56),y=e(260),c=e(9),u=e(57),b=e(8),f=r.__importDefault(e(263)),{round:g,floor:x}=Math;function*S(e){if(e instanceof _.Styles){const t=new Set((0,c.keys)(o.Model.prototype._props));for(const s of e)t.has(s.attr)||(yield[s.attr,s.get_value()])}else yield*(0,c.entries)(e)}class m extends p.DOMComponentView{constructor(){super(...arguments),this._display=new d.InlineStyleSheet,this.style=new d.InlineStyleSheet,this._bbox=new u.BBox,this._is_displayed=!1}*_css_classes(){yield*super._css_classes(),yield*this.model.css_classes}*_stylesheets(){yield*super._stylesheets(),yield this.style,yield this._display,yield*this._computed_stylesheets()}*_computed_stylesheets(){for(const e of this.model.stylesheets)if((0,b.isString)(e))yield new d.InlineStyleSheet(e);else if(e instanceof h.StyleSheet)yield e.underlying();else{const t=[];for(const[s,i]of(0,c.entries)(e)){t.push(`${s} {`);for(const[e,s]of S(i)){const i=e.replace(/_/g,\"-\");(0,b.isString)(s)&&0!=s.length&&t.push(` ${i}: ${s};`)}t.push(\"}\")}const s=t.join(\"\\n\");yield new d.InlineStyleSheet(s)}}stylesheets(){return[...super.stylesheets(),f.default]}update_style(){this.style.clear()}box_sizing(){return{width_policy:\"auto\",height_policy:\"auto\",width:null,height:null,aspect_ratio:null}}get bbox(){return this._bbox}update_bbox(){return this._update_bbox()}_update_bbox(){const e=(()=>{if(this.el.isConnected){if(null!=this.el.offsetParent)return!0;{const{position:e,display:t}=getComputedStyle(this.el);return\"fixed\"==e&&\"none\"!=t}}return!1})(),t=e?(()=>{const e=this.el.getBoundingClientRect(),{left:t,top:s}=(()=>{if(null!=this.parent){const t=this.parent.el.getBoundingClientRect();return{left:e.left-t.left,top:e.top-t.top}}return{left:0,top:0}})();return new u.BBox({left:g(t),top:g(s),width:x(e.width),height:x(e.height)})})():new u.BBox,s=!this._bbox.equals(t);return this._bbox=t,this._is_displayed=e,s}initialize(){super.initialize(),this._resize_observer=new ResizeObserver((e=>this.after_resize())),this._resize_observer.observe(this.el,{box:\"border-box\"})}connect_signals(){super.connect_signals();const{visible:e,styles:t,css_classes:s,stylesheets:i}=this.model.properties;this.on_change(e,(()=>this._update_visible())),this.on_change(t,(()=>this._update_styles())),this.on_change(s,(()=>this._update_css_classes())),this.on_change(i,(()=>this._update_stylesheets()))}remove(){this._resize_observer.disconnect(),super.remove()}_after_resize(){}after_resize(){this.update_bbox()&&this._after_resize(),this.finish()}render_to(e){super.render_to(e),this.after_render()}render(){super.render(),this._apply_styles(),this._apply_visible()}_after_render(){}after_render(){this.update_style(),this.update_bbox(),this._after_render(),this.is_displayed||this.finish()}get is_displayed(){return this._is_displayed}_apply_visible(){this.model.visible?this._display.clear():this._display.replace(\":host { display: none !important; }\")}_apply_styles(){const{styles:e}=this.model,t=(e,t)=>{const s=e in this.el.style;return s&&(0,b.isString)(t)&&(this.el.style[e]=t),s};for(const[s,i]of S(e)){const e=s.replace(/_/g,\"-\");t(e,i)||t(`-webkit-${e}`,i)||t(`-moz-${e}`,i)||a.logger.trace(`unknown CSS property '${e}'`)}}_update_visible(){this._apply_visible()}_update_styles(){this.el.removeAttribute(\"style\"),this._apply_styles()}export(e=\"auto\",t=!0){const s=\"auto\"==e||\"png\"==e?\"canvas\":\"svg\",i=new y.CanvasLayer(s,t),{width:l,height:n}=this.bbox;return i.resize(l,n),i}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{bbox:this.bbox})}}s.UIElementView=m,m.__name__=\"UIElementView\";class v extends o.Model{constructor(e){super(e)}}s.UIElement=v,n=v,v.__name__=\"UIElement\",n.define((({Boolean:e,Array:t,Dict:s,String:i,Ref:l,Or:n,Nullable:r})=>{const o=n(s(r(i)),l(_.Styles));return{visible:[e,!0],css_classes:[t(i),[]],styles:[o,{}],stylesheets:[t(n(l(h.StyleSheet),i,s(o))),[]]}}))},\n function _(l,n,u,_,e){var t;_();const o=l(50);class r extends o.Model{constructor(l){super(l)}}u.Styles=r,t=r,r.__name__=\"Styles\",t.define((({String:l,Nullable:n})=>({align_content:[n(l),null],align_items:[n(l),null],align_self:[n(l),null],alignment_baseline:[n(l),null],all:[n(l),null],animation:[n(l),null],animation_delay:[n(l),null],animation_direction:[n(l),null],animation_duration:[n(l),null],animation_fill_mode:[n(l),null],animation_iteration_count:[n(l),null],animation_name:[n(l),null],animation_play_state:[n(l),null],animation_timing_function:[n(l),null],aspect_ratio:[n(l),null],backface_visibility:[n(l),null],background:[n(l),null],background_attachment:[n(l),null],background_clip:[n(l),null],background_color:[n(l),null],background_image:[n(l),null],background_origin:[n(l),null],background_position:[n(l),null],background_position_x:[n(l),null],background_position_y:[n(l),null],background_repeat:[n(l),null],background_size:[n(l),null],baseline_shift:[n(l),null],block_size:[n(l),null],border:[n(l),null],border_block_end:[n(l),null],border_block_end_color:[n(l),null],border_block_end_style:[n(l),null],border_block_end_width:[n(l),null],border_block_start:[n(l),null],border_block_start_color:[n(l),null],border_block_start_style:[n(l),null],border_block_start_width:[n(l),null],border_bottom:[n(l),null],border_bottom_color:[n(l),null],border_bottom_left_radius:[n(l),null],border_bottom_right_radius:[n(l),null],border_bottom_style:[n(l),null],border_bottom_width:[n(l),null],border_collapse:[n(l),null],border_color:[n(l),null],border_image:[n(l),null],border_image_outset:[n(l),null],border_image_repeat:[n(l),null],border_image_slice:[n(l),null],border_image_source:[n(l),null],border_image_width:[n(l),null],border_inline_end:[n(l),null],border_inline_end_color:[n(l),null],border_inline_end_style:[n(l),null],border_inline_end_width:[n(l),null],border_inline_start:[n(l),null],border_inline_start_color:[n(l),null],border_inline_start_style:[n(l),null],border_inline_start_width:[n(l),null],border_left:[n(l),null],border_left_color:[n(l),null],border_left_style:[n(l),null],border_left_width:[n(l),null],border_radius:[n(l),null],border_right:[n(l),null],border_right_color:[n(l),null],border_right_style:[n(l),null],border_right_width:[n(l),null],border_spacing:[n(l),null],border_style:[n(l),null],border_top:[n(l),null],border_top_color:[n(l),null],border_top_left_radius:[n(l),null],border_top_right_radius:[n(l),null],border_top_style:[n(l),null],border_top_width:[n(l),null],border_width:[n(l),null],bottom:[n(l),null],box_shadow:[n(l),null],box_sizing:[n(l),null],break_after:[n(l),null],break_before:[n(l),null],break_inside:[n(l),null],caption_side:[n(l),null],caret_color:[n(l),null],clear:[n(l),null],clip:[n(l),null],clip_path:[n(l),null],clip_rule:[n(l),null],color:[n(l),null],color_interpolation:[n(l),null],color_interpolation_filters:[n(l),null],column_count:[n(l),null],column_fill:[n(l),null],column_gap:[n(l),null],column_rule:[n(l),null],column_rule_color:[n(l),null],column_rule_style:[n(l),null],column_rule_width:[n(l),null],column_span:[n(l),null],column_width:[n(l),null],columns:[n(l),null],content:[n(l),null],counter_increment:[n(l),null],counter_reset:[n(l),null],cursor:[n(l),null],direction:[n(l),null],display:[n(l),null],dominant_baseline:[n(l),null],empty_cells:[n(l),null],fill:[n(l),null],fill_opacity:[n(l),null],fill_rule:[n(l),null],filter:[n(l),null],flex:[n(l),null],flex_basis:[n(l),null],flex_direction:[n(l),null],flex_flow:[n(l),null],flex_grow:[n(l),null],flex_shrink:[n(l),null],flex_wrap:[n(l),null],float:[n(l),null],flood_color:[n(l),null],flood_opacity:[n(l),null],font:[n(l),null],font_family:[n(l),null],font_feature_settings:[n(l),null],font_kerning:[n(l),null],font_size:[n(l),null],font_size_adjust:[n(l),null],font_stretch:[n(l),null],font_style:[n(l),null],font_synthesis:[n(l),null],font_variant:[n(l),null],font_variant_caps:[n(l),null],font_variant_east_asian:[n(l),null],font_variant_ligatures:[n(l),null],font_variant_numeric:[n(l),null],font_variant_position:[n(l),null],font_weight:[n(l),null],gap:[n(l),null],glyph_orientation_vertical:[n(l),null],grid:[n(l),null],grid_area:[n(l),null],grid_auto_columns:[n(l),null],grid_auto_flow:[n(l),null],grid_auto_rows:[n(l),null],grid_column:[n(l),null],grid_column_end:[n(l),null],grid_column_gap:[n(l),null],grid_column_start:[n(l),null],grid_gap:[n(l),null],grid_row:[n(l),null],grid_row_end:[n(l),null],grid_row_gap:[n(l),null],grid_row_start:[n(l),null],grid_template:[n(l),null],grid_template_areas:[n(l),null],grid_template_columns:[n(l),null],grid_template_rows:[n(l),null],height:[n(l),null],hyphens:[n(l),null],image_orientation:[n(l),null],image_rendering:[n(l),null],inline_size:[n(l),null],justify_content:[n(l),null],justify_items:[n(l),null],justify_self:[n(l),null],left:[n(l),null],letter_spacing:[n(l),null],lighting_color:[n(l),null],line_break:[n(l),null],line_height:[n(l),null],list_style:[n(l),null],list_style_image:[n(l),null],list_style_position:[n(l),null],list_style_type:[n(l),null],margin:[n(l),null],margin_block_end:[n(l),null],margin_block_start:[n(l),null],margin_bottom:[n(l),null],margin_inline_end:[n(l),null],margin_inline_start:[n(l),null],margin_left:[n(l),null],margin_right:[n(l),null],margin_top:[n(l),null],marker:[n(l),null],marker_end:[n(l),null],marker_mid:[n(l),null],marker_start:[n(l),null],mask:[n(l),null],mask_composite:[n(l),null],mask_image:[n(l),null],mask_position:[n(l),null],mask_repeat:[n(l),null],mask_size:[n(l),null],mask_type:[n(l),null],max_block_size:[n(l),null],max_height:[n(l),null],max_inline_size:[n(l),null],max_width:[n(l),null],min_block_size:[n(l),null],min_height:[n(l),null],min_inline_size:[n(l),null],min_width:[n(l),null],object_fit:[n(l),null],object_position:[n(l),null],opacity:[n(l),null],order:[n(l),null],orphans:[n(l),null],outline:[n(l),null],outline_color:[n(l),null],outline_offset:[n(l),null],outline_style:[n(l),null],outline_width:[n(l),null],overflow:[n(l),null],overflow_anchor:[n(l),null],overflow_wrap:[n(l),null],overflow_x:[n(l),null],overflow_y:[n(l),null],overscroll_behavior:[n(l),null],overscroll_behavior_block:[n(l),null],overscroll_behavior_inline:[n(l),null],overscroll_behavior_x:[n(l),null],overscroll_behavior_y:[n(l),null],padding:[n(l),null],padding_block_end:[n(l),null],padding_block_start:[n(l),null],padding_bottom:[n(l),null],padding_inline_end:[n(l),null],padding_inline_start:[n(l),null],padding_left:[n(l),null],padding_right:[n(l),null],padding_top:[n(l),null],page_break_after:[n(l),null],page_break_before:[n(l),null],page_break_inside:[n(l),null],paint_order:[n(l),null],perspective:[n(l),null],perspective_origin:[n(l),null],place_content:[n(l),null],place_items:[n(l),null],place_self:[n(l),null],pointer_events:[n(l),null],position:[n(l),null],quotes:[n(l),null],resize:[n(l),null],right:[n(l),null],rotate:[n(l),null],row_gap:[n(l),null],ruby_align:[n(l),null],ruby_position:[n(l),null],scale:[n(l),null],scroll_behavior:[n(l),null],shape_rendering:[n(l),null],stop_color:[n(l),null],stop_opacity:[n(l),null],stroke:[n(l),null],stroke_dasharray:[n(l),null],stroke_dashoffset:[n(l),null],stroke_linecap:[n(l),null],stroke_linejoin:[n(l),null],stroke_miterlimit:[n(l),null],stroke_opacity:[n(l),null],stroke_width:[n(l),null],tab_size:[n(l),null],table_layout:[n(l),null],text_align:[n(l),null],text_align_last:[n(l),null],text_anchor:[n(l),null],text_combine_upright:[n(l),null],text_decoration:[n(l),null],text_decoration_color:[n(l),null],text_decoration_line:[n(l),null],text_decoration_style:[n(l),null],text_emphasis:[n(l),null],text_emphasis_color:[n(l),null],text_emphasis_position:[n(l),null],text_emphasis_style:[n(l),null],text_indent:[n(l),null],text_justify:[n(l),null],text_orientation:[n(l),null],text_overflow:[n(l),null],text_rendering:[n(l),null],text_shadow:[n(l),null],text_transform:[n(l),null],text_underline_position:[n(l),null],top:[n(l),null],touch_action:[n(l),null],transform:[n(l),null],transform_box:[n(l),null],transform_origin:[n(l),null],transform_style:[n(l),null],transition:[n(l),null],transition_delay:[n(l),null],transition_duration:[n(l),null],transition_property:[n(l),null],transition_timing_function:[n(l),null],translate:[n(l),null],unicode_bidi:[n(l),null],user_select:[n(l),null],vertical_align:[n(l),null],visibility:[n(l),null],white_space:[n(l),null],widows:[n(l),null],width:[n(l),null],will_change:[n(l),null],word_break:[n(l),null],word_spacing:[n(l),null],word_wrap:[n(l),null],writing_mode:[n(l),null],z_index:[n(l),null]})))},\n function _(e,n,t,l,r){var s,i;l();const u=e(1),S=e(50),_=u.__importStar(e(56));class h extends S.Model{constructor(e){super(e)}}t.StyleSheet=h,h.__name__=\"StyleSheet\";class y extends h{constructor(e){super(e)}underlying(){return new _.InlineStyleSheet(this.css)}}t.InlineStyleSheet=y,s=y,y.__name__=\"InlineStyleSheet\",s.define((({String:e})=>({css:[e]})));class d extends h{constructor(e){super(e)}underlying(){return new _.ImportedStyleSheet(this.url)}}t.ImportedStyleSheet=d,i=d,d.__name__=\"ImportedStyleSheet\",i.define((({String:e})=>({url:[e]})));class o extends y{constructor(e){super(e),this._underlying=null}underlying(){return null==this._underlying&&(this._underlying=new _.GlobalInlineStyleSheet(this.css)),this._underlying}}t.GlobalInlineStyleSheet=o,o.__name__=\"GlobalInlineStyleSheet\";class c extends d{constructor(e){super(e),this._underlying=null}underlying(){return null==this._underlying&&(this._underlying=new _.GlobalInlineStyleSheet(this.url)),this._underlying}}t.GlobalImportedStyleSheet=c,c.__name__=\"GlobalImportedStyleSheet\"},\n function _(t,e,s,i,a){i();const n=t(261),r=t(57),h=t(56);class o{get canvas(){return this._canvas}get ctx(){return this._ctx}get el(){return this._el}constructor(t,e){switch(this.pixel_ratio=1,this.bbox=new r.BBox,this.backend=t,this.hidpi=e,t){case\"webgl\":case\"canvas\":{this._el=this._canvas=(0,h.canvas)({class:\"bk-layer\"});const t=this.canvas.getContext(\"2d\");if(null==t)throw new Error(\"unable to obtain 2D rendering context\");this._ctx=t,e&&(this.pixel_ratio=devicePixelRatio);break}case\"svg\":{const t=new n.SVGRenderingContext2D;this._ctx=t,this._canvas=t.get_svg(),this._el=(0,h.div)({class:\"bk-layer\"});this._el.attachShadow({mode:\"open\"}).appendChild(this._canvas);break}}this._ctx.layer=this}resize(t,e){if(this.bbox.width==t&&this.bbox.height==e)return;this.bbox=new r.BBox({left:0,top:0,width:t,height:e});const{target:s}=this;s.width=t*this.pixel_ratio,s.height=e*this.pixel_ratio}get target(){return this._ctx instanceof n.SVGRenderingContext2D?this._ctx:this.canvas}undo_transform(t){const{ctx:e}=this,s=e.getTransform();e.resetTransform();try{t(e)}finally{e.setTransform(s)}}prepare(){const{ctx:t,hidpi:e,pixel_ratio:s}=this;t.save(),e&&(t.scale(s,s),t.translate(.5,.5)),this.clear()}clear(){const{x:t,y:e,width:s,height:i}=this.bbox;this.ctx.clearRect(t,e,s,i)}finish(){this.ctx.restore()}to_blob(){const{_canvas:t}=this;if(t instanceof HTMLCanvasElement)return new Promise(((e,s)=>{t.toBlob((t=>null!=t?e(t):s()),\"image/png\")}));{const t=this._ctx.get_serialized_svg(!0),e=new Blob([t],{type:\"image/svg+xml\"});return Promise.resolve(e)}}}s.CanvasLayer=o,o.__name__=\"CanvasLayer\"},\n function _(t,e,i,s,r){s();const n=t(153),a=t(8),o=t(262),l=t(11),h=t(56);function _(t){const e={left:\"start\",right:\"end\",center:\"middle\",start:\"start\",end:\"end\"};return t in e?e[t]:e.start}function c(t){const e={alphabetic:\"alphabetic\",hanging:\"hanging\",top:\"text-before-edge\",bottom:\"text-after-edge\",middle:\"central\"};return t in e?e[t]:e.alphabetic}const p=function(t,e){const i=new Map,s=t.split(\",\");e=null!=e?e:10;for(let t=0;t<s.length;t+=2){const r=`&${s[t+1]};`,n=parseInt(s[t],e);i.set(r,`&#${n};`)}return i.set(\"\\\\xa0\",\" \"),i}(\"50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro\",32),u={strokeStyle:{svgAttr:\"stroke\",canvas:\"#000000\",svg:\"none\",apply:\"stroke\"},fillStyle:{svgAttr:\"fill\",canvas:\"#000000\",svg:null,apply:\"fill\"},lineCap:{svgAttr:\"stroke-linecap\",canvas:\"butt\",svg:\"butt\",apply:\"stroke\"},lineJoin:{svgAttr:\"stroke-linejoin\",canvas:\"miter\",svg:\"miter\",apply:\"stroke\"},miterLimit:{svgAttr:\"stroke-miterlimit\",canvas:10,svg:4,apply:\"stroke\"},lineWidth:{svgAttr:\"stroke-width\",canvas:1,svg:1,apply:\"stroke\"},globalAlpha:{svgAttr:\"opacity\",canvas:1,svg:1,apply:\"fill stroke\"},font:{canvas:\"10px sans-serif\"},shadowColor:{canvas:\"#000000\"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},fontKerning:{canvas:\"auto\"},textAlign:{canvas:\"start\"},textBaseline:{canvas:\"alphabetic\"},lineDash:{svgAttr:\"stroke-dasharray\",canvas:[],svg:null,apply:\"stroke\"},lineDashOffset:{svgAttr:\"stroke-dashoffset\",canvas:0,svg:0,apply:\"stroke\"}};class d{constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){if(\"linearGradient\"===this.__root.nodeName&&this.__root.getAttribute(\"x1\")===this.__root.getAttribute(\"x2\")&&this.__root.getAttribute(\"y1\")===this.__root.getAttribute(\"y2\"))return;if(\"radialGradient\"===this.__root.nodeName&&this.__root.getAttribute(\"cx\")===this.__root.getAttribute(\"fx\")&&this.__root.getAttribute(\"cy\")===this.__root.getAttribute(\"fy\")&&this.__root.getAttribute(\"r\")===this.__root.getAttribute(\"r0\"))return;const i=this.__ctx.__createElement(\"stop\");if(i.setAttribute(\"offset\",`${t}`),-1!==e.indexOf(\"rgba\")){const t=/rgba\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d?\\.?\\d*)\\s*\\)/gi.exec(e),[,s,r,n,a]=t;i.setAttribute(\"stop-color\",`rgb(${s},${r},${n})`),i.setAttribute(\"stop-opacity\",a)}else i.setAttribute(\"stop-color\",e);this.__root.appendChild(i)}}d.__name__=\"CanvasGradient\";class m{constructor(t,e){this.__root=t,this.__ctx=e}setTransform(t){throw new Error(\"not implemented\")}}m.__name__=\"CanvasPattern\";class f{get canvas(){return this}get width(){return this._width}set width(t){this._width=t,this.__root.setAttribute(\"width\",`${t}`)}get height(){return this._height}set height(t){this._height=t,this.__root.setAttribute(\"height\",`${t}`)}constructor(t){var e,i,s;this.__currentDefaultPath=\"\",this.__currentPosition=null,this.globalAlpha=1,this._transform=new n.AffineTransform,this._clip_path=null,this.__document=null!==(e=null==t?void 0:t.document)&&void 0!==e?e:document,null!=(null==t?void 0:t.ctx)?this.__ctx=t.ctx:(this.__canvas=this.__document.createElement(\"canvas\"),this.__ctx=this.__canvas.getContext(\"2d\")),this.__setDefaultStyles(),this.__stack=[],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.__currentElement=this.__root,this.width=null!==(i=null==t?void 0:t.width)&&void 0!==i?i:500,this.height=null!==(s=null==t?void 0:t.height)&&void 0!==s?s:500,this.__ids=new Set,this.__defs=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"defs\"),this.__root.appendChild(this.__defs)}_random_string(){let t;do{t=f.__random.choices(12,\"ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz\").join(\"\")}while(this.__ids.has(t));return t}__createElement(t,e={},i=!1){const s=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",t);i&&(s.setAttribute(\"fill\",\"none\"),s.setAttribute(\"stroke\",\"none\"));const r=Object.keys(e);for(const t of r)s.setAttribute(t,`${e[t]}`);return s}__setDefaultStyles(){const t=Object.keys(u),e=this;for(let i=0;i<t.length;i++){const s=t[i];e[s]=u[s].canvas}}__applyStyleState(t){const e=Object.keys(t),i=this;for(let s=0;s<e.length;s++){const r=e[s];i[r]=t[r]}}__getStyleState(){const t=Object.keys(u),e={};for(let i=0;i<t.length;i++){const s=t[i];e[s]=this[s]}return e}__applyStyleToCurrentElement(t){const e=this.__currentElement,i=Object.keys(u);for(let s=0;s<i.length;s++){const r=u[i[s]],n=this[i[s]];if(null!=r.apply&&r.apply.includes(t))if(n instanceof m){for(const t of[...n.__ctx.__defs.childNodes])if(t instanceof Element){const e=t.getAttribute(\"id\");this.__ids.add(e),this.__defs.appendChild(t)}const t=n.__root.getAttribute(\"id\");e.setAttribute(r.apply,`url(#${t})`)}else if(n instanceof d){const t=n.__root.getAttribute(\"id\");e.setAttribute(r.apply,`url(#${t})`)}else if(r.svg!==n)if(\"stroke\"!==r.svgAttr&&\"fill\"!==r.svgAttr||!(0,a.isString)(n)||-1===n.indexOf(\"rgba\")){let a=r.svgAttr;if(\"globalAlpha\"===i[s]&&(a=`${t}-${r.svgAttr}`,null!=e.getAttribute(a)))continue;e.setAttribute(a,`${n}`)}else{const t=/rgba\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d?\\.?\\d*)\\s*\\)/gi.exec(n),[,i,s,a,o]=t;e.setAttribute(r.svgAttr,`rgb(${i},${s},${a})`);const l=parseFloat(o)*this.globalAlpha;e.setAttribute(`${r.svgAttr}-opacity`,`${l}`)}}}get_serialized_svg(t=!1){let e=(new XMLSerializer).serializeToString(this.__root);if(t)for(const[t,i]of p){const s=new RegExp(t,\"gi\");s.test(e)&&(e=e.replace(s,i))}return e}get_svg(){return this.__root}save(){this.__stack.push({transform:this._transform,clip_path:this._clip_path,attributes:this.__getStyleState()}),this._transform=this._transform.clone()}restore(){if(0==this.__stack.length)return;const{transform:t,clip_path:e,attributes:i}=this.__stack.pop();this._transform=t,this._clip_path=e,this.__applyStyleState(i)}_apply_transform(t,e=this._transform){e.is_identity||t.setAttribute(\"transform\",e.toString())}scale(t,e){isFinite(t)&&(null==e||isFinite(e))&&this._transform.scale(t,null!=e?e:t)}rotate(t){isFinite(t)&&this._transform.rotate(t)}translate(t,e){isFinite(t+e)&&this._transform.translate(t,e)}transform(t,e,i,s,r,n){isFinite(t+e+i+s+r+n)&&this._transform.transform(t,e,i,s,r,n)}beginPath(){this.__currentDefaultPath=\"\",this.__currentPosition=null,this.__init_element()}__init_element(){const t=this.__createElement(\"path\",{},!0);this.__root.appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;\"path\"===t.nodeName?t.setAttribute(\"d\",this.__currentDefaultPath):console.error(\"Attempted to apply path command to node\",t.nodeName)}__addPathCommand(t,e,i){const s=\"\"==this.__currentDefaultPath?\"\":\" \";this.__currentDefaultPath+=s+i,this.__currentPosition={x:t,y:e}}get _hasCurrentDefaultPath(){return\"\"!=this.__currentDefaultPath}moveTo(t,e){if(!isFinite(t+e))return;\"path\"!==this.__currentElement.nodeName&&this.beginPath();const[i,s]=this._transform.apply(t,e);this.__addPathCommand(i,s,`M ${i} ${s}`)}closePath(){this._hasCurrentDefaultPath&&this.__addPathCommand(NaN,NaN,\"Z\")}lineTo(t,e){if(isFinite(t+e))if(this._hasCurrentDefaultPath){const[i,s]=this._transform.apply(t,e);this.__addPathCommand(i,s,`L ${i} ${s}`)}else this.moveTo(t,e)}bezierCurveTo(t,e,i,s,r,n){if(!isFinite(t+e+i+s+r+n))return;const[a,o]=this._transform.apply(r,n),[l,h]=this._transform.apply(t,e),[_,c]=this._transform.apply(i,s);this.__addPathCommand(a,o,`C ${l} ${h} ${_} ${c} ${a} ${o}`)}quadraticCurveTo(t,e,i,s){if(!isFinite(t+e+i+s))return;const[r,n]=this._transform.apply(i,s),[a,o]=this._transform.apply(t,e);this.__addPathCommand(r,n,`Q ${a} ${o} ${r} ${n}`)}arcTo(t,e,i,s,r){if(!isFinite(t+e+i+s+r))return;if(null==this.__currentPosition)return;const n=this.__currentPosition.x,a=this.__currentPosition.y;if(r<0)throw new Error(`IndexSizeError: The radius provided (${r}) is negative.`);if(n===t&&a===e||t===i&&e===s||0===r)return void this.lineTo(t,e);function o([t,e]){const i=Math.sqrt(t**2+e**2);return[t/i,e/i]}const l=o([n-t,a-e]),h=o([i-t,s-e]);if(l[0]*h[1]==l[1]*h[0])return void this.lineTo(t,e);const _=l[0]*h[0]+l[1]*h[1],c=Math.acos(Math.abs(_)),p=o([l[0]+h[0],l[1]+h[1]]),u=r/Math.sin(c/2),d=t+u*p[0],m=e+u*p[1],f=[-l[1],l[0]],g=[h[1],-h[0]];function b(t){const e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)}const v=b(f),A=b(g);this.lineTo(d+f[0]*r,m+f[1]*r),this.arc(d,m,r,v,A)}stroke(){\"path\"===this.__currentElement.nodeName&&this.__currentElement.setAttribute(\"paint-order\",\"fill\"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement(\"stroke\"),null!=this._clip_path&&this.__currentElement.setAttribute(\"clip-path\",this._clip_path)}fill(t,e){let i=null;if(t instanceof Path2D)i=t;else{if(null!=e)throw new Error(\"invalid arguments\");e=t}if(null!=i)throw new Error(\"not implemented\");\"none\"!=this.__currentElement.getAttribute(\"fill\")&&this.__init_element(),\"path\"===this.__currentElement.nodeName&&this.__currentElement.setAttribute(\"paint-order\",\"stroke\"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement(\"fill\"),null!=e&&this.__currentElement.setAttribute(\"fill-rule\",e),null!=this._clip_path&&this.__currentElement.setAttribute(\"clip-path\",this._clip_path)}rect(t,e,i,s){isFinite(t+e+i+s)&&(this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+s),this.lineTo(t,e+s),this.lineTo(t,e),this.closePath())}fillRect(t,e,i,s){isFinite(t+e+i+s)&&(this.beginPath(),this.rect(t,e,i,s),this.fill())}strokeRect(t,e,i,s){isFinite(t+e+i+s)&&(this.beginPath(),this.rect(t,e,i,s),this.stroke())}__clearCanvas(){(0,h.empty)(this.__defs),(0,h.empty)(this.__root),this.__root.appendChild(this.__defs),this.__currentElement=this.__root}clearRect(t,e,i,s){if(!isFinite(t+e+i+s))return;if(0===t&&0===e&&i===this.width&&s===this.height)return void this.__clearCanvas();const r=this.__createElement(\"rect\",{x:t,y:e,width:i,height:s,fill:\"#FFFFFF\"},!0);this._apply_transform(r),this.__root.appendChild(r)}roundRect(t,e,i,s,r){throw new Error(\"not implemented\")}createLinearGradient(t,e,i,s){if(!isFinite(t+e+i+s))throw new Error(\"The provided double value is non-finite\");const[r,n]=this._transform.apply(t,e),[a,o]=this._transform.apply(i,s),l=this.__createElement(\"linearGradient\",{id:this._random_string(),x1:`${r}px`,x2:`${a}px`,y1:`${n}px`,y2:`${o}px`,gradientUnits:\"userSpaceOnUse\"},!1);return this.__defs.appendChild(l),new d(l,this)}createRadialGradient(t,e,i,s,r,n){if(!isFinite(t+e+i+s+r+n))throw new Error(\"The provided double value is non-finite\");const[a,o]=this._transform.apply(t,e),[l,h]=this._transform.apply(s,r),_=this.__createElement(\"radialGradient\",{id:this._random_string(),cx:`${l}px`,cy:`${h}px`,r:`${n}px`,r0:`${i}px`,fx:`${a}px`,fy:`${o}px`,gradientUnits:\"userSpaceOnUse\"},!1);return this.__defs.appendChild(_),new d(_,this)}createConicGradient(t,e,i){throw Error(\"not implemented\")}__parseFont(){const[,t,e,i,s,,r]=/^\\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);return{style:null!=t?t:\"normal\",size:null!=s?s:\"10px\",family:null!=r?r:\"sans-serif\",weight:null!=i?i:\"normal\",decoration:null!=e?e:\"normal\"}}__applyText(t,e,i,s){const r=this.__parseFont(),n=this.__createElement(\"text\",{\"font-family\":r.family,\"font-size\":r.size,\"font-style\":r.style,\"font-weight\":r.weight,\"text-decoration\":r.decoration,x:e,y:i,\"text-anchor\":_(this.textAlign),\"dominant-baseline\":c(this.textBaseline)},!0);n.appendChild(this.__document.createTextNode(t)),this._apply_transform(n),this.__currentElement=n,this.__applyStyleToCurrentElement(s);const a=(()=>{if(null!=this._clip_path){const t=this.__createElement(\"g\");return t.setAttribute(\"clip-path\",this._clip_path),t.appendChild(n),t}return n})();this.__root.appendChild(a)}fillText(t,e,i){isFinite(e+i)&&this.__applyText(t,e,i,\"fill\")}strokeText(t,e,i){isFinite(e+i)&&this.__applyText(t,e,i,\"stroke\")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,i,s,r,n=!1){this.ellipse(t,e,i,i,0,s,r,n)}ellipse(t,e,i,s,r,a,o,h=!1){if(!isFinite(t+e+i+s+r+a+o))return;if(i<0||s<0)throw new DOMException(\"IndexSizeError, radius can't be negative\");const _=h?o-a:a-o;a%=2*Math.PI,o%=2*Math.PI;const c=(new n.AffineTransform).translate(t,e).rotate(r),p=i*Math.cos(a),u=s*Math.sin(a),[d,m]=c.apply(p,u);this.lineTo(d,m);const f=180*r/Math.PI,g=h?0:1;if(Math.abs(a-o)<2*l.float32_epsilon&&!(Math.abs(_)<2*l.float32_epsilon&&_<0)){const[t,e]=this._transform.apply(d,m),r=i*Math.cos(a+Math.PI),n=s*Math.sin(a+Math.PI),[o,l]=c.apply(r,n),[h,_]=this._transform.apply(o,l);this.__addPathCommand(t,e,`A ${i} ${s} ${f} 0 ${g} ${h} ${_} A ${i} ${s} ${f} 0 ${g} ${t} ${e}`)}else{const t=i*Math.cos(o),e=s*Math.sin(o),[r,n]=c.apply(t,e);let l=o-a;l<0&&(l+=2*Math.PI);const _=h!==l>Math.PI?1:0,[p,u]=this._transform.apply(r,n);this.__addPathCommand(p,u,`A ${i} ${s} ${f} ${_} ${g} ${p} ${u}`)}}clip(){const t=this.__createElement(\"clipPath\"),e=this._random_string();this.__applyCurrentDefaultPath(),t.setAttribute(\"id\",e),t.appendChild(this.__currentElement),this.__defs.appendChild(t),this._clip_path=`url(#${e})`}drawImage(t,...e){let i,s,r,n,a,o,l,h;if(2==e.length){if([i,s]=e,!isFinite(i+s))return;a=0,o=0,l=t.width,h=t.height,r=l,n=h}else if(4==e.length){if([i,s,r,n]=e,!isFinite(i+s+r+n))return;a=0,o=0,l=t.width,h=t.height}else{if(8!==e.length)throw new Error(`Inavlid number of arguments passed to drawImage: ${arguments.length}`);if([a,o,l,h,i,s,r,n]=e,!isFinite(a+o+l+h+i+s+r+n))return}const _=this.__root,c=this._transform.clone().translate(i,s);if(t instanceof f||t instanceof SVGSVGElement){const e=(t instanceof SVGSVGElement?t:t.get_svg()).cloneNode(!0);let i;c.is_identity&&1==this.globalAlpha&&null==this._clip_path?i=_:(i=this.__createElement(\"g\"),c.is_identity||this._apply_transform(i,c),1!=this.globalAlpha&&i.setAttribute(\"opacity\",`${this.globalAlpha}`),null!=this._clip_path&&i.setAttribute(\"clip-path\",this._clip_path),_.appendChild(i));for(const t of[...e.childNodes])if(t instanceof SVGDefsElement){for(const e of[...t.childNodes])if(e instanceof Element){const t=e.getAttribute(\"id\");this.__ids.add(t),this.__defs.appendChild(e.cloneNode(!0))}}else i.appendChild(t.cloneNode(!0))}else if(t instanceof HTMLImageElement||t instanceof SVGImageElement){const e=this.__createElement(\"image\");if(e.setAttribute(\"width\",`${r}`),e.setAttribute(\"height\",`${n}`),e.setAttribute(\"preserveAspectRatio\",\"none\"),1!=this.globalAlpha&&e.setAttribute(\"opacity\",`${this.globalAlpha}`),0!=a||0!=o||l!==t.width||h!==t.height){const e=this.__document.createElement(\"canvas\");e.width=r,e.height=n;e.getContext(\"2d\").drawImage(t,a,o,l,h,0,0,r,n),t=e}this._apply_transform(e,c);const i=t instanceof HTMLCanvasElement?t.toDataURL():t.getAttribute(\"src\");if(e.setAttribute(\"href\",i),null!=this._clip_path){const t=this.__createElement(\"g\");t.setAttribute(\"clip-path\",this._clip_path),t.appendChild(e),_.appendChild(t)}else _.appendChild(e)}else if(t instanceof HTMLCanvasElement){const e=this.__createElement(\"image\");e.setAttribute(\"width\",`${r}`),e.setAttribute(\"height\",`${n}`),e.setAttribute(\"preserveAspectRatio\",\"none\"),1!=this.globalAlpha&&e.setAttribute(\"opacity\",`${this.globalAlpha}`);const i=this.__document.createElement(\"canvas\");i.width=r,i.height=n;const s=i.getContext(\"2d\");if(s.imageSmoothingEnabled=!1,s.drawImage(t,a,o,l,h,0,0,r,n),t=i,this._apply_transform(e,c),e.setAttribute(\"href\",t.toDataURL()),null!=this._clip_path){const t=this.__createElement(\"g\");t.setAttribute(\"clip-path\",this._clip_path),t.appendChild(e),_.appendChild(t)}else _.appendChild(e)}}createPattern(t,e){const i=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"pattern\"),s=this._random_string();if(i.setAttribute(\"id\",s),i.setAttribute(\"width\",`${this._to_number(t.width)}`),i.setAttribute(\"height\",`${this._to_number(t.height)}`),i.setAttribute(\"patternUnits\",\"userSpaceOnUse\"),t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof SVGImageElement){const e=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"image\"),s=t instanceof HTMLCanvasElement?t.toDataURL():t.getAttribute(\"src\");e.setAttribute(\"href\",s),i.appendChild(e),this.__defs.appendChild(i)}else if(t instanceof f){for(const e of[...t.__root.childNodes])e instanceof SVGDefsElement||i.appendChild(e.cloneNode(!0));this.__defs.appendChild(i)}else{if(!(t instanceof SVGSVGElement))throw new Error(\"unsupported\");for(const e of[...t.childNodes])e instanceof SVGDefsElement||i.appendChild(e.cloneNode(!0));this.__defs.appendChild(i)}return new m(i,this)}getLineDash(){const{lineDash:t}=this;return(0,a.isString)(t)?t.split(\",\").map((t=>parseInt(t))):null==t?[]:t}setLineDash(t){t.length>0?this.lineDash=t.join(\",\"):this.lineDash=null}_to_number(t){return(0,a.isNumber)(t)?t:t.baseVal.value}getTransform(){return this._transform.to_DOMMatrix()}setTransform(...t){let e;e=(0,a.isNumber)(t[0])?new DOMMatrix(t):t[0]instanceof DOMMatrix?t[0]:new DOMMatrix(Object.values(null==t[0])),this._transform=n.AffineTransform.from_DOMMatrix(e)}resetTransform(){this._transform=new n.AffineTransform}isPointInPath(...t){throw new Error(\"not implemented\")}isPointInStroke(...t){throw new Error(\"not implemented\")}createImageData(...t){throw new Error(\"not implemented\")}getImageData(t,e,i,s){throw new Error(\"not implemented\")}putImageData(...t){throw new Error(\"not implemented\")}drawFocusIfNeeded(...t){throw new Error(\"not implemented\")}scrollPathIntoView(...t){throw new Error(\"not implemented\")}}i.SVGRenderingContext2D=f,f.__name__=\"SVGRenderingContext2D\",f.__random=o.random},\n function _(t,e,n,s,r){s();const{PI:o,log:a,sin:_,cos:i,sqrt:m,floor:l}=Math;n.MAX_INT32=2147483647;class d{float(){return(this.integer()-1)/(n.MAX_INT32-1)}floats(t,e=0,n=1){const s=new Array(t);for(let r=0;r<t;r++)s[r]=e+this.float()*(n-e);return s}choices(t,e){const n=e.length,s=new Array(t);for(let r=0;r<t;r++)s[r]=e[this.integer()%n];return s}uniform(t,e){return t+(this.float()-.5)*e}uniforms(t,e,n){return Float64Array.from({length:n},(()=>this.uniform(t,e)))}normal(t,e){return this.normals(t,e,1)[0]}normals(t,e,n){const[s,r]=[t,e],l=new Float64Array(n);for(let t=0;t<n;t+=2){const e=this.float(),d=this.float(),h=m(-2*a(e));l[t]=s+r*(h*i(2*o*d)),t+1<n&&(l[t+1]=s+r*(h*_(2*o*d)))}return l}}n.AbstractRandom=d,d.__name__=\"AbstractRandom\";class h extends d{integer(){return l(Math.random()*n.MAX_INT32)}}n.SystemRandom=h,h.__name__=\"SystemRandom\";class c extends d{constructor(t){super(),this._seed=t%n.MAX_INT32,this._seed<=0&&(this._seed+=n.MAX_INT32-1)}integer(){return this._seed=48271*this._seed%n.MAX_INT32,this._seed}}n.LCGRandom=c,c.__name__=\"LCGRandom\";class f extends c{}n.Random=f,f.__name__=\"Random\",n.random=new f(Date.now())},\n function _(t,i,o,e,n){e(),o.default=\":host{position:relative;}\"},\n function _(t,e,n,o,i){var s;o();const a=t(54),r=t(19),l=t(10),c=t(8),_=t(50);class u extends a.View{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,(()=>{this.model.active?this.activate():this.deactivate()}))}get overlays(){return[]}activate(){}deactivate(){}}n.ToolView=u,u.__name__=\"ToolView\";class d extends _.Model{constructor(t){super(t)}get event_role(){const{event_type:t}=this;return(0,c.isString)(t)?t:\"multi\"}get event_types(){const{event_type:t}=this;return null==t?[]:(0,c.isString)(t)?[t]:t}get tooltip(){var t;return null!==(t=this.description)&&void 0!==t?t:this.tool_name}get computed_icon(){const{icon:t,tool_icon:e}=this;return null!=t?t:null!=e?`.${e}`:void 0}get menu(){return null}_get_dim_limits([t,e],[n,o],i,s){const a=i.bbox.h_range;let r;\"width\"==s||\"both\"==s?(r=[(0,l.min)([t,n]),(0,l.max)([t,n])],r=[(0,l.max)([r[0],a.start]),(0,l.min)([r[1],a.end])]):r=[a.start,a.end];const c=i.bbox.v_range;let _;return\"height\"==s||\"both\"==s?(_=[(0,l.min)([e,o]),(0,l.max)([e,o])],_=[(0,l.max)([_[0],c.start]),(0,l.min)([_[1],c.end])]):_=[c.start,c.end],[r,_]}_get_dim_tooltip(t){const{description:e,tool_name:n}=this;return null!=e?e:\"both\"==t?n:\"auto\"==t?`${n} (either x, y or both dimensions)`:`${n} (${\"width\"==t?\"x\":\"y\"}-axis)`}static register_alias(t,e){this.prototype._known_aliases.set(t,e)}static from_string(t){const e=this.prototype._known_aliases.get(t);if(null!=e)return e();{const e=[...this.prototype._known_aliases.keys()];throw new Error(`unexpected tool name '${t}', possible tools are ${e.join(\", \")}`)}}}n.Tool=d,s=d,d.__name__=\"Tool\",s.prototype._known_aliases=new Map,s.define((({String:t,Regex:e,Nullable:n,Or:o})=>({icon:[n(o(r.ToolIcon,e(/^--/),e(/^\\./),e(/^data:image/))),null],description:[n(t),null]}))),s.internal((({Boolean:t})=>({active:[t,!1],disabled:[t,!1]})))},\n function _(t,o,e,s,n){var i;s();const l=t(15),r=t(50),c=t(264),a=t(32);class u extends r.Model{constructor(t){super(t)}get underlying(){return this.tools[0]}tool_button(){const t=this.tools[0].tool_button();return t.tool=this,t}get event_type(){return this.tools[0].event_type}get event_role(){return this.tools[0].event_role}get event_types(){return this.tools[0].event_types}get default_order(){return this.tools[0].default_order}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get computed_icon(){return this.tools[0].computed_icon}get toggleable(){const t=this.tools[0];return\"toggleable\"in t&&t.toggleable}initialize(){super.initialize(),this.do=new l.Signal0(this,\"do\")}connect_signals(){super.connect_signals(),this.connect(this.do,(()=>this.doit())),this.connect(this.properties.active.change,(()=>this.set_active()));for(const t of this.tools)this.connect(t.properties.active.change,(()=>{this.active=t.active}))}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}get menu(){const{menu:t}=this.tools[0];if(null==t)return null;const o=[];for(const[e,s]of(0,a.enumerate)(t))if(null==e)o.push(null);else{const t=()=>{var t,o,e;for(const n of this.tools)null===(e=null===(o=null===(t=n.menu)||void 0===t?void 0:t[s])||void 0===o?void 0:o.handler)||void 0===e||e.call(o)};o.push(Object.assign(Object.assign({},e),{handler:t}))}return o}}e.ToolProxy=u,i=u,u.__name__=\"ToolProxy\",i.define((({Boolean:t,Array:o,Ref:e})=>({tools:[o(e(c.Tool)),[]],active:[t,t=>(0,a.some)(t.tools,(t=>t.active))],disabled:[t,!1]})))},\n function _(e,t,s,o,l){var i;o();const n=e(1),a=e(257),r=e(264),d=e(265),c=e(56),h=e(19),u=e(267),m=e(10),_=n.__importStar(e(270)),p=_,v=n.__importDefault(e(269));class f extends a.UIElementView{initialize(){var e;super.initialize();const{location:t}=this.parent.model,s=\"left\"==t||\"above\"==t,o=this.parent.model.horizontal?\"vertical\":\"horizontal\",l=null!==(e=this.model.tool.menu)&&void 0!==e?e:[];this._menu=new u.ContextMenu(s?(0,m.reversed)(l):l,{target:this.root.el,orientation:o,prevent_hide:e=>e.composedPath().includes(this.el)});let i=null,n=null;this.el.addEventListener(\"pointerdown\",(e=>{e.buttons==c.MouseButton.Left&&(i=e.timeStamp,n=setTimeout((()=>{i=null,n=null,this._pressed()}),250))})),this.el.addEventListener(\"pointerup\",(e=>{if(null!=n&&(clearTimeout(n),n=null),null!=i){if(e.timeStamp-i>=250)this._pressed();else{if(this._menu.is_open)return void this._menu.hide();e.composedPath().includes(this.el)&&this._clicked()}i=null}})),this.el.addEventListener(\"keydown\",(e=>{switch(e.key){case\"Enter\":this._clicked();break;case\" \":this._pressed()}}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.render())),this.connect(this.model.tool.change,(()=>this.render()))}remove(){this._menu.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),_.default,v.default]}render(){var e,t;super.render(),this.class_list.add(p[this.parent.model.location]),this.model.tool.disabled&&this.class_list.add(p.disabled);const s=(0,c.div)({class:p.tool_icon});this.shadow_el.appendChild(s);const o=null!==(e=this.model.icon)&&void 0!==e?e:this.model.tool.computed_icon;if(null!=o)if(o.startsWith(\"data:image\")){const e=`url(\"${encodeURI(o)}\")`;s.style.backgroundImage=e}else if(o.startsWith(\"--\"))s.style.backgroundImage=`var(${o})`;else if(o.startsWith(\".\")){const e=o.substring(1);s.classList.add(e)}else if(h.ToolIcon.valid(o)){const e=`bk-tool-icon-${o.replace(/_/g,\"-\")}`;s.classList.add(e)}if(null!=this.model.tool.menu){const e=(0,c.div)({class:p.tool_chevron});this.shadow_el.appendChild(e)}const l=null!==(t=this.model.tooltip)&&void 0!==t?t:this.model.tool.tooltip;this.el.title=l,this.el.tabIndex=0}_pressed(){const e=(()=>{switch(this.parent.model.location){case\"right\":return{left_of:this.el};case\"left\":return{right_of:this.el};case\"above\":return{below:this.el};case\"below\":return{above:this.el}}})();this._menu.toggle(e)}}s.ToolButtonView=f,f.__name__=\"ToolButtonView\";class g extends a.UIElement{constructor(e){super(e)}}s.ToolButton=g,i=g,g.__name__=\"ToolButton\",i.define((({String:e,Regex:t,Ref:s,Nullable:o,Or:l})=>({tool:[l(s(r.Tool),s(d.ToolProxy))],icon:[o(l(h.ToolIcon,t(/^--/),t(/^\\./),t(/^data:image/))),null],tooltip:[o(e),null]})))},\n function _(t,e,i,n,o){n();const s=t(1),l=t(56),h=t(10),r=t(8),d=s.__importStar(t(268)),a=d,u=s.__importDefault(t(269)),_=s.__importDefault(t(58));class c{get is_open(){return this._open}get can_open(){return 0!=this.items.length}constructor(t,e){var i,n,o;this.el=(0,l.div)(),this._open=!1,this._item_click=t=>{var e;null===(e=t.handler)||void 0===e||e.call(t),this.hide()},this._on_mousedown=t=>{var e,i;t.composedPath().includes(this.el)||null!==(i=null===(e=this.prevent_hide)||void 0===e?void 0:e.call(this,t))&&void 0!==i&&i||this.hide()},this._on_keydown=t=>{\"Escape\"==t.key&&this.hide()},this._on_blur=()=>{this.hide()},this.items=t,this.target=e.target,this.orientation=null!==(i=e.orientation)&&void 0!==i?i:\"vertical\",this.reversed=null!==(n=e.reversed)&&void 0!==n&&n,this.prevent_hide=e.prevent_hide,this.extra_styles=null!==(o=e.extra_styles)&&void 0!==o?o:[],this.shadow_el=this.el.attachShadow({mode:\"open\"}),this.class_list=new l.ClassList(this.el.classList)}remove(){this._unlisten(),(0,l.remove)(this.el)}_listen(){document.addEventListener(\"mousedown\",this._on_mousedown),document.addEventListener(\"keydown\",this._on_keydown),window.addEventListener(\"blur\",this._on_blur)}_unlisten(){document.removeEventListener(\"mousedown\",this._on_mousedown),document.removeEventListener(\"keydown\",this._on_keydown),window.removeEventListener(\"blur\",this._on_blur)}_position(t){var e;const i=(()=>{if(\"left_of\"in t){const{left:e,top:i}=t.left_of.getBoundingClientRect();return{right:e,top:i}}if(\"right_of\"in t){const{top:e,right:i}=t.right_of.getBoundingClientRect();return{left:i,top:e}}if(\"below\"in t){const{left:e,bottom:i}=t.below.getBoundingClientRect();return{left:e,top:i}}if(\"above\"in t){const{left:e,top:i}=t.above.getBoundingClientRect();return{left:e,bottom:i}}return t})(),n=null!==(e=this.el.offsetParent)&&void 0!==e?e:document.body,o=(()=>{const t=n.getBoundingClientRect(),e=getComputedStyle(n);return{left:t.left-parseFloat(e.marginLeft),right:t.right+parseFloat(e.marginRight),top:t.top-parseFloat(e.marginTop),bottom:t.bottom+parseFloat(e.marginBottom)}})(),{style:s}=this.el;s.left=null!=i.left?i.left-o.left+\"px\":\"auto\",s.top=null!=i.top?i.top-o.top+\"px\":\"auto\",s.right=null!=i.right?o.right-i.right+\"px\":\"auto\",s.bottom=null!=i.bottom?o.bottom-i.bottom+\"px\":\"auto\"}stylesheets(){return[_.default,d.default,u.default,...this.extra_styles]}empty(){(0,l.empty)(this.shadow_el),this.class_list.clear()}render(){var t,e;this.empty();for(const t of this.stylesheets()){((0,r.isString)(t)?new l.InlineStyleSheet(t):t).install(this.shadow_el)}this.class_list.add(a[this.orientation]);const i=this.reversed?(0,h.reversed)(this.items):this.items;for(const n of i){let i;if(null==n)i=(0,l.div)({class:a.divider});else{if(null!=n.if&&!n.if())continue;if(null!=n.content)i=n.content;else{const o=null!=n.icon?(0,l.div)({class:[a.menu_icon,n.icon]}):null,s=[null!==(e=null===(t=n.active)||void 0===t?void 0:t.call(n))&&void 0!==e&&e?a.active:null,n.class];i=(0,l.div)({class:s,title:n.tooltip,tabIndex:0},o,n.label,n.content),i.addEventListener(\"click\",(()=>{this._item_click(n)})),i.addEventListener(\"keydown\",(t=>{\"Enter\"==t.key&&this._item_click(n)}))}}this.shadow_el.appendChild(i)}}show(t){var e;if(0!=this.items.length&&!this._open){if(this.render(),0==this.shadow_el.children.length)return;(null!==(e=this.target.shadowRoot)&&void 0!==e?e:this.target).appendChild(this.el),this._position(null!=t?t:{left:0,top:0}),this._listen(),this._open=!0}}hide(){this._open&&(this._open=!1,this._unlisten(),(0,l.remove)(this.el))}toggle(t){this._open?this.hide():this.show(t)}}i.ContextMenu=c,c.__name__=\"ContextMenu\"},\n function _(r,o,i,e,t){e(),i.menu_icon=\"bk-menu-icon\",i.horizontal=\"bk-horizontal\",i.vertical=\"bk-vertical\",i.divider=\"bk-divider\",i.active=\"bk-active\",i.default=\".bk-menu-icon{width:28px;height:28px;mask-size:60% 60%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-size:60% 60%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;background-size:60%;background-color:transparent;background-repeat:no-repeat;background-position:center center;}:host{position:absolute;display:inline-flex;flex-wrap:nowrap;user-select:none;-webkit-user-select:none;width:auto;height:auto;z-index:100;cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);}:host(.bk-horizontal){flex-direction:row;}:host(.bk-vertical){flex-direction:column;}.bk-divider{cursor:default;overflow:hidden;background-color:#e5e5e5;}:host(.bk-horizontal) > .bk-divider{width:1px;margin:5px 0;}:host(.bk-vertical) > .bk-divider{height:1px;margin:0 5px;}:host > :not(.bk-divider){border:1px solid transparent;--active-tool-highlight:#26aae1;}:host > :not(.bk-divider).bk-active{border-color:var(--active-tool-highlight);}:host > :not(.bk-divider):hover{background-color:#f9f9f9;}:host > :not(.bk-divider):focus,:host > :not(.bk-divider):focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}:host > :not(.bk-divider)::-moz-focus-inner{border:0;}:host(.bk-horizontal) > :not(.bk-divider):first-child{border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);}:host(.bk-horizontal) > :not(.bk-divider):last-child{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);}:host(.bk-vertical) > :not(.bk-divider):first-child{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);}:host(.bk-vertical) > :not(.bk-divider):last-child{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);}\"},\n function _(o,A,e,t,n){t(),e.tool_icon_copy=\"bk-tool-icon-copy\",e.tool_icon_replace_mode=\"bk-tool-icon-replace-mode\",e.tool_icon_append_mode=\"bk-tool-icon-append-mode\",e.tool_icon_intersect_mode=\"bk-tool-icon-intersect-mode\",e.tool_icon_subtract_mode=\"bk-tool-icon-subtract-mode\",e.tool_icon_clear_selection=\"bk-tool-icon-clear-selection\",e.tool_icon_box_select=\"bk-tool-icon-box-select\",e.tool_icon_x_box_select=\"bk-tool-icon-x-box-select\",e.tool_icon_y_box_select=\"bk-tool-icon-y-box-select\",e.tool_icon_box_zoom=\"bk-tool-icon-box-zoom\",e.tool_icon_x_box_zoom=\"bk-tool-icon-x-box-zoom\",e.tool_icon_y_box_zoom=\"bk-tool-icon-y-box-zoom\",e.tool_icon_auto_box_zoom=\"bk-tool-icon-auto-box-zoom\",e.tool_icon_zoom_in=\"bk-tool-icon-zoom-in\",e.tool_icon_zoom_out=\"bk-tool-icon-zoom-out\",e.tool_icon_help=\"bk-tool-icon-help\",e.tool_icon_hover=\"bk-tool-icon-hover\",e.tool_icon_crosshair=\"bk-tool-icon-crosshair\",e.tool_icon_lasso_select=\"bk-tool-icon-lasso-select\",e.tool_icon_pan=\"bk-tool-icon-pan\",e.tool_icon_x_pan=\"bk-tool-icon-x-pan\",e.tool_icon_y_pan=\"bk-tool-icon-y-pan\",e.tool_icon_range=\"bk-tool-icon-range\",e.tool_icon_polygon_select=\"bk-tool-icon-polygon-select\",e.tool_icon_redo=\"bk-tool-icon-redo\",e.tool_icon_reset=\"bk-tool-icon-reset\",e.tool_icon_save=\"bk-tool-icon-save\",e.tool_icon_tap_select=\"bk-tool-icon-tap-select\",e.tool_icon_undo=\"bk-tool-icon-undo\",e.tool_icon_wheel_pan=\"bk-tool-icon-wheel-pan\",e.tool_icon_wheel_zoom=\"bk-tool-icon-wheel-zoom\",e.tool_icon_box_edit=\"bk-tool-icon-box-edit\",e.tool_icon_freehand_draw=\"bk-tool-icon-freehand-draw\",e.tool_icon_poly_draw=\"bk-tool-icon-poly-draw\",e.tool_icon_point_draw=\"bk-tool-icon-point-draw\",e.tool_icon_poly_edit=\"bk-tool-icon-poly-edit\",e.tool_icon_line_edit=\"bk-tool-icon-line-edit\",e.tool_icon_settings=\"bk-tool-icon-settings\",e.tool_icon_unknown=\"bk-tool-icon-unknown\",e.tool_icon_fullscreen=\"bk-tool-icon-fullscreen\",e.tool_icon_chevron_up=\"bk-tool-icon-chevron-up\",e.tool_icon_chevron_down=\"bk-tool-icon-chevron-down\",e.tool_icon_chevron_left=\"bk-tool-icon-chevron-left\",e.tool_icon_chevron_right=\"bk-tool-icon-chevron-right\",e.tool_icon_caret_up=\"bk-tool-icon-caret-up\",e.tool_icon_caret_down=\"bk-tool-icon-caret-down\",e.tool_icon_caret_left=\"bk-tool-icon-caret-left\",e.tool_icon_caret_right=\"bk-tool-icon-caret-right\",e.tool_icon_see_on=\"bk-tool-icon-see-on\",e.tool_icon_see_off=\"bk-tool-icon-see-off\",e.default=':host{--bokeh-icon-color:#a1a6a9;--bokeh-icon-color-disabled:#d4d9db;}.bk-tool-icon-copy{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-copy);-webkit-mask-image:var(--bokeh-icon-copy);}.bk-tool-icon-replace-mode{background-image:var(--bokeh-icon-replace-mode, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxokK3gniQAAAHpJREFUWMNjXLhsJcNAAiaGAQajDhhwB7DgEP+PxmeksvjgDwFcLmYkUh2hkBj8IcBIZXsYh1w2/I8v3sgAOM0bLYhGc8GgrwuICgldfQO88pcvXvg/aOuCUQeM5oLRuoCFCJcTbOMh5XOiW0JDNhdQS3y0IBp1ABwAAF8KGrhC1Eg6AAAAAElFTkSuQmCC\"));}.bk-tool-icon-append-mode{background-image:var(--bokeh-icon-append-mode, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxkZWD04WwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAoUlEQVRYw+1WQQ6AIAwrhO8Y/bIXEz9jIMSDr8ETCUEPQzA4pMeFLKNbu4l5WR0CDOMEALBGIzMuQIBEZQjPgP9JLjwTfBjY9sO9lZsFA9IafZng3BlIyVefgd8XQFZBAWe8jfNxwsDhir6rzoCiPiy1K+J8/FRQemv2XfAdFcQ9znU4Viqg9ta1qYJ+D1BnAIBrkgGVOrXNqUA9rbyZm/AEzFh4jEeY/soAAAAASUVORK5CYII=\"));}.bk-tool-icon-intersect-mode{background-image:var(--bokeh-icon-intersect-mode, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxkrkOpp2wAAAPhJREFUWMPtV1EKwjAMTUavI3oawR/vtn5srJdREfzwMvHHQlcT2mpdMzFfWxiP5r2+JMN+mAiCOB72CABgR1cln4oOGocJnuMTSxWk8jMm7OggYkYXA9gPE3uyd8NXHONJ+eYMdE/NqCJmEZ5ZqlJJ4sUksKN7cYSaPoCZFWR1QI+Xm1fBACU63Cw22x0AAJxudwrffVwvZ+JmQdAHZkw0d4EpAMCw8k87pMdbnwtizQumJYv3nwV6XOA1qbUT/oQLUJgFRbsiNwFVucBIlyR3p0tdMp+XmFjfLKi1LatyAXtCRjPWBdL3Ke3VuACJKFfDr/xFN2fgAR/Go0qaLlmEAAAAAElFTkSuQmCC\"));}.bk-tool-icon-subtract-mode{background-image:var(--bokeh-icon-subtract-mode, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxgsF5XNOQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABFUlEQVRYw9VWUQqDMAxNpWfxQxD1MoP97G7zQ5mH2RTZYLtM9lWoMbXtxLXNX4OG9r28l4hrd0PQoqxqAACYpxH25C/nkwCHyCBwSPoS09k1T5Fo+4EiExcC4v584xGFmyIXHBLRISAVZyZufUPVa4rcrwmPDgr93ylo+2GliLRUYHK6th/o/6r7nfLpqaCsagEA8Hh9FmcNKeRmgeYDC+SCq0B6FFi8/BcV6BdR9cL3gCv3ijPKOacsn3rBEcjmaVxpfGcg4wHxzgJJnc6241Hn23DERFRAu1bNcWa3Q0uXi62XR6sCaWoSejbtdLYmU3kTEunNgj0bUbQqYG/IcMaqwPS9jftoVCAQ0ZVDJwf0zQdH4AsyW6fpQu4YegAAAABJRU5ErkJggg==\"));}.bk-tool-icon-clear-selection{background-image:var(--bokeh-icon-clear-selection, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUGEhcuan3d3wAAAoRJREFUWMPtlzFP3EAQhd+b3TNSzg0N5TWXLkJQUUaKhIQ4fgP/g5ArrriE/I3opEgRrZtIVJR0FJQ010SioUmEZHtnUpwN9gWHGA5BJCy58MraffvmfZ41v3z9hqe8BE98vQh4cgG+Ydzmnrng8efvQJNi/uN7dznx/B3ggtfhf4ehNdUttRzBDIm/2VTiiWCG1HK0nc+3UWtq8BQIiEEakEQOADBIA4QCQmBqoHBhFNR27ikQSmGdYCdTqCpEHMDZmEKRWUBEv1gBDg5SzRJnpopILWICgWuRYflLamuzxB2BmtYqSRIka5VWU8QduXO+1hRc5YZu5GAwmP2ZJzND0IBu5HCV2+NQcAhAVRsnC2IbPzPdSjzd6to6VtfWkXi6YLaVWr7xoAwkfpb8MnC3SH7rKSMBe4M0jA/OTicFIbtCGRIyNbURhcf3ErCd6YwA1m0HgAxhw1NGQnlXBHG4kylVlSJuH0RfIP2CkL2I/qS1gIAAQiBl1QwFggIHtyxgrxK5PgyfC0JWKoT0HLh8LwoietB4TYKaIl7yeNURxB05UtMxDOcVQlZIrlRKdK6m47gjR/fuBRQihyLArtNeJD50Izcx2Eczu7iFkIug4VM3cpOr3MKDekFED0fWUHv9Zq0kpLnridjhY3XDg7NTN0jDrhO3X7O9Wg7wwyANu4mnayNg3gmbu0tCNoUyBNGv2l4rB9EXynA7082FOxAQLhU6rQVO9T2AvWowFToNCJcPORGxIRcnpjZSKATSU9NxvOQnAPArDSaQoUKnNI4iufkGtD4P3EHIcWZhz4HLceSOyrR3Izf5memPAL2cX3yhAkonysZVaWLBkd9dw1Ivv2a/AYPkK+ty1U1DAAAAAElFTkSuQmCC\"));}.bk-tool-icon-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-box-select);-webkit-mask-image:var(--bokeh-icon-box-select);}.bk-tool-icon-x-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-box-select);-webkit-mask-image:var(--bokeh-icon-x-box-select);}.bk-tool-icon-y-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-box-select);-webkit-mask-image:var(--bokeh-icon-y-box-select);}.bk-tool-icon-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-box-zoom);-webkit-mask-image:var(--bokeh-icon-box-zoom);}.bk-tool-icon-x-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-box-zoom);-webkit-mask-image:var(--bokeh-icon-x-box-zoom);}.bk-tool-icon-y-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-box-zoom);-webkit-mask-image:var(--bokeh-icon-y-box-zoom);}.bk-tool-icon-auto-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-auto-box-zoom);-webkit-mask-image:var(--bokeh-icon-auto-box-zoom);}.bk-tool-icon-zoom-in{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-zoom-in);-webkit-mask-image:var(--bokeh-icon-zoom-in);}.bk-tool-icon-zoom-out{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-zoom-out);-webkit-mask-image:var(--bokeh-icon-zoom-out);}.bk-tool-icon-help{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-help);-webkit-mask-image:var(--bokeh-icon-help);}.bk-tool-icon-hover{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-hover);-webkit-mask-image:var(--bokeh-icon-hover);}.bk-tool-icon-crosshair{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-crosshair);-webkit-mask-image:var(--bokeh-icon-crosshair);}.bk-tool-icon-lasso-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-lasso-select);-webkit-mask-image:var(--bokeh-icon-lasso-select);}.bk-tool-icon-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan);-webkit-mask-image:var(--bokeh-icon-pan);}.bk-tool-icon-x-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-pan);-webkit-mask-image:var(--bokeh-icon-x-pan);}.bk-tool-icon-y-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-pan);-webkit-mask-image:var(--bokeh-icon-y-pan);}.bk-tool-icon-range{background-image:var(--bokeh-icon-range, 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==\"));}.bk-tool-icon-polygon-select{background-image:var(--bokeh-icon-polygon-select, 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=\"));}.bk-tool-icon-redo{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-redo);-webkit-mask-image:var(--bokeh-icon-redo);}.bk-tool-icon-reset{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-reset);-webkit-mask-image:var(--bokeh-icon-reset);}.bk-tool-icon-save{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-save);-webkit-mask-image:var(--bokeh-icon-save);}.bk-tool-icon-tap-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-tap-select);-webkit-mask-image:var(--bokeh-icon-tap-select);}.bk-tool-icon-undo{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-undo);-webkit-mask-image:var(--bokeh-icon-undo);}.bk-tool-icon-wheel-pan{background-image:var(--bokeh-icon-wheel-pan, 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=\"));}.bk-tool-icon-wheel-zoom{background-image:var(--bokeh-icon-wheel-zoom, 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=\"));}.bk-tool-icon-box-edit{background-image:var(--bokeh-icon-box-edit, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII=\"));}.bk-tool-icon-freehand-draw{background-image:var(--bokeh-icon-freehand-draw, 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==\"));}.bk-tool-icon-poly-draw{background-image:var(--bokeh-icon-poly-draw, 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==\"));}.bk-tool-icon-point-draw{background-image:var(--bokeh-icon-point-draw, 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==\"));}.bk-tool-icon-poly-edit{background-image:var(--bokeh-icon-poly-edit, 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=\"));}.bk-tool-icon-line-edit{background-image:var(--bokeh-icon-line-edit, url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAG/3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVdpknSpDfzPKXwEJBDLccQW4Rv4+E4BtXR198znCdeLLijgQUoppWg3//Pv5f6FDwefXJRcUk3J4xNrrKzoFH8+pyUf9/f+8J3C7y/j7jnBGApow/mZ5l2vGJfXCzne8fZ13OV+9yl3ozvx2DDYyXbauCDvRoHPON3frl5Imt7MuX8hH0seiz9/xwxnDMFgYMczUPD7m89J4fwp/iK+OVRbiMf6gm8K4bv/3NN1Pzjw2fvwn+93PLzccTZ6mJU+/HTHSX723/bSOyLi58n8jmiqz/798+a/tUZZax7rNCKOakzXqIcpu4eFDe483kh4Mv4E/byfiqd49R2OHzC1Od/woxLD44siDVJaNHfbqQNi5MkZLXPnsMdKyFy5gwwCHXhocXahhhEK+OhgLmCYn1hon1vtPBxWcPIgrGTCZrR5fHvc58A/fb5stJaFOZEvT18BF1t8AYYxZ99YBUJoXZ/K9i+50/jPjxEbwKBsNxcYqL6dLZrQK7bC5jl4cVga/Ql5yuNuABfhbAEYCmDAJwpCiXxmzkTwYwE/CuQcIjcwQOKEB1ByDCGBnMJ2Nt7JtNey8BmGvIAICSlkUFODgqwYJSbkW0EIqZMgUUSSZClSRVNIMUlKKSfTKc0hxyw55ZxLrllLKLFISSWXUmrRyjVAxsTVVHMttVZVHKpRsZdivWKgcQstNmmp5VZabdoRPj126annXnrtOniEAQlwI408yqhDJ02E0oxTZpp5llmnLsTaCisuWWnlVVZd+mTtsvqVtU/m/po1uqzxJsrW5RdrGM75sQWZnIhxBsY4EhjPxgACmo0zXyhGNuaMM185uBCEgVKMnEHGGBiMk1gWPbl7Mfcrbw7e/V9545+Yc0bd/4M5Z9S9Mfedtx9YG7rlNmyCLAvhUyhkQPrNhvO5AJFnrZIR0plaLL5liQYdDi5TubaIokFDkmoFEB8CzxZVxemssDqthPhUblPgW1iQU5g6XwNwyVI7bUFRm035iNziMkgWvEso2SXnsJfveR0Y4SlVF8YWC1pVQhJiQa8JwDvlMNIxAfq3F7GDObHU1LlhzlZaWwNp6BvACxAgInGXlllMGZCpEnZHrGA6GM2718xuFcz7YdUQxzEEfjdWz4GlkcwaonT0pgA6mB25grPILtnSMhuCpsGhmMU6uJbixJs4lbKHqh+wos1jW2rchyGRCIvN9MXu+KAmMSfAlIKVvi/tybhCPJZCu2Ow9pLdyo427+X2ovMBmKNu8PA0zgl3fS0PB1DWWkVYB47bkyiJHhkFPzTzCjzn4Dq1mqoIWzCmcDGsHQmQAQdEHsixK1IXESd5rLU7THVJNV8obHS8sZeN0G5Jdt5pQTVKCCbgK1hItTS8o92iEZpuWJ/oC2r/0+zTmhvFXoaMVKRe27altDtid6OvG1hENVwBnC61KKugNoemOiPCCNb3GoHAZOFuDxxPsD+07nbSPcr/o1Zmc4jARhotrA5F5ZcjP9rPk90vR8A+k028A+8+5wKlHVID542sMzMCuXktkRzUCpE+xCBZywjNcJITx0II9x5948CekBl4XaC5OCX2nCyObdwN3HwQh5DWL/BBEkhDYHn/vpXNgZkVTZs8rj+HO8JFC6qvDVhgAEQSYCDyC86rMhG1WPzAVB9ZldDWG6EzDcFiqJBDvFS8mXDv3SK2LPoguVB2kwUx7UL5KqZWiEzocsbvSjNnaYDNtcYJuA5cDcsrvHd6yCxGjqvl9+wh3Qh8Kc9py8sNW8ncU8qwxdPj1qIGfrPqlXeoS4/JLa/LwRLTCtxuSoZUT+2Su6kXW3QNacYQbId6NUKVbROpviybFSPQQL9lhB2MamEnFyB9Y+hrG1+xBg+L0QG2TZdTdlcsBdq9oHdt9Bu5/IM9+Nfh1AwrSqlboTA6Bgq568A7UfbaMrZjoQZhQphofvNw93+bN+5X7FYKBgLmRid+tSdV6c02A4R0cHwKobmoMt5+6WI9XNISFIywpf6RMd5/a91vE78FzVHIFmxud4woyJx76OMTCa4yhgN3iJO2VfRPFMv9sYTxFzU+1eWeYS52pwOoSJldZY6koib4P1O427rbeUrNZfu44hWjz5ZSuu/vKPpimoXbLkfxWSPetvxDWG5jQSaZCxA3ad+p6rlttDhK+YwwK1LHVe0drDtorc5vnQ1247g58vewDtU7L3DRwrG4dhCUDRKKOtYr2dXHtpt+33d1WZmfkAHdl7Q8ENF+CNgB+nOw29n5F7SeNo/ckbu4laLTCdqJLHjmhJbKzmrCEX7zULrhefuHmu0V/1nbP1pnb6FaT7sOxn4pvWkfrYhYtCeJ4Xv+kOXrroIs1eHWXN1/AfzaY94ms5vaAAABg2lDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TSkUqDnYQUchQnSyIijhqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cUWsR4cNyPd/ced+8AoVFhmhUaBzTdNtPJhJjNrYrhV4QwjAgGIMrMMuYkKQXf8XWPAF/v4jzL/9yfo1fNWwwIiMSzzDBt4g3i6U3b4LxPHGUlWSU+Jx4z6YLEj1xXPH7jXHRZ4JlRM5OeJ44Si8UOVjqYlUyNeIo4pmo65QtZj1XOW5y1So217slfGMnrK8tcpzmEJBaxBAkiFNRQRgU24rTqpFhI037Cxz/o+iVyKeQqg5FjAVVokF0/+B/87tYqTE54SZEE0PXiOB8jQHgXaNYd5/vYcZonQPAZuNLb/moDmPkkvd7WYkdA3zZwcd3WlD3gcgcYeDJkU3alIE2hUADez+ibckD/LdCz5vXW2sfpA5ChrlI3wMEhMFqk7HWfd3d39vbvmVZ/P2aecqIM1FFZAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AQdDBkQmV+argAABM5JREFUWMOtl9trHFUcxz9n9jYzm7Tb9JIWGtqUllLwVgRBQWl90S6lTaGmF6E2/4H+A4r+A0offdlWodL4kEZw9bG+iC9iKqLF0os0EBq02dtcdmdnfj7szGZ2M5vulv5g4JwzZ873+7ufUfMLi0RSa1TZNzVFrW511xBhzMxx79EyOwrbGSSzZ073zOcXFnlv5lTi3mvfzAPwwYVZ0tHiq6+/xu+/LlGtWYgEINL9oG657N41yfSRgxw9cHjDgfMLi8QVsR0X23E3gMXnkXQJ3L9zB99vI4EA0sVXqsPF93xW7y73ACVJBJwE1j8HUBIi3Sz/QNtrIzHN+yWdSdNue915IMKWXI4TJ050Adp+U+2bmkrV6tZeYAXwEJExMyf3Hi0rM5fvAvS4wPdBKRW6vZeEUiq0RIBCddddpymu0+rRbPvEzkPVmmWLBA1EdGAbYNctt7V712QwfeSgd/uXJQnPVVoEEAQBTxXpuEMELNtNNFW1WrsrQdBCRImQEeE/wBUh53v+7tW7y5n1+BZRIoJSioXvy3itdgclURSZTBrP87AdV57G1TT0d4GPgC+Bw8Ca7bifATsTgzBvjlH1qgNdICJM7tjB8soKw4jtuD+Gw3c229e1wF+P/uHPpT86rhBBRHActwAcAl4EjgIvAYcFJnlOoq5dv6EBU8AR4OUQ6AVgGjATwuC5YUdZ4A+z+1mBTUM/AKwqpZSIpPfu2VP7+/6DYEMMPE9N83lzq23ZWwxDd4GaQnmgUloqperSCpKC8HGCXz8G7NANU8CWUKPzsUDbyLPVyjYC39e0VMZx3Ccoha4b4lQqbUlnsBqNWCXpEMgKfA38DNSBcdPQr4zlMtTtFiqlulmQmJv9ks2idUZGZMjZmZMAfBUvxWHR0y5dmPV2FcbPG9ncFdPQS3nTuAJQLBZpBS1qjSqFwjipdGr9SWlsHTewm9ZmnngMKAaV9nBd+/bmdxSLRc6dnemm3+yZ06pcLvPGW2+yfWIn1ZpFEAQEvt95goCV1TXMXH4zAt4woaRF7RTAVylAUS6Xpdpsdjvk2VMnsSyHhuVEZTh+xgywBhwLfZIdKRfj7dWqPGFubq7T428ukslkaHttLNsZ9P3nwIfh+DhwS4EO9DA0zByBCE2n1fPxpQuznSCaX1js9nFp2pjbtqGhobQ0jUY9CbgALERah3IM+El1rNqTaqaph5W1uYGAFrfA5YvnyE9MoFBYtjMI/BXgQR/4pqVDZL3V9/cYrX+x7SnsXh/H5TLwW2iBQbVLNgn65CDsrSPOIJOXwmdQ4fRHrZilUqmXwNXrNzbbfxv4ArgFVBLeJ95oDEMHwHHcvvUcRqEwuBf0SSUEB9gfxsAgAkO1kcj/WvwKPaR8EhvPAUvRtdIMtR1FtBH37w8DEeChaehXw/xfAnzHcVOjEkhHrIe0Qlz7T8PuWLEd9+2w9KphgUUgQJ7JAgAPDT13NTrJyOYqIilrlEwQv/NPMTSByxfPIU37eCqtq2zWmPYDjbavaLYVdn2NuffPjqRJK2hRLBaHzoK+X7L1QE+nIFeYoFQqkTVMaTn2UOe1LWtwEJqGzqgRnS9M4Fb+3XBJGfSrFzW9dBw0icioJBzHzUXdMJM18APwWo6Kmy1O6X+V8UHDotBqogAAAABJRU5ErkJggg==\"));}.bk-tool-icon-settings{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-settings);-webkit-mask-image:var(--bokeh-icon-settings);}.bk-tool-icon-unknown{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-unknown);-webkit-mask-image:var(--bokeh-icon-unknown);}.bk-tool-icon-fullscreen{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-fullscreen);-webkit-mask-image:var(--bokeh-icon-fullscreen);}.bk-tool-icon-chevron-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-up);-webkit-mask-image:var(--bokeh-icon-chevron-up);}.bk-tool-icon-chevron-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-down);-webkit-mask-image:var(--bokeh-icon-chevron-down);}.bk-tool-icon-chevron-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-left);-webkit-mask-image:var(--bokeh-icon-chevron-left);}.bk-tool-icon-chevron-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-right);-webkit-mask-image:var(--bokeh-icon-chevron-right);}.bk-tool-icon-caret-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-up);-webkit-mask-image:var(--bokeh-icon-caret-up);}.bk-tool-icon-caret-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-down);-webkit-mask-image:var(--bokeh-icon-caret-down);}.bk-tool-icon-caret-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-left);-webkit-mask-image:var(--bokeh-icon-caret-left);}.bk-tool-icon-caret-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-right);-webkit-mask-image:var(--bokeh-icon-caret-right);}.bk-tool-icon-see-on{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-on);-webkit-mask-image:var(--bokeh-icon-see-on);}.bk-tool-icon-see-off{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-off);-webkit-mask-image:var(--bokeh-icon-see-off);}:host{--bokeh-icon-question-mark:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%2219%22%20x2%3D%2212%22%20y2%3D%2219.01%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-help:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%2217%22%20x2%3D%2212%22%20y2%3D%2217.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2013.5a1.5%201.5%200%200%201%201%20-1.5a2.6%202.6%200%201%200%20-3%20-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-x:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%206l-12%2012%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%206l12%2012%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-settings:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M10.325%204.317c.426%20-1.756%202.924%20-1.756%203.35%200a1.724%201.724%200%200%200%202.573%201.066c1.543%20-.94%203.31%20.826%202.37%202.37a1.724%201.724%200%200%200%201.065%202.572c1.756%20.426%201.756%202.924%200%203.35a1.724%201.724%200%200%200%20-1.066%202.573c.94%201.543%20-.826%203.31%20-2.37%202.37a1.724%201.724%200%200%200%20-2.572%201.065c-.426%201.756%20-2.924%201.756%20-3.35%200a1.724%201.724%200%200%200%20-2.573%20-1.066c-1.543%20.94%20-3.31%20-.826%20-2.37%20-2.37a1.724%201.724%200%200%200%20-1.065%20-2.572c-1.756%20-.426%20-1.756%20-2.924%200%20-3.35a1.724%201.724%200%200%200%201.066%20-2.573c-.94%20-1.543%20.826%20-3.31%202.37%20-2.37c1%20.608%202.296%20.07%202.572%20-1.065z%22%3E%3C%2Fpath%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%3E%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-unknown:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M14%203v4a1%201%200%200%200%201%201h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M17%2021h-10a2%202%200%200%201%20-2%20-2v-14a2%202%200%200%201%202%20-2h7l5%205v11a2%202%200%200%201%20-2%202z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2017v.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2014a1.5%201.5%200%201%200%20-1.14%20-2.474%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-fullscreen:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Crect%20x%3D%223%22%20y%3D%2216%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012v-6a2%202%200%200%201%202%20-2h12a2%202%200%200%201%202%202v12a2%202%200%200%201%20-2%202h-6%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%208h4v4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%208l-5%205%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-save:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%2017v2a2%202%200%200%200%202%202h12a2%202%200%200%200%202%20-2v-2%22%20%2F%3E%0A%20%20%3Cpolyline%20points%3D%227%2011%2012%2016%2017%2011%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%224%22%20x2%3D%2212%22%20y2%3D%2216%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-copy:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%208v-2a2%202%200%200%200%20-2%20-2h-8a2%202%200%200%200%20-2%202v8a2%202%200%200%200%202%202h2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-tap-select:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cline%20x1%3D%223%22%20y1%3D%2212%22%20x2%3D%226%22%20y2%3D%2212%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%223%22%20x2%3D%2212%22%20y2%3D%226%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227.8%22%20y1%3D%227.8%22%20x2%3D%225.6%22%20y2%3D%225.6%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2216.2%22%20y1%3D%227.8%22%20x2%3D%2218.4%22%20y2%3D%225.6%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227.8%22%20y1%3D%2216.2%22%20x2%3D%225.6%22%20y2%3D%2218.4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012l9%203l-4%202l-2%204l-3%20-9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-lasso-select:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4.028%2013.252c-.657%20-.972%20-1.028%20-2.078%20-1.028%20-3.252c0%20-3.866%204.03%20-7%209%20-7s9%203.134%209%207s-4.03%207%20-9%207c-1.913%200%20-3.686%20-.464%20-5.144%20-1.255%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%225%22%20cy%3D%2215%22%20r%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M5%2017c0%201.42%20.316%202.805%201%204%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-pan:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%209l3%203l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%209l-3%203l3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2018l3%203l3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%206l-3%20-3l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012v9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%203v9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-x-pan:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%209l3%203l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%209l-3%203l3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2012h9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-y-pan:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2018l3%203l3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%206l-3%20-3l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012v9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%203v9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-box-select:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-x-box-select:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M17%2013l-4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-y-box-select:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l2%202l2%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%2015v2.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-box-zoom:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-x-box-zoom:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M17%2013l-4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l4%204%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-y-box-zoom:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l2%202l2%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%2015v2.5%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-auto-box-zoom:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-zoom-in:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227%22%20y1%3D%2210%22%20x2%3D%2213%22%20y2%3D%2210%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2210%22%20y1%3D%227%22%20x2%3D%2210%22%20y2%3D%2213%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2215%22%20y2%3D%2215%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-zoom-out:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227%22%20y1%3D%2210%22%20x2%3D%2213%22%20y2%3D%2210%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2215%22%20y2%3D%2215%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-undo:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2013l-4%20-4l4%20-4m-4%204h11a4%204%200%200%201%200%208h-1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-redo:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%2013l4%20-4l-4%20-4m4%204h-11a4%204%200%200%200%200%208h1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-reset:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M20%2011a8.1%208.1%200%200%200%20-15.5%20-2m-.5%20-4v4h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2013a8.1%208.1%200%200%200%2015.5%202m.5%204v-4h-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-hover:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M12%2020l-3%20-3h-2a3%203%200%200%201%20-3%20-3v-6a3%203%200%200%201%203%20-3h10a3%203%200%200%201%203%203v6a3%203%200%200%201%20-3%203h-2l-3%203%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%228%22%20y1%3D%229%22%20x2%3D%2216%22%20y2%3D%229%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%228%22%20y1%3D%2213%22%20x2%3D%2214%22%20y2%3D%2213%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-crosshair:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M20%2012h-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2020v-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%204v4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-chevron-up:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%226%2015%2012%209%2018%2015%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-chevron-down:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-chevron-left:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%2215%206%209%2012%2015%2018%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-chevron-right:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%229%206%2015%2012%209%2018%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-caret-up:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-caret-down:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(180%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-caret-left:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(270%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-caret-right:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(90%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-see-on:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2012c-2.667%204.667%20-6%207%20-10%207s-7.333%20-2.333%20-10%20-7c2.667%20-4.667%206%20-7%2010%20-7s7.333%202.333%2010%207%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");--bokeh-icon-see-off:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cline%20x1%3D%223%22%20y1%3D%223%22%20x2%3D%2221%22%20y2%3D%2221%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10.584%2010.587a2%202%200%200%200%202.828%202.83%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9.363%205.365a9.466%209.466%200%200%201%202.637%20-.365c4%200%207.333%202.333%2010%207c-.778%201.361%20-1.612%202.524%20-2.503%203.488m-2.14%201.861c-1.631%201.1%20-3.415%201.651%20-5.357%201.651c-4%200%20-7.333%20-2.333%20-10%20-7c1.369%20-2.395%202.913%20-4.175%204.632%20-5.341%22%20%2F%3E%0A%3C%2Fsvg%3E%0A\");}'},\n function _(o,t,e,r,i){r(),e.tool_icon=\"bk-tool-icon\",e.disabled=\"bk-disabled\",e.tool_chevron=\"bk-tool-chevron\",e.above=\"bk-above\",e.below=\"bk-below\",e.left=\"bk-left\",e.right=\"bk-right\",e.active=\"bk-active\",e.default=\":host{--button-width:30px;--button-height:30px;--button-color:lightgray;--button-border:2px;--active-tool-highlight:#26aae1;--active-tool-border:var(--button-border) solid transparent;}:host{position:relative;width:var(--button-width);height:var(--button-height);cursor:pointer;user-select:none;-webkit-user-select:none;}.bk-tool-icon{position:relative;top:calc(var(--button-border)/2);width:calc(var(--button-width) - var(--button-border));height:calc(var(--button-height) - var(--button-border));mask-size:60% 60%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-size:60% 60%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;background-size:60% 60%;background-origin:border-box;background-position:center center;background-repeat:no-repeat;}:host(.bk-disabled) .bk-tool-icon{background-color:var(--bokeh-icon-color-disabled);cursor:not-allowed;}.bk-tool-chevron{position:absolute;visibility:hidden;width:8px;height:8px;mask-size:100% 100%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;}:host(:hover) .bk-tool-chevron{visibility:visible;}:host(.bk-above) .bk-tool-chevron{right:0;bottom:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-down);-webkit-mask-image:var(--bokeh-icon-chevron-down);}:host(.bk-below) .bk-tool-chevron{right:0;top:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-up);-webkit-mask-image:var(--bokeh-icon-chevron-up);}:host(.bk-left) .bk-tool-chevron{right:0;bottom:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-right);-webkit-mask-image:var(--bokeh-icon-chevron-right);}:host(.bk-right) .bk-tool-chevron{left:0;bottom:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-left);-webkit-mask-image:var(--bokeh-icon-chevron-left);}:host(:hover){background-color:rgba(192, 192, 192, 0.15);}:host(:focus),:host(:focus-visible){outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}:host::-moz-focus-inner{border:0;}:host(.bk-above){border-bottom:var(--active-tool-border);}:host(.bk-above.bk-active){border-bottom-color:var(--active-tool-highlight);}:host(.bk-below){border-top:var(--active-tool-border);}:host(.bk-below.bk-active){border-top-color:var(--active-tool-highlight);}:host(.bk-right){border-left:var(--active-tool-border);}:host(.bk-right.bk-active){border-left-color:var(--active-tool-highlight);}:host(.bk-left){border-right:var(--active-tool-border);}:host(.bk-left.bk-active){border-right-color:var(--active-tool-highlight);}\"},\n function _(e,o,t,n,s){n();const r=e(264),l=e(272);class u extends r.ToolView{get plot_view(){return this.parent}}t.GestureToolView=u,u.__name__=\"GestureToolView\";class _ extends r.Tool{constructor(e){super(e)}tool_button(){return new l.OnOffButton({tool:this})}}t.GestureTool=_,_.__name__=\"GestureTool\"},\n function _(t,e,o,n,s){var i;n();const c=t(1),_=t(266),l=c.__importStar(t(270));class a extends _.ToolButtonView{_toggle_active(){this.class_list.toggle(l.active,this.model.tool.active)}connect_signals(){super.connect_signals();const{active:t}=this.model.tool.properties;this.on_change(t,(()=>{this._toggle_active()}))}render(){super.render(),this._toggle_active()}_clicked(){const{active:t}=this.model.tool;this.model.tool.active=!t}}o.OnOffButtonView=a,a.__name__=\"OnOffButtonView\";class r extends _.ToolButton{constructor(t){super(t)}}o.OnOffButton=r,i=r,r.__name__=\"OnOffButton\",i.prototype.default_view=a},\n function _(e,o,t,n,s){var l;n();const _=e(264),c=e(272);class i extends _.ToolView{get plot_view(){return this.parent}}t.InspectToolView=i,i.__name__=\"InspectToolView\";class r extends _.Tool{constructor(e){super(e),this.event_type=\"move\"}tool_button(){return new c.OnOffButton({tool:this})}}t.InspectTool=r,l=r,r.__name__=\"InspectTool\",l.define((({Boolean:e})=>({toggleable:[e,!0]}))),l.override({active:!0})},\n function _(o,t,n,s,i){s();const e=o(264),c=o(275),l=o(15);class _ extends e.ToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,(o=>this.doit(o)))}}n.ActionToolView=_,_.__name__=\"ActionToolView\";class a extends e.Tool{constructor(o){super(o),this.do=new l.Signal(this,\"do\")}tool_button(){return new c.ClickButton({tool:this})}}n.ActionTool=a,a.__name__=\"ActionTool\"},\n function _(t,o,e,n,i){var c;n();const l=t(266);class _ extends l.ToolButtonView{_clicked(){this.model.tool.do.emit(void 0)}}e.ClickButtonView=_,_.__name__=\"ClickButtonView\";class s extends l.ToolButton{constructor(t){super(t)}}e.ClickButton=s,c=s,s.__name__=\"ClickButton\",c.prototype.default_view=_},\n function _(o,e,t,i,l){var n;i();const s=o(274),r=o(269);class c extends s.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=c,c.__name__=\"HelpToolView\";class _ extends s.ActionTool{constructor(o){super(o),this.tool_name=\"Help\",this.tool_icon=r.tool_icon_help}}t.HelpTool=_,n=_,_.__name__=\"HelpTool\",n.prototype.default_view=c,n.define((({String:o})=>({redirect:[o,\"https://docs.bokeh.org/en/latest/docs/user_guide/interaction/tools.html\"]}))),n.override({description:\"Click the question mark to learn more about Bokeh plot tools.\"}),n.register_alias(\"help\",(()=>new _))},\n function _(o,t,e,i,l){i(),e.inner=\"bk-inner\",e.hidden=\"bk-hidden\",e.logo=\"bk-logo\",e.above=\"bk-above\",e.below=\"bk-below\",e.left=\"bk-left\",e.right=\"bk-right\",e.divider=\"bk-divider\",e.tool_overflow=\"bk-tool-overflow\",e.horizontal=\"bk-horizontal\",e.vertical=\"bk-vertical\",e.default=':host{--button-width:30px;--button-height:30px;--button-color:lightgray;}:host{display:flex;flex-wrap:nowrap;align-items:center;user-select:none;-webkit-user-select:none;}:host(.bk-inner){background-color:white;opacity:0.8;}:host(.bk-hidden){visibility:hidden;opacity:0;transition:visibility 0.3s linear, opacity 0.3s linear;}.bk-logo{flex-shrink:0;}:host(.bk-above),:host(.bk-below){flex-direction:row;justify-content:flex-end;}:host(.bk-above) .bk-logo,:host(.bk-below) .bk-logo{order:1;margin-left:5px;margin-right:0px;}:host(.bk-left),:host(.bk-right){flex-direction:column;justify-content:flex-start;}:host(.bk-left) .bk-logo,:host(.bk-right) .bk-logo{order:0;margin-bottom:5px;margin-top:0px;}.bk-divider{content:\" \";display:inline-block;background-color:var(--button-color);}:host(.bk-above) .bk-divider,:host(.bk-below) .bk-divider{height:10px;width:1px;}:host(.bk-left) .bk-divider,:host(.bk-right) .bk-divider{height:1px;width:10px;}.bk-tool-overflow{color:gray;display:flex;align-items:center;}.bk-tool-overflow:hover{background-color:rgba(192, 192, 192, 0.15);}.bk-tool-overflow:focus,.bk-tool-overflow:focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}.bk-tool-overflow::-moz-focus-inner{border:0;}:host(.bk-above) .bk-tool-overflow,:host(.bk-below) .bk-tool-overflow,:host(.bk-horizontal) .bk-tool-overflow{width:calc(var(--button-width)/2);height:var(--button-height);flex-direction:row;}:host(.bk-left) .bk-tool-overflow,:host(.bk-right) .bk-tool-overflow,:host(.bk-vertical) .bk-tool-overflow{width:var(--button-width);height:calc(var(--button-height)/2);flex-direction:column;}'},\n function _(A,l,g,o,d){o(),g.logo=\"bk-logo\",g.grey=\"bk-grey\",g.logo_small=\"bk-logo-small\",g.default=\".bk-logo{margin:5px;position:relative;display:block;background-repeat:no-repeat;}.bk-logo.bk-grey{filter:grayscale(100%);}.bk-logo-small{width:20px;height:20px;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 function _(e,i,t,s,r){var l;s();const a=e(231),h=e(139),_=e(23),n=e(59),o=e(78);class d extends a.UpperLowerView{*children(){yield*super.children();const{lower_head:e,upper_head:i}=this;null!=e&&(yield e),null!=i&&(yield i)}async lazy_initialize(){await super.lazy_initialize();const{lower_head:e,upper_head:i}=this.model;null!=e&&(this.lower_head=await(0,n.build_view)(e,{parent:this})),null!=i&&(this.upper_head=await(0,n.build_view)(i,{parent:this}))}set_data(e){var i,t;super.set_data(e);const s=_.Indices.all_set(this._lower.length);null===(i=this.lower_head)||void 0===i||i.set_data(e,s),null===(t=this.upper_head)||void 0===t||t.set_data(e,s)}paint(e){if(this.visuals.line.doit)for(let i=0,t=this._lower_sx.length;i<t;i++)e.beginPath(),e.moveTo(this._lower_sx[i],this._lower_sy[i]),e.lineTo(this._upper_sx[i],this._upper_sy[i]),this.visuals.line.apply(e,i);const i=\"height\"==this.model.dimension?0:Math.PI/2;if(null!=this.lower_head)for(let t=0,s=this._lower_sx.length;t<s;t++)e.save(),e.translate(this._lower_sx[t],this._lower_sy[t]),e.rotate(i+Math.PI),this.lower_head.render(e,t),e.restore();if(null!=this.upper_head)for(let t=0,s=this._upper_sx.length;t<s;t++)e.save(),e.translate(this._upper_sx[t],this._upper_sy[t]),e.rotate(i),this.upper_head.render(e,t),e.restore()}}t.WhiskerView=d,d.__name__=\"WhiskerView\";class p extends a.UpperLower{constructor(e){super(e)}}t.Whisker=p,l=p,p.__name__=\"Whisker\",l.prototype.default_view=d,l.mixins(o.LineVector),l.define((({Ref:e,Nullable:i})=>({lower_head:[i(e(h.ArrowHead)),()=>new h.TeeHead({size:10})],upper_head:[i(e(h.ArrowHead)),()=>new h.TeeHead({size:10})]}))),l.override({level:\"underlay\"})},\n function _(L,e,T,l,H){l(),H(\"HTMLLabel\",L(281).HTMLLabel),H(\"HTMLLabelSet\",L(283).HTMLLabelSet),H(\"HTMLTitle\",L(284).HTMLTitle)},\n function _(e,t,s,i,n){var o;i();const a=e(1),l=e(282),r=e(11),u=e(19),_=e(151),d=e(144),c=a.__importStar(e(78));class h extends l.TextAnnotationView{update_layout(){const{panel:e}=this;this.layout=null!=e?new d.SideLayout(e,(()=>this.get_size()),!1):void 0}_get_size(){const{text:e}=this.model,t=new _.TextBox({text:e}),{angle:s,angle_units:i}=this.model;t.angle=(0,r.compute_angle)(s,i),t.visuals=this.visuals.text.values();const{width:n,height:o}=t.size();return{width:n,height:o}}_render(){const{angle:e,angle_units:t}=this.model,s=(0,r.compute_angle)(e,t),i=null!=this.layout?this.layout:this.plot_view.frame,n=this.coordinates.x_scale,o=this.coordinates.y_scale;let a=(()=>{switch(this.model.x_units){case\"canvas\":return this.model.x;case\"screen\":return i.bbox.xview.compute(this.model.x);case\"data\":return n.compute(this.model.x)}})(),l=(()=>{switch(this.model.y_units){case\"canvas\":return this.model.y;case\"screen\":return i.bbox.yview.compute(this.model.y);case\"data\":return o.compute(this.model.y)}})();a+=this.model.x_offset,l-=this.model.y_offset,this._paint(this.layer.ctx,this.model.text,a,l,s)}}s.HTMLLabelView=h,h.__name__=\"HTMLLabelView\";class m extends l.TextAnnotation{constructor(e){super(e)}}s.HTMLLabel=m,o=m,m.__name__=\"HTMLLabel\",o.prototype.default_view=h,o.mixins([c.Text,[\"border_\",c.Line],[\"background_\",c.Fill]]),o.define((({Number:e,String:t,Angle:s})=>({x:[e],x_units:[u.CoordinateUnits,\"data\"],y:[e],y_units:[u.CoordinateUnits,\"data\"],text:[t,\"\"],angle:[s,0],angle_units:[u.AngleUnits,\"rad\"],x_offset:[e,0],y_offset:[e,0]}))),o.override({background_fill_color:null,border_line_color:null})},\n function _(t,e,s,i,l){i();const n=t(73),o=t(56),a=t(144);class r extends n.AnnotationView{update_layout(){const{panel:t}=this;this.layout=null!=t?new a.SideLayout(t,(()=>this.get_size()),!0):void 0}initialize(){super.initialize(),this.el=(0,o.div)(),this.plot_view.canvas_view.add_overlay(this.el)}remove(){(0,o.remove)(this.el),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.render()))}render(){this.model.visible||(0,o.undisplay)(this.el),super.render()}_paint(t,e,s,i,l){const{el:n}=this;(0,o.undisplay)(n),n.textContent=e,this.visuals.text.set_value(t),n.style.position=\"absolute\",n.style.left=`${s}px`,n.style.top=`${i}px`,n.style.color=t.fillStyle,n.style.webkitTextStroke=`1px ${t.strokeStyle}`,n.style.font=t.font,n.style.lineHeight=\"normal\",n.style.whiteSpace=\"pre\";const[a,r]=(()=>{switch(this.visuals.text.text_align.get_value()){case\"left\":return[\"left\",\"0%\"];case\"center\":return[\"center\",\"-50%\"];case\"right\":return[\"right\",\"-100%\"]}})(),[u,d]=(()=>{switch(this.visuals.text.text_baseline.get_value()){case\"top\":return[\"top\",\"0%\"];case\"middle\":default:return[\"center\",\"-50%\"];case\"bottom\":return[\"bottom\",\"-100%\"]}})();let c=`translate(${r}, ${d})`;0!=l&&(c+=`rotate(${l}rad)`),n.style.transformOrigin=`${a} ${u}`,n.style.transform=c,this.layout,this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),n.style.backgroundColor=t.fillStyle),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),n.style.borderStyle=t.getLineDash().length<2?\"solid\":\"dashed\",n.style.borderWidth=`${t.lineWidth}px`,n.style.borderColor=t.strokeStyle),(0,o.display)(n)}}s.TextAnnotationView=r,r.__name__=\"TextAnnotationView\";class u extends n.Annotation{constructor(t){super(t)}}s.TextAnnotation=u,u.__name__=\"TextAnnotation\"},\n function _(t,e,s,i,r){var o;i();const l=t(1),a=t(98),n=l.__importStar(t(78)),c=t(19),h=t(56),_=l.__importStar(t(17)),u=t(23),d=t(12);class y extends a.DataAnnotationView{constructor(){super(...arguments),this.els=[]}set_data(t){super.set_data(t),this.els.forEach((t=>(0,h.remove)(t))),this.els=[];for(const t of this.text){const t=(0,h.div)({style:{display:\"none\"}});this.plot_view.canvas_view.add_overlay(t),this.els.push(t)}}remove(){this.els.forEach((t=>(0,h.remove)(t))),this.els=[],super.remove()}_rerender(){this.render()}map_data(){const{x_scale:t,y_scale:e}=this.coordinates,s=null!=this.layout?this.layout:this.plot_view.frame;this.sx=(()=>{switch(this.model.x_units){case\"canvas\":return new u.ScreenArray(this._x);case\"screen\":return s.bbox.xview.v_compute(this._x);case\"data\":return t.v_compute(this._x)}})(),this.sy=(()=>{switch(this.model.y_units){case\"canvas\":return new u.ScreenArray(this._y);case\"screen\":return s.bbox.yview.v_compute(this._y);case\"data\":return e.v_compute(this._y)}})()}paint(){const{ctx:t}=this.layer;for(let e=0,s=this.text.length;e<s;e++){const s=this.x_offset.get(e),i=this.y_offset.get(e),r=this.sx[e]+s,o=this.sy[e]-i,l=this.angle.get(e),a=this.text.get(e);isFinite(r+o+l)&&null!=a&&this._paint(t,e,a,r,o,l)}}_paint(t,e,s,i,r,o){(0,d.assert)(e in this.els);const l=this.els[e];l.textContent=s,this.visuals.text.set_vectorize(t,e),l.style.position=\"absolute\",l.style.left=`${i}px`,l.style.top=`${r}px`,l.style.color=t.fillStyle,l.style.webkitTextStroke=`1px ${t.strokeStyle}`,l.style.font=t.font,l.style.lineHeight=\"normal\",l.style.whiteSpace=\"pre\";const[a,n]=(()=>{switch(this.visuals.text.text_align.get(e)){case\"left\":return[\"left\",\"0%\"];case\"center\":return[\"center\",\"-50%\"];case\"right\":return[\"right\",\"-100%\"]}})(),[c,_]=(()=>{switch(this.visuals.text.text_baseline.get(e)){case\"top\":return[\"top\",\"0%\"];case\"middle\":default:return[\"center\",\"-50%\"];case\"bottom\":return[\"bottom\",\"-100%\"]}})();let u=`translate(${n}, ${_})`;0!=o&&(u+=`rotate(${o}rad)`),l.style.transformOrigin=`${a} ${c}`,l.style.transform=u,this.layout,this.visuals.background_fill.doit&&(this.visuals.background_fill.set_vectorize(t,e),l.style.backgroundColor=t.fillStyle),this.visuals.border_line.doit&&(this.visuals.border_line.set_vectorize(t,e),l.style.borderStyle=t.getLineDash().length<2?\"solid\":\"dashed\",l.style.borderWidth=`${t.lineWidth}px`,l.style.borderColor=t.strokeStyle),(0,h.display)(l)}}s.HTMLLabelSetView=y,y.__name__=\"HTMLLabelSetView\";class p extends a.DataAnnotation{constructor(t){super(t)}}s.HTMLLabelSet=p,o=p,p.__name__=\"HTMLLabelSet\",o.prototype.default_view=y,o.mixins([n.TextVector,[\"border_\",n.LineVector],[\"background_\",n.FillVector]]),o.define((()=>({x:[_.XCoordinateSpec,{field:\"x\"}],y:[_.YCoordinateSpec,{field:\"y\"}],x_units:[c.CoordinateUnits,\"data\"],y_units:[c.CoordinateUnits,\"data\"],text:[_.NullStringSpec,{field:\"text\"}],angle:[_.AngleSpec,0],x_offset:[_.NumberSpec,{value:0}],y_offset:[_.NumberSpec,{value:0}]}))),o.override({background_fill_color:null,border_line_color:null})},\n function _(e,t,i,l,s){var o;l();const a=e(1),n=e(282),r=e(19),c=e(151),h=a.__importStar(e(78));class _ extends n.TextAnnotationView{_get_location(){const e=this.model.offset,t=this.model.standoff/2;let i,l;const{bbox:s}=this.layout;switch(this.panel.side){case\"above\":case\"below\":switch(this.model.vertical_align){case\"top\":l=s.top+t;break;case\"middle\":l=s.vcenter;break;case\"bottom\":l=s.bottom-t}switch(this.model.align){case\"left\":i=s.left+e;break;case\"center\":i=s.hcenter;break;case\"right\":i=s.right-e}break;case\"left\":switch(this.model.vertical_align){case\"top\":i=s.left+t;break;case\"middle\":i=s.hcenter;break;case\"bottom\":i=s.right-t}switch(this.model.align){case\"left\":l=s.bottom-e;break;case\"center\":l=s.vcenter;break;case\"right\":l=s.top+e}break;case\"right\":switch(this.model.vertical_align){case\"top\":i=s.right-t;break;case\"middle\":i=s.hcenter;break;case\"bottom\":i=s.left+t}switch(this.model.align){case\"left\":l=s.top+e;break;case\"center\":l=s.vcenter;break;case\"right\":l=s.bottom-e}}return[i,l]}_render(){const{text:e}=this.model;if(0==e.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[t,i]=this._get_location(),l=this.panel.get_label_angle_heuristic(\"parallel\");this._paint(this.layer.ctx,e,t,i,l)}_get_size(){const{text:e}=this.model,t=new c.TextBox({text:e});t.visuals=this.visuals.text.values();const{width:i,height:l}=t.size();return{width:i,height:0==l?0:2+l+this.model.standoff}}}i.HTMLTitleView=_,_.__name__=\"HTMLTitleView\";class d extends n.TextAnnotation{constructor(e){super(e)}}i.HTMLTitle=d,o=d,d.__name__=\"HTMLTitle\",o.prototype.default_view=_,o.mixins([h.Text,[\"border_\",h.Line],[\"background_\",h.Fill]]),o.define((({Number:e,String:t})=>({text:[t,\"\"],vertical_align:[r.VerticalAlign,\"bottom\"],align:[r.TextAlign,\"left\"],offset:[e,0],standoff:[e,10]}))),o.prototype._props.text_align.options.internal=!0,o.prototype._props.text_baseline.options.internal=!0,o.override({text_font_size:\"13px\",text_font_style:\"bold\",text_line_height:1,background_fill_color:null,border_line_color:null})},\n function _(e,t,u,n,S){n(),S(\"CustomJS\",e(286).CustomJS),S(\"OpenURL\",e(288).OpenURL),S(\"SetValue\",e(289).SetValue)},\n function _(t,e,s,n,c){var a;n();const r=t(287),u=t(9),o=t(38);class i extends r.Callback{constructor(t){super(t)}get names(){return(0,u.keys)(this.args)}get values(){return(0,u.values)(this.args)}get func(){const t=(0,o.use_strict)(this.code);return new Function(...this.names,\"cb_obj\",\"cb_data\",t)}execute(t,e={}){return this.func.apply(t,this.values.concat(t,e))}}s.CustomJS=i,a=i,i.__name__=\"CustomJS\",a.define((({Unknown:t,String:e,Dict:s})=>({args:[s(t),{}],code:[e,\"\"]})))},\n function _(c,a,l,n,s){n();const e=c(50);class o extends e.Model{constructor(c){super(c)}}l.Callback=o,o.__name__=\"Callback\"},\n function _(e,t,n,o,i){var s;o();const c=e(287),r=e(170),a=e(8);class d extends c.Callback{constructor(e){super(e)}navigate(e){this.same_tab?window.location.href=e:window.open(e)}execute(e,{source:t}){const n=e=>{const n=(0,r.replace_placeholders)(this.url,t,e,void 0,void 0,encodeURI);if(!(0,a.isString)(n))throw new Error(\"HTML output is not supported in this context\");this.navigate(n)},{selected:o}=t;for(const e of o.indices)n(e);for(const e of o.line_indices)n(e)}}n.OpenURL=d,s=d,d.__name__=\"OpenURL\",s.define((({Boolean:e,String:t})=>({url:[t,\"http://\"],same_tab:[e,!1]})))},\n function _(e,t,r,n,o){var a;n();const s=e(287),c=e(14),l=e(18);class u extends s.Callback{constructor(e){super(e)}execute(){const{obj:e,attr:t,value:r}=this;t in e.properties?e.setv({[t]:r}):l.logger.error(`${e.type}.${t} is not a property`)}}r.SetValue=u,a=u,u.__name__=\"SetValue\",a.define((({String:e,Unknown:t,Ref:r})=>({obj:[r(c.HasProps)],attr:[e],value:[t]})))},\n function _(a,n,e,r,s){r(),s(\"Canvas\",a(291).Canvas),s(\"CartesianFrame\",a(157).CartesianFrame)},\n function _(e,t,s,i,r){var a;i();const l=e(1),n=e(28),o=e(18),h=e(56),_=e(19),p=e(292),c=e(155),u=e(260),d=e(257),b=e(56),v=l.__importDefault(e(295));const w=(()=>{let t;return async()=>void 0!==t?t:t=await async function(){const t=document.createElement(\"canvas\"),s=t.getContext(\"webgl\",{premultipliedAlpha:!0});if(null!=s){const i=await(0,c.load_module)(Promise.resolve().then((()=>l.__importStar(e(504)))));if(null!=i){const e=i.get_regl(s);if(e.has_webgl)return{canvas:t,regl_wrapper:e};o.logger.trace(\"WebGL is supported, but not the required extensions\")}else o.logger.trace(\"WebGL is supported, but bokehjs(.min).js bundle is not available\")}else o.logger.trace(\"WebGL is not supported\");return null}()})();class g extends d.UIElementView{constructor(){super(...arguments),this.webgl=null,this._size=new b.InlineStyleSheet,this.plot_views=[]}initialize(){super.initialize(),this.underlays_el=(0,h.div)({class:\"bk-layer\"}),this.primary=this.create_layer(),this.overlays=this.create_layer(),this.overlays_el=(0,h.div)({class:\"bk-layer\"}),this.events_el=(0,h.div)({class:[\"bk-layer\",\"bk-events\"]}),this.ui_event_bus=new p.UIEventBus(this)}get layers(){return[this.underlays_el,this.primary,this.overlays,this.overlays_el,this.events_el]}async lazy_initialize(){if(await super.lazy_initialize(),\"webgl\"==this.model.output_backend&&(this.webgl=await w(),n.settings.force_webgl&&null==this.webgl))throw new Error(\"webgl is not available\")}remove(){this.ui_event_bus.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),v.default,this._size]}render(){super.render();const e=[this.underlays_el,this.primary.el,this.overlays.el,this.overlays_el,this.events_el];(0,h.append)(this.shadow_el,...e)}add_underlay(e){this.underlays_el.appendChild(e)}add_overlay(e){this.overlays_el.appendChild(e)}add_event(e){this.events_el.appendChild(e)}get pixel_ratio(){return this.primary.pixel_ratio}_update_bbox(){const e=super._update_bbox();if(e){const{width:e,height:t}=this.bbox;this._size.replace(`\\n .bk-layer {\\n width: ${e}px;\\n height: ${t}px;\\n }\\n `),this.primary.resize(e,t),this.overlays.resize(e,t)}return e}after_resize(){0==this.plot_views.length&&super.after_resize()}_after_resize(){super._after_resize();const{width:e,height:t}=this.bbox;this.primary.resize(e,t),this.overlays.resize(e,t)}resize(){this._update_bbox(),this._after_resize()}prepare_webgl(e){const{webgl:t}=this;if(null!=t){const{width:s,height:i}=this.bbox;t.canvas.width=this.pixel_ratio*s,t.canvas.height=this.pixel_ratio*i;const[r,a,l,n]=e,{xview:o,yview:h}=this.bbox,_=o.compute(r),p=h.compute(a+n),c=this.pixel_ratio;t.regl_wrapper.set_scissor(c*_,c*p,c*l,c*n),this._clear_webgl()}}blit_webgl(e){const{webgl:t}=this;if(null!=t){if(o.logger.debug(\"Blitting WebGL canvas\"),e.restore(),e.drawImage(t.canvas,0,0),e.save(),this.model.hidpi){const t=this.pixel_ratio;e.scale(t,t),e.translate(.5,.5)}this._clear_webgl()}}_clear_webgl(){const{webgl:e}=this;if(null!=e){const{regl_wrapper:t,canvas:s}=e;t.clear(s.width,s.height)}}compose(){const e=this.create_layer(),{width:t,height:s}=this.bbox;return e.resize(t,s),e.ctx.drawImage(this.primary.canvas,0,0),e.ctx.drawImage(this.overlays.canvas,0,0),e}create_layer(){const{output_backend:e,hidpi:t}=this.model;return new u.CanvasLayer(e,t)}to_blob(){return this.compose().to_blob()}}s.CanvasView=g,g.__name__=\"CanvasView\";class y extends d.UIElement{constructor(e){super(e)}}s.Canvas=y,a=y,y.__name__=\"Canvas\",a.prototype.default_view=g,a.define((({Boolean:e})=>({hidpi:[e,!0],output_backend:[_.OutputBackend,\"canvas\"]})))},\n function _(t,e,n,s,i){s();const r=t(1),_=r.__importDefault(t(293)),a=t(15),h=t(18),o=t(56),l=r.__importStar(t(52)),c=t(294),p=t(10),u=t(8),v=t(26);function d(t){return(0,u.isObject)(t)&&\"_move_start\"in t&&\"_move\"in t&&\"_move_end\"in t}function y(t){return(0,u.isObject)(t)&&\"_pan_start\"in t&&\"_pan\"in t&&\"_pan_end\"in t}function m(t){return(0,u.isObject)(t)&&\"_pinch_start\"in t&&\"_pinch\"in t&&\"_pinch_end\"in t}function g(t){return(0,u.isObject)(t)&&\"_rotate_start\"in t&&\"_rotate\"in t&&\"_rotate_end\"in t}n.is_Moveable=d,n.is_Pannable=y,n.is_Pinchable=m,n.is_Rotatable=g,n.is_Scrollable=function(t){return(0,u.isObject)(t)&&\"_scroll\"in t},n.is_Keyable=function(t){return(0,u.isObject)(t)&&\"_keydown\"in t&&\"_keyup\"in t},n.is_Tapable=function(t){return(0,u.isObject)(t)&&\"_tap\"in t};class w{get hit_area(){return this.canvas_view.events_el}constructor(t){this.pan_start=new a.Signal(this,\"pan:start\"),this.pan=new a.Signal(this,\"pan\"),this.pan_end=new a.Signal(this,\"pan:end\"),this.pinch_start=new a.Signal(this,\"pinch:start\"),this.pinch=new a.Signal(this,\"pinch\"),this.pinch_end=new a.Signal(this,\"pinch:end\"),this.rotate_start=new a.Signal(this,\"rotate:start\"),this.rotate=new a.Signal(this,\"rotate\"),this.rotate_end=new a.Signal(this,\"rotate:end\"),this.tap=new a.Signal(this,\"tap\"),this.doubletap=new a.Signal(this,\"doubletap\"),this.press=new a.Signal(this,\"press\"),this.pressup=new a.Signal(this,\"pressup\"),this.move_enter=new a.Signal(this,\"move:enter\"),this.move=new a.Signal(this,\"move\"),this.move_exit=new a.Signal(this,\"move:exit\"),this.scroll=new a.Signal(this,\"scroll\"),this.keydown=new a.Signal(this,\"keydown\"),this.keyup=new a.Signal(this,\"keyup\"),this._prev_move=null,this._curr_pan=null,this._curr_pinch=null,this._curr_rotate=null,this._current_pan_view=null,this._current_pinch_view=null,this._current_rotate_view=null,this._current_move_view=null,this.canvas_view=t,this.hammer=new _.default(this.hit_area,{cssProps:{},touchAction:\"auto\",inputClass:v.is_mobile?_.default.TouchMouseInput:_.default.PointerEventInput}),this._configure_hammerjs(),this.hit_area.addEventListener(\"mousemove\",(t=>this._mouse_move(t))),this.hit_area.addEventListener(\"mouseenter\",(t=>this._mouse_enter(t))),this.hit_area.addEventListener(\"mouseleave\",(t=>this._mouse_exit(t))),this.hit_area.addEventListener(\"contextmenu\",(t=>this._context_menu(t))),this.hit_area.addEventListener(\"wheel\",(t=>this._mouse_wheel(t))),document.addEventListener(\"keydown\",this),document.addEventListener(\"keyup\",this)}destroy(){this.hammer.destroy(),document.removeEventListener(\"keydown\",this),document.removeEventListener(\"keyup\",this)}handleEvent(t){\"keydown\"==t.type?this._key_down(t):\"keyup\"==t.type&&this._key_up(t)}_configure_hammerjs(){this.hammer.get(\"doubletap\").recognizeWith(\"tap\"),this.hammer.get(\"tap\").requireFailure(\"doubletap\"),this.hammer.get(\"doubletap\").dropRequireFailure(\"tap\"),this.hammer.on(\"doubletap\",(t=>this._doubletap(t))),this.hammer.on(\"tap\",(t=>this._tap(t))),this.hammer.on(\"press\",(t=>this._press(t))),this.hammer.on(\"pressup\",(t=>this._pressup(t))),this.hammer.get(\"pan\").set({direction:_.default.DIRECTION_ALL}),this.hammer.on(\"panstart\",(t=>this._pan_start(t))),this.hammer.on(\"pan\",(t=>this._pan(t))),this.hammer.on(\"panend\",(t=>this._pan_end(t))),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.on(\"pinchstart\",(t=>this._pinch_start(t))),this.hammer.on(\"pinch\",(t=>this._pinch(t))),this.hammer.on(\"pinchend\",(t=>this._pinch_end(t))),this.hammer.get(\"rotate\").set({enable:!0}),this.hammer.on(\"rotatestart\",(t=>this._rotate_start(t))),this.hammer.on(\"rotate\",(t=>this._rotate(t))),this.hammer.on(\"rotateend\",(t=>this._rotate_end(t)))}register_tool(t){let e=!0;for(const n of t.model.event_types)this._register_tool(t,n,e),e=!1}_register_tool(t,e,n=!0){const s=t,{id:i}=s.model,r=t=>e=>{e.id==i&&t(e.e)},_=t=>e=>{t(e.e)};switch(e){case\"pan\":null!=s._pan_start&&s.connect(this.pan_start,r(s._pan_start.bind(s))),null!=s._pan&&s.connect(this.pan,r(s._pan.bind(s))),null!=s._pan_end&&s.connect(this.pan_end,r(s._pan_end.bind(s)));break;case\"pinch\":null!=s._pinch_start&&s.connect(this.pinch_start,r(s._pinch_start.bind(s))),null!=s._pinch&&s.connect(this.pinch,r(s._pinch.bind(s))),null!=s._pinch_end&&s.connect(this.pinch_end,r(s._pinch_end.bind(s)));break;case\"rotate\":null!=s._rotate_start&&s.connect(this.rotate_start,r(s._rotate_start.bind(s))),null!=s._rotate&&s.connect(this.rotate,r(s._rotate.bind(s))),null!=s._rotate_end&&s.connect(this.rotate_end,r(s._rotate_end.bind(s)));break;case\"move\":null!=s._move_enter&&s.connect(this.move_enter,r(s._move_enter.bind(s))),null!=s._move&&s.connect(this.move,r(s._move.bind(s))),null!=s._move_exit&&s.connect(this.move_exit,r(s._move_exit.bind(s)));break;case\"tap\":null!=s._tap&&s.connect(this.tap,r(s._tap.bind(s)));case\"doubletap\":null!=s._doubletap&&s.connect(this.doubletap,r(s._doubletap.bind(s)));break;case\"press\":null!=s._press&&s.connect(this.press,r(s._press.bind(s)));break;case\"pressup\":null!=s._pressup&&s.connect(this.pressup,r(s._pressup.bind(s)));break;case\"scroll\":null!=s._scroll&&s.connect(this.scroll,r(s._scroll.bind(s)))}n&&(null!=s._keydown&&s.connect(this.keydown,_(s._keydown.bind(s))),null!=s._keyup&&s.connect(this.keyup,_(s._keyup.bind(s))),v.is_mobile&&null!=s._scroll&&\"pinch\"==e&&(h.logger.debug(\"Registering scroll on touch screen\"),s.connect(this.scroll,r(s._scroll.bind(s)))))}_hit_test_renderers(t,e,n){var s,i;const r=t.get_renderer_views();for(const t of(0,p.reversed)(r))if(null!==(i=null===(s=t.interactive_hit)||void 0===s?void 0:s.call(t,e,n))&&void 0!==i&&i)return t;return null}set_cursor(t=\"default\"){this.hit_area.style.cursor=t}_hit_test_frame(t,e,n){return t.frame.bbox.contains(e,n)}_hit_test_plot(t,e){for(const n of this.canvas_view.plot_views)if(n.bbox.relative().contains(t,e))return n;return null}_trigger(t,e,n){var s;if(!this.hit_area.isConnected)return;const{sx:i,sy:r}=e,_=this._hit_test_plot(i,r),a=t=>{const[n,s]=[i,r];return Object.assign(Object.assign({},e),{sx:n,sy:s})};if(\"panstart\"==e.type||\"pan\"==e.type||\"panend\"==e.type){let s;if(\"panstart\"==e.type&&null!=_?(this._curr_pan={plot_view:_},s=_):\"pan\"==e.type&&null!=this._curr_pan?s=this._curr_pan.plot_view:\"panend\"==e.type&&null!=this._curr_pan?(s=this._curr_pan.plot_view,this._curr_pan=null):s=null,null!=s){const e=a();this.__trigger(s,t,e,n)}}else if(\"pinchstart\"==e.type||\"pinch\"==e.type||\"pinchend\"==e.type){let s;if(\"pinchstart\"==e.type&&null!=_?(this._curr_pinch={plot_view:_},s=_):\"pinch\"==e.type&&null!=this._curr_pinch?s=this._curr_pinch.plot_view:\"pinchend\"==e.type&&null!=this._curr_pinch?(s=this._curr_pinch.plot_view,this._curr_pinch=null):s=null,null!=s){const e=a();this.__trigger(s,t,e,n)}}else if(\"rotatestart\"==e.type||\"rotate\"==e.type||\"rotateend\"==e.type){let s;if(\"rotatestart\"==e.type&&null!=_?(this._curr_rotate={plot_view:_},s=_):\"rotate\"==e.type&&null!=this._curr_rotate?s=this._curr_rotate.plot_view:\"rotateend\"==e.type&&null!=this._curr_rotate?(s=this._curr_rotate.plot_view,this._curr_rotate=null):s=null,null!=s){const e=a();this.__trigger(s,t,e,n)}}else if(\"mouseenter\"==e.type||\"mousemove\"==e.type||\"mouseleave\"==e.type){const h=null===(s=this._prev_move)||void 0===s?void 0:s.plot_view;if(null!=h&&(\"mouseleave\"==e.type||h!=_)){const{sx:t,sy:e}=a();this.__trigger(h,this.move_exit,{type:\"mouseleave\",sx:t,sy:e,shift_key:!1,ctrl_key:!1,alt_key:!1},n)}if(null!=_&&(\"mouseenter\"==e.type||h!=_)){const{sx:t,sy:e}=a();this.__trigger(_,this.move_enter,{type:\"mouseenter\",sx:t,sy:e,shift_key:!1,ctrl_key:!1,alt_key:!1},n)}if(null!=_&&\"mousemove\"==e.type){const e=a();this.__trigger(_,t,e,n)}this._prev_move={sx:i,sy:r,plot_view:_}}else if(null!=_){const e=a();this.__trigger(_,t,e,n)}}__trigger(t,e,n,s){var i,r,_,a,h,o;const l=t.model.toolbar.gestures,c=e.name,u=c.split(\":\")[0],w=this._hit_test_renderers(t,n.sx,n.sy);if(\"pan\"==u){if(null!=this._current_pan_view)return\"pan\"==c?this._current_pan_view._pan(n):\"pan:end\"==c&&(this._current_pan_view._pan_end(n),this._current_pan_view=null),void s.preventDefault();if(null!=w&&\"pan:start\"==c&&y(w)&&w._pan_start(n))return this._current_pan_view=w,void s.preventDefault()}else if(\"pinch\"==u){if(null!=this._current_pinch_view)return\"pinch\"==c?this._current_pinch_view._pinch(n):\"pinch:end\"==c&&(this._current_pinch_view._pinch_end(n),this._current_pinch_view=null),void s.preventDefault();if(null!=w&&\"pinch:start\"==c&&m(w)&&w._pinch_start(n))return this._current_pinch_view=w,void s.preventDefault()}else if(\"rotate\"==u){if(null!=this._current_rotate_view)return\"rotate\"==c?this._current_rotate_view._rotate(n):\"rotate:end\"==c&&(this._current_rotate_view._rotate_end(n),this._current_rotate_view=null),void s.preventDefault();if(null!=w&&\"rotate:start\"==c&&g(w)&&w._rotate_start(n))return this._current_rotate_view=w,void s.preventDefault()}else\"move\"==u&&(this._current_move_view==w?null===(i=this._current_move_view)||void 0===i||i._move(n):(null===(r=this._current_move_view)||void 0===r||r._move_end(n),this._current_move_view=null,null!=w&&d(w)&&w._move_start(n)&&(this._current_move_view=w)));switch(u){case\"move\":{const s=l.move.active;null!=s&&this.trigger(e,n,s.id);const i=t.model.toolbar.inspectors.filter((t=>t.active));let r=\"default\";null!=w?(r=null!==(_=w.cursor(n.sx,n.sy))&&void 0!==_?_:r,w.model.propagate_hover||(0,p.is_empty)(i)||(e=this.move_exit)):this._hit_test_frame(t,n.sx,n.sy)&&((0,p.is_empty)(i)||(r=\"crosshair\")),this.set_cursor(r),i.map((t=>this.trigger(e,n,t.id)));break}case\"tap\":{const i=null!==(a=s.path)&&void 0!==a?a:s.composedPath();if(0!=i.length&&i[0]!=this.hit_area)return;if(null===(h=null==w?void 0:w.on_hit)||void 0===h||h.call(w,n.sx,n.sy),this._hit_test_frame(t,n.sx,n.sy)){const t=l.tap.active;null!=t&&this.trigger(e,n,t.id)}break}case\"doubletap\":if(this._hit_test_frame(t,n.sx,n.sy)){const t=null!==(o=l.doubletap.active)&&void 0!==o?o:l.tap.active;null!=t&&this.trigger(e,n,t.id)}break;case\"scroll\":{const t=l[v.is_mobile?\"pinch\":\"scroll\"].active;null!=t&&(s.preventDefault(),s.stopPropagation(),this.trigger(e,n,t.id));break}case\"pan\":{const t=l.pan.active;null!=t&&(s.preventDefault(),this.trigger(e,n,t.id));break}default:{const t=l[u].active;null!=t&&this.trigger(e,n,t.id)}}this._trigger_bokeh_event(t,n)}trigger(t,e,n=null){t.emit({id:n,e})}_trigger_bokeh_event(t,e){const n=(()=>{const{sx:n,sy:s}=e,i=t.frame.x_scale.invert(n),r=t.frame.y_scale.invert(s);switch(e.type){case\"wheel\":return new l.MouseWheel(n,s,i,r,e.delta);case\"mousemove\":return new l.MouseMove(n,s,i,r);case\"mouseenter\":return new l.MouseEnter(n,s,i,r);case\"mouseleave\":return new l.MouseLeave(n,s,i,r);case\"tap\":return new l.Tap(n,s,i,r);case\"doubletap\":return new l.DoubleTap(n,s,i,r);case\"press\":return new l.Press(n,s,i,r);case\"pressup\":return new l.PressUp(n,s,i,r);case\"pan\":return new l.Pan(n,s,i,r,e.dx,e.dy);case\"panstart\":return new l.PanStart(n,s,i,r);case\"panend\":return new l.PanEnd(n,s,i,r);case\"pinch\":return new l.Pinch(n,s,i,r,e.scale);case\"pinchstart\":return new l.PinchStart(n,s,i,r);case\"pinchend\":return new l.PinchEnd(n,s,i,r);case\"rotate\":return new l.Rotate(n,s,i,r,e.rotation);case\"rotatestart\":return new l.RotateStart(n,s,i,r);case\"rotateend\":return new l.RotateEnd(n,s,i,r);default:return}})();null!=n&&t.model.trigger_event(n)}_get_sxy(t){const{pageX:e,pageY:n}=function(t){return\"undefined\"!=typeof TouchEvent&&t instanceof TouchEvent}(t)?(0!=t.touches.length?t.touches:t.changedTouches)[0]:t,{left:s,top:i}=(0,o.offset_bbox)(this.hit_area);return{sx:e-s,sy:n-i}}_pan_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{dx:t.deltaX,dy:t.deltaY,shift_key:t.srcEvent.shiftKey,ctrl_key:t.srcEvent.ctrlKey,alt_key:t.srcEvent.altKey})}_pinch_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{scale:t.scale,shift_key:t.srcEvent.shiftKey,ctrl_key:t.srcEvent.ctrlKey,alt_key:t.srcEvent.altKey})}_rotate_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{rotation:t.rotation,shift_key:t.srcEvent.shiftKey,ctrl_key:t.srcEvent.ctrlKey,alt_key:t.srcEvent.altKey})}_tap_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t.srcEvent)),{shift_key:t.srcEvent.shiftKey,ctrl_key:t.srcEvent.ctrlKey,alt_key:t.srcEvent.altKey})}_move_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t)),{shift_key:t.shiftKey,ctrl_key:t.ctrlKey,alt_key:t.altKey})}_scroll_event(t){return Object.assign(Object.assign({type:t.type},this._get_sxy(t)),{delta:(0,c.getDeltaY)(t),shift_key:t.shiftKey,ctrl_key:t.ctrlKey,alt_key:t.altKey})}_key_event(t){return{type:t.type,key:t.key,shift_key:t.shiftKey,ctrl_key:t.ctrlKey,alt_key:t.altKey}}_pan_start(t){const e=this._pan_event(t);e.sx-=t.deltaX,e.sy-=t.deltaY,this._trigger(this.pan_start,e,t.srcEvent)}_pan(t){this._trigger(this.pan,this._pan_event(t),t.srcEvent)}_pan_end(t){this._trigger(this.pan_end,this._pan_event(t),t.srcEvent)}_pinch_start(t){this._trigger(this.pinch_start,this._pinch_event(t),t.srcEvent)}_pinch(t){this._trigger(this.pinch,this._pinch_event(t),t.srcEvent)}_pinch_end(t){this._trigger(this.pinch_end,this._pinch_event(t),t.srcEvent)}_rotate_start(t){this._trigger(this.rotate_start,this._rotate_event(t),t.srcEvent)}_rotate(t){this._trigger(this.rotate,this._rotate_event(t),t.srcEvent)}_rotate_end(t){this._trigger(this.rotate_end,this._rotate_event(t),t.srcEvent)}_tap(t){this._trigger(this.tap,this._tap_event(t),t.srcEvent)}_doubletap(t){this._trigger(this.doubletap,this._tap_event(t),t.srcEvent)}_press(t){this._trigger(this.press,this._tap_event(t),t.srcEvent)}_pressup(t){this._trigger(this.pressup,this._tap_event(t),t.srcEvent)}_mouse_enter(t){this._trigger(this.move_enter,this._move_event(t),t)}_mouse_move(t){this._trigger(this.move,this._move_event(t),t)}_mouse_exit(t){this._trigger(this.move_exit,this._move_event(t),t)}_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t),t)}_context_menu(t){}_key_down(t){this.trigger(this.keydown,this._key_event(t))}_key_up(t){this.trigger(this.keyup,this._key_event(t))}}n.UIEventBus=w,w.__name__=\"UIEventBus\"},\n function _(t,e,i,n,r){\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,i,n,r){\"use strict\";var s,o=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"],a=i.createElement(\"div\"),h=\"function\",u=Math.round,c=Math.abs,l=Date.now;function p(t,e,i){return setTimeout(y(t,i),e)}function f(t,e,i){return!!Array.isArray(t)&&(v(t,i[e],i),!0)}function v(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==r)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function d(e,i,n){var r=\"DEPRECATED METHOD: \"+i+\"\\n\"+n+\" AT \\n\";return function(){var i=new Error(\"get-stack-trace\"),n=i&&i.stack?i.stack.replace(/^[^\\(]+?[\\n$]/gm,\"\").replace(/^\\s+at\\s+/gm,\"\").replace(/^Object.<anonymous>\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,n),e.apply(this,arguments)}}s=\"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),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==r&&null!==n)for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}:Object.assign;var m=d((function(t,e,i){for(var n=Object.keys(e),s=0;s<n.length;)(!i||i&&t[n[s]]===r)&&(t[n[s]]=e[n[s]]),s++;return t}),\"extend\",\"Use `assign`.\"),g=d((function(t,e){return m(t,e,!0)}),\"merge\",\"Use `assign`.\");function T(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&s(n,i)}function y(t,e){return function(){return t.apply(e,arguments)}}function E(t,e){return typeof t==h?t.apply(e&&e[0]||r,e):t}function I(t,e){return t===r?e:t}function A(t,e,i){v(b(e),(function(e){t.addEventListener(e,i,!1)}))}function _(t,e,i){v(b(e),(function(e){t.removeEventListener(e,i,!1)}))}function C(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function S(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\\s+/g)}function P(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function D(t){return Array.prototype.slice.call(t,0)}function x(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];P(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function w(t,e){for(var i,n,s=e[0].toUpperCase()+e.slice(1),a=0;a<o.length;){if((n=(i=o[a])?i+s:e)in t)return n;a++}return r}var O=1;function R(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}var M=\"ontouchstart\"in t,z=w(t,\"PointerEvent\")!==r,N=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),X=\"touch\",Y=\"mouse\",F=25,W=1,q=2,k=4,H=8,L=1,U=2,V=4,j=8,G=16,Z=U|V,B=j|G,$=Z|B,J=[\"x\",\"y\"],K=[\"clientX\",\"clientY\"];function Q(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){E(t.options.enable,[t])&&i.handler(e)},this.init()}function tt(t,e,i){var n=i.pointers.length,s=i.changedPointers.length,o=e&W&&n-s==0,a=e&(k|H)&&n-s==0;i.isFirst=!!o,i.isFinal=!!a,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,s=n.length;i.firstInput||(i.firstInput=et(e));s>1&&!i.firstMultiple?i.firstMultiple=et(e):1===s&&(i.firstMultiple=!1);var o=i.firstInput,a=i.firstMultiple,h=a?a.center:o.center,u=e.center=it(n);e.timeStamp=l(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=ot(h,u),e.distance=st(h,u),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};e.eventType!==W&&s.eventType!==k||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=rt(e.deltaX,e.deltaY);var p=nt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=c(p.x)>c(p.y)?p.x:p.y,e.scale=a?(f=a.pointers,v=n,st(v[0],v[1],K)/st(f[0],f[1],K)):1,e.rotation=a?function(t,e){return ot(e[1],e[0],K)+ot(t[1],t[0],K)}(a.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,s,o,a=t.lastInterval||e,h=e.timeStamp-a.timeStamp;if(e.eventType!=H&&(h>F||a.velocity===r)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,p=nt(h,u,l);n=p.x,s=p.y,i=c(p.x)>c(p.y)?p.x:p.y,o=rt(u,l),t.lastInterval=e}else i=a.velocity,n=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=s,e.direction=o}(i,e);var f,v;var d=t.element;C(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,i),t.emit(\"hammer.input\",i),t.recognize(i),t.session.prevInput=i}function et(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:u(t.pointers[i].clientX),clientY:u(t.pointers[i].clientY)},i++;return{timeStamp:l(),pointers:e,center:it(e),deltaX:t.deltaX,deltaY:t.deltaY}}function it(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:u(i/e),y:u(n/e)}}function nt(t,e,i){return{x:e/t||0,y:i/t||0}}function rt(t,e){return t===e?L:c(t)>=c(e)?t<0?U:V:e<0?j:G}function st(t,e,i){i||(i=J);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function ot(t,e,i){i||(i=J);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}Q.prototype={handler:function(){},init:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(R(this.element),this.evWin,this.domHandler)}};var at={mousedown:W,mousemove:q,mouseup:k},ht=\"mousedown\",ut=\"mousemove mouseup\";function ct(){this.evEl=ht,this.evWin=ut,this.pressed=!1,Q.apply(this,arguments)}T(ct,Q,{handler:function(t){var e=at[t.type];e&W&&0===t.button&&(this.pressed=!0),e&q&&1!==t.which&&(e=k),this.pressed&&(e&k&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Y,srcEvent:t}))}});var lt={pointerdown:W,pointermove:q,pointerup:k,pointercancel:H,pointerout:H},pt={2:X,3:\"pen\",4:Y,5:\"kinect\"},ft=\"pointerdown\",vt=\"pointermove pointerup pointercancel\";function dt(){this.evEl=ft,this.evWin=vt,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ft=\"MSPointerDown\",vt=\"MSPointerMove MSPointerUp MSPointerCancel\"),T(dt,Q,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace(\"ms\",\"\"),r=lt[n],s=pt[t.pointerType]||t.pointerType,o=s==X,a=P(e,t.pointerId,\"pointerId\");r&W&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):r&(k|H)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))}});var mt={touchstart:W,touchmove:q,touchend:k,touchcancel:H},gt=\"touchstart\",Tt=\"touchstart touchmove touchend touchcancel\";function yt(){this.evTarget=gt,this.evWin=Tt,this.started=!1,Q.apply(this,arguments)}function Et(t,e){var i=D(t.touches),n=D(t.changedTouches);return e&(k|H)&&(i=x(i.concat(n),\"identifier\",!0)),[i,n]}T(yt,Q,{handler:function(t){var e=mt[t.type];if(e===W&&(this.started=!0),this.started){var i=Et.call(this,t,e);e&(k|H)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:X,srcEvent:t})}}});var It={touchstart:W,touchmove:q,touchend:k,touchcancel:H},At=\"touchstart touchmove touchend touchcancel\";function _t(){this.evTarget=At,this.targetIds={},Q.apply(this,arguments)}function Ct(t,e){var i=D(t.touches),n=this.targetIds;if(e&(W|q)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=D(t.changedTouches),a=[],h=this.target;if(s=i.filter((function(t){return C(t.target,h)})),e===W)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),e&(k|H)&&delete n[o[r].identifier],r++;return a.length?[x(s.concat(a),\"identifier\",!0),a]:void 0}T(_t,Q,{handler:function(t){var e=It[t.type],i=Ct.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:X,srcEvent:t})}});var St=2500,bt=25;function Pt(){Q.apply(this,arguments);var t=y(this.handler,this);this.touch=new _t(this.manager,t),this.mouse=new ct(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Dt(t,e){t&W?(this.primaryTouch=e.changedPointers[0].identifier,xt.call(this,e)):t&(k|H)&&xt.call(this,e)}function xt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),St)}}function wt(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],s=Math.abs(e-r.x),o=Math.abs(i-r.y);if(s<=bt&&o<=bt)return!0}return!1}T(Pt,Q,{handler:function(t,e,i){var n=i.pointerType==X,r=i.pointerType==Y;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)Dt.call(this,e,i);else if(r&&wt.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ot=w(a.style,\"touchAction\"),Rt=Ot!==r,Mt=\"compute\",zt=\"auto\",Nt=\"manipulation\",Xt=\"none\",Yt=\"pan-x\",Ft=\"pan-y\",Wt=function(){if(!Rt)return!1;var e={},i=t.CSS&&t.CSS.supports;return[\"auto\",\"manipulation\",\"pan-y\",\"pan-x\",\"pan-x pan-y\",\"none\"].forEach((function(n){e[n]=!i||t.CSS.supports(\"touch-action\",n)})),e}();function qt(t,e){this.manager=t,this.set(e)}qt.prototype={set:function(t){t==Mt&&(t=this.compute()),Rt&&this.manager.element.style&&Wt[t]&&(this.manager.element.style[Ot]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,(function(e){E(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(S(t,Xt))return Xt;var e=S(t,Yt),i=S(t,Ft);if(e&&i)return Xt;if(e||i)return e?Yt:Ft;if(S(t,Nt))return Nt;return zt}(t.join(\" \"))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=S(n,Xt)&&!Wt[Xt],s=S(n,Ft)&&!Wt[Ft],o=S(n,Yt)&&!Wt[Yt];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&i&Z||o&&i&B?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var kt=1,Ht=2,Lt=4,Ut=8,Vt=Ut,jt=16,Gt=32;function Zt(t){this.options=s({},this.defaults,t||{}),this.id=O++,this.manager=null,this.options.enable=I(this.options.enable,!0),this.state=kt,this.simultaneous={},this.requireFail=[]}function Bt(t){return t&jt?\"cancel\":t&Ut?\"end\":t&Lt?\"move\":t&Ht?\"start\":\"\"}function $t(t){return t==G?\"down\":t==j?\"up\":t==U?\"left\":t==V?\"right\":\"\"}function Jt(t,e){var i=e.manager;return i?i.get(t):t}function Kt(){Zt.apply(this,arguments)}function Qt(){Kt.apply(this,arguments),this.pX=null,this.pY=null}function te(){Kt.apply(this,arguments)}function ee(){Zt.apply(this,arguments),this._timer=null,this._input=null}function ie(){Kt.apply(this,arguments)}function ne(){Kt.apply(this,arguments)}function re(){Zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function se(t,e){return(e=e||{}).recognizers=I(e.recognizers,se.defaults.preset),new oe(t,e)}Zt.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,\"recognizeWith\",this))return this;var e=this.simultaneous;return e[(t=Jt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,\"dropRecognizeWith\",this)||(t=Jt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(f(t,\"requireFailure\",this))return this;var e=this.requireFail;return-1===P(e,t=Jt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,\"dropRequireFailure\",this))return this;t=Jt(t,this);var e=P(this.requireFail,t);return e>-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,i=this.state;function n(i){e.manager.emit(i,t)}i<Ut&&n(e.options.event+Bt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=Ut&&n(e.options.event+Bt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Gt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Gt|kt)))return!1;t++}return!0},recognize:function(t){var e=s({},t);if(!E(this.options.enable,[this,e]))return this.reset(),void(this.state=Gt);this.state&(Vt|jt|Gt)&&(this.state=kt),this.state=this.process(e),this.state&(Ht|Lt|Ut|jt)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},T(Kt,Zt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(Ht|Lt),r=this.attrTest(t);return n&&(i&H||!r)?e|jt:n||r?i&k?e|Ut:e&Ht?e|Lt:Ht:Gt}}),T(Qt,Kt,{defaults:{event:\"pan\",threshold:10,pointers:1,direction:$},getTouchAction:function(){var t=this.options.direction,e=[];return t&Z&&e.push(Ft),t&B&&e.push(Yt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&Z?(r=0===s?L:s<0?U:V,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?L:o<0?j:G,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return Kt.prototype.attrTest.call(this,t)&&(this.state&Ht||!(this.state&Ht)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=$t(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),T(te,Kt,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Ht)},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)}}),T(ee,Zt,{defaults:{event:\"press\",pointers:1,time:251,threshold:9},getTouchAction:function(){return[zt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(k|H)&&!r)this.reset();else if(t.eventType&W)this.reset(),this._timer=p((function(){this.state=Vt,this.tryEmit()}),e.time,this);else if(t.eventType&k)return Vt;return Gt},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Vt&&(t&&t.eventType&k?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}}),T(ie,Kt,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Ht)}}),T(ne,Kt,{defaults:{event:\"swipe\",threshold:10,velocity:.3,direction:Z|B,pointers:1},getTouchAction:function(){return Qt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Z|B)?e=t.overallVelocity:i&Z?e=t.overallVelocityX:i&B&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(e)>this.options.velocity&&t.eventType&k},emit:function(t){var e=$t(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),T(re,Zt,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Nt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&W&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=k)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||st(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=Vt,this.tryEmit()}),e.interval,this),Ht):Vt}return Gt},failTimeout:function(){return this._timer=p((function(){this.state=Gt}),this.options.interval,this),Gt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Vt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),se.VERSION=\"2.0.7\",se.defaults={domEvents:!1,touchAction:Mt,enable:!0,inputTarget:null,inputClass:null,preset:[[ie,{enable:!1}],[te,{enable:!1},[\"rotate\"]],[ne,{direction:Z}],[Qt,{direction:Z},[\"swipe\"]],[re],[re,{event:\"doubletap\",taps:2},[\"tap\"]],[ee]],cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}};function oe(t,e){var i;this.options=s({},se.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(z?dt:N?_t:M?Pt:ct))(i,tt),this.touchAction=new qt(this,this.options.touchAction),ae(this,!0),v(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ae(t,e){var i,n=t.element;n.style&&(v(t.options.cssProps,(function(r,s){i=w(n.style,s),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||\"\"})),e||(t.oldCssProps={}))}oe.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Vt)&&(r=e.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(Ht|Lt|Ut)&&(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof Zt)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(f(t,\"add\",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,\"remove\",this))return this;if(t=this.get(t)){var e=this.recognizers,i=P(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==r&&e!==r){var i=this.handlers;return v(b(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==r){var i=this.handlers;return v(b(t),(function(t){e?i[t]&&i[t].splice(P(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent(\"Event\");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&ae(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(se,{INPUT_START:W,INPUT_MOVE:q,INPUT_END:k,INPUT_CANCEL:H,STATE_POSSIBLE:kt,STATE_BEGAN:Ht,STATE_CHANGED:Lt,STATE_ENDED:Ut,STATE_RECOGNIZED:Vt,STATE_CANCELLED:jt,STATE_FAILED:Gt,DIRECTION_NONE:L,DIRECTION_LEFT:U,DIRECTION_RIGHT:V,DIRECTION_UP:j,DIRECTION_DOWN:G,DIRECTION_HORIZONTAL:Z,DIRECTION_VERTICAL:B,DIRECTION_ALL:$,Manager:oe,Input:Q,TouchAction:qt,TouchInput:_t,MouseInput:ct,PointerEventInput:dt,TouchMouseInput:Pt,SingleTouchInput:yt,Recognizer:Zt,AttrRecognizer:Kt,Tap:re,Pan:Qt,Swipe:ne,Pinch:te,Rotate:ie,Press:ee,on:A,off:_,each:v,merge:g,extend:m,assign:s,inherit:T,bindFn:y,prefixed:w}),(void 0!==t?t:\"undefined\"!=typeof self?self:{}).Hammer=se,\"function\"==typeof define&&define.amd?define((function(){return se})):void 0!==e&&e.exports?e.exports=se:t.Hammer=se}(window,document)},\n function _(t,e,n,l,o){\n /*!\n * jQuery Mousewheel 3.1.13\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n */\n function a(t){const e=getComputedStyle(t).fontSize,n=parseInt(e,10);return isNaN(n)?null:n}l(),n.getDeltaY=function(t){let e=-t.deltaY;if(t.target instanceof HTMLElement)switch(t.deltaMode){case t.DOM_DELTA_LINE:e*=(n=t.target,null!==(i=null!==(o=a(null!==(l=n.offsetParent)&&void 0!==l?l:document.body))&&void 0!==o?o:a(n))&&void 0!==i?i:16);break;case t.DOM_DELTA_PAGE:e*=function(t){return t.clientHeight}(t.target)}var n,l,o,i;return e}},\n function _(e,t,n,o,a){o(),n.layer=\"bk-layer\",n.events=\"bk-events\",n.default=\".bk-layer{position:absolute;top:0;left:0;width:100%;height:100%;}.bk-layer.bk-events{user-select:none;-webkit-user-select:none;touch-action:auto;-webkit-user-drag:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);}\"},\n function _(n,i,o,a,p){a(),p(\"CoordinateMapping\",n(84).CoordinateMapping)},\n function _(m,o,n,r,a){r(),a(\"Expression\",m(298).Expression),a(\"CustomJSExpr\",m(299).CustomJSExpr),a(\"Stack\",m(300).Stack),a(\"CumSum\",m(301).CumSum),a(\"ScalarExpression\",m(298).ScalarExpression),a(\"Minimum\",m(302).Minimum),a(\"Maximum\",m(303).Maximum);var s=m(304);a(\"XComponent\",s.XComponent),a(\"YComponent\",s.YComponent),a(\"PolarTransform\",m(305).PolarTransform)},\n function _(e,t,s,i,r){i();const n=e(50);class _ extends n.Model{constructor(e){super(e)}initialize(){super.initialize(),this._result=new Map}v_compute(e){let t=this._result.get(e);return(void 0===t||e.changed_for(this))&&(t=this._v_compute(e),this._result.set(e,t)),t}}s.Expression=_,_.__name__=\"Expression\";class o extends n.Model{constructor(e){super(e)}initialize(){super.initialize(),this._result=new Map}compute(e){let t=this._result.get(e);return(void 0===t||e.changed_for(this))&&(t=this._compute(e),this._result.set(e,t)),t}}s.ScalarExpression=o,o.__name__=\"ScalarExpression\"},\n function _(e,s,n,t,r){var o;t();const a=e(14),c=e(298),i=e(23),u=e(10),l=e(9),h=e(38),g=e(8);class v extends c.Expression{constructor(e){super(e)}connect_signals(){super.connect_signals();for(const e of(0,l.values)(this.args))e instanceof a.HasProps&&e.change.connect((()=>{this._result.clear(),this.change.emit()}))}get names(){return(0,l.keys)(this.args)}get values(){return(0,l.values)(this.args)}get func(){const e=(0,h.use_strict)(this.code);return new i.GeneratorFunction(...this.names,e)}_v_compute(e){var s,n;const t=this.func.apply(e,this.values);let r=t.next();if(null!==(s=r.done)&&void 0!==s&&s&&void 0!==r.value){const{value:s}=r;return(0,g.isArray)(s)||(0,g.isTypedArray)(s)?s:(0,g.isIterable)(s)?[...s]:(0,u.repeat)(s,e.length)}{const e=[];do{e.push(r.value),r=t.next()}while(null===(n=r.done)||void 0===n||!n);return e}}}n.CustomJSExpr=v,o=v,v.__name__=\"CustomJSExpr\",o.define((({Unknown:e,String:s,Dict:n})=>({args:[n(e),{}],code:[s,\"\"]})))},\n function _(t,n,e,o,r){var s;o();const c=t(298),a=t(9);class i extends c.Expression{constructor(t){super(t)}_v_compute(t){var n;const e=null!==(n=t.get_length())&&void 0!==n?n:0,o=new Float64Array(e);for(const n of this.fields){const r=(0,a.dict)(t.data).get(n);if(null!=r){const t=Math.min(e,r.length);for(let n=0;n<t;n++)o[n]+=r[n]}}return o}}e.Stack=i,s=i,i.__name__=\"Stack\",s.define((({String:t,Array:n})=>({fields:[n(t),[]]})))},\n function _(e,n,t,o,r){var i;o();const l=e(298);class u extends l.Expression{constructor(e){super(e)}_v_compute(e){var n;const t=new Float64Array(null!==(n=e.get_length())&&void 0!==n?n:0),o=e.data[this.field],r=this.include_zero?1:0;t[0]=this.include_zero?0:o[0];for(let e=1;e<t.length;e++)t[e]=t[e-1]+o[e-r];return t}}t.CumSum=u,i=u,u.__name__=\"CumSum\",i.define((({Boolean:e,String:n})=>({field:[n],include_zero:[e,!1]})))},\n function _(i,n,t,e,a){var r;e();const s=i(298),c=i(9),m=i(10);class u extends s.ScalarExpression{constructor(i){super(i)}_compute(i){var n;const t=null!==(n=(0,c.dict)(i.data).get(this.field))&&void 0!==n?n:[];return Math.min(this.initial,(0,m.min)(t))}}t.Minimum=u,r=u,u.__name__=\"Minimum\",r.define((({Number:i,String:n})=>({field:[n],initial:[i,1/0]})))},\n function _(i,t,a,n,e){var r;n();const s=i(298),c=i(9),m=i(10);class u extends s.ScalarExpression{constructor(i){super(i)}_compute(i){var t;const a=null!==(t=(0,c.dict)(i.data).get(this.field))&&void 0!==t?t:[];return Math.max(this.initial,(0,m.max)(a))}}a.Maximum=u,r=u,u.__name__=\"Maximum\",r.define((({Number:i,String:t})=>({field:[t],initial:[i,-1/0]})))},\n function _(n,e,t,o,r){var s;o();const _=n(298);class m extends _.Expression{constructor(n){super(n)}get x(){return new c({transform:this})}get y(){return new u({transform:this})}}t.CoordinateTransform=m,m.__name__=\"CoordinateTransform\";class a extends _.Expression{constructor(n){super(n)}}t.XYComponent=a,s=a,a.__name__=\"XYComponent\",s.define((({Ref:n})=>({transform:[n(m)]})));class c extends a{constructor(n){super(n)}_v_compute(n){return this.transform.v_compute(n).x}}t.XComponent=c,c.__name__=\"XComponent\";class u extends a{constructor(n){super(n)}_v_compute(n){return this.transform.v_compute(n).y}}t.YComponent=u,u.__name__=\"YComponent\"},\n function _(r,t,e,n,o){var i;n();const a=r(1),s=r(304),c=r(19),l=a.__importStar(r(17));class d extends s.CoordinateTransform{constructor(r){super(r)}_v_compute(r){const t=this.properties.radius.uniform(r),e=this.properties.angle.uniform(r),n=\"anticlock\"==this.direction?-1:1,o=Math.min(t.length,e.length),i=new Float64Array(o),a=new Float64Array(o);for(let r=0;r<o;r++){const o=t.get(r),s=e.get(r)*n;i[r]=o*Math.cos(s),a[r]=o*Math.sin(s)}return{x:i,y:a}}}e.PolarTransform=d,i=d,d.__name__=\"PolarTransform\",i.define((({})=>({radius:[l.DistanceSpec,{field:\"radius\"}],angle:[l.AngleSpec,{field:\"angle\"}],direction:[c.Direction,\"anticlock\"]})))},\n function _(e,i,r,t,l){t(),l(\"BooleanFilter\",e(307).BooleanFilter),l(\"CustomJSFilter\",e(308).CustomJSFilter),l(\"Filter\",e(216).Filter),l(\"GroupFilter\",e(309).GroupFilter),l(\"IndexFilter\",e(310).IndexFilter),l(\"AllIndices\",e(217).AllIndices),l(\"InversionFilter\",e(311).InversionFilter),l(\"IntersectionFilter\",e(218).IntersectionFilter),l(\"UnionFilter\",e(312).UnionFilter),l(\"DifferenceFilter\",e(313).DifferenceFilter),l(\"SymmetricDifferenceFilter\",e(314).SymmetricDifferenceFilter)},\n function _(e,l,n,o,s){var t;o();const a=e(216),r=e(23);class i extends a.Filter{constructor(e){super(e)}compute_indices(e){var l;const n=null!==(l=e.get_length())&&void 0!==l?l:1,{booleans:o}=this;return null==o?r.Indices.all_set(n):r.Indices.from_booleans(n,o)}}n.BooleanFilter=i,t=i,i.__name__=\"BooleanFilter\",t.define((({Boolean:e,Array:l,Nullable:n})=>({booleans:[n(l(e)),null]})))},\n function _(e,n,r,s,t){var i;s();const o=e(216),u=e(23),c=e(9),a=e(8),l=e(38);class f extends o.Filter{constructor(e){super(e)}get names(){return(0,c.keys)(this.args)}get values(){return(0,c.values)(this.args)}get func(){const e=(0,l.use_strict)(this.code);return new Function(...this.names,\"source\",e)}compute_indices(e){var n;const r=null!==(n=e.get_length())&&void 0!==n?n:1,s=this.func(...this.values,e);if(null==s)return u.Indices.all_set(r);if((0,a.isArrayOf)(s,a.isInteger))return u.Indices.from_indices(r,s);if((0,a.isArrayOf)(s,a.isBoolean))return u.Indices.from_booleans(r,s);throw new Error(`expect an array of integers or booleans, or null, got ${s}`)}}r.CustomJSFilter=f,i=f,f.__name__=\"CustomJSFilter\",i.define((({Unknown:e,String:n,Dict:r})=>({args:[r(e),{}],code:[n,\"\"]})))},\n function _(n,e,t,o,r){var u;o();const s=n(216),i=n(23),l=n(18);class c extends s.Filter{constructor(n){super(n)}compute_indices(n){var e;const t=n.get_column(this.column_name),o=null!==(e=n.get_length())&&void 0!==e?e:1;if(null==t)return l.logger.warn(`${this}: groupby column '${this.column_name}' not found in the data source`),i.Indices.all_set(o);{const n=new i.Indices(o,0);for(let e=0;e<n.size;e++)t[e]===this.group&&n.set(e);return n}}}t.GroupFilter=c,u=c,c.__name__=\"GroupFilter\",u.define((({String:n})=>({column_name:[n],group:[n]})))},\n function _(e,n,i,l,t){var s;l();const c=e(216),r=e(23);class d extends c.Filter{constructor(e){super(e)}compute_indices(e){var n;const i=null!==(n=e.get_length())&&void 0!==n?n:1,{indices:l}=this;return null==l?r.Indices.all_set(i):r.Indices.from_indices(i,l)}}i.IndexFilter=d,s=d,d.__name__=\"IndexFilter\",s.define((({Int:e,Array:n,Nullable:i})=>({indices:[i(n(e)),null]})))},\n function _(e,n,r,t,i){var s;t();const o=e(216);class c extends o.Filter{constructor(e){super(e)}compute_indices(e){const n=this.operand.compute_indices(e);return n.invert(),n}}r.InversionFilter=c,s=c,c.__name__=\"InversionFilter\",s.define((({Ref:e})=>({operand:[e(o.Filter)]})))},\n function _(n,e,t,r,o){var s;r();const i=n(216),c=n(23);class l extends i.Filter{constructor(n){super(n)}compute_indices(n){var e;const{operands:t}=this;if(0==t.length){const t=null!==(e=n.get_length())&&void 0!==e?e:1;return c.Indices.all_set(t)}{const[e,...r]=t.map((e=>e.compute_indices(n)));for(const n of r)e.add(n);return e}}}t.UnionFilter=l,s=l,l.__name__=\"UnionFilter\",s.define((({Array:n,Ref:e})=>({operands:[n(e(i.Filter))]})))},\n function _(e,t,n,r,s){var c;r();const i=e(216),o=e(23);class l extends i.Filter{constructor(e){super(e)}compute_indices(e){var t;const{operands:n}=this;if(0==n.length){const n=null!==(t=e.get_length())&&void 0!==t?t:1;return o.Indices.all_set(n)}{const[t,...r]=n.map((t=>t.compute_indices(e)));for(const e of r)t.subtract(e);return t}}}n.DifferenceFilter=l,c=l,l.__name__=\"DifferenceFilter\",c.define((({Array:e,Ref:t})=>({operands:[e(t(i.Filter))]})))},\n function _(e,t,r,n,c){var i;n();const s=e(216),o=e(23);class l extends s.Filter{constructor(e){super(e)}compute_indices(e){var t;const{operands:r}=this;if(0==r.length){const r=null!==(t=e.get_length())&&void 0!==t?t:1;return o.Indices.all_set(r)}{const[t,...n]=r.map((t=>t.compute_indices(e)));for(const e of n)t.symmetric_subtract(e);return t}}}r.SymmetricDifferenceFilter=l,i=l,l.__name__=\"SymmetricDifferenceFilter\",i.define((({Array:e,Ref:t})=>({operands:[e(t(s.Filter))]})))},\n function _(e,a,t,l,i){l(),i(\"AnnularWedge\",e(316).AnnularWedge),i(\"Annulus\",e(317).Annulus),i(\"Arc\",e(318).Arc),i(\"Bezier\",e(319).Bezier),i(\"Block\",e(321).Block),i(\"Circle\",e(323).Circle),i(\"Ellipse\",e(324).Ellipse),i(\"Glyph\",e(203).Glyph),i(\"HArea\",e(212).HArea),i(\"HBar\",e(326).HBar),i(\"HexTile\",e(327).HexTile),i(\"Image\",e(328).Image),i(\"ImageRGBA\",e(330).ImageRGBA),i(\"ImageStack\",e(331).ImageStack),i(\"ImageURL\",e(332).ImageURL),i(\"Line\",e(201).Line),i(\"MultiLine\",e(333).MultiLine),i(\"MultiPolygons\",e(334).MultiPolygons),i(\"Patch\",e(211).Patch),i(\"Patches\",e(335).Patches),i(\"Quad\",e(336).Quad),i(\"Quadratic\",e(337).Quadratic),i(\"Ray\",e(338).Ray),i(\"Rect\",e(339).Rect),i(\"Scatter\",e(340).Scatter),i(\"Segment\",e(343).Segment),i(\"Spline\",e(344).Spline),i(\"Step\",e(346).Step),i(\"Text\",e(347).Text),i(\"VArea\",e(214).VArea),i(\"VBar\",e(348).VBar),i(\"Wedge\",e(349).Wedge)},\n function _(e,s,t,i,r){var n;i();const a=e(1),_=e(202),o=e(209),d=e(78),h=e(23),l=e(19),u=a.__importStar(e(17)),c=e(11),g=e(101),p=e(13);class x extends _.XYGlyphView{_map_data(){\"data\"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this.inner_radius):this.sinner_radius=(0,h.to_screen)(this.inner_radius),\"data\"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this.outer_radius):this.souter_radius=(0,h.to_screen)(this.outer_radius),this.max_souter_radius=(0,p.max)(this.souter_radius)}_render(e,s,t){const{sx:i,sy:r,start_angle:n,end_angle:a,sinner_radius:_,souter_radius:o}=null!=t?t:this,d=\"anticlock\"==this.model.direction;for(const t of s){const s=i[t],h=r[t],l=_[t],u=o[t],c=n.get(t),g=a.get(t);if(!isFinite(s+h+l+u+c+g))continue;const p=g-c;e.translate(s,h),e.rotate(c),e.beginPath(),e.moveTo(u,0),e.arc(0,0,u,0,p,d),e.rotate(p),e.lineTo(l,0),e.arc(0,0,l,0,-p,!d),e.closePath(),e.rotate(-p-c),e.translate(-s,-h),this.visuals.fill.apply(e,t),this.visuals.hatch.apply(e,t),this.visuals.line.apply(e,t)}}_hit_point(e){const{sx:s,sy:t}=e,i=this.renderer.xscale.invert(s),r=this.renderer.yscale.invert(t),n=s-this.max_souter_radius,a=s+this.max_souter_radius,[_,o]=this.renderer.xscale.r_invert(n,a),d=t-this.max_souter_radius,h=t+this.max_souter_radius,[l,u]=this.renderer.yscale.r_invert(d,h),p=[];for(const e of this.index.indices({x0:_,x1:o,y0:l,y1:u})){const s=this.souter_radius[e]**2,t=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(i,this._x[e]),[_,o]=this.renderer.yscale.r_compute(r,this._y[e]),d=(n-a)**2+(_-o)**2;d<=s&&d>=t&&p.push(e)}const x=\"anticlock\"==this.model.direction,m=[];for(const e of p){const i=Math.atan2(t-this.sy[e],s-this.sx[e]);(Math.abs(this.start_angle.get(e)-this.end_angle.get(e))>=2*Math.PI||(0,c.angle_between)(-i,-this.start_angle.get(e),-this.end_angle.get(e),x))&&m.push(e)}return new g.Selection({indices:m})}draw_legend_for_index(e,s,t){(0,o.generic_area_vector_legend)(this.visuals,e,s,t)}scenterxy(e){const s=(this.sinner_radius[e]+this.souter_radius[e])/2,t=(this.start_angle.get(e)+this.end_angle.get(e))/2;return[this.sx[e]+s*Math.cos(t),this.sy[e]+s*Math.sin(t)]}}t.AnnularWedgeView=x,x.__name__=\"AnnularWedgeView\";class m extends _.XYGlyph{constructor(e){super(e)}}t.AnnularWedge=m,n=m,m.__name__=\"AnnularWedge\",n.prototype.default_view=x,n.mixins([d.LineVector,d.FillVector,d.HatchVector]),n.define((({})=>({direction:[l.Direction,\"anticlock\"],inner_radius:[u.DistanceSpec,{field:\"inner_radius\"}],outer_radius:[u.DistanceSpec,{field:\"outer_radius\"}],start_angle:[u.AngleSpec,{field:\"start_angle\"}],end_angle:[u.AngleSpec,{field:\"end_angle\"}]})))},\n function _(s,e,r,i,t){var n;i();const a=s(1),u=s(202),_=s(23),o=s(78),d=a.__importStar(s(17)),h=s(101);class c extends u.XYGlyphView{_map_data(){\"data\"==this.model.properties.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xscale,this._x,this.inner_radius):this.sinner_radius=(0,_.to_screen)(this.inner_radius),\"data\"==this.model.properties.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xscale,this._x,this.outer_radius):this.souter_radius=(0,_.to_screen)(this.outer_radius)}_render(s,e,r){const{sx:i,sy:t,sinner_radius:n,souter_radius:a}=null!=r?r:this;for(const r of e){const e=i[r],u=t[r],_=n[r],o=a[r];isFinite(e+u+_+o)&&(s.beginPath(),s.arc(e,u,_,0,2*Math.PI,!0),s.moveTo(e+o,u),s.arc(e,u,o,2*Math.PI,0,!1),this.visuals.fill.apply(s,r),this.visuals.hatch.apply(s,r),this.visuals.line.apply(s,r))}}_hit_point(s){const{sx:e,sy:r}=s,i=this.renderer.xscale.invert(e),t=this.renderer.yscale.invert(r);let n,a,u,_;if(\"data\"==this.model.properties.outer_radius.units)n=i-this.max_outer_radius,u=i+this.max_outer_radius,a=t-this.max_outer_radius,_=t+this.max_outer_radius;else{const s=e-this.max_outer_radius,i=e+this.max_outer_radius;[n,u]=this.renderer.xscale.r_invert(s,i);const t=r-this.max_outer_radius,o=r+this.max_outer_radius;[a,_]=this.renderer.yscale.r_invert(t,o)}const o=[];for(const s of this.index.indices({x0:n,x1:u,y0:a,y1:_})){const e=this.souter_radius[s]**2,r=this.sinner_radius[s]**2,[n,a]=this.renderer.xscale.r_compute(i,this._x[s]),[u,_]=this.renderer.yscale.r_compute(t,this._y[s]),d=(n-a)**2+(u-_)**2;d<=e&&d>=r&&o.push(s)}return new h.Selection({indices:o})}draw_legend_for_index(s,{x0:e,y0:r,x1:i,y1:t},n){const a=n+1,u=new Array(a);u[n]=(e+i)/2;const _=new Array(a);_[n]=(r+t)/2;const o=.5*Math.min(Math.abs(i-e),Math.abs(t-r)),d=new Array(a);d[n]=.4*o;const h=new Array(a);h[n]=.8*o,this._render(s,[n],{sx:u,sy:_,sinner_radius:d,souter_radius:h})}}r.AnnulusView=c,c.__name__=\"AnnulusView\";class l extends u.XYGlyph{constructor(s){super(s)}}r.Annulus=l,n=l,l.__name__=\"Annulus\",n.prototype.default_view=c,n.mixins([o.LineVector,o.FillVector,o.HatchVector]),n.define((({})=>({inner_radius:[d.DistanceSpec,{field:\"inner_radius\"}],outer_radius:[d.DistanceSpec,{field:\"outer_radius\"}]})))},\n function _(e,s,t,i,n){var r;i();const a=e(1),o=e(202),d=e(209),c=e(78),l=e(23),_=e(19),h=a.__importStar(e(17));class u extends o.XYGlyphView{_map_data(){\"data\"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this.radius):this.sradius=(0,l.to_screen)(this.radius)}_render(e,s,t){if(!this.visuals.line.doit)return;const{sx:i,sy:n,sradius:r,start_angle:a,end_angle:o}=null!=t?t:this,d=\"anticlock\"==this.model.direction;for(const t of s){const s=i[t],c=n[t],l=r[t],_=a.get(t),h=o.get(t);isFinite(s+c+l+_+h)&&(this._render_decorations(e,t,s,c,l,_,h,d),e.beginPath(),e.arc(s,c,l,_,h,d),this.visuals.line.apply(e,t))}}_render_decorations(e,s,t,i,n,r,a,o){const{sin:d,cos:c,PI:l}=Math;for(const o of this.decorations.values()){if(e.save(),\"start\"==o.model.node){const s=n*c(r)+t,a=n*d(r)+i;e.translate(s,a),e.rotate(r+l)}else if(\"end\"==o.model.node){const s=n*Math.cos(a)+t,r=n*Math.sin(a)+i;e.translate(s,r),e.rotate(a)}o.marking.render(e,s),e.restore()}}draw_legend_for_index(e,s,t){(0,d.generic_line_vector_legend)(this.visuals,e,s,t)}}t.ArcView=u,u.__name__=\"ArcView\";class g extends o.XYGlyph{constructor(e){super(e)}}t.Arc=g,r=g,g.__name__=\"Arc\",r.prototype.default_view=u,r.mixins(c.LineVector),r.define((({})=>({direction:[_.Direction,\"anticlock\"],radius:[h.DistanceSpec,{field:\"radius\"}],start_angle:[h.AngleSpec,{field:\"start_angle\"}],end_angle:[h.AngleSpec,{field:\"end_angle\"}]})))},\n function _(e,i,t,c,s){var n;c();const o=e(1),r=e(78),_=e(203),d=e(209),a=e(105),l=e(320),x=o.__importStar(e(17));class y extends _.GlyphView{_project_data(){a.inplace.project_xy(this._x0,this._y0),a.inplace.project_xy(this._x1,this._y1)}_index_data(e){const{data_size:i,_x0:t,_y0:c,_x1:s,_y1:n,_cx0:o,_cy0:r,_cx1:_,_cy1:d}=this;for(let a=0;a<i;a++){const i=t[a],x=c[a],y=s[a],p=n[a],f=o[a],h=r[a],u=_[a],C=d[a];if(isFinite(i+y+x+p+f+h+u+C)){const{x0:t,y0:c,x1:s,y1:n}=(0,l.cbb)(i,x,f,h,u,C,y,p);e.add_rect(t,c,s,n)}else e.add_empty()}}_render(e,i,t){if(!this.visuals.line.doit)return;const{sx0:c,sy0:s,sx1:n,sy1:o,scx0:r,scy0:_,scx1:d,scy1:a}=null!=t?t:this;for(const t of i){const i=c[t],l=s[t],x=n[t],y=o[t],p=r[t],f=_[t],h=d[t],u=a[t];isFinite(i+l+x+y+p+f+h+u)&&(e.beginPath(),e.moveTo(i,l),e.bezierCurveTo(p,f,h,u,x,y),this.visuals.line.apply(e,t))}}draw_legend_for_index(e,i,t){(0,d.generic_line_vector_legend)(this.visuals,e,i,t)}scenterxy(){throw new Error(`${this}.scenterxy() is not implemented`)}}t.BezierView=y,y.__name__=\"BezierView\";class p extends _.Glyph{constructor(e){super(e)}}t.Bezier=p,n=p,p.__name__=\"Bezier\",n.prototype.default_view=y,n.define((({})=>({x0:[x.XCoordinateSpec,{field:\"x0\"}],y0:[x.YCoordinateSpec,{field:\"y0\"}],x1:[x.XCoordinateSpec,{field:\"x1\"}],y1:[x.YCoordinateSpec,{field:\"y1\"}],cx0:[x.XCoordinateSpec,{field:\"cx0\"}],cy0:[x.YCoordinateSpec,{field:\"cy0\"}],cx1:[x.XCoordinateSpec,{field:\"cx1\"}],cy1:[x.YCoordinateSpec,{field:\"cy1\"}]}))),n.mixins(r.LineVector)},\n function _(n,t,o,c,s){c();const r=n(13),{abs:i,sqrt:u,min:e,max:f}=Math;o.qbb=function(n,t,o,c,s,r){function i(n,t,o){if(t==(n+o)/2)return[n,o];{const c=(n-t)/(n-2*t+o),s=n*(1-c)**2+2*t*(1-c)*c+o*c**2;return[e(n,o,s),f(n,o,s)]}}const[u,a]=i(n,o,s),[x,m]=i(t,c,r);return{x0:u,x1:a,y0:x,y1:m}},o.cbb=function(n,t,o,c,s,e,f,a){const x=f,m=a;f=o,a=c;const y=s,b=e,h=[];for(let o=0;o<=2;o++){let c,s,r;if(0==o?(s=6*n-12*f+6*y,c=-3*n+9*f-9*y+3*x,r=3*f-3*n):(s=6*t-12*a+6*b,c=-3*t+9*a-9*b+3*m,r=3*a-3*t),i(c)<1e-12){if(i(s)<1e-12)continue;const n=-r/s;0<n&&n<1&&h.push(n);continue}const e=s**2-4*r*c,l=u(e);if(e<0)continue;const p=(-s+l)/(2*c);0<p&&p<1&&h.push(p);const q=(-s-l)/(2*c);0<q&&q<1&&h.push(q)}const l=h.length;let p=l;const q=Array(l+2),A=Array(l+2);for(;p-- >0;){const o=h[p],c=1-o,s=c**3*n+3*c**2*o*f+3*c*o**2*y+o**3*x,r=c**3*t+3*c**2*o*a+3*c*o**2*b+o**3*m;q[p]=s,A[p]=r}q[l]=n,A[l]=t,q[l+1]=x,A[l+1]=m;const[g,M]=(0,r.minmax)(q),[_,d]=(0,r.minmax)(A);return{x0:g,x1:M,y0:_,y1:d}}},\n function _(t,e,i,s,r){var h;s();const a=t(1),n=t(322),l=t(23),o=a.__importStar(t(17));class _ extends n.LRTBView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:i}=await Promise.resolve().then((()=>a.__importStar(t(522))));this.glglyph=new i(e.regl_wrapper,this)}}scenterxy(t){return[this.sleft[t]/2+this.sright[t]/2,this.stop[t]/2+this.sbottom[t]/2]}_lrtb(t){const e=this._x[t],i=this._y[t],s=this.width.get(t),r=this.height.get(t);return[Math.min(e,e+s),Math.max(e,e+s),Math.max(i,i+r),Math.min(i,i+r)]}_map_data(){const t=this.renderer.xscale.v_compute(this._x),e=this.renderer.yscale.v_compute(this._y),i=this.sdist(this.renderer.xscale,this._x,this.width,\"edge\"),s=this.sdist(this.renderer.yscale,this._y,this.height,\"edge\"),r=t.length;this.stop=new l.ScreenArray(r),this.sbottom=new l.ScreenArray(r),this.sleft=new l.ScreenArray(r),this.sright=new l.ScreenArray(r);for(let h=0;h<r;h++)this.stop[h]=e[h]-s[h],this.sbottom[h]=e[h],this.sleft[h]=t[h],this.sright[h]=t[h]+i[h];this._clamp_viewport()}}i.BlockView=_,_.__name__=\"BlockView\";class c extends n.LRTB{constructor(t){super(t)}}i.Block=c,h=c,c.__name__=\"Block\",h.prototype.default_view=_,h.define((({})=>({x:[o.XCoordinateSpec,{field:\"x\"}],y:[o.YCoordinateSpec,{field:\"y\"}],width:[o.NumberSpec,{value:1}],height:[o.NumberSpec,{value:1}]})))},\n function _(t,e,r,s,i){var n;s();const a=t(1),o=t(78),h=t(203),c=t(209),_=t(101),d=t(57),l=t(233),x=a.__importStar(t(235)),m=t(234);class p extends h.GlyphView{get_anchor_point(t,e,r){const s=Math.min(this.sleft[e],this.sright[e]),i=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),a=Math.max(this.sbottom[e],this.stop[e]);switch(t){case\"top_left\":return{x:s,y:n};case\"top\":case\"top_center\":return{x:(s+i)/2,y:n};case\"top_right\":return{x:i,y:n};case\"bottom_left\":return{x:s,y:a};case\"bottom\":case\"bottom_center\":return{x:(s+i)/2,y:a};case\"bottom_right\":return{x:i,y:a};case\"left\":case\"center_left\":return{x:s,y:(n+a)/2};case\"center\":case\"center_center\":return{x:(s+i)/2,y:(n+a)/2};case\"right\":case\"center_right\":return{x:i,y:(n+a)/2}}}_set_data(t){super._set_data(t),this.border_radius=x.border_radius(this.model.border_radius)}_index_data(t){const{min:e,max:r}=Math,{data_size:s}=this;for(let i=0;i<s;i++){const[s,n,a,o]=this._lrtb(i);t.add_rect(e(s,n),e(a,o),r(n,s),r(a,o))}}_render(t,e,r){const{sleft:s,sright:i,stop:n,sbottom:a,border_radius:o}=null!=r?r:this;for(const r of e){const e=s[r],h=n[r],c=i[r],_=a[r];if(!isFinite(e+h+c+_))continue;t.beginPath();const l=d.BBox.from_lrtb({left:e,right:c,top:h,bottom:_});(0,m.round_rect)(t,l,o),this.visuals.fill.apply(t,r),this.visuals.hatch.apply(t,r),this.visuals.line.apply(t,r)}}_clamp_viewport(){const t=this.renderer.plot_view.frame.bbox.h_range,e=this.renderer.plot_view.frame.bbox.v_range,r=this.stop.length;for(let s=0;s<r;s++)this.stop[s]=Math.max(this.stop[s],e.start),this.sbottom[s]=Math.min(this.sbottom[s],e.end),this.sleft[s]=Math.max(this.sleft[s],t.start),this.sright[s]=Math.min(this.sright[s],t.end)}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:r}=t,s=this.renderer.xscale.invert(e),i=this.renderer.yscale.invert(r),n=[...this.index.indices({x0:s,y0:i,x1:s,y1:i})];return new _.Selection({indices:n})}_hit_span(t){const{sx:e,sy:r}=t;let s;if(\"v\"==t.direction){const t=this.renderer.yscale.invert(r),e=this.renderer.plot_view.frame.bbox.h_range,[i,n]=this.renderer.xscale.r_invert(e.start,e.end);s=[...this.index.indices({x0:i,y0:t,x1:n,y1:t})]}else{const t=this.renderer.xscale.invert(e),r=this.renderer.plot_view.frame.bbox.v_range,[i,n]=this.renderer.yscale.r_invert(r.start,r.end);s=[...this.index.indices({x0:t,y0:i,x1:t,y1:n})]}return new _.Selection({indices:s})}draw_legend_for_index(t,e,r){(0,c.generic_area_vector_legend)(this.visuals,t,e,r)}}r.LRTBView=p,p.__name__=\"LRTBView\";class u extends h.Glyph{constructor(t){super(t)}}r.LRTB=u,n=u,u.__name__=\"LRTB\",n.mixins([o.LineVector,o.FillVector,o.HatchVector]),n.define((()=>({border_radius:[l.BorderRadius,0]})))},\n function _(s,i,e,t,r){var a;t();const n=s(1),d=s(202),h=s(78),c=s(23),_=s(19),l=n.__importStar(s(210)),u=n.__importStar(s(17)),o=s(13),x=s(101);class y extends d.XYGlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:i}=this.renderer.plot_view.canvas_view;if(null!=i&&i.regl_wrapper.has_webgl){const{CircleGL:e}=await Promise.resolve().then((()=>n.__importStar(s(518))));this.glglyph=new e(i.regl_wrapper,this)}}get use_radius(){return!(this.radius.is_Scalar()&&isNaN(this.radius.value))}_set_data(s){super._set_data(s);const i=(()=>{if(this.use_radius)return 2*this.max_radius;{const{size:s}=this;return s.is_Scalar()?s.value:(0,o.max)(s.array)}})();this._configure(\"max_size\",{value:i})}_index_data(s){if(this.use_radius){const{_x:i,_y:e,radius:t,data_size:r}=this;for(let a=0;a<r;a++){const r=i[a],n=e[a],d=t.get(a);s.add_rect(r-d,n-d,r+d,n+d)}}else super._index_data(s)}_map_data(){if(this.use_radius)if(\"data\"==this.model.properties.radius.units)switch(this.model.radius_dimension){case\"x\":this.sradius=this.sdist(this.renderer.xscale,this._x,this.radius);break;case\"y\":this.sradius=this.sdist(this.renderer.yscale,this._y,this.radius);break;case\"max\":{const s=this.sdist(this.renderer.xscale,this._x,this.radius),i=this.sdist(this.renderer.yscale,this._y,this.radius);this.sradius=(0,o.map)(s,((s,e)=>Math.max(s,i[e])));break}case\"min\":{const s=this.sdist(this.renderer.xscale,this._x,this.radius),i=this.sdist(this.renderer.yscale,this._y,this.radius);this.sradius=(0,o.map)(s,((s,e)=>Math.min(s,i[e])));break}}else this.sradius=(0,c.to_screen)(this.radius);else{const s=c.ScreenArray.from(this.size);this.sradius=(0,o.map)(s,(s=>s/2))}}_mask_data(){const{frame:s}=this.renderer.plot_view,i=s.x_target,e=s.y_target;let t,r;return this.use_radius&&\"data\"==this.model.properties.radius.units?(t=i.map((s=>this.renderer.xscale.invert(s))).widen(this.max_radius),r=e.map((s=>this.renderer.yscale.invert(s))).widen(this.max_radius)):(t=i.widen(this.max_size).map((s=>this.renderer.xscale.invert(s))),r=e.widen(this.max_size).map((s=>this.renderer.yscale.invert(s)))),this.index.indices({x0:t.start,x1:t.end,y0:r.start,y1:r.end})}_render(s,i,e){const{sx:t,sy:r,sradius:a}=null!=e?e:this;for(const e of i){const i=t[e],n=r[e],d=a[e];isFinite(i+n+d)&&(s.beginPath(),s.arc(i,n,d,0,2*Math.PI,!1),this.visuals.fill.apply(s,e),this.visuals.hatch.apply(s,e),this.visuals.line.apply(s,e))}}_hit_point(s){const{sx:i,sy:e}=s,t=this.renderer.xscale.invert(i),r=this.renderer.yscale.invert(e),{hit_dilation:a}=this.model,[n,d,h,c]=(()=>{if(this.use_radius&&\"data\"==this.model.properties.radius.units){const s=this.max_radius*a;return[t-s,t+s,r-s,r+s]}{const s=this.max_size*a,t=i-s,r=i+s,n=e-s,d=e+s,[h,c]=this.renderer.xscale.r_invert(t,r),[_,l]=this.renderer.yscale.r_invert(n,d);return[h,c,_,l]}})(),_=this.index.indices({x0:n,x1:d,y0:h,y1:c}),l=[];if(this.use_radius&&\"data\"==this.model.properties.radius.units)for(const s of _){const i=(this.sradius[s]*a)**2,[e,n]=this.renderer.xscale.r_compute(t,this._x[s]),[d,h]=this.renderer.yscale.r_compute(r,this._y[s]);(e-n)**2+(d-h)**2<=i&&l.push(s)}else for(const s of _){const t=(this.sradius[s]*a)**2;(this.sx[s]-i)**2+(this.sy[s]-e)**2<=t&&l.push(s)}return new x.Selection({indices:l})}_hit_span(s){const{sx:i,sy:e}=s,t=this.bounds(),[r,a,n,d]=(()=>{const r=this.use_radius&&\"data\"==this.model.properties.radius.units?this.max_radius:this.max_size/2;if(\"h\"==s.direction){const s=i-r,e=i+r,[a,n]=this.renderer.xscale.r_invert(s,e),{y0:d,y1:h}=t;return[a,n,d,h]}{const s=e-r,i=e+r,{x0:a,x1:n}=t,[d,h]=this.renderer.yscale.r_invert(s,i);return[a,n,d,h]}})(),h=[...this.index.indices({x0:r,x1:a,y0:n,y1:d})];return new x.Selection({indices:h})}_hit_rect(s){const{sx0:i,sx1:e,sy0:t,sy1:r}=s,[a,n]=this.renderer.xscale.r_invert(i,e),[d,h]=this.renderer.yscale.r_invert(t,r),c=this.index.indices({x0:a,x1:n,y0:d,y1:h}),_=[];for(const s of c){const a=this.sx[s],n=this.sy[s];i<=a&&a<=e&&t<=n&&n<=r&&_.push(s)}return new x.Selection({indices:_})}_hit_poly(s){const{sx:i,sy:e}=s,[t,r]=(0,o.minmax)(i),[a,n]=(0,o.minmax)(e),[d,h]=this.renderer.xscale.r_invert(t,r),[c,_]=this.renderer.yscale.r_invert(a,n),u=this.index.indices({x0:d,x1:h,y0:c,y1:_}),y=[];for(const s of u)l.point_in_poly(this.sx[s],this.sy[s],i,e)&&y.push(s);return new x.Selection({indices:y})}draw_legend_for_index(s,{x0:i,y0:e,x1:t,y1:r},a){const n=a+1,d=new Array(n);d[a]=(i+t)/2;const h=new Array(n);h[a]=(e+r)/2;const c=new Array(n);c[a]=.2*Math.min(Math.abs(t-i),Math.abs(r-e)),this._render(s,[a],{sx:d,sy:h,sradius:c})}}e.CircleView=y,y.__name__=\"CircleView\";class p extends d.XYGlyph{constructor(s){super(s)}}e.Circle=p,a=p,p.__name__=\"Circle\",a.prototype.default_view=y,a.mixins([h.LineVector,h.FillVector,h.HatchVector]),a.define((({Number:s})=>({angle:[u.AngleSpec,0],size:[u.ScreenSizeSpec,{value:4}],radius:[u.NullDistanceSpec,null],radius_dimension:[_.RadiusDimension,\"x\"],hit_dilation:[s,1]})))},\n function _(t,s,e,i,h){var r;i();const n=t(1),a=t(325),l=n.__importStar(t(210)),o=t(23),_=t(101),d=n.__importStar(t(17));class c extends a.CenterRotatableView{_map_data(){\"data\"==this.model.properties.width.units?this.sw=this.sdist(this.renderer.xscale,this._x,this.width,\"center\"):this.sw=(0,o.to_screen)(this.width),\"data\"==this.model.properties.height.units?this.sh=this.sdist(this.renderer.yscale,this._y,this.height,\"center\"):this.sh=(0,o.to_screen)(this.height)}_render(t,s,e){const{sx:i,sy:h,sw:r,sh:n,angle:a}=null!=e?e:this;for(const e of s){const s=i[e],l=h[e],o=r[e],_=n[e],d=a.get(e);isFinite(s+l+o+_+d)&&(t.beginPath(),t.ellipse(s,l,o/2,_/2,d,0,2*Math.PI),this.visuals.fill.apply(t,e),this.visuals.hatch.apply(t,e),this.visuals.line.apply(t,e))}}_hit_point(t){let s,e,i,h,r,n,a,o,d;const{sx:c,sy:p}=t,w=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(p);\"data\"==this.model.properties.width.units?(s=w-this.max_width,e=w+this.max_width):(n=c-this.max_width,a=c+this.max_width,[s,e]=this.renderer.xscale.r_invert(n,a)),\"data\"==this.model.properties.height.units?(i=x-this.max_height,h=x+this.max_height):(o=p-this.max_height,d=p+this.max_height,[i,h]=this.renderer.yscale.r_invert(o,d));const y=this.index.indices({x0:s,x1:e,y0:i,y1:h}),m=[];for(const t of y)r=l.point_in_ellipse(c,p,this.angle.get(t),this.sh[t]/2,this.sw[t]/2,this.sx[t],this.sy[t]),r&&m.push(t);return new _.Selection({indices:m})}draw_legend_for_index(t,{x0:s,y0:e,x1:i,y1:h},r){const n=r+1,a=new Array(n);a[r]=(s+i)/2;const l=new Array(n);l[r]=(e+h)/2;const o=this.sw[r]/this.sh[r],_=.8*Math.min(Math.abs(i-s),Math.abs(h-e)),c=new Array(n),p=new Array(n);o>1?(c[r]=_,p[r]=_/o):(c[r]=_*o,p[r]=_);const w=new d.UniformScalar(0,n);this._render(t,[r],{sx:a,sy:l,sw:c,sh:p,angle:w})}}e.EllipseView=c,c.__name__=\"EllipseView\";class p extends a.CenterRotatable{constructor(t){super(t)}}e.Ellipse=p,r=p,p.__name__=\"Ellipse\",r.prototype.default_view=c},\n function _(e,t,i,a,n){var r;a();const s=e(1),h=e(202),o=e(78),_=s.__importStar(e(17));class c extends h.XYGlyphView{get max_w2(){return\"data\"==this.model.properties.width.units?this.max_width/2:0}get max_h2(){return\"data\"==this.model.properties.height.units?this.max_height/2:0}_bounds({x0:e,x1:t,y0:i,y1:a}){const{max_w2:n,max_h2:r}=this;return{x0:e-n,x1:t+n,y0:i-r,y1:a+r}}}i.CenterRotatableView=c,c.__name__=\"CenterRotatableView\";class l extends h.XYGlyph{constructor(e){super(e)}}i.CenterRotatable=l,r=l,l.__name__=\"CenterRotatable\",r.mixins([o.LineVector,o.FillVector,o.HatchVector]),r.define((({})=>({angle:[_.AngleSpec,0],width:[_.DistanceSpec,{field:\"width\"}],height:[_.DistanceSpec,{field:\"height\"}]})))},\n function _(t,e,s,i,r){var h;i();const a=t(1),n=t(322),_=t(23),l=a.__importStar(t(17));class o extends n.LRTBView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:s}=await Promise.resolve().then((()=>a.__importStar(t(522))));this.glglyph=new s(e.regl_wrapper,this)}}scenterxy(t){return[(this.sleft[t]+this.sright[t])/2,this.sy[t]]}_lrtb(t){const e=this._left[t],s=this._right[t],i=this._y[t],r=this.height.get(t)/2;return[Math.min(e,s),Math.max(e,s),i+r,i-r]}_map_data(){this.sy=this.renderer.yscale.v_compute(this._y),this.sh=this.sdist(this.renderer.yscale,this._y,this.height,\"center\"),this.sleft=this.renderer.xscale.v_compute(this._left),this.sright=this.renderer.xscale.v_compute(this._right);const t=this.sy.length;this.stop=new _.ScreenArray(t),this.sbottom=new _.ScreenArray(t);for(let e=0;e<t;e++)this.stop[e]=this.sy[e]-this.sh[e]/2,this.sbottom[e]=this.sy[e]+this.sh[e]/2;this._clamp_viewport()}}s.HBarView=o,o.__name__=\"HBarView\";class c extends n.LRTB{constructor(t){super(t)}}s.HBar=c,h=c,c.__name__=\"HBar\",h.prototype.default_view=o,h.define((({})=>({left:[l.XCoordinateSpec,{value:0}],y:[l.YCoordinateSpec,{field:\"y\"}],height:[l.NumberSpec,{value:1}],right:[l.XCoordinateSpec,{field:\"right\"}]})))},\n function _(e,t,s,i,r){var n;i();const a=e(1),l=e(203),o=a.__importStar(e(210)),c=a.__importStar(e(17)),h=e(78),_=e(19),d=e(105),p=e(209),x=e(101);class y extends l.GlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:t}=this.renderer.plot_view.canvas_view;if(null!=t&&t.regl_wrapper.has_webgl){const{HexTileGL:s}=await Promise.resolve().then((()=>a.__importStar(e(520))));this.glglyph=new s(t.regl_wrapper,this)}}scenterxy(e){return[this.sx[e],this.sy[e]]}_set_data(){const{orientation:e,size:t,aspect_scale:s}=this.model,{q:i,r}=this,n=this.q.length;this._x=new Float64Array(n),this._y=new Float64Array(n);const{_x:a,_y:l}=this,o=Math.sqrt(3);if(\"pointytop\"==e)for(let e=0;e<n;e++){const n=i.get(e),c=r.get(e)/2;a[e]=t*o*(n+c)/s,l[e]=-3*t*c}else for(let e=0;e<n;e++){const n=i.get(e)/2,c=r.get(e);a[e]=3*t*n,l[e]=-t*o*(c+n)*s}}_project_data(){d.inplace.project_xy(this._x,this._y)}_index_data(e){let t=this.model.size,s=Math.sqrt(3)*t/2;\"flattop\"==this.model.orientation?([s,t]=[t,s],t*=this.model.aspect_scale):s/=this.model.aspect_scale;const{data_size:i}=this;for(let r=0;r<i;r++){const i=this._x[r],n=this._y[r];e.add_rect(i-s,n-t,i+s,n+t)}}map_data(){var e;[this.sx,this.sy]=this.renderer.coordinates.map_to_screen(this._x,this._y),[this.svx,this.svy]=this._get_unscaled_vertices(),null===(e=this.glglyph)||void 0===e||e.set_data_changed()}_get_unscaled_vertices(){const e=this.model.size,t=this.model.aspect_scale;if(\"pointytop\"==this.model.orientation){const s=this.renderer.yscale,i=this.renderer.xscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))/t,a=r/2;return[[0,-n,-n,0,n,n],[r,a,-a,-r,-a,a]]}{const s=this.renderer.xscale,i=this.renderer.yscale,r=Math.abs(s.compute(0)-s.compute(e)),n=Math.sqrt(3)/2*Math.abs(i.compute(0)-i.compute(e))*t,a=r/2;return[[r,a,-a,-r,-a,a],[0,-n,-n,0,n,n]]}}_render(e,t,s){const{sx:i,sy:r,svx:n,svy:a,scale:l}=null!=s?s:this;for(const s of t){const t=i[s],o=r[s],c=l.get(s);if(isFinite(t+o+c)){e.translate(t,o),e.beginPath();for(let t=0;t<6;t++)e.lineTo(n[t]*c,a[t]*c);e.closePath(),e.translate(-t,-o),this.visuals.fill.apply(e,s),this.visuals.hatch.apply(e,s),this.visuals.line.apply(e,s)}}}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(s),n=this.index.indices({x0:i,y0:r,x1:i,y1:r}),a=[];for(const e of n)o.point_in_poly(t-this.sx[e],s-this.sy[e],this.svx,this.svy)&&a.push(e);return new x.Selection({indices:a})}_hit_span(e){const{sx:t,sy:s}=e;let i;if(\"v\"==e.direction){const e=this.renderer.yscale.invert(s),t=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(t.start,t.end);i=[...this.index.indices({x0:r,y0:e,x1:n,y1:e})]}else{const e=this.renderer.xscale.invert(t),s=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(s.start,s.end);i=[...this.index.indices({x0:e,y0:r,x1:e,y1:n})]}return new x.Selection({indices:i})}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[n,a]=this.renderer.xscale.r_invert(t,s),[l,o]=this.renderer.yscale.r_invert(i,r),c=[...this.index.indices({x0:n,x1:a,y0:l,y1:o})];return new x.Selection({indices:c})}draw_legend_for_index(e,t,s){(0,p.generic_area_vector_legend)(this.visuals,e,t,s)}}s.HexTileView=y,y.__name__=\"HexTileView\";class u extends l.Glyph{constructor(e){super(e)}}s.HexTile=u,n=u,u.__name__=\"HexTile\",n.prototype.default_view=y,n.mixins([h.LineVector,h.FillVector,h.HatchVector]),n.define((({Number:e})=>({r:[c.NumberSpec,{field:\"r\"}],q:[c.NumberSpec,{field:\"q\"}],scale:[c.NumberSpec,1],size:[e,1],aspect_scale:[e,1],orientation:[_.HexTileOrientation,\"pointytop\"]}))),n.override({line_color:null})},\n function _(e,a,t,_,r){var n;_();const s=e(329),o=e(197),i=e(242);class p extends s.ImageBaseView{connect_signals(){super.connect_signals(),this.connect(this.model.color_mapper.change,(()=>this._update_image()))}_update_image(){null!=this.image_data&&(this._set_data(null),this.renderer.request_render())}_flat_img_to_buf8(e){return this.model.color_mapper.rgba_mapper.v_compute(e)}}t.ImageView=p,p.__name__=\"ImageView\";class m extends s.ImageBase{constructor(e){super(e)}}t.Image=m,n=m,m.__name__=\"Image\",n.prototype.default_view=p,n.define((({Ref:e})=>({color_mapper:[e(o.ColorMapper),()=>new i.LinearColorMapper({palette:[\"#000000\",\"#252525\",\"#525252\",\"#737373\",\"#969696\",\"#bdbdbd\",\"#d9d9d9\",\"#f0f0f0\",\"#ffffff\"]})]})))},\n function _(e,t,i,s,a){var h;s();const r=e(1),n=e(202),_=e(23),o=e(19),d=r.__importStar(e(17)),g=r.__importStar(e(78)),c=e(101),l=e(12),m=e(233),x=e(235);class u extends n.XYGlyphView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.global_alpha.change,(()=>this.renderer.request_render()))}get image_dimension(){return 2}get xy_scale(){switch(this.model.origin){case\"bottom_left\":return{x:1,y:-1};case\"top_left\":return{x:1,y:1};case\"bottom_right\":return{x:-1,y:-1};case\"top_right\":return{x:-1,y:1}}}get xy_offset(){switch(this.model.origin){case\"bottom_left\":return{x:0,y:1};case\"top_left\":return{x:0,y:0};case\"bottom_right\":return{x:1,y:1};case\"top_right\":return{x:1,y:0}}}get xy_anchor(){return(0,x.anchor)(this.model.anchor)}get xy_sign(){const e=this.renderer.xscale.source_range,t=this.renderer.yscale.source_range;return{x:e.is_reversed?-1:1,y:t.is_reversed?-1:1}}_render(e,t,i){const{image_data:s,sx:a,sy:h,sw:r,sh:n}=null!=i?i:this,{xy_sign:_,xy_scale:o,xy_offset:d,xy_anchor:g}=this;if(e.save(),e.imageSmoothingEnabled=!1,this.visuals.image.doit)for(const i of t){const t=s[i],c=a[i],l=h[i],m=r[i],x=n[i];if(null==t||!isFinite(c+l+m+x))continue;const u=_.x*g.x*m,y=_.y*g.y*x;e.save(),e.translate(c-u,l-y),e.scale(_.x*o.x,_.y*o.y),this.visuals.image.set_vectorize(e,i),e.drawImage(t,-d.x*m,-d.y*x,m,x),e.restore()}e.restore()}_set_data(e){this._set_width_height_data();const{image_dimension:t}=this;for(let i=0,s=this.image.length;i<s;i++){if(null!=e&&e.indexOf(i)<0)continue;const s=this.image.get(i);(0,l.assert)(s.dimension==t,`expected a ${t}D array, not ${s.dimension}D`),this._height[i]=s.shape[0],this._width[i]=s.shape[1];const a=this._flat_img_to_buf8(s);this._set_image_data_from_buffer(i,a)}}_index_data(e){const{data_size:t}=this;for(let i=0;i<t;i++){const[t,s,a,h]=this._lrtb(i);e.add_rect(t,h,s,a)}}_lrtb(e){const t=this.dw.get(e),i=this.dh.get(e),s=this._x[e],a=this._y[e],{xy_anchor:h}=this,[r,n]=[s-h.x*t,s+(1-h.x)*t],[_,o]=[a+h.y*i,a-(1-h.y)*i],[d,g]=r<=n?[r,n]:[n,r],[c,l]=_<=o?[_,o]:[o,_];return[d,g,l,c]}_set_width_height_data(){null!=this.image_data&&this.image_data.length==this.image.length||(this.image_data=new Array(this.image.length)),null!=this._width&&this._width.length==this.image.length||(this._width=new Uint32Array(this.image.length)),null!=this._height&&this._height.length==this.image.length||(this._height=new Uint32Array(this.image.length))}_get_or_create_canvas(e){const t=this.image_data[e];if(null!=t&&t.width==this._width[e]&&t.height==this._height[e])return t;{const t=document.createElement(\"canvas\");return t.width=this._width[e],t.height=this._height[e],t}}_set_image_data_from_buffer(e,t){const i=this._get_or_create_canvas(e),s=i.getContext(\"2d\"),a=s.getImageData(0,0,this._width[e],this._height[e]);a.data.set(t),s.putImageData(a,0,0),this.image_data[e]=i}_map_data(){\"data\"==this.model.properties.dw.units?this.sw=this.sdist(this.renderer.xscale,this._x,this.dw,\"edge\",this.model.dilate):this.sw=(0,_.to_screen)(this.dw),\"data\"==this.model.properties.dh.units?this.sh=this.sdist(this.renderer.yscale,this._y,this.dh,\"edge\",this.model.dilate):this.sh=(0,_.to_screen)(this.dh)}_image_index(e,t,i){const[s,a,h,r]=this._lrtb(e),n=this._width[e],_=this._height[e],o=(a-s)/n,d=(h-r)/_;let g=Math.floor((t-s)/o),c=Math.floor((i-r)/d);return this.renderer.xscale.source_range.is_reversed&&(g=n-g-1),this.renderer.yscale.source_range.is_reversed&&(c=_-c-1),{index:e,i:g,j:c,flat_index:c*n+g}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),a=this.renderer.yscale.invert(i),h=this.index.indices({x0:s,x1:s,y0:a,y1:a}),r=new c.Selection,n=[];for(const e of h)t!=1/0&&i!=1/0&&(n.push(e),r.image_indices.push(this._image_index(e,s,a)));return r.indices=n,r}}i.ImageBaseView=u,u.__name__=\"ImageBaseView\";class y extends n.XYGlyph{constructor(e){super(e)}}i.ImageBase=y,h=y,y.__name__=\"ImageBase\",h.mixins(g.ImageVector),h.define((({Boolean:e})=>({image:[d.NDArraySpec,{field:\"image\"}],dw:[d.DistanceSpec,{field:\"dw\"}],dh:[d.DistanceSpec,{field:\"dh\"}],dilate:[e,!1],origin:[o.ImageOrigin,\"bottom_left\"],anchor:[m.Anchor,\"bottom_left\"]})))},\n function _(e,a,t,n,r){var _;n();const s=e(329),m=e(8);class i extends s.ImageBaseView{_flat_img_to_buf8(e){const a=(0,m.isTypedArray)(e)?e:new Uint32Array(e);return new Uint8ClampedArray(a.buffer)}}t.ImageRGBAView=i,i.__name__=\"ImageRGBAView\";class o extends s.ImageBase{constructor(e){super(e)}}t.ImageRGBA=o,_=o,o.__name__=\"ImageRGBA\",_.prototype.default_view=i},\n function _(e,a,t,_,n){var r;_();const s=e(329),c=e(245);class i extends s.ImageBaseView{connect_signals(){super.connect_signals(),this.connect(this.model.color_mapper.change,(()=>this._update_image()))}get image_dimension(){return 3}_update_image(){null!=this.image_data&&(this._set_data(null),this.renderer.request_render())}_flat_img_to_buf8(e){return this.model.color_mapper.rgba_mapper.v_compute(e)}}t.ImageStackView=i,i.__name__=\"ImageStackView\";class o extends s.ImageBase{constructor(e){super(e)}}t.ImageStack=o,r=o,o.__name__=\"ImageStack\",r.prototype.default_view=i,r.define((({Ref:e})=>({color_mapper:[e(c.StackColorMapper)]})))},\n function _(e,t,s,i,r){var a;i();const n=e(1),h=e(202),o=e(23),d=e(19),_=n.__importStar(e(17)),l=e(13),c=e(150),m=n.__importStar(e(235));class g extends h.XYGlyphView{constructor(){super(...arguments),this._images_rendered=!1,this._set_data_iteration=0}connect_signals(){super.connect_signals(),this.connect(this.model.properties.global_alpha.change,(()=>this.renderer.request_render()))}_index_data(e){const{data_size:t}=this;for(let s=0;s<t;s++)e.add_empty()}_set_data(){this._set_data_iteration++;const e=this.url.length;this.image=new Array(e),this.rendered=new o.Indices(e);const{retry_attempts:t,retry_timeout:s}=this.model,{_set_data_iteration:i}=this;for(let r=0;r<e;r++){const e=this.url.get(r);if(\"\"==e)continue;const a=new c.ImageLoader(e,{loaded:()=>{this._set_data_iteration!=i||this.rendered.get(r)||this.renderer.request_render()},failed:()=>{this._set_data_iteration==i&&(this.image[r]=void 0)},attempts:t+1,timeout:s});this.image[r]=a.image}const r=\"data\"==this.model.properties.w.units,a=\"data\"==this.model.properties.h.units,n=this.data_size,h=new o.ScreenArray(r?2*n:n),d=new o.ScreenArray(a?2*n:n);this.anchor=m.anchor(this.model.anchor);const{x:_,y:g}=this.anchor;function u(e,t){const s=e-_*t;return[s,s+t]}function p(e,t){const s=e+g*t;return[s,s-t]}if(r)for(let e=0;e<n;e++)[h[e],h[n+e]]=u(this._x[e],this.w.get(e));else h.set(this._x,0);if(a)for(let e=0;e<n;e++)[d[e],d[n+e]]=p(this._y[e],this.h.get(e));else d.set(this._y,0);const[f,w]=(0,l.minmax)(h),[y,x]=(0,l.minmax)(d);this._bounds_rect={x0:f,x1:w,y0:y,y1:x}}has_finished(){return super.has_finished()&&this._images_rendered}_map_data(){\"data\"==this.model.properties.w.units?this.sw=this.sdist(this.renderer.xscale,this._x,this.w,\"edge\",this.model.dilate):this.sw=(0,o.to_screen)(this.w),\"data\"==this.model.properties.h.units?this.sh=this.sdist(this.renderer.yscale,this._y,this.h,\"edge\",this.model.dilate):this.sh=(0,o.to_screen)(this.h)}_render(e,t,s){const{image:i,sx:r,sy:a,sw:n,sh:h,angle:o,global_alpha:d}=null!=s?s:this,{frame:_}=this.renderer.plot_view,{left:l,top:c,width:m,height:g}=_.bbox;e.beginPath(),e.rect(l+1,c+1,m-2,g-2),e.clip();let u=!0;for(const s of t){const t=i[s];isFinite(r[s]+a[s]+o.get(s)+d.get(s))&&null!=t&&(t.complete?0==t.naturalWidth&&0==t.naturalHeight||this._render_image(e,s,t,r,a,n,h,o,d):u=!1)}u&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_render_image(e,t,s,i,r,a,n,h,o){isFinite(a[t])||(a[t]=s.width),isFinite(n[t])||(n[t]=s.height);const d=a[t],_=n[t],{anchor:l}=this,c=l.x*d,m=l.y*_,g=i[t]-c,u=r[t]-m,p=h.get(t),f=o.get(t);e.save(),e.globalAlpha=f;const w=d/2,y=_/2;0!=p?(e.translate(g,u),e.translate(w,y),e.rotate(p),e.translate(-w,-y),e.drawImage(s,0,0,d,_),e.translate(w,y),e.rotate(-p),e.translate(-w,-y),e.translate(-g,-u)):e.drawImage(s,g,u,d,_),e.restore(),this.rendered.set(t)}bounds(){return this._bounds_rect}}s.ImageURLView=g,g.__name__=\"ImageURLView\";class u extends h.XYGlyph{constructor(e){super(e)}}s.ImageURL=u,a=u,u.__name__=\"ImageURL\",a.prototype.default_view=g,a.define((({Boolean:e,Int:t})=>({url:[_.StringSpec,{field:\"url\"}],anchor:[d.Anchor,\"top_left\"],global_alpha:[_.NumberSpec,{value:1}],angle:[_.AngleSpec,0],w:[_.NullDistanceSpec,null],h:[_.NullDistanceSpec,null],dilate:[e,!1],retry_attempts:[t,0],retry_timeout:[t,0]})))},\n function _(e,t,s,i,n){var o;i();const r=e(1),l=e(105),_=e(78),c=r.__importStar(e(210)),h=r.__importStar(e(17)),a=e(13),d=e(9),x=e(203),y=e(209),g=e(101);class p extends x.GlyphView{_project_data(){l.inplace.project_xy(this._xs.array,this._ys.array)}_index_data(e){const{data_size:t}=this;for(let s=0;s<t;s++){const t=this._xs.get(s),i=this._ys.get(s),[n,o,r,l]=(0,a.minmax2)(t,i);e.add_rect(n,r,o,l)}}_render(e,t,s){const{sxs:i,sys:n}=null!=s?s:this;for(const s of t){const t=i.get(s),o=n.get(s),r=Math.min(t.length,o.length);let l=!0;e.beginPath();for(let s=0;s<r;s++){const i=t[s],n=o[s];isFinite(i+n)?l?(e.moveTo(i,n),l=!1):e.lineTo(i,n):l=!0}this.visuals.line.set_vectorize(e,s),e.stroke()}}_hit_point(e){const t={x:e.sx,y:e.sy};let s=9999;const i=new Map;for(let e=0,n=this.sxs.length;e<n;e++){const n=Math.max(2,this.line_width.get(e)/2),o=this.sxs.get(e),r=this.sys.get(e);let l=null;for(let e=0,i=o.length-1;e<i;e++){const i={x:o[e],y:r[e]},_={x:o[e+1],y:r[e+1]},h=c.dist_to_segment(t,i,_);h<n&&h<s&&(s=h,l=[e])}null!=l&&i.set(e,l)}return new g.Selection({indices:[...i.keys()],multiline_indices:(0,d.to_object)(i)})}_hit_span(e){const{sx:t,sy:s}=e;let i,n;\"v\"==e.direction?(i=this.renderer.yscale.invert(s),n=this._ys):(i=this.renderer.xscale.invert(t),n=this._xs);const o=new Map;for(let e=0,t=n.length;e<t;e++){const t=n.get(e),s=[];for(let e=0,n=t.length-1;e<n;e++)t[e]<=i&&i<=t[e+1]&&s.push(e);s.length>0&&o.set(e,s)}return new g.Selection({indices:[...o.keys()],multiline_indices:(0,d.to_object)(o)})}get_interpolation_hit(e,t,s){const i=this._xs.get(e),n=this._ys.get(e),o=i[t],r=n[t],l=i[t+1],_=n[t+1];return(0,y.line_interpolation)(this.renderer,s,o,r,l,_)}draw_legend_for_index(e,t,s){(0,y.generic_line_vector_legend)(this.visuals,e,t,s)}scenterxy(){throw new Error(`${this}.scenterxy() is not implemented`)}}s.MultiLineView=p,p.__name__=\"MultiLineView\";class u extends x.Glyph{constructor(e){super(e)}}s.MultiLine=u,o=u,u.__name__=\"MultiLine\",o.prototype.default_view=p,o.define((({})=>({xs:[h.XCoordinateSeqSpec,{field:\"xs\"}],ys:[h.YCoordinateSeqSpec,{field:\"ys\"}]}))),o.mixins(_.LineVector)},\n function _(t,e,s,n,i){var o;n();const r=t(1),l=t(205),h=t(203),a=t(209),_=t(13),c=t(13),d=t(78),x=r.__importStar(t(210)),y=r.__importStar(t(17)),f=t(101),g=t(12);class p extends h.GlyphView{_project_data(){}_index_data(t){const{min:e,max:s}=Math,{data_size:n}=this;for(let i=0;i<n;i++){const n=this._xs[i],o=this._ys[i];if(0==n.length||0==o.length){t.add_empty();continue}let r=1/0,l=-1/0,h=1/0,a=-1/0;for(let t=0,i=n.length;t<i;t++){const i=n[t][0],c=o[t][0];if(0!=i.length&&0!=c.length){const[t,n]=(0,_.minmax)(i),[o,d]=(0,_.minmax)(c);r=e(r,t),l=s(l,n),h=e(h,o),a=s(a,d)}}t.add_rect(r,h,l,a)}this._hole_index=this._index_hole_data()}_index_hole_data(){const{min:t,max:e}=Math,{data_size:s}=this,n=new l.SpatialIndex(s);for(let i=0;i<s;i++){const s=this._xs[i],o=this._ys[i];if(0==s.length||0==o.length){n.add_empty();continue}let r=1/0,l=-1/0,h=1/0,a=-1/0;for(let n=0,i=s.length;n<i;n++){const i=s[n],c=o[n];if(i.length>1&&c.length>1)for(let s=1,n=i.length;s<n;s++){const[n,o]=(0,_.minmax)(i[s]),[d,x]=(0,_.minmax)(c[s]);r=t(r,n),l=e(l,o),h=t(h,d),a=e(a,x)}}n.add_rect(r,h,l,a)}return n.finish(),n}_mask_data(){const{x_range:t,y_range:e}=this.renderer.plot_view.frame;return this.index.indices({x0:t.min,x1:t.max,y0:e.min,y1:e.max})}_render(t,e,s){if(!this.visuals.fill.doit&&!this.visuals.line.doit)return;const{sxs:n,sys:i}=null!=s?s:this;for(const s of e){t.beginPath();const e=n[s],o=i[s],r=Math.min(e.length,o.length);for(let s=0;s<r;s++){const n=e[s],i=o[s],r=Math.min(n.length,i.length);for(let e=0;e<r;e++){const s=n[e],o=i[e],r=Math.min(s.length,o.length);for(let e=0;e<r;e++){const n=s[e],i=o[e];0==e?t.moveTo(n,i):t.lineTo(n,i)}t.closePath()}}this.visuals.fill.apply(t,s,\"evenodd\"),this.visuals.hatch.apply(t,s,\"evenodd\"),this.visuals.line.apply(t,s)}}_hit_rect(t){const{sx0:e,sx1:s,sy0:n,sy1:i}=t,o=[e,s,s,e],r=[n,n,i,i],[l,h]=this.renderer.xscale.r_invert(e,s),[a,_]=this.renderer.yscale.r_invert(n,i),c=this.index.indices({x0:l,x1:h,y0:a,y1:_}),d=[];for(const t of c){const e=this.sxs[t],s=this.sys[t];let n=!0;for(let t=0,i=e.length;t<i;t++){for(let i=0,l=e[t][0].length;i<l;i++){const l=e[t][0][i],h=s[t][0][i];if(!x.point_in_poly(l,h,o,r)){n=!1;break}}if(!n)break}n&&d.push(t)}return new f.Selection({indices:d})}_hit_point(t){const{sx:e,sy:s}=t,n=this.renderer.xscale.invert(e),i=this.renderer.yscale.invert(s),o=this.index.indices({x0:n,y0:i,x1:n,y1:i}),r=this._hole_index.indices({x0:n,y0:i,x1:n,y1:i}),l=[];for(const t of o){const n=this.sxs[t],i=this.sys[t];for(let o=0,h=n.length;o<h;o++){const h=n[o].length;if(x.point_in_poly(e,s,n[o][0],i[o][0]))if(1==h)l.push(t);else if(r.get(t)){if(h>1){let r=!1;for(let t=1;t<h;t++){const l=n[o][t],h=i[o][t];if(x.point_in_poly(e,s,l,h)){r=!0;break}}r||l.push(t)}}else l.push(t)}}return new f.Selection({indices:l})}_get_snap_coord(t){return(0,c.sum)(t)/t.length}scenterxy(t,e,s){if(1==this.sxs[t].length){return[this._get_snap_coord(this.sxs[t][0][0]),this._get_snap_coord(this.sys[t][0][0])]}{const n=this.sxs[t],i=this.sys[t];for(let t=0,o=n.length;t<o;t++)if(x.point_in_poly(e,s,n[t][0],i[t][0])){return[this._get_snap_coord(n[t][0]),this._get_snap_coord(i[t][0])]}}(0,g.unreachable)()}map_data(){const t=this._xs.length;this.sxs=new Array(t),this.sys=new Array(t);for(let e=0;e<t;e++){const t=this._xs[e].length;this.sxs[e]=new Array(t),this.sys[e]=new Array(t);for(let s=0;s<t;s++){const t=this._xs[e][s].length;this.sxs[e][s]=new Array(t),this.sys[e][s]=new Array(t);for(let n=0;n<t;n++){const[t,i]=this.renderer.coordinates.map_to_screen(this._xs[e][s][n],this._ys[e][s][n]);this.sxs[e][s][n]=t,this.sys[e][s][n]=i}}}}draw_legend_for_index(t,e,s){(0,a.generic_area_vector_legend)(this.visuals,t,e,s)}}s.MultiPolygonsView=p,p.__name__=\"MultiPolygonsView\";class m extends h.Glyph{constructor(t){super(t)}}s.MultiPolygons=m,o=m,m.__name__=\"MultiPolygons\",o.prototype.default_view=p,o.define((({})=>({xs:[y.XCoordinateSeqSeqSeqSpec,{field:\"xs\"}],ys:[y.YCoordinateSeqSeqSeqSpec,{field:\"ys\"}]}))),o.mixins([d.LineVector,d.FillVector,d.HatchVector])},\n function _(e,t,s,i,n){var r;i();const a=e(1),o=e(203),_=e(209),c=e(13),h=e(78),l=a.__importStar(e(210)),d=a.__importStar(e(17)),y=e(101),p=e(12),x=e(105);class f extends o.GlyphView{_project_data(){x.inplace.project_xy(this._xs.array,this._ys.array)}_index_data(e){const{data_size:t}=this;for(let s=0;s<t;s++){const t=this._xs.get(s),i=this._ys.get(s),[n,r,a,o]=(0,c.minmax2)(t,i);e.add_rect(n,a,r,o)}}_mask_data(){const{x_range:e,y_range:t}=this.renderer.plot_view.frame;return this.index.indices({x0:e.min,x1:e.max,y0:t.min,y1:t.max})}_render(e,t,s){const{sxs:i,sys:n}=null!=s?s:this;for(const s of t){const t=i.get(s),r=n.get(s);let a=!0;e.beginPath();const o=Math.min(t.length,r.length);for(let s=0;s<o;s++){const i=t[s],n=r[s];isFinite(i+n)?a?(e.moveTo(i,n),a=!1):e.lineTo(i,n):(e.closePath(),a=!0)}e.closePath(),this.visuals.fill.apply(e,s),this.visuals.hatch.apply(e,s),this.visuals.line.apply(e,s)}}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:n}=e,r=[t,s,s,t],a=[i,i,n,n],[o,_]=this.renderer.xscale.r_invert(t,s),[c,h]=this.renderer.yscale.r_invert(i,n),d=this.index.indices({x0:o,x1:_,y0:c,y1:h}),p=[];for(const e of d){const t=this.sxs.get(e),s=this.sys.get(e);let i=!0;for(let e=0,n=t.length;e<n;e++){const n=t[e],o=s[e];if(!l.point_in_poly(n,o,r,a)){i=!1;break}}i&&p.push(e)}return new y.Selection({indices:p})}_hit_point(e){const{sx:t,sy:s}=e,i=this.renderer.xscale.invert(t),n=this.renderer.yscale.invert(s),r=this.index.indices({x0:i,y0:n,x1:i,y1:n}),a=[];for(const e of r){const i=this.sxs.get(e),n=this.sys.get(e),r=i.length;for(let o=0,_=0;;_++){if(isNaN(i[_])||_==r){const r=i.subarray(o,_),c=n.subarray(o,_);if(l.point_in_poly(t,s,r,c)){a.push(e);break}o=_+1}if(_==r)break}}return new y.Selection({indices:a})}_get_snap_coord(e){return(0,c.sum)(e)/e.length}scenterxy(e,t,s){const i=this.sxs.get(e),n=this.sys.get(e),r=i.length;let a=!1;for(let e=0,o=0;;o++){const _=isNaN(i[o]);if(a=a||_,o==r&&!a){return[this._get_snap_coord(i),this._get_snap_coord(n)]}if(_||o==r){const r=i.subarray(e,o),a=n.subarray(e,o);if(l.point_in_poly(t,s,r,a)){return[this._get_snap_coord(r),this._get_snap_coord(a)]}e=o+1}if(o==r)break}(0,p.unreachable)()}draw_legend_for_index(e,t,s){(0,_.generic_area_vector_legend)(this.visuals,e,t,s)}}s.PatchesView=f,f.__name__=\"PatchesView\";class g extends o.Glyph{constructor(e){super(e)}}s.Patches=g,r=g,g.__name__=\"Patches\",r.prototype.default_view=f,r.define((({})=>({xs:[d.XCoordinateSeqSpec,{field:\"xs\"}],ys:[d.YCoordinateSeqSpec,{field:\"ys\"}]}))),r.mixins([h.LineVector,h.FillVector,h.HatchVector])},\n function _(t,e,i,r,o){var s;r();const a=t(1),l=t(322),n=a.__importStar(t(17));class _ extends l.LRTBView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:i}=await Promise.resolve().then((()=>a.__importStar(t(522))));this.glglyph=new i(e.regl_wrapper,this)}}scenterxy(t){return[this.sleft[t]/2+this.sright[t]/2,this.stop[t]/2+this.sbottom[t]/2]}_lrtb(t){return[this._left[t],this._right[t],this._top[t],this._bottom[t]]}}i.QuadView=_,_.__name__=\"QuadView\";class p extends l.LRTB{constructor(t){super(t)}}i.Quad=p,s=p,p.__name__=\"Quad\",s.prototype.default_view=_,s.define((({})=>({right:[n.XCoordinateSpec,{field:\"right\"}],bottom:[n.YCoordinateSpec,{field:\"bottom\"}],left:[n.XCoordinateSpec,{field:\"left\"}],top:[n.YCoordinateSpec,{field:\"top\"}]})))},\n function _(e,i,t,s,n){var c;s();const o=e(1),r=e(78),a=e(105),_=e(203),d=e(209),l=e(320),x=o.__importStar(e(17));class y extends _.GlyphView{_project_data(){a.inplace.project_xy(this._x0,this._y0),a.inplace.project_xy(this._x1,this._y1)}_index_data(e){const{_x0:i,_x1:t,_y0:s,_y1:n,_cx:c,_cy:o,data_size:r}=this;for(let a=0;a<r;a++){const r=i[a],_=t[a],d=s[a],x=n[a],y=c[a],p=o[a];if(isFinite(r+_+d+x+y+p)){const{x0:i,y0:t,x1:s,y1:n}=(0,l.qbb)(r,d,y,p,_,x);e.add_rect(i,t,s,n)}else e.add_empty()}}_render(e,i,t){if(!this.visuals.line.doit)return;const{sx0:s,sy0:n,sx1:c,sy1:o,scx:r,scy:a}=null!=t?t:this;for(const t of i){const i=s[t],_=n[t],d=c[t],l=o[t],x=r[t],y=a[t];isFinite(i+_+d+l+x+y)&&(e.beginPath(),e.moveTo(i,_),e.quadraticCurveTo(x,y,d,l),this.visuals.line.apply(e,t))}}draw_legend_for_index(e,i,t){(0,d.generic_line_vector_legend)(this.visuals,e,i,t)}scenterxy(){throw new Error(`${this}.scenterxy() is not implemented`)}}t.QuadraticView=y,y.__name__=\"QuadraticView\";class p extends _.Glyph{constructor(e){super(e)}}t.Quadratic=p,c=p,p.__name__=\"Quadratic\",c.prototype.default_view=y,c.define((({})=>({x0:[x.XCoordinateSpec,{field:\"x0\"}],y0:[x.YCoordinateSpec,{field:\"y0\"}],x1:[x.XCoordinateSpec,{field:\"x1\"}],y1:[x.YCoordinateSpec,{field:\"y1\"}],cx:[x.XCoordinateSpec,{field:\"cx\"}],cy:[x.YCoordinateSpec,{field:\"cy\"}]}))),c.mixins(r.LineVector)},\n function _(e,t,s,n,i){var l;n();const a=e(1),r=e(202),h=e(209),o=e(78),_=e(23),c=a.__importStar(e(17));class g extends r.XYGlyphView{_map_data(){\"data\"==this.model.properties.length.units?this.slength=this.sdist(this.renderer.xscale,this._x,this.length):this.slength=(0,_.to_screen)(this.length);const{width:e,height:t}=this.renderer.plot_view.frame.bbox,s=2*(e+t),{slength:n}=this;for(let e=0,t=n.length;e<t;e++)0==n[e]&&(n[e]=s)}_render(e,t,s){if(!this.visuals.line.doit)return;const{sx:n,sy:i,slength:l,angle:a}=null!=s?s:this;for(const s of t){const t=n[s],r=i[s],h=a.get(s),o=l[s];isFinite(t+r+h+o)&&(e.translate(t,r),e.rotate(h),e.beginPath(),e.moveTo(0,0),e.lineTo(o,0),this.visuals.line.apply(e,s),e.rotate(-h),e.translate(-t,-r))}}draw_legend_for_index(e,t,s){(0,h.generic_line_vector_legend)(this.visuals,e,t,s)}}s.RayView=g,g.__name__=\"RayView\";class d extends r.XYGlyph{constructor(e){super(e)}}s.Ray=d,l=d,d.__name__=\"Ray\",l.prototype.default_view=g,l.mixins(o.LineVector),l.define((({})=>({length:[c.DistanceSpec,0],angle:[c.AngleSpec,0]})))},\n function _(t,e,s,i,r){var a;i();const n=t(1),h=t(325),_=t(209),d=t(23),o=t(13),l=t(101),c=t(57),y=t(153),x=t(233),w=n.__importStar(t(235)),g=t(234),{abs:p,sqrt:u}=Math;class f extends h.CenterRotatableView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{RectGL:s}=await Promise.resolve().then((()=>n.__importStar(t(524))));this.glglyph=new s(e.regl_wrapper,this)}}_set_data(t){super._set_data(t),this.border_radius=w.border_radius(this.model.border_radius)}_map_data(){const t=this.data_size;if(\"data\"==this.model.properties.width.units)[this.sw,this.sx0]=this._map_dist_corner_for_data_side_length(this._x,this.width,this.renderer.xscale);else{this.sw=(0,d.to_screen)(this.width),this.sx0=new d.ScreenArray(t);for(let e=0;e<t;e++)this.sx0[e]=this.sx[e]-this.sw[e]/2}if(\"data\"==this.model.properties.height.units)[this.sh,this.sy1]=this._map_dist_corner_for_data_side_length(this._y,this.height,this.renderer.yscale);else{this.sh=(0,d.to_screen)(this.height),this.sy1=new d.ScreenArray(t);for(let e=0;e<t;e++)this.sy1[e]=this.sy[e]-this.sh[e]/2}const{sw:e,sh:s}=this;this.ssemi_diag=new d.ScreenArray(t);for(let i=0;i<t;i++){const t=e[i],r=s[i];this.ssemi_diag[i]=u(t**2+r**2)/2}const i=new d.ScreenArray(t),r=new d.ScreenArray(t);for(let e=0;e<t;e++)i[e]=this.sx0[e]+this.sw[e]/2,r[e]=this.sy1[e]+this.sh[e]/2;this.max_x2_ddist=(0,o.max)(this._ddist(0,i,this.ssemi_diag)),this.max_y2_ddist=(0,o.max)(this._ddist(1,r,this.ssemi_diag))}_render(t,e,s){const{sx:i,sy:r,sx0:a,sy1:n,sw:h,sh:_,angle:d,border_radius:o}=null!=s?s:this;for(const s of e){const e=i[s],l=r[s],y=a[s],x=n[s],w=h[s],p=_[s],u=d.get(s);if(isFinite(e+l+y+x+w+p+u)&&(0!=w&&0!=p)){if(t.beginPath(),0!=u){t.translate(e,l),t.rotate(u);const s=new c.BBox({x:-w/2,y:-p/2,width:w,height:p});(0,g.round_rect)(t,s,o),t.rotate(-u),t.translate(-e,-l)}else{const e=new c.BBox({x:y,y:x,width:w,height:p});(0,g.round_rect)(t,e,o)}this.visuals.fill.apply(t,s),this.visuals.hatch.apply(t,s),this.visuals.line.apply(t,s)}}}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const e={x:t.sx,y:t.sy},s=this.renderer.xscale.invert(e.x),i=this.renderer.yscale.invert(e.y),r=this.index.indices({x0:s-this.max_x2_ddist,x1:s+this.max_x2_ddist,y0:i-this.max_y2_ddist,y1:i+this.max_y2_ddist}),{sx:a,sy:n,sx0:h,sy1:_,sw:d,sh:o,angle:c}=this,x=[];for(const t of r){const s=a[t],i=n[t],r=h[t],l=_[t],w=d[t],g=o[t],p=c.get(t),u=(0,y.rotate_around)(e,{x:s,y:i},-p),f=u.x-r,m=u.y-l;0<=f&&f<=w&&0<=m&&m<=g&&x.push(t)}return new l.Selection({indices:x})}_map_dist_corner_for_data_side_length(t,e,s){const i=t.length,r=new Float64Array(i),a=new Float64Array(i);for(let s=0;s<i;s++){const i=t[s],n=e.get(s)/2;r[s]=i-n,a[s]=i+n}const n=s.v_compute(r),h=s.v_compute(a),_=this.sdist(s,r,e,\"edge\",this.model.dilate);let d=n;for(let t=0;t<i;t++){const e=n[t],s=h[t];if(!isNaN(e+s)&&e!=s){d=e<s?n:h;break}}return[_,d]}_ddist(t,e,s){const i=(0,d.infer_type)(e,s),r=0==t?this.renderer.xscale:this.renderer.yscale,a=e,n=a.length,h=new i(n);for(let t=0;t<n;t++)h[t]=a[t]+s[t];const _=r.v_invert(a),o=r.v_invert(h),l=_.length,c=new i(l);for(let t=0;t<l;t++)c[t]=p(o[t]-_[t]);return c}draw_legend_for_index(t,e,s){(0,_.generic_area_vector_legend)(this.visuals,t,e,s)}}s.RectView=f,f.__name__=\"RectView\";class m extends h.CenterRotatable{constructor(t){super(t)}}s.Rect=m,a=m,m.__name__=\"Rect\",a.prototype.default_view=f,a.define((({Boolean:t})=>({border_radius:[x.BorderRadius,0],dilate:[t,!1]})))},\n function _(e,t,r,a,i){var s;a();const n=e(1),l=e(341),_=e(342),c=n.__importStar(e(17));class o extends l.MarkerView{async lazy_initialize(){await super.lazy_initialize();const{webgl:t}=this.renderer.plot_view.canvas_view;if(null!=t&&t.regl_wrapper.has_webgl){const{MultiMarkerGL:r}=await Promise.resolve().then((()=>n.__importStar(e(523))));this.glglyph=new r(t.regl_wrapper,this)}}_render(e,t,r){const{sx:a,sy:i,size:s,angle:n,marker:l}=null!=r?r:this;for(const r of t){const t=a[r],c=i[r],o=s.get(r),g=n.get(r),w=l.get(r);if(!isFinite(t+c+o+g)||null==w)continue;const p=o/2;e.beginPath(),e.translate(t,c),0!=g&&e.rotate(g),_.marker_funcs[w](e,r,p,this.visuals),0!=g&&e.rotate(-g),e.translate(-t,-c)}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:i},s){const n=s+1,l=this.marker.get(s),_=Object.assign(Object.assign({},this._get_legend_args({x0:t,x1:r,y0:a,y1:i},s)),{marker:new c.UniformScalar(l,n)});this._render(e,[s],_)}}r.ScatterView=o,o.__name__=\"ScatterView\";class g extends l.Marker{constructor(e){super(e)}}r.Scatter=g,s=g,g.__name__=\"Scatter\",s.prototype.default_view=o,s.define((()=>({marker:[c.MarkerSpec,{value:\"circle\"}]})))},\n function _(e,t,s,n,i){var r;n();const a=e(1),c=e(202),o=e(78),_=a.__importStar(e(210)),h=a.__importStar(e(17)),l=e(10),x=e(101);class d extends c.XYGlyphView{_render(e,t,s){const{sx:n,sy:i,size:r,angle:a}=null!=s?s:this;for(const s of t){const t=n[s],c=i[s],o=r.get(s),_=a.get(s);if(!isFinite(t+c+o+_))continue;const h=o/2;e.beginPath(),e.translate(t,c),0!=_&&e.rotate(_),this._render_one(e,s,h,this.visuals),0!=_&&e.rotate(-_),e.translate(-t,-c)}}_mask_data(){const{x_target:e,y_target:t}=this.renderer.plot_view.frame,s=e.widen(this.max_size).map((e=>this.renderer.xscale.invert(e))),n=t.widen(this.max_size).map((e=>this.renderer.yscale.invert(e)));return this.index.indices({x0:s.start,x1:s.end,y0:n.start,y1:n.end})}_hit_point(e){const{sx:t,sy:s}=e,{max_size:n}=this,{hit_dilation:i}=this.model,r=t-n*i,a=t+n*i,[c,o]=this.renderer.xscale.r_invert(r,a),_=s-n*i,h=s+n*i,[l,d]=this.renderer.yscale.r_invert(_,h),y=this.index.indices({x0:c,x1:o,y0:l,y1:d}),g=[];for(const e of y){const n=this.size.get(e)/2*i;Math.abs(this.sx[e]-t)<=n&&Math.abs(this.sy[e]-s)<=n&&g.push(e)}return new x.Selection({indices:g})}_hit_span(e){const{sx:t,sy:s}=e,n=this.bounds(),i=this.max_size/2;let r,a,c,o;if(\"h\"==e.direction){c=n.y0,o=n.y1;const e=t-i,s=t+i;[r,a]=this.renderer.xscale.r_invert(e,s)}else{r=n.x0,a=n.x1;const e=s-i,t=s+i;[c,o]=this.renderer.yscale.r_invert(e,t)}const _=[...this.index.indices({x0:r,x1:a,y0:c,y1:o})];return new x.Selection({indices:_})}_hit_rect(e){const{sx0:t,sx1:s,sy0:n,sy1:i}=e,[r,a]=this.renderer.xscale.r_invert(t,s),[c,o]=this.renderer.yscale.r_invert(n,i),_=[...this.index.indices({x0:r,x1:a,y0:c,y1:o})];return new x.Selection({indices:_})}_hit_poly(e){const{sx:t,sy:s}=e,n=(0,l.range)(0,this.sx.length),i=[];for(let e=0,r=n.length;e<r;e++){const r=n[e];_.point_in_poly(this.sx[e],this.sy[e],t,s)&&i.push(r)}return new x.Selection({indices:i})}_get_legend_args({x0:e,x1:t,y0:s,y1:n},i){const r=i+1,a=new Array(r),c=new Array(r);a[i]=(e+t)/2,c[i]=(s+n)/2;const o=.4*Math.min(Math.abs(t-e),Math.abs(n-s));return{sx:a,sy:c,size:new h.UniformScalar(o,r),angle:new h.UniformScalar(0,r)}}draw_legend_for_index(e,{x0:t,x1:s,y0:n,y1:i},r){const a=this._get_legend_args({x0:t,x1:s,y0:n,y1:i},r);this._render(e,[r],a)}}s.MarkerView=d,d.__name__=\"MarkerView\";class y extends c.XYGlyph{constructor(e){super(e)}}s.Marker=y,r=y,y.__name__=\"Marker\",r.mixins([o.LineVector,o.FillVector,o.HatchVector]),r.define((({Number:e})=>({size:[h.ScreenSizeSpec,{value:4}],angle:[h.AngleSpec,0],hit_dilation:[e,1]})))},\n function _(l,n,o,i,a){i();const t=Math.sqrt(3),e=Math.sqrt(5),p=(e+1)/4,c=Math.sqrt((5-e)/8),h=(e-1)/4,u=Math.sqrt((5+e)/8);function f(l,n){l.rotate(Math.PI/4),y(l,n),l.rotate(-Math.PI/4)}function r(l,n){const o=n*t,i=o/3;l.moveTo(-o/2,-i),l.lineTo(0,0),l.lineTo(o/2,-i),l.lineTo(0,0),l.lineTo(0,n)}function y(l,n){l.moveTo(0,n),l.lineTo(0,-n),l.moveTo(-n,0),l.lineTo(n,0)}function T(l,n){l.moveTo(0,n),l.lineTo(n/1.5,0),l.lineTo(0,-n),l.lineTo(-n/1.5,0),l.closePath()}function s(l,n){const o=n*t,i=o/3;l.moveTo(-n,i),l.lineTo(n,i),l.lineTo(0,i-o),l.closePath()}function v(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function d(l,n,o,i){T(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function P(l,n,o,i){!function(l,n){l.beginPath(),l.arc(0,0,n/4,0,2*Math.PI,!1),l.closePath()}(l,o),i.line.set_vectorize(l,n),l.fillStyle=l.strokeStyle,l.fill()}function m(l,n,o,i){!function(l,n){const o=n/2,i=t*o;l.moveTo(n,0),l.lineTo(o,-i),l.lineTo(-o,-i),l.lineTo(-n,0),l.lineTo(-o,i),l.lineTo(o,i),l.closePath()}(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function _(l,n,o,i){const a=2*o;l.rect(-o,-o,a,a),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function q(l,n,o,i){!function(l,n){const o=Math.sqrt(5-2*e)*n;l.moveTo(0,-n),l.lineTo(o*h,o*u-n),l.lineTo(o*(1+h),o*u-n),l.lineTo(o*(1+h-p),o*(u+c)-n),l.lineTo(o*(1+2*h-p),o*(2*u+c)-n),l.lineTo(0,2*o*u-n),l.lineTo(-o*(1+2*h-p),o*(2*u+c)-n),l.lineTo(-o*(1+h-p),o*(u+c)-n),l.lineTo(-o*(1+h),o*u-n),l.lineTo(-o*h,o*u-n),l.closePath()}(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function M(l,n,o,i){s(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}o.marker_funcs={asterisk:function(l,n,o,i){y(l,o),f(l,o),i.line.apply(l,n)},circle:v,circle_cross:function(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),y(l,o),i.line.apply(l,n)},circle_dot:function(l,n,o,i){v(l,n,o,i),P(l,n,o,i)},circle_y:function(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),r(l,o),i.line.apply(l,n)},circle_x:function(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),f(l,o),i.line.apply(l,n)},cross:function(l,n,o,i){y(l,o),i.line.apply(l,n)},diamond:d,diamond_dot:function(l,n,o,i){d(l,n,o,i),P(l,n,o,i)},diamond_cross:function(l,n,o,i){T(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),l.moveTo(0,o),l.lineTo(0,-o),l.moveTo(-o/1.5,0),l.lineTo(o/1.5,0),i.line.apply(l,n)},dot:P,hex:m,hex_dot:function(l,n,o,i){m(l,n,o,i),P(l,n,o,i)},inverted_triangle:function(l,n,o,i){l.rotate(Math.PI),s(l,o),l.rotate(-Math.PI),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},plus:function(l,n,o,i){const a=3*o/8,t=[a,a,o,o,a,a,-a,-a,-o,-o,-a,-a],e=[o,a,a,-a,-a,-o,-o,-a,-a,a,a,o];l.beginPath();for(let n=0;n<12;n++)l.lineTo(t[n],e[n]);l.closePath(),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},square:_,square_cross:function(l,n,o,i){const a=2*o;l.rect(-o,-o,a,a),i.fill.apply(l,n),i.hatch.apply(l,n),y(l,o),i.line.apply(l,n)},square_dot:function(l,n,o,i){_(l,n,o,i),P(l,n,o,i)},square_pin:function(l,n,o,i){const a=3*o/8;l.moveTo(-o,-o),l.quadraticCurveTo(0,-a,o,-o),l.quadraticCurveTo(a,0,o,o),l.quadraticCurveTo(0,a,-o,o),l.quadraticCurveTo(-a,0,-o,-o),l.closePath(),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},square_x:function(l,n,o,i){const a=2*o;l.rect(-o,-o,a,a),i.fill.apply(l,n),i.hatch.apply(l,n),l.moveTo(-o,o),l.lineTo(o,-o),l.moveTo(-o,-o),l.lineTo(o,o),i.line.apply(l,n)},star:q,star_dot:function(l,n,o,i){q(l,n,o,i),P(l,n,o,i)},triangle:M,triangle_dot:function(l,n,o,i){M(l,n,o,i),P(l,n,o,i)},triangle_pin:function(l,n,o,i){const a=o*t,e=a/3,p=3*e/8;l.moveTo(-o,e),l.quadraticCurveTo(0,p,o,e),l.quadraticCurveTo(t*p/2,p/2,0,e-a),l.quadraticCurveTo(-t*p/2,p/2,-o,e),l.closePath(),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},dash:function(l,n,o,i){!function(l,n){l.moveTo(-n,0),l.lineTo(n,0)}(l,o),i.line.apply(l,n)},x:function(l,n,o,i){f(l,o),i.line.apply(l,n)},y:function(l,n,o,i){r(l,o),i.line.apply(l,n)}}},\n function _(e,t,s,i,n){var r;i();const o=e(1),a=o.__importStar(e(210)),_=o.__importStar(e(17)),d=e(78),h=e(105),c=e(11),x=e(203),l=e(209),y=e(101);class p extends x.GlyphView{_project_data(){h.inplace.project_xy(this._x0,this._y0),h.inplace.project_xy(this._x1,this._y1)}_index_data(e){const{min:t,max:s}=Math,{_x0:i,_x1:n,_y0:r,_y1:o,data_size:a}=this;for(let _=0;_<a;_++){const a=i[_],d=n[_],h=r[_],c=o[_];e.add_rect(t(a,d),t(h,c),s(a,d),s(h,c))}}_render(e,t,s){if(!this.visuals.line.doit)return;const{sx0:i,sy0:n,sx1:r,sy1:o}=null!=s?s:this;for(const s of t){const t=i[s],a=n[s],_=r[s],d=o[s];isFinite(t+a+_+d)&&(this._render_decorations(e,s,t,a,_,d),e.beginPath(),e.moveTo(t,a),e.lineTo(_,d),this.visuals.line.apply(e,s))}}_render_decorations(e,t,s,i,n,r){const{PI:o}=Math,a=(0,c.atan2)([s,i],[n,r])+o/2;for(const _ of this.decorations.values())e.save(),\"start\"==_.model.node?(e.translate(s,i),e.rotate(a+o)):\"end\"==_.model.node&&(e.translate(n,r),e.rotate(a)),_.marking.render(e,t),e.restore()}_hit_point(e){const{sx:t,sy:s}=e,i={x:t,y:s},[n,r]=this.renderer.xscale.r_invert(t-2,t+2),[o,_]=this.renderer.yscale.r_invert(s-2,s+2),d=this.index.indices({x0:n,y0:o,x1:r,y1:_}),h=[];for(const e of d){const t=Math.max(2,this.line_width.get(e)/2)**2,s={x:this.sx0[e],y:this.sy0[e]},n={x:this.sx1[e],y:this.sy1[e]};a.dist_to_segment_squared(i,s,n)<t&&h.push(e)}return new y.Selection({indices:h})}_hit_span(e){const[t,s]=this.renderer.plot_view.frame.bbox.ranges,{sx:i,sy:n}=e;let r,o,a;\"v\"==e.direction?(a=this.renderer.yscale.invert(n),[r,o]=[this._y0,this._y1]):(a=this.renderer.xscale.invert(i),[r,o]=[this._x0,this._x1]);const _=[],[d,h]=this.renderer.xscale.r_invert(t.start,t.end),[c,x]=this.renderer.yscale.r_invert(s.start,s.end),l=this.index.indices({x0:d,y0:c,x1:h,y1:x});for(const t of l){(r[t]<=a&&a<=o[t]||o[t]<=a&&a<=r[t])&&_.push(t);const s=1.5+this.line_width.get(t)/2;r[t]==o[t]&&(\"h\"==e.direction?Math.abs(this.sx0[t]-i)<=s&&_.push(t):Math.abs(this.sy0[t]-n)<=s&&_.push(t))}return new y.Selection({indices:_})}scenterxy(e){return[this.sx0[e]/2+this.sx1[e]/2,this.sy0[e]/2+this.sy1[e]/2]}draw_legend_for_index(e,t,s){(0,l.generic_line_vector_legend)(this.visuals,e,t,s)}}s.SegmentView=p,p.__name__=\"SegmentView\";class f extends x.Glyph{constructor(e){super(e)}}s.Segment=f,r=f,f.__name__=\"Segment\",r.prototype.default_view=p,r.define((({})=>({x0:[_.XCoordinateSpec,{field:\"x0\"}],y0:[_.YCoordinateSpec,{field:\"y0\"}],x1:[_.XCoordinateSpec,{field:\"x1\"}],y1:[_.YCoordinateSpec,{field:\"y1\"}]}))),r.mixins(d.LineVector)},\n function _(t,e,s,i,n){var o;i();const _=t(1),l=t(202),a=_.__importStar(t(78)),c=t(345);class r extends l.XYGlyphView{_set_data(){const{tension:t,closed:e}=this.model;[this._xt,this._yt]=(0,c.catmullrom_spline)(this._x,this._y,20,t,e)}_map_data(){const{x_scale:t,y_scale:e}=this.renderer.coordinates;this.sxt=t.v_compute(this._xt),this.syt=e.v_compute(this._yt)}_render(t,e,s){const{sxt:i,syt:n}=null!=s?s:this;let o=!0;t.beginPath();const _=i.length;for(let e=0;e<_;e++){const s=i[e],_=n[e];isFinite(s+_)?o?(t.moveTo(s,_),o=!1):t.lineTo(s,_):o=!0}this.visuals.line.set_value(t),t.stroke()}}s.SplineView=r,r.__name__=\"SplineView\";class h extends l.XYGlyph{constructor(t){super(t)}}s.Spline=h,o=h,h.__name__=\"Spline\",o.prototype.default_view=r,o.mixins(a.LineScalar),o.define((({Boolean:t,Number:e})=>({tension:[e,.5],closed:[t,!1]})))},\n function _(n,t,e,o,s){o();const c=n(23),l=n(12);e.catmullrom_spline=function(n,t,e=10,o=.5,s=!1){(0,l.assert)(n.length==t.length);const r=n.length,f=s?r+1:r,w=(0,c.infer_type)(n,t),i=new w(f+2),u=new w(f+2);i.set(n,1),u.set(t,1),s?(i[0]=n[r-1],u[0]=t[r-1],i[f]=n[0],u[f]=t[0],i[f+1]=n[1],u[f+1]=t[1]):(i[0]=n[0],u[0]=t[0],i[f+1]=n[r-1],u[f+1]=t[r-1]);const g=new w(4*(e+1));for(let n=0,t=0;n<=e;n++){const o=n/e,s=o**2,c=o*s;g[t++]=2*c-3*s+1,g[t++]=-2*c+3*s,g[t++]=c-2*s+o,g[t++]=c-s}const h=new w((f-1)*(e+1)),_=new w((f-1)*(e+1));for(let n=1,t=0;n<f;n++){const s=(i[n+1]-i[n-1])*o,c=(u[n+1]-u[n-1])*o,l=(i[n+2]-i[n])*o,r=(u[n+2]-u[n])*o;for(let o=0;o<=4*e;t++){const e=g[o++],f=g[o++],w=g[o++],a=g[o++];h[t]=e*i[n]+f*i[n+1]+w*s+a*l,_[t]=e*u[n]+f*u[n+1]+w*c+a*r}}return[h,_]}},\n function _(e,t,r,i,n){var s;i();const _=e(1),a=e(202),l=e(209),o=_.__importStar(e(78)),h=e(19),c=e(12);class d extends a.XYGlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:t}=this.renderer.plot_view.canvas_view;if(null!=t&&t.regl_wrapper.has_webgl){const{StepGL:r}=await Promise.resolve().then((()=>_.__importStar(e(525))));this.glglyph=new r(t.regl_wrapper,this)}}_render(e,t,r){const i=t.length;if(i<2)return;const{sx:n,sy:s}=null!=r?r:this,_=this.model.mode;this.visuals.line.set_value(e);let a=!1,l=!1;const o=t[0];let h=isFinite(n[o]+s[o]);\"center\"==_&&(a=this._render_xy(e,a,h?n[o]:NaN,s[o]));for(const r of t){const t=isFinite(n[r+1]+s[r+1]);switch(_){case\"before\":a=this._render_xy(e,a,h?n[r]:NaN,s[r]),r<n.length-1&&(a=this._render_xy(e,a,h&&t?n[r]:NaN,s[r+1]));break;case\"after\":a=this._render_xy(e,a,h?n[r]:NaN,s[r]),r<n.length-1&&(a=this._render_xy(e,a,h&&t?n[r+1]:NaN,s[r]));break;case\"center\":if(h&&t){const t=(n[r]+n[r+1])/2;a=this._render_xy(e,a,t,s[r]),a=this._render_xy(e,a,t,s[r+1])}else l&&(a=this._render_xy(e,a,h?n[r]:NaN,s[r])),a=this._render_xy(e,a,t?n[r+1]:NaN,s[r+1]);break;default:(0,c.unreachable)()}l=h,h=t}if(a){const r=t[i-1];this._render_xy(e,a,h?n[r]:NaN,s[r])&&e.stroke()}}_render_xy(e,t,r,i){return isFinite(r+i)?t?e.lineTo(r,i):(e.beginPath(),e.moveTo(r,i),t=!0):t&&(e.stroke(),t=!1),t}draw_legend_for_index(e,t,r){(0,l.generic_line_scalar_legend)(this.visuals,e,t)}}r.StepView=d,d.__name__=\"StepView\";class p extends a.XYGlyph{constructor(e){super(e)}}r.Step=p,s=p,p.__name__=\"Step\",s.prototype.default_view=d,s.mixins(o.LineScalar),s.define((()=>({mode:[h.StepMode,\"before\"]})))},\n function _(t,e,s,a,i){var r;a();const n=t(1),o=t(202),l=n.__importStar(t(78)),_=n.__importStar(t(17)),c=t(37),h=t(101),d=t(57),u=t(32),x=t(153),f=t(151),g=t(233),p=n.__importStar(t(235)),y=t(234);class b extends _.DataSpec{}b.__name__=\"TextAnchorSpec\";class w extends o.XYGlyphView{_set_data(t){super._set_data(t),this.labels=Array.from(this.text,(t=>{if(null==t)return null;{const e=`${t}`;return new f.TextBox({text:e})}}))}after_visuals(){super.after_visuals();const t=this.data_size,{anchor:e}=this,{padding:s,border_radius:a}=this.model,{text_align:i,text_baseline:r}=this.visuals.text;if(e.is_Scalar()&&\"auto\"!=e.value)this.anchor_=new c.UniformScalar(p.anchor(e.value),t);else if(e.is_Scalar()&&i.is_Scalar()&&r.is_Scalar())this.anchor_=new c.UniformScalar(p.text_anchor(e.value,i.value,r.value),t);else{const s=new Array(t);for(let a=0;a<t;a++){const t=e.get(a),n=i.get(a),o=r.get(a);s[a]=p.text_anchor(t,n,o)}this.anchor_=new c.UniformVector(s)}this.padding=p.padding(s),this.border_radius=p.border_radius(a),this.swidth=new Float32Array(t),this.sheight=new Float32Array(t);const{left:n,right:o,top:l,bottom:_}=this.padding;for(const[t,e]of(0,u.enumerate)(this.labels)){if(null==t)continue;t.visuals=this.visuals.text.values(e),t.position={sx:0,sy:0,x_anchor:\"left\",y_anchor:\"top\"},t.align=\"auto\";const s=t.size(),a=n+s.width+o,i=l+s.height+_;this.swidth[e]=a,this.sheight[e]=i}}_render(t,e,s){const{sx:a,sy:i,x_offset:r,y_offset:n,angle:o,labels:l}=null!=s?s:this,{text:_,background_fill:c,background_hatch:h,border_line:u}=this.visuals,{anchor_:x,border_radius:f,padding:g}=this,{swidth:p,sheight:b}=this;for(const s of e){const e=a[s]+r.get(s),w=i[s]+n.get(s),v=o.get(s),N=l[s];if(!isFinite(e+w+v)||null==N)continue;const m=p[s],S=b[s],T=x.get(s),V=T.x*m,A=T.y*S;if(t.translate(e,w),t.rotate(v),t.translate(-V,-A),c.v_doit(s)||h.v_doit(s)||u.v_doit(s)){t.beginPath();const e=new d.BBox({x:0,y:0,width:m,height:S});(0,y.round_rect)(t,e,f),c.apply(t,s),h.apply(t,s),u.apply(t,s)}if(_.v_doit(s)){const{left:e,top:s}=g;t.translate(e,s),N.paint(t),t.translate(-e,-s)}t.translate(V,A),t.rotate(-v),t.translate(-e,-w)}}_hit_point(t){const e={x:t.sx,y:t.sy},{sx:s,sy:a,x_offset:i,y_offset:r,angle:n,labels:o}=this,{anchor_:l}=this,{swidth:_,sheight:c}=this,d=this.data_size,u=[];for(let t=0;t<d;t++){const h=s[t]+i.get(t),d=a[t]+r.get(t),f=n.get(t),g=o[t];if(!isFinite(h+d+f)||null==g)continue;const p=_[t],y=c[t],b=l.get(t),w=b.x*p,v=b.y*y,{x:N,y:m}=(0,x.rotate_around)(e,{x:h,y:d},-f),S=h-w,T=d-v;S<=N&&N<=S+p&&T<=m&&m<=T+y&&u.push(t)}return new h.Selection({indices:u})}rect_i(t){const{sx:e,sy:s,x_offset:a,y_offset:i,angle:r,labels:n}=this,{anchor_:o}=this,{swidth:l,sheight:_}=this,c=e[t]+a.get(t),h=s[t]+i.get(t),u=r.get(t),f=n[t];if(!isFinite(c+h+u)||null==f)return{p0:{x:NaN,y:NaN},p1:{x:NaN,y:NaN},p2:{x:NaN,y:NaN},p3:{x:NaN,y:NaN}};const g=l[t],p=_[t],y=o.get(t),b=y.x*g,w=y.y*p,v=new d.BBox({x:c-b,y:h-w,width:g,height:p}),{rect:N}=v;if(0==u)return N;{const t=new x.AffineTransform;return t.rotate_around(c,h,u),t.apply_rect(N)}}scenterxy(t){const{p0:e,p1:s,p2:a,p3:i}=this.rect_i(t);return[(e.x+s.x+a.x+i.x)/4,(e.y+s.y+a.y+i.y)/4]}}s.TextView=w,w.__name__=\"TextView\";class v extends o.XYGlyph{constructor(t){super(t)}}s.Text=v,r=v,v.__name__=\"Text\",r.prototype.default_view=w,r.mixins([l.TextVector,[\"border_\",l.LineVector],[\"background_\",l.FillVector],[\"background_\",l.HatchVector]]),r.define((()=>({text:[_.NullStringSpec,{field:\"text\"}],angle:[_.AngleSpec,0],x_offset:[_.NumberSpec,0],y_offset:[_.NumberSpec,0],anchor:[b,{value:\"auto\"}],padding:[g.Padding,0],border_radius:[g.BorderRadius,0]}))),r.override({border_line_color:null,background_fill_color:null,background_hatch_color:null})},\n function _(t,e,s,i,r){var h;i();const a=t(1),o=t(322),n=t(23),_=a.__importStar(t(17));class l extends o.LRTBView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:s}=await Promise.resolve().then((()=>a.__importStar(t(522))));this.glglyph=new s(e.regl_wrapper,this)}}scenterxy(t){return[this.sx[t],(this.stop[t]+this.sbottom[t])/2]}_lrtb(t){const e=this.width.get(t)/2,s=this._x[t],i=this._top[t],r=this._bottom[t];return[s-e,s+e,Math.max(i,r),Math.min(i,r)]}_map_data(){this.sx=this.renderer.xscale.v_compute(this._x),this.sw=this.sdist(this.renderer.xscale,this._x,this.width,\"center\"),this.stop=this.renderer.yscale.v_compute(this._top),this.sbottom=this.renderer.yscale.v_compute(this._bottom);const t=this.sx.length;this.sleft=new n.ScreenArray(t),this.sright=new n.ScreenArray(t);for(let e=0;e<t;e++)this.sleft[e]=this.sx[e]-this.sw[e]/2,this.sright[e]=this.sx[e]+this.sw[e]/2;this._clamp_viewport()}}s.VBarView=l,l.__name__=\"VBarView\";class c extends o.LRTB{constructor(t){super(t)}}s.VBar=c,h=c,c.__name__=\"VBar\",h.prototype.default_view=l,h.define((({})=>({x:[_.XCoordinateSpec,{field:\"x\"}],bottom:[_.YCoordinateSpec,{value:0}],width:[_.NumberSpec,{value:1}],top:[_.YCoordinateSpec,{field:\"top\"}]})))},\n function _(e,s,t,i,a){var n;i();const r=e(1),d=e(202),h=e(209),c=e(78),l=e(23),o=e(19),_=r.__importStar(e(17)),u=e(11),g=e(101),x=e(13);class p extends d.XYGlyphView{_map_data(){\"data\"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this.radius):this.sradius=(0,l.to_screen)(this.radius),this.max_sradius=(0,x.max)(this.sradius)}_render(e,s,t){const{sx:i,sy:a,sradius:n,start_angle:r,end_angle:d}=null!=t?t:this,h=\"anticlock\"==this.model.direction;for(const t of s){const s=i[t],c=a[t],l=n[t],o=r.get(t),_=d.get(t);isFinite(s+c+l+o+_)&&(e.beginPath(),e.arc(s,c,l,o,_,h),e.lineTo(s,c),e.closePath(),this.visuals.fill.apply(e,t),this.visuals.hatch.apply(e,t),this.visuals.line.apply(e,t))}}_hit_point(e){let s,t,i,a,n;const{sx:r,sy:d}=e,h=this.renderer.xscale.invert(r),c=this.renderer.yscale.invert(d);t=r-this.max_sradius,i=r+this.max_sradius;const[l,o]=this.renderer.xscale.r_invert(t,i);a=d-this.max_sradius,n=d+this.max_sradius;const[_,x]=this.renderer.yscale.r_invert(a,n),p=[];for(const e of this.index.indices({x0:l,x1:o,y0:_,y1:x})){const r=this.sradius[e]**2;[t,i]=this.renderer.xscale.r_compute(h,this._x[e]),[a,n]=this.renderer.yscale.r_compute(c,this._y[e]),s=(t-i)**2+(a-n)**2,s<=r&&p.push(e)}const y=\"anticlock\"==this.model.direction,m=[];for(const e of p){const s=Math.atan2(d-this.sy[e],r-this.sx[e]);(Math.abs(this.start_angle.get(e)-this.end_angle.get(e))>=2*Math.PI||(0,u.angle_between)(-s,-this.start_angle.get(e),-this.end_angle.get(e),y))&&m.push(e)}return new g.Selection({indices:m})}draw_legend_for_index(e,s,t){(0,h.generic_area_vector_legend)(this.visuals,e,s,t)}scenterxy(e){const s=this.sradius[e]/2,t=(this.start_angle.get(e)+this.end_angle.get(e))/2;return[this.sx[e]+s*Math.cos(t),this.sy[e]+s*Math.sin(t)]}}t.WedgeView=p,p.__name__=\"WedgeView\";class y extends d.XYGlyph{constructor(e){super(e)}}t.Wedge=y,n=y,y.__name__=\"Wedge\",n.prototype.default_view=p,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((({})=>({direction:[o.Direction,\"anticlock\"],radius:[_.DistanceSpec,{field:\"radius\"}],start_angle:[_.AngleSpec,{field:\"start_angle\"}],end_angle:[_.AngleSpec,{field:\"end_angle\"}]})))},\n function _(n,i,o,a,r){a(),r(\"Decoration\",n(208).Decoration),r(\"Marking\",n(140).Marking)},\n function _(t,_,r,o,a){o();const e=t(1);e.__exportStar(t(352),r),e.__exportStar(t(353),r),e.__exportStar(t(354),r)},\n function _(e,t,d,n,s){n();const o=e(50),r=e(13),i=e(10),_=e(101);class a extends o.Model{constructor(e){super(e)}_hit_test(e,t,d){if(!t.model.visible)return null;const n=d.glyph.hit_test(e);return null==n?null:d.model.view.convert_selection_from_subset(n)}}d.GraphHitTestPolicy=a,a.__name__=\"GraphHitTestPolicy\";class c extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.edge_view)}do_selection(e,t,d,n){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;return s.update(e,d,n),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const{edge_renderer:o}=d.model,r=o.get_selection_manager().get_or_create_inspector(d.edge_view.model);return r.update(e,n,s),d.edge_view.model.data_source.setv({inspected:r},{silent:!0}),d.edge_view.model.data_source.inspect.emit([d.edge_view.model,{geometry:t}]),!r.is_empty()}}d.EdgesOnly=c,c.__name__=\"EdgesOnly\";class l extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.node_view)}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;return s.update(e,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const{node_renderer:o}=d.model,r=o.get_selection_manager().get_or_create_inspector(d.node_view.model);return r.update(e,n,s),d.node_view.model.data_source.setv({inspected:r},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view.model,{geometry:t}]),!r.is_empty()}}d.NodesOnly=l,l.__name__=\"NodesOnly\";class u extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.node_view)}get_linked_edges(e,t,d){const n=(()=>{switch(d){case\"selection\":return(0,r.map)(e.selected.indices,(t=>e.data.index[t]));case\"inspection\":return(0,r.map)(e.inspected.indices,(t=>e.data.index[t]))}})(),s=[];for(let e=0;e<t.data.start.length;e++)((0,i.contains)(n,t.data.start[e])||(0,i.contains)(n,t.data.end[e]))&&s.push(e);const o=new _.Selection;for(const e of s)o.multiline_indices[e]=[0];return o.indices=s,o}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,d,n);const o=t.edge_renderer.data_source.selected,r=this.get_linked_edges(t.node_renderer.data_source,t.edge_renderer.data_source,\"selection\");return o.update(r,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model);o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0});const r=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model),i=this.get_linked_edges(d.node_view.model.data_source,d.edge_view.model.data_source,\"inspection\");return r.update(i,n,s),d.edge_view.model.data_source.setv({inspected:r},{silent:!0}),d.node_view.model.data_source.inspect.emit([d.node_view.model,{geometry:t}]),!o.is_empty()}}d.NodesAndLinkedEdges=u,u.__name__=\"NodesAndLinkedEdges\";class m extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.edge_view)}get_linked_nodes(e,t,d){const n=(()=>{switch(d){case\"selection\":return t.selected.indices;case\"inspection\":return t.inspected.indices}})(),s=[];for(const e of n)s.push(t.data.start[e]),s.push(t.data.end[e]);const o=(0,i.uniq)(s).map((t=>(0,r.index_of)(e.data.index,t)));return new _.Selection({indices:o})}do_selection(e,t,d,n){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;s.update(e,d,n);const o=t.node_renderer.data_source.selected,r=this.get_linked_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,\"selection\");return o.update(r,d,n),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.edge_view.model.data_source.selection_manager.get_or_create_inspector(d.edge_view.model);o.update(e,n,s),d.edge_view.model.data_source.setv({inspected:o},{silent:!0});const r=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model),i=this.get_linked_nodes(d.node_view.model.data_source,d.edge_view.model.data_source,\"inspection\");return r.update(i,n,s),d.node_view.model.data_source.setv({inspected:r},{silent:!0}),d.edge_view.model.data_source.inspect.emit([d.edge_view.model,{geometry:t}]),!o.is_empty()}}d.EdgesAndLinkedNodes=m,m.__name__=\"EdgesAndLinkedNodes\";class p extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.node_view)}get_adjacent_nodes(e,t,d){const n=(()=>{switch(d){case\"selection\":return(0,r.map)(e.selected.indices,(t=>e.data.index[t]));case\"inspection\":return(0,r.map)(e.inspected.indices,(t=>e.data.index[t]))}})(),s=[],o=[];for(let e=0;e<t.data.start.length;e++)(0,i.contains)(n,t.data.start[e])&&(s.push(t.data.end[e]),o.push(t.data.start[e])),(0,i.contains)(n,t.data.end[e])&&(s.push(t.data.start[e]),o.push(t.data.end[e]));for(let e=0;e<o.length;e++)s.push(o[e]);const a=(0,i.uniq)(s).map((t=>(0,r.index_of)(e.data.index,t)));return new _.Selection({indices:a})}do_selection(e,t,d,n){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,d,n);const o=this.get_adjacent_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,\"selection\");return o.is_empty()||s.update(o,d,n),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,d,n,s){if(null==e)return!1;const o=d.node_view.model.data_source.selection_manager.get_or_create_inspector(d.node_view.model);o.update(e,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0});const r=this.get_adjacent_nodes(d.node_view.model.data_source,d.edge_view.model.data_source,\"inspection\");return r.is_empty()||(o.update(r,n,s),d.node_view.model.data_source.setv({inspected:o},{silent:!0})),d.node_view.model.data_source.inspect.emit([d.node_view.model,{geometry:t}]),!o.is_empty()}}d.NodesAndAdjacentNodes=p,p.__name__=\"NodesAndAdjacentNodes\"},\n function _(e,o,t,r,n){var s;r();const a=e(50),d=e(304);class _ extends a.Model{constructor(e){super(e)}get node_coordinates(){return new u({layout:this})}get edge_coordinates(){return new i({layout:this})}}t.LayoutProvider=_,_.__name__=\"LayoutProvider\";class c extends d.CoordinateTransform{constructor(e){super(e)}}t.GraphCoordinates=c,s=c,c.__name__=\"GraphCoordinates\",s.define((({Ref:e})=>({layout:[e(_)]})));class u extends c{constructor(e){super(e)}_v_compute(e){const[o,t]=this.layout.get_node_coordinates(e);return{x:o,y:t}}}t.NodeCoordinates=u,u.__name__=\"NodeCoordinates\";class i extends c{constructor(e){super(e)}_v_compute(e){const[o,t]=this.layout.get_edge_coordinates(e);return{x:o,y:t}}}t.EdgeCoordinates=i,i.__name__=\"EdgeCoordinates\"},\n function _(t,e,a,n,o){var l;n();const r=t(353),s=t(9);class u extends r.LayoutProvider{constructor(t){super(t)}get_node_coordinates(t){var e,a;const n=null!==(e=new s.Dict(t.data).get(\"index\"))&&void 0!==e?e:[],o=n.length,l=new Float64Array(o),r=new Float64Array(o),{graph_layout:u}=this;for(let t=0;t<o;t++){const e=n[t],[o,s]=null!==(a=u.get(e))&&void 0!==a?a:[NaN,NaN];l[t]=o,r[t]=s}return[l,r]}get_edge_coordinates(t){var e,a,n,o;const l=new s.Dict(t.data),r=null!==(e=l.get(\"start\"))&&void 0!==e?e:[],u=null!==(a=l.get(\"end\"))&&void 0!==a?a:[],i=Math.min(r.length,u.length),d=[],g=[],c=l.get(\"xs\"),h=l.get(\"ys\"),N=null!=c&&null!=h,{graph_layout:v}=this;for(let t=0;t<i;t++){const e=v.has(r[t])&&v.has(u[t]);if(N&&e)d.push(c[t]),g.push(h[t]);else{const e=null!==(n=v.get(r[t]))&&void 0!==n?n:[NaN,NaN],a=null!==(o=v.get(u[t]))&&void 0!==o?o:[NaN,NaN];d.push([e[0],a[0]]),g.push([e[1],a[1]])}}return[d,g]}}a.StaticLayoutProvider=u,l=u,u.__name__=\"StaticLayoutProvider\",l.define((({Number:t,Int:e,Arrayable:a,Map:n})=>({graph_layout:[n(e,a(t)),new globalThis.Map]})))},\n function _(i,d,n,r,G){r(),G(\"Grid\",i(356).Grid)},\n function _(i,e,s,n,t){var r;n();const o=i(1),d=i(158),_=i(160),a=i(161),l=o.__importStar(i(78)),h=i(8);class u extends _.GuideRendererView{_render(){const i=this.layer.ctx;i.save(),this._draw_regions(i),this._draw_minor_grids(i),this._draw_grids(i),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_render()))}_draw_regions(i){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;const[e,s]=this.grid_coords(\"major\",!1);for(let n=0;n<e.length-1;n++){if(n%2!=1)continue;const[t,r]=this.coordinates.map_to_screen(e[n],s[n]),[o,d]=this.coordinates.map_to_screen(e[n+1],s[n+1]);i.beginPath(),i.rect(t[0],r[0],o[1]-t[0],d[1]-r[0]),this.visuals.band_fill.apply(i),this.visuals.band_hatch.apply(i)}}_draw_grids(i){if(!this.visuals.grid_line.doit)return;const[e,s]=this.grid_coords(\"major\");this._draw_grid_helper(i,this.visuals.grid_line,e,s)}_draw_minor_grids(i){if(!this.visuals.minor_grid_line.doit)return;const[e,s]=this.grid_coords(\"minor\");this._draw_grid_helper(i,this.visuals.minor_grid_line,e,s)}_draw_grid_helper(i,e,s,n){e.set_value(i),i.beginPath();for(let e=0;e<s.length;e++){const[t,r]=this.coordinates.map_to_screen(s[e],n[e]);i.moveTo(Math.round(t[0]),Math.round(r[0]));for(let e=1;e<t.length;e++)i.lineTo(Math.round(t[e]),Math.round(r[e]))}i.stroke()}ranges(){const i=this.model.dimension,e=1-i,{ranges:s}=this.coordinates;return[s[i],s[e]]}computed_bounds(){const[i]=this.ranges(),e=this.model.bounds,s=[i.min,i.max];let n,t;if((0,h.isArray)(e))n=Math.min(e[0],e[1]),t=Math.max(e[0],e[1]),n<s[0]&&(n=s[0]),t>s[1]&&(t=s[1]);else{[n,t]=s;for(const i of this.plot_view.axis_views)i.dimension==this.model.dimension&&i.model.x_range_name==this.model.x_range_name&&i.model.y_range_name==this.model.y_range_name&&([n,t]=i.computed_bounds)}return[n,t]}grid_coords(i,e=!0){const s=this.model.dimension,n=1-s,[t,r]=this.ranges(),[o,d]=(()=>{const[i,e]=this.computed_bounds();return[Math.min(i,e),Math.max(i,e)]})(),_=[[],[]],a=this.model.get_ticker();if(null==a)return _;const l=a.get_ticks(o,d,t,r.min)[i],h=t.min,u=t.max,[c,m]=(()=>{const{cross_bounds:i}=this.model;return\"auto\"==i?[r.min,r.max]:i})();e||(l[0]!=h&&l.splice(0,0,h),l[l.length-1]!=u&&l.push(u));for(let i=0;i<l.length;i++){if((l[i]==h||l[i]==u)&&e)continue;const t=[],r=[],o=2;for(let e=0;e<o;e++){const s=c+(m-c)/(o-1)*e;t.push(l[i]),r.push(s)}_[s].push(t),_[n].push(r)}return _}}s.GridView=u,u.__name__=\"GridView\";class c extends _.GuideRenderer{constructor(i){super(i)}get_ticker(){return null!=this.ticker?this.ticker:null!=this.axis?this.axis.ticker:null}}s.Grid=c,r=c,c.__name__=\"Grid\",r.prototype.default_view=u,r.mixins([[\"grid_\",l.Line],[\"minor_grid_\",l.Line],[\"band_\",l.Fill],[\"band_\",l.Hatch]]),r.define((({Number:i,Auto:e,Enum:s,Ref:n,Tuple:t,Or:r,Nullable:o})=>({bounds:[r(t(i,i),e),\"auto\"],cross_bounds:[r(t(i,i),e),\"auto\"],dimension:[s(0,1),0],axis:[o(n(d.Axis)),null],ticker:[o(n(a.Ticker)),null]}))),r.override({level:\"underlay\",band_fill_color:null,band_fill_alpha:0,grid_line_color:\"#e5e5e5\",minor_grid_line_color:null})},\n function _(o,x,B,a,l){a(),l(\"Column\",o(358).Column),l(\"FlexBox\",o(359).FlexBox),l(\"GridBox\",o(364).GridBox),l(\"GroupBox\",o(366).GroupBox),l(\"HBox\",o(368).HBox),l(\"LayoutDOM\",o(360).LayoutDOM),l(\"Row\",o(369).Row),l(\"ScrollBox\",o(370).ScrollBox),l(\"Spacer\",o(371).Spacer),l(\"TabPanel\",o(372).TabPanel),l(\"Tabs\",o(373).Tabs),l(\"VBox\",o(375).VBox)},\n function _(e,o,n,t,s){var u;t();const _=e(359);class c extends _.FlexBoxView{constructor(){super(...arguments),this._direction=\"column\"}}n.ColumnView=c,c.__name__=\"ColumnView\";class l extends _.FlexBox{constructor(e){super(e)}}n.Column=l,u=l,l.__name__=\"Column\",u.prototype.default_view=c},\n function _(e,t,i,n,o){var s;n();const a=e(360),c=e(363),r=e(228),l=e(257),h=e(56);class d extends a.LayoutDOMView{connect_signals(){super.connect_signals();const{children:e}=this.model.properties;this.on_change(e,(()=>this.update_children()))}get child_models(){return this.model.children}_intrinsic_display(){return{inner:this.model.flow_mode,outer:\"flex\"}}_update_layout(){super._update_layout(),this.style.append(\":host\",{flex_direction:this._direction,gap:(0,h.px)(this.model.spacing)});const e=new r.Container;let t=0,i=0;for(const n of this.child_views){if(!(n instanceof a.LayoutDOMView))continue;const o=n.box_sizing(),s=(()=>{const e=\"row\"==this._direction?o.width_policy:o.height_policy,t=\"row\"==this._direction?o.width:o.height,i=null!=t?(0,h.px)(t):\"auto\";switch(e){case\"auto\":case\"fixed\":return`0 0 ${i}`;case\"fit\":return\"1 1 auto\";case\"min\":return\"0 1 auto\";case\"max\":return\"1 0 0px\"}})(),c=(()=>{switch(\"row\"==this._direction?o.height_policy:o.width_policy){case\"auto\":case\"fixed\":case\"fit\":case\"min\":return\"row\"==this._direction?o.valign:o.halign;case\"max\":return\"stretch\"}})();n.style.append(\":host\",{flex:s,align_self:c}),\"row\"==this._direction?\"max\"==o.height_policy&&n.style.append(\":host\",{height:\"auto\"}):\"max\"==o.width_policy&&n.style.append(\":host\",{width:\"auto\"}),null!=n.layout&&(e.add({r0:t,c0:i,r1:t+1,c1:i+1},n),\"row\"==this._direction?i+=1:t+=1)}0!=e.size?(this.layout=new c.GridAlignmentLayout(e),this.layout.set_sizing()):delete this.layout}}i.FlexBoxView=d,d.__name__=\"FlexBoxView\";class _ extends a.LayoutDOM{constructor(e){super(e)}}i.FlexBox=_,s=_,_.__name__=\"FlexBox\",s.define((({Number:e,Array:t,Ref:i})=>({children:[t(i(l.UIElement)),[]],spacing:[e,0]})))},\n function _(t,e,i,s,l){var n;s();const a=t(257),o=t(361),r=t(18),h=t(15),u=t(19),_=t(56),d=t(8),c=t(59),f=t(226),m=t(16),p=t(260),w=t(12);class y extends a.UIElementView{constructor(){super(...arguments),this._child_views=new Map,this.mouseenter=new h.Signal(this,\"mouseenter\"),this.mouseleave=new h.Signal(this,\"mouseleave\"),this.disabled=new h.Signal(this,\"disabled\"),this._resized=!1,this._auto_width=\"fit-content\",this._auto_height=\"fit-content\",this._layout_computed=!1,this._was_built=!1}get is_layout_root(){return this.is_root||!(this.parent instanceof y)}_after_resize(){this._resized=!0,super._after_resize(),this.is_layout_root&&!this._was_built?(r.logger.warn(`${this} wasn't built properly`),this.render_to(null)):this.compute_layout()}async lazy_initialize(){await super.lazy_initialize(),await this.build_child_views()}remove(){for(const t of this.child_views)t.remove();this._child_views.clear(),super.remove()}connect_signals(){super.connect_signals(),this.el.addEventListener(\"mouseenter\",(t=>{this.mouseenter.emit(t)})),this.el.addEventListener(\"mouseleave\",(t=>{this.mouseleave.emit(t)})),this.el.addEventListener(\"contextmenu\",(t=>{null!=this.model.context_menu&&(console.log(\"context menu\"),t.preventDefault())})),this.parent instanceof y&&this.connect(this.parent.disabled,(t=>{this.disabled.emit(t||this.model.disabled)}));const t=this.model.properties;this.on_change(t.disabled,(()=>{this.disabled.emit(this.model.disabled)})),this.on_change([t.css_classes,t.stylesheets,t.width,t.height,t.min_width,t.min_height,t.max_width,t.max_height,t.margin,t.width_policy,t.height_policy,t.flow_mode,t.sizing_mode,t.aspect_ratio,t.visible],(()=>this.invalidate_layout()))}*children(){yield*super.children(),yield*this.child_views}get child_views(){return this.child_models.map((t=>this._child_views.get(t))).filter(d.isNotNull)}get layoutable_views(){return this.child_views.filter((t=>t instanceof y))}async build_child_views(){const{created:t,removed:e}=await(0,c.build_views)(this._child_views,this.child_models,{parent:this});for(const t of e)this._resize_observer.unobserve(t.el);for(const e of t)this._resize_observer.observe(e.el,{box:\"border-box\"});return t}render(){super.render();for(const t of this.child_views)t.render(),this.shadow_el.appendChild(t.el)}_update_children(){}async update_children(){const t=new Set(await this.build_child_views());if(0!=t.size){for(const t of this.child_views)(0,_.remove)(t.el);for(const e of this.child_views)this.shadow_el.append(e.el),t.has(e)&&(e.render(),e.after_render())}this._update_children(),this.invalidate_layout()}_intrinsic_display(){return{inner:this.model.flow_mode,outer:\"flow\"}}_update_layout(){function t(t,e,i,s){switch(t){case\"auto\":return null!=e?(0,_.px)(e):i;case\"fixed\":return null!=e?(0,_.px)(e):\"fit-content\";case\"fit\":return\"fit-content\";case\"min\":return\"min-content\";case\"max\":return null==s?\"100%\":`calc(100% - ${s})`}}function e(t){return(0,d.isNumber)(t)?(0,_.px)(t):`${t.percent}%`}const i={},s=this._intrinsic_display();i.display=function(t){const{inner:e,outer:i}=t;switch(`${e} ${i}`){case\"block flow\":return\"block\";case\"inline flow\":return\"inline\";case\"block flow-root\":return\"flow-root\";case\"inline flow-root\":return\"inline-block\";case\"block flex\":return\"flex\";case\"inline flex\":return\"inline-flex\";case\"block grid\":return\"grid\";case\"inline grid\":return\"inline-grid\";case\"block table\":return\"table\";case\"inline table\":return\"inline-table\";default:(0,w.unreachable)()}}(s);const l=this.box_sizing(),{width_policy:n,height_policy:a,width:o,height:r,aspect_ratio:h}=l,u=(()=>{if(\"auto\"==h){if(null!=o&&null!=r)return o/r}else if((0,d.isNumber)(h))return h;return null})();\"auto\"==h?i.aspect_ratio=null!=o&&null!=r?`${o} / ${r}`:\"auto\":(0,d.isNumber)(h)&&(i.aspect_ratio=`${h}`);const{margin:c}=this.model,f=(()=>{if(null!=c){if((0,d.isNumber)(c))return i.margin=(0,_.px)(c),{width:(0,_.px)(2*c),height:(0,_.px)(2*c)};if(2==c.length){const[t,e]=c;return i.margin=`${(0,_.px)(t)} ${(0,_.px)(e)}`,{width:(0,_.px)(2*e),height:(0,_.px)(2*t)}}{const[t,e,s,l]=c;return i.margin=`${(0,_.px)(t)} ${(0,_.px)(e)} ${(0,_.px)(s)} ${(0,_.px)(l)}`,{width:(0,_.px)(l+e),height:(0,_.px)(t+s)}}}return{width:null,height:null}})(),[m,p]=(()=>{const e=t(n,o,this._auto_width,f.width),i=t(a,r,this._auto_height,f.height);if(null!=h){if(n!=a)return\"fixed\"==n?[e,\"auto\"]:\"fixed\"==a?[\"auto\",i]:\"max\"==n?[e,\"auto\"]:\"max\"==a?[\"auto\",i]:[\"auto\",\"auto\"];if(\"fixed\"!=n&&\"fixed\"!=a&&null!=u)return u>=1?[e,\"auto\"]:[\"auto\",i]}return[e,i]})();i.width=m,i.height=p;const{min_width:y,max_width:g}=this.model,{min_height:b,max_height:x}=this.model;i.min_width=null==y?\"0px\":e(y),i.min_height=null==b?\"0px\":e(b),this.is_layout_root?(null!=g&&(i.max_width=e(g)),null!=x&&(i.max_height=e(x))):(null!=g?i.max_width=`min(${e(g)}, 100%)`:\"fixed\"!=n&&(i.max_width=\"100%\"),null!=x?i.max_height=`min(${e(x)}, 100%)`:\"fixed\"!=a&&(i.max_height=\"100%\"));const{resizable:v}=this.model;if(!1!==v){const t=(()=>{switch(v){case\"width\":return\"horizontal\";case\"height\":return\"vertical\";case!0:case\"both\":return\"both\"}})();i.resize=t,i.overflow=\"auto\"}this.style.append(\":host\",i)}update_layout(){this.update_style();for(const t of this.layoutable_views)t.update_layout();this._update_layout()}get is_managed(){return this.parent instanceof y}_measure_layout(){}measure_layout(){for(const t of this.layoutable_views)t.measure_layout();this._measure_layout()}compute_layout(){this.parent instanceof y?this.parent.compute_layout():(this.measure_layout(),this.update_bbox(),this._compute_layout(),this.after_layout()),this._layout_computed=!0}_compute_layout(){if(null!=this.layout){this.layout.compute(this.bbox.size);for(const t of this.layoutable_views)null==t.layout?t._compute_layout():t._propagate_layout()}else for(const t of this.layoutable_views)t._compute_layout()}_propagate_layout(){for(const t of this.layoutable_views)null==t.layout&&t._compute_layout()}update_bbox(){for(const t of this.layoutable_views)t.update_bbox();const t=super.update_bbox();return null!=this.layout&&(this.layout.visible=this.is_displayed),t}_after_layout(){}after_layout(){for(const t of this.layoutable_views)t.after_layout();this._after_layout()}render_to(t){if(!this.is_layout_root)throw new Error(`${this.toString()} is not a root layout`);this.render(),null!=t&&t.appendChild(this.el),this.r_after_render(),this._was_built=!0,this.notify_finished()}r_after_render(){for(const t of this.child_views)t instanceof y?t.r_after_render():t.after_render();this.after_render()}after_render(){this._after_render(),this.is_managed||this.invalidate_layout(),this._has_finished||(this.is_displayed?(0,m.defer)().then((()=>{this._resized||this.finish()})):this.finish())}async rebuild(){await this.build_child_views(),this.invalidate_render()}invalidate_layout(){this.parent instanceof y?this.parent.invalidate_layout():(this.update_layout(),this.compute_layout())}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;if(this.is_layout_root&&!this._layout_computed)return!1;for(const t of this.child_views)if(!t.has_finished())return!1;return!0}box_sizing(){let{width_policy:t,height_policy:e,aspect_ratio:i}=this.model;const{sizing_mode:s}=this.model;if(null!=s)if(\"inherit\"==s){if(this.parent instanceof y){const s=this.parent.box_sizing();t=s.width_policy,e=s.height_policy,null==i&&(i=s.aspect_ratio)}}else if(\"fixed\"==s)t=e=\"fixed\";else if(\"stretch_both\"==s)t=e=\"max\";else if(\"stretch_width\"==s)t=\"max\";else if(\"stretch_height\"==s)e=\"max\";else switch(null==i&&(i=\"auto\"),s){case\"scale_width\":t=\"max\",e=\"min\";break;case\"scale_height\":t=\"min\",e=\"max\";break;case\"scale_both\":t=\"max\",e=\"max\"}const[l,n]=(()=>{const{align:t}=this.model;return\"auto\"==t?[void 0,void 0]:(0,d.isArray)(t)?t:[t,t]})(),{width:a,height:o}=this.model;return{width_policy:t,height_policy:e,width:a,height:o,aspect_ratio:i,halign:l,valign:n}}export(t=\"auto\",e=!0){const i=(()=>{switch(t){case\"auto\":case\"png\":return\"canvas\";case\"svg\":return\"svg\"}})(),s=new p.CanvasLayer(i,e),{x:l,y:n,width:a,height:o}=this.bbox;s.resize(a,o);const r=getComputedStyle(this.el).backgroundColor;s.ctx.fillStyle=r,s.ctx.fillRect(l,n,a,o);for(const i of this.child_views){const l=i.export(t,e),{x:n,y:a}=i.bbox;s.ctx.drawImage(l.canvas,n,a)}return s}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{children:this.child_views.map((t=>t.serializable_state()))})}}i.LayoutDOMView=y,y.__name__=\"LayoutDOMView\";class g extends a.UIElement{constructor(t){super(t)}}i.LayoutDOM=g,n=g,g.__name__=\"LayoutDOM\",n.define((t=>{const{Boolean:e,Number:i,Auto:s,Tuple:l,Or:n,Null:a,Nullable:r,Ref:h}=t,_=l(i,i),d=l(i,i,i,i);return{width:[r(i),null],height:[r(i),null],min_width:[r(i),null],min_height:[r(i),null],max_width:[r(i),null],max_height:[r(i),null],margin:[r(n(i,_,d)),null],width_policy:[n(f.SizingPolicy,s),\"auto\"],height_policy:[n(f.SizingPolicy,s),\"auto\"],aspect_ratio:[n(i,s,a),null],flow_mode:[u.FlowMode,\"block\"],sizing_mode:[r(u.SizingMode),null],disabled:[e,!1],align:[n(u.Align,l(u.Align,u.Align),s),\"auto\"],context_menu:[r(h(o.Menu)),null],resizable:[n(e,u.Dimensions),!1]}}))},\n function _(e,s,t,i,r){var n;i();const a=e(1),l=e(257),o=e(362),d=e(19),m=e(59),u=e(32),c=a.__importStar(e(268)),h=c;class _ extends l.UIElementView{constructor(){super(...arguments),this.items=new Map}stylesheets(){return[...super.stylesheets(),c.default]}*children(){yield*super.children(),yield*this.items.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,m.build_views)(this.items,this.model.items)}remove(){(0,m.remove_views)(this.items),super.remove()}render(){super.render(),this.el.classList.add(h[this.model.orientation]);const e=(()=>{const{items:e,reversed:s}=this.model,t=s?(0,u.reverse)(e):e;return(0,u.map)(t,(e=>this.items.get(e)))})();for(const s of e)s.render(),this.shadow_el.appendChild(s.el)}}t.MenuView=_,_.__name__=\"MenuView\";class p extends l.UIElement{constructor(e){super(e)}}t.Menu=p,n=p,p.__name__=\"Menu\",n.define((({Boolean:e,Array:s,Ref:t})=>({items:[s(t(o.MenuItem)),[]],reversed:[e,!1],orientation:[d.Orientation,\"vertical\"]})))},\n function _(e,t,s,n,u){n();const _=e(1),l=e(257),m=_.__importDefault(e(268)),a=_.__importDefault(e(269));class r extends l.UIElementView{stylesheets(){return[...super.stylesheets(),m.default,a.default]}}s.MenuItemView=r,r.__name__=\"MenuItemView\";class c extends l.UIElement{constructor(e){super(e)}}s.MenuItem=c,c.__name__=\"MenuItem\"},\n function _(t,o,e,i,l){i();const n=t(146),r=t(57),h=t(12),{max:u}=Math;class s extends n.Layoutable{constructor(t){super(),this.children=t}_measure(t){return{width:0,height:0}}compute(t={}){const{width:o,height:e}=t;(0,h.assert)(null!=o&&null!=e);const i={width:o,height:e},l=new r.BBox({left:0,top:0,width:o,height:e});let n;if(null!=i.inner){const{left:t,top:l,right:h,bottom:u}=i.inner;n=new r.BBox({left:t,top:l,right:o-h,bottom:e-u})}this.set_geometry(l,n)}_set_geometry(t,o){super._set_geometry(t,o);const e=this.children.map(((t,o)=>{const{layout:e,bbox:i}=o;(0,h.assert)(null!=e);const l=e.measure(i);return{child:o,layout:e,bbox:i,size_hint:l}})),i=Array(e.nrows).fill(null).map((()=>({top:0,bottom:0}))),l=Array(e.ncols).fill(null).map((()=>({left:0,right:0})));e.foreach((({r0:t,c0:o,r1:e,c1:n},{size_hint:r})=>{const{inner:h}=r;null!=h&&(l[o].left=u(l[o].left,h.left),l[n].right=u(l[n].right,h.right),i[t].top=u(i[t].top,h.top),i[e].bottom=u(i[e].bottom,h.bottom))})),e.foreach((({r0:t,c0:o,r1:e,c1:n},{layout:h,size_hint:u,bbox:s})=>{const f=s,g=null==u.inner?void 0:(()=>{var h,s,g,m,c,d;const{inner:b,align:p}=u,a=null===(h=null==p?void 0:p.left)||void 0===h||h,_=null===(s=null==p?void 0:p.right)||void 0===s||s,v=null===(g=null==p?void 0:p.top)||void 0===g||g,w=null===(m=null==p?void 0:p.bottom)||void 0===m||m,y=null!==(c=null==p?void 0:p.fixed_width)&&void 0!==c&&c,x=null!==(d=null==p?void 0:p.fixed_height)&&void 0!==d&&d,{left:B,right:A}=(()=>{if(y){const t=f.width-b.right-b.left;if(a){const e=l[o].left;return{left:e,right:f.width-(e+t)}}if(_){const o=l[n].right;return{left:f.width-(o+t),right:o}}return{left:b.left,right:b.right}}return{left:a?l[o].left:b.left,right:_?l[n].right:b.right}})(),{top:z,bottom:L}=(()=>{if(x){const o=f.height-b.bottom-b.top;if(v){const e=i[t].top;return{top:e,bottom:f.height-(e+o)}}if(w){const t=i[e].bottom;return{top:f.height-(t+o),bottom:t}}return{top:b.top,bottom:b.bottom}}return{top:v?i[t].top:b.top,bottom:w?i[e].bottom:b.bottom}})(),{width:G,height:M}=f;return r.BBox.from_lrtb({left:B,top:z,right:G-A,bottom:M-L})})();h.set_geometry(f,g)}))}}e.GridAlignmentLayout=s,s.__name__=\"GridAlignmentLayout\"},\n function _(e,i,n,r,s){var o;r();const t=e(365),l=e(233),c=e(257);class d extends t.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,rows:i,cols:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change([i,n],(()=>this.invalidate_layout()))}get _children(){return this.model.children}get _rows(){return this.model.rows}get _cols(){return this.model.cols}}n.GridBoxView=d,d.__name__=\"GridBoxView\";class _ extends t.CSSGridBox{constructor(e){super(e)}}n.GridBox=_,o=_,_.__name__=\"GridBox\",o.prototype.default_view=d,o.define((({Array:e,Nullable:i})=>({children:[e((0,l.GridChild)(c.UIElement)),[]],rows:[i(l.TracksSizing),null],cols:[i(l.TracksSizing),null]})))},\n function _(n,i,s,t,e){var o;t();const a=n(360),l=n(363),r=n(233),c=n(56),_=n(228),u=n(32),d=n(8),{max:p}=Math;class g extends a.LayoutDOMView{connect_signals(){super.connect_signals();const{spacing:n}=this.model.properties;this.on_change(n,(()=>this.invalidate_layout()))}get child_models(){return this._children.map((([n])=>n))}_intrinsic_display(){return{inner:this.model.flow_mode,outer:\"grid\"}}_update_layout(){super._update_layout();const n={},[i,s]=(()=>{const{spacing:n}=this.model;return(0,d.isNumber)(n)?[n,n]:n})();n.row_gap=(0,c.px)(i),n.column_gap=(0,c.px)(s);let t=0,e=0;const o=new _.Container;for(const[[,n,i,s=1,l=1],r]of(0,u.enumerate)(this._children)){const c=this.child_views[r];t=p(t,n+s),e=p(e,i+l);const _={};if(_.grid_row_start=`${n+1}`,_.grid_row_end=`span ${s}`,_.grid_column_start=`${i+1}`,_.grid_column_end=`span ${l}`,c.style.append(\":host\",_),c instanceof a.LayoutDOMView&&null!=c.layout){const t=n,e=i,a=n+s-1,r=i+l-1;o.add({r0:t,c0:e,r1:a,c1:r},c)}}const{_rows:r,_cols:g}=this;function h(n,i){if(n instanceof Map)for(const[s,t]of n.entries())(0,d.isString)(t)?i[s].size=t:i[s]=t;else if((0,d.isArray)(n))for(const[s,t]of(0,u.enumerate)(n))(0,d.isString)(s)?i[t].size=s:i[t]=s;else if(null!=n)for(const s of i)(0,d.isString)(n)?s.size=n:(s.size=n.size,s.align=n.align)}r instanceof Map?t=p(t,...r.keys()):(0,d.isArray)(r)&&(t=p(t,r.length)),g instanceof Map?e=p(e,...g.keys()):(0,d.isArray)(g)&&(e=p(e,g.length));const f=Array(t).fill(null).map((()=>({}))),m=Array(e).fill(null).map((()=>({})));h(r,f),h(g,m);for(const[[,n,i],s]of(0,u.enumerate)(this._children)){const t=this.child_views[s],{halign:e,valign:o}=t.box_sizing();t.style.append(\":host\",{justify_self:null!=e?e:m[i].align,align_self:null!=o?o:f[n].align})}const y=\"auto\";n.grid_template_rows=f.map((({size:n})=>null!=n?n:y)).join(\" \"),n.grid_template_columns=m.map((({size:n})=>null!=n?n:y)).join(\" \"),this.style.append(\":host\",n),0!=o.size?(this.layout=new l.GridAlignmentLayout(o),this.layout.set_sizing()):delete this.layout}}s.CSSGridBoxView=g,g.__name__=\"CSSGridBoxView\";class h extends a.LayoutDOM{constructor(n){super(n)}}s.CSSGridBox=h,o=h,h.__name__=\"CSSGridBox\",o.define((()=>({spacing:[r.GridSpacing,0]})))},\n function _(e,t,s,l,i){var c;l();const h=e(1),d=e(360),o=e(257),n=e(56),a=h.__importDefault(e(367));class _ extends d.LayoutDOMView{stylesheets(){return[...super.stylesheets(),a.default]}connect_signals(){super.connect_signals();const{child:e}=this.model.properties;this.on_change(e,(()=>this.update_children()));const{checkable:t,disabled:s}=this.model.properties;this.on_change(t,(()=>{(0,n.display)(this.checkbox_el,this.model.checkable)})),this.on_change(s,(()=>{this.checkbox_el.checked=!this.model.disabled}))}get child_models(){return[this.model.child]}render(){super.render();const{checkable:e,disabled:t,title:s}=this.model;this.checkbox_el=(0,n.input)({type:\"checkbox\",checked:!t}),this.checkbox_el.addEventListener(\"change\",(()=>{this.model.disabled=!this.checkbox_el.checked})),(0,n.display)(this.checkbox_el,e);const l=(0,n.legend)({},this.checkbox_el,s),i=this.child_views.map((e=>e.el));this.fieldset_el=(0,n.fieldset)({},l,...i),this.shadow_el.appendChild(this.fieldset_el)}_update_children(){const e=this.child_views.map((e=>e.el));this.fieldset_el.append(...e)}}s.GroupBoxView=_,_.__name__=\"GroupBoxView\";class r extends d.LayoutDOM{constructor(e){super(e)}}s.GroupBox=r,c=r,r.__name__=\"GroupBox\",c.prototype.default_view=_,c.define((({Boolean:e,String:t,Nullable:s,Ref:l})=>({title:[s(t),null],child:[l(o.UIElement)],checkable:[e,!1]})))},\n function _(d,a,e,l,i){l(),e.default=\"legend{display:flex;gap:0.5em;padding:0 calc(var(--padding-horizontal) / 2);}fieldset{border:1px solid #ccc;}\"},\n function _(e,n,l,t,s){var i;t();const o=e(365),c=e(233),r=e(257),a=e(20),d=(0,a.Struct)({child:(0,a.Ref)(r.UIElement),col:(0,a.Opt)(c.Index),span:(0,a.Opt)(c.Span)});class _ extends o.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,cols:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change(n,(()=>this.invalidate_layout()))}get _children(){return this.model.children.map((({child:e,col:n,span:l},t)=>[e,0,null!=n?n:t,1,null!=l?l:1]))}get _rows(){return null}get _cols(){return this.model.cols}}l.HBoxView=_,_.__name__=\"HBoxView\";class h extends o.CSSGridBox{constructor(e){super(e)}}l.HBox=h,i=h,h.__name__=\"HBox\",i.prototype.default_view=_,i.define((({Array:e,Nullable:n})=>({children:[e(d),[]],cols:[n(c.TracksSizing),null]})))},\n function _(e,o,t,s,_){var n;s();const r=e(359);class c extends r.FlexBoxView{constructor(){super(...arguments),this._direction=\"row\"}}t.RowView=c,c.__name__=\"RowView\";class w extends r.FlexBox{constructor(e){super(e)}}t.Row=w,n=w,w.__name__=\"Row\",n.prototype.default_view=c},\n function _(e,l,o,t,r){var s;t();const a=e(360),c=e(257),i=e(19);class n extends a.LayoutDOMView{stylesheets(){return[...super.stylesheets()]}connect_signals(){super.connect_signals();const{child:e,horizontal_scrollbar:l,vertical_scrollbar:o}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change([l,o],(()=>this.invalidate_layout()))}get child_models(){return[this.model.child]}_update_layout(){function e(e){switch(e){case\"auto\":return\"auto\";case\"visible\":return\"scroll\";case\"hidden\":return\"hidden\"}}super._update_layout();const{horizontal_scrollbar:l,vertical_scrollbar:o}=this.model;this.style.append(\":host\",{overflow_x:e(l),overflow_y:e(o)})}}o.ScrollBoxView=n,n.__name__=\"ScrollBoxView\";class _ extends a.LayoutDOM{constructor(e){super(e)}}o.ScrollBox=_,s=_,_.__name__=\"ScrollBox\",s.prototype.default_view=n,s.define((({Ref:e})=>({child:[e(c.UIElement)],horizontal_scrollbar:[i.ScrollbarPolicy,\"auto\"],vertical_scrollbar:[i.ScrollbarPolicy,\"auto\"]})))},\n function _(t,e,a,o,_){var r;o();const s=t(360);class c extends s.LayoutDOMView{constructor(){super(...arguments),this._auto_width=\"auto\",this._auto_height=\"auto\"}get child_models(){return[]}}a.SpacerView=c,c.__name__=\"SpacerView\";class u extends s.LayoutDOM{constructor(t){super(t)}}a.Spacer=u,r=u,u.__name__=\"Spacer\",r.prototype.default_view=c},\n function _(e,n,l,a,t){var o;a();const s=e(50),c=e(257);class d extends s.Model{constructor(e){super(e)}}l.TabPanel=d,o=d,d.__name__=\"TabPanel\",o.define((({Boolean:e,String:n,Ref:l})=>({title:[n,\"\"],child:[l(c.UIElement)],closable:[e,!1],disabled:[e,!1]})))},\n function _(e,t,s,a,i){var o;a();const d=e(1),l=e(56),n=e(10),c=e(228),h=e(19),r=e(360),_=e(372),u=e(363),p=d.__importStar(e(374)),m=p,v=d.__importDefault(e(269));class b extends r.LayoutDOMView{connect_signals(){super.connect_signals();const{tabs:e,active:t}=this.model.properties;this.on_change(e,(()=>{this._update_headers(),this.update_children()})),this.on_change(t,(()=>{this.update_active()}))}stylesheets(){return[...super.stylesheets(),p.default,v.default]}get child_models(){return this.model.tabs.map((e=>e.child))}_intrinsic_display(){return{inner:this.model.flow_mode,outer:\"grid\"}}_update_layout(){super._update_layout();const e=this.model.tabs_location;this.class_list.remove([...h.Location].map((e=>m[e]))),this.class_list.add(m[e]);const t=new c.Container;for(const e of this.child_views)e.style.append(\":host\",{grid_area:\"stack\"}),e instanceof r.LayoutDOMView&&null!=e.layout&&t.add({r0:0,c0:0,r1:1,c1:1},e);0!=t.size?(this.layout=new u.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}_after_layout(){super._after_layout();const{child_views:e}=this;for(const t of e)(0,l.hide)(t.el);const{active:t}=this.model;if(t in e){const s=e[t];(0,l.show)(s.el)}}render(){super.render(),this.header_el=(0,l.div)({class:m.header}),this.shadow_el.append(this.header_el),this._update_headers()}_update_headers(){const{active:e}=this.model,t=this.model.tabs.map(((t,s)=>{const a=(0,l.div)({class:[m.tab,s==e?m.active:null],tabIndex:0},t.title);if(a.addEventListener(\"click\",(e=>{this.model.disabled||e.target==e.currentTarget&&this.change_active(s)})),t.closable){const e=(0,l.div)({class:m.close});e.addEventListener(\"click\",(e=>{if(e.target==e.currentTarget){this.model.tabs=(0,n.remove_at)(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}})),a.appendChild(e)}return(this.model.disabled||t.disabled)&&a.classList.add(m.disabled),a}));this.header_els=t,(0,l.empty)(this.header_el),this.header_el.append(...t)}change_active(e){e!=this.model.active&&(this.model.active=e)}update_active(){const e=this.model.active,{header_els:t}=this;for(const e of t)e.classList.remove(m.active);e in t&&t[e].classList.add(m.active);const{child_views:s}=this;for(const e of s)(0,l.hide)(e.el);e in s&&(0,l.show)(s[e].el)}}s.TabsView=b,b.__name__=\"TabsView\";class f extends r.LayoutDOM{constructor(e){super(e)}}s.Tabs=f,o=f,f.__name__=\"Tabs\",o.prototype.default_view=b,o.define((({Int:e,Array:t,Ref:s})=>({tabs:[t(s(_.TabPanel)),[]],tabs_location:[h.Location,\"above\"],active:[e,0]})))},\n function _(e,r,o,t,a){t(),o.above=\"bk-above\",o.below=\"bk-below\",o.left=\"bk-left\",o.right=\"bk-right\",o.header=\"bk-header\",o.tab=\"bk-tab\",o.active=\"bk-active\",o.close=\"bk-close\",o.disabled=\"bk-disabled\",o.default=':host{display:grid;}:host(.bk-above){grid-template:\"header\" max-content \"stack\" 1fr / 1fr;}:host(.bk-below){grid-template:\"stack\" 1fr \"header\" max-content / 1fr;}:host(.bk-left){grid-template:\"header stack\" 1fr / max-content 1fr;}:host(.bk-right){grid-template:\"stack header\" 1fr / 1fr max-content;}.bk-header{grid-area:\"header\";display:flex;flex-wrap:nowrap;align-items:stretch;user-select:none;-webkit-user-select:none;}:host(.bk-above) .bk-header,:host(.bk-below) .bk-header{flex-direction:row;}:host(.bk-left) .bk-header,:host(.bk-right) .bk-header{flex-direction:column;}:host(.bk-above) .bk-header{border-bottom:1px solid #e6e6e6;}:host(.bk-right) .bk-header{border-left:1px solid #e6e6e6;}:host(.bk-below) .bk-header{border-top:1px solid #e6e6e6;}:host(.bk-left) .bk-header{border-right:1px solid #e6e6e6;}.bk-tab{padding:4px 8px;border:solid transparent;outline:0;outline-offset:-5px;white-space:nowrap;cursor:pointer;text-align:center;}.bk-tab:hover{background-color:#f2f2f2;}.bk-tab:focus,.bk-tab:active{outline:1px dotted #ccc;}.bk-tab.bk-active{color:#4d4d4d;background-color:white;border-color:#e6e6e6;}.bk-tab .bk-close{margin-left:10px;}.bk-tab.bk-disabled{cursor:not-allowed;pointer-events:none;opacity:0.65;}:host(.bk-above) .bk-tab{border-width:3px 1px 0px 1px;border-radius:var(--border-radius) var(--border-radius) 0 0;}:host(.bk-right) .bk-tab{border-width:1px 3px 1px 0px;border-radius:0 var(--border-radius) var(--border-radius) 0;}:host(.bk-below) .bk-tab{border-width:0px 1px 3px 1px;border-radius:0 0 var(--border-radius) var(--border-radius);}:host(.bk-left) .bk-tab{border-width:1px 0px 1px 3px;border-radius:var(--border-radius) 0 0 var(--border-radius);}.bk-close{display:inline-block;vertical-align:middle;width:14px;height:14px;cursor:pointer;background-color:gray;mask-image:var(--bokeh-icon-x);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-x);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}.bk-close:hover{background-color:red;}'},\n function _(e,n,t,r,s){var l;r();const i=e(365),o=e(233),c=e(257),a=e(20),d=(0,a.Struct)({child:(0,a.Ref)(c.UIElement),row:(0,a.Opt)(o.Index),span:(0,a.Opt)(o.Span)});class _ extends i.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,rows:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change(n,(()=>this.invalidate_layout()))}get _children(){return this.model.children.map((({child:e,row:n,span:t},r)=>[e,null!=n?n:r,0,null!=t?t:1,1]))}get _rows(){return this.model.rows}get _cols(){return null}}t.VBoxView=_,_.__name__=\"VBoxView\";class h extends i.CSSGridBox{constructor(e){super(e)}}t.VBox=h,l=h,h.__name__=\"VBox\",l.prototype.default_view=_,l.define((({Array:e,Nullable:n})=>({children:[e(d),[]],rows:[n(o.TracksSizing),null]})))},\n function _(i,n,c,e,o){e(),o(\"Menu\",i(361).Menu),o(\"Action\",i(377).Action),o(\"CheckAction\",i(379).CheckAction),o(\"Section\",i(380).Section),o(\"Divider\",i(381).Divider)},\n function _(e,n,t,i,l){var s;i();const c=e(362),d=e(361),o=e(378),r=e(56);class a extends c.MenuItemView{_click(){}render(){super.render();const{label:e,description:n}=this.model;this.el.tabIndex=0,this.el.title=null!=n?n:\"\",this.el.appendChild((0,r.span)(e)),this.el.addEventListener(\"click\",(()=>{this._click()})),this.el.addEventListener(\"keydown\",(e=>{\"Enter\"==e.key&&this._click()}))}}t.ActionView=a,a.__name__=\"ActionView\";class u extends c.MenuItem{constructor(e){super(e)}}t.Action=u,s=u,u.__name__=\"Action\",s.prototype.default_view=a,s.define((({String:e,Nullable:n,Ref:t})=>({icon:[n(t(o.Icon)),null],label:[e],description:[n(e),null],menu:[n(t(d.Menu)),null]})))},\n function _(e,n,o,c,s){var _;c();const t=e(50),i=e(55);class r extends i.DOMComponentView{}o.IconView=r,r.__name__=\"IconView\";class a extends t.Model{constructor(e){super(e)}}o.Icon=a,_=a,a.__name__=\"Icon\",_.define((({Number:e,Or:n,CSSLength:o})=>({size:[n(e,o),\"1em\"]})))},\n function _(e,c,n,t,o){var i;t();const _=e(377);class s extends _.ActionView{}n.CheckActionView=s,s.__name__=\"CheckActionView\";class a extends _.Action{constructor(e){super(e)}}n.CheckAction=a,i=a,a.__name__=\"CheckAction\",i.prototype.default_view=s,i.define((({Boolean:e})=>({checked:[e,!1]})))},\n function _(e,n,t,r,i){var s;r();const c=e(362);class o extends c.MenuItemView{render(){super.render()}}t.SectionView=o,o.__name__=\"SectionView\";class _ extends c.MenuItem{constructor(e){super(e)}}t.Section=_,s=_,_.__name__=\"Section\",s.prototype.default_view=o,s.define((({Array:e,Ref:n})=>({items:[e(n(c.MenuItem)),[]]})))},\n function _(e,i,r,t,s){var d;t();const n=e(1),_=e(362),a=n.__importStar(e(268));class c extends _.MenuItemView{render(){super.render(),this.el.classList.add(a.divider)}}r.DividerView=c,c.__name__=\"DividerView\";class o extends _.MenuItem{constructor(e){super(e)}}r.Divider=o,d=o,o.__name__=\"Divider\",d.prototype.default_view=c},\n function _(t,a,i,e,M){e();var T=t(149);M(\"MathText\",T.MathText),M(\"Ascii\",T.Ascii),M(\"MathML\",T.MathML),M(\"TeX\",T.TeX),M(\"PlainText\",t(156).PlainText)},\n function _(r,o,t,e,n){e(),n(\"CustomJSTransform\",r(384).CustomJSTransform),n(\"Dodge\",r(385).Dodge),n(\"Interpolator\",r(387).Interpolator),n(\"Jitter\",r(388).Jitter),n(\"LinearInterpolator\",r(390).LinearInterpolator),n(\"StepInterpolator\",r(391).StepInterpolator),n(\"Transform\",r(86).Transform)},\n function _(r,t,s,n,e){var a;n();const u=r(86),o=r(9),m=r(38);class _ extends u.Transform{constructor(r){super(r)}get names(){return(0,o.keys)(this.args)}get values(){return(0,o.values)(this.args)}_make_transform(r,t){return new Function(...this.names,r,(0,m.use_strict)(t))}get scalar_transform(){return this._make_transform(\"x\",this.func)}get vector_transform(){return this._make_transform(\"xs\",this.v_func)}compute(r){return this.scalar_transform(...this.values,r)}v_compute(r){return this.vector_transform(...this.values,r)}}s.CustomJSTransform=_,a=_,_.__name__=\"CustomJSTransform\",a.define((({Unknown:r,String:t,Dict:s})=>({args:[s(r),{}],func:[t,\"\"],v_func:[t,\"\"]})))},\n function _(e,n,r,o,s){var t;o();const u=e(386);class a extends u.RangeTransform{constructor(e){super(e)}_compute(e){return e+this.value}}r.Dodge=a,t=a,a.__name__=\"Dodge\",t.define((({Number:e})=>({value:[e,0]})))},\n function _(e,n,t,r,a){var s;r();const c=e(86),o=e(87),i=e(96),u=e(23),h=e(8),l=e(12);class g extends c.Transform{constructor(e){super(e)}v_compute(e){let n;this.range instanceof i.FactorRange?n=this.range.v_synthetic(e):(0,h.isArrayableOf)(e,h.isNumber)?n=e:(0,l.unreachable)();const t=new((0,u.infer_type)(n))(n.length);for(let e=0;e<n.length;e++){const r=n[e];t[e]=this._compute(r)}return t}compute(e){return this.range instanceof i.FactorRange?this._compute(this.range.synthetic(e)):(0,h.isNumber)(e)?this._compute(e):void(0,l.unreachable)()}}t.RangeTransform=g,s=g,g.__name__=\"RangeTransform\",s.define((({Ref:e,Nullable:n})=>({range:[n(e(o.Range)),null]})))},\n function _(t,e,r,n,s){var o;n();const i=t(86),a=t(99),h=t(23),l=t(10),d=t(8);class c extends i.Transform{constructor(t){super(t),this._sorted_dirty=!0}connect_signals(){super.connect_signals(),this.connect(this.change,(()=>this._sorted_dirty=!0))}v_compute(t){const e=new((0,h.infer_type)(t))(t.length);for(let r=0;r<t.length;r++){const n=t[r];e[r]=this.compute(n)}return e}sort(t=!1){if(!this._sorted_dirty)return;let e,r;if((0,d.isString)(this.x)&&(0,d.isString)(this.y)&&null!=this.data){const t=this.data.columns();if(!(0,l.includes)(t,this.x))throw new Error(\"The x parameter does not correspond to a valid column name defined in the data parameter\");if(!(0,l.includes)(t,this.y))throw new Error(\"The y parameter does not correspond to a valid column name defined in the data parameter\");e=this.data.get_column(this.x),r=this.data.get_column(this.y)}else{if(!(0,d.isArray)(this.x)||!(0,d.isArray)(this.y))throw new Error(\"parameters 'x' and 'y' must be both either string fields or arrays\");e=this.x,r=this.y}if(e.length!==r.length)throw new Error(\"The length for x and y do not match\");if(e.length<2)throw new Error(\"x and y must have at least two elements to support interpolation\");const n=e.length,s=new Uint32Array(n);for(let t=0;t<n;t++)s[t]=t;const o=t?-1:1;s.sort(((t,r)=>o*(e[t]-e[r]))),this._x_sorted=new((0,h.infer_type)(e))(n),this._y_sorted=new((0,h.infer_type)(r))(n);for(let t=0;t<n;t++)this._x_sorted[t]=e[s[t]],this._y_sorted[t]=r[s[t]];this._sorted_dirty=!1}}r.Interpolator=c,o=c,c.__name__=\"Interpolator\",o.define((({Boolean:t,Number:e,String:r,Ref:n,Array:s,Or:o,Nullable:i})=>({x:[o(r,s(e))],y:[o(r,s(e))],data:[i(n(a.ColumnarDataSource)),null],clip:[t,!0]})))},\n function _(t,e,n,r,i){var s;r();const o=t(386),a=t(96),u=t(389),_=t(19),h=t(13),m=t(262);class l extends o.RangeTransform{constructor(t){super(t),this._previous_offsets=null}initialize(){var t,e;super.initialize(),this._generator=null!==(e=null===(t=this.random_generator)||void 0===t?void 0:t.generator())&&void 0!==e?e:new m.SystemRandom}v_compute(t){const e=(()=>this.range instanceof a.FactorRange?this.range.v_synthetic(t):t)(),n=(()=>{var t;const n=e.length;return(null===(t=this._previous_offsets)||void 0===t?void 0:t.length)!=n&&(this._previous_offsets=this._v_compute(n)),this._previous_offsets})();return(0,h.map)(n,((t,n)=>t+e[n]))}_compute(){const{mean:t,width:e}=this;switch(this.distribution){case\"uniform\":return this._generator.uniform(t,e);case\"normal\":return this._generator.normal(t,e)}}_v_compute(t){const{mean:e,width:n}=this;switch(this.distribution){case\"uniform\":return this._generator.uniforms(e,n,t);case\"normal\":return this._generator.normals(e,n,t)}}}n.Jitter=l,s=l,l.__name__=\"Jitter\",s.define((({Number:t})=>({mean:[t,0],width:[t,1],distribution:[_.Distribution,\"uniform\"]}))),s.internal((({Nullable:t,Ref:e})=>({random_generator:[t(e(u.RandomGenerator)),null]})))},\n function _(n,e,o,r,t){r();const a=n(50);class s extends a.Model{constructor(n){super(n)}}o.RandomGenerator=s,s.__name__=\"RandomGenerator\"},\n function _(t,s,_,r,e){r();const i=t(10),o=t(387);class n extends o.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._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];const s=(0,i.find_last_index)(this._x_sorted,(s=>s<t)),_=this._x_sorted[s],r=this._x_sorted[s+1],e=this._y_sorted[s],o=this._y_sorted[s+1];return e+(t-_)/(r-_)*(o-e)}}_.LinearInterpolator=n,n.__name__=\"LinearInterpolator\"},\n function _(t,e,s,r,o){var _;r();const i=t(387),n=t(19),d=t(10);class h extends i.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(t<this._x_sorted[0]||t>this._x_sorted[this._x_sorted.length-1])return NaN}else{if(t<this._x_sorted[0])return this._y_sorted[0];if(t>this._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case\"after\":e=(0,d.find_last_index)(this._x_sorted,(e=>t>=e));break;case\"before\":e=(0,d.find_index)(this._x_sorted,(e=>t<=e));break;case\"center\":{const s=(0,d.map)(this._x_sorted,(e=>Math.abs(e-t))),r=(0,d.min)(s);e=(0,d.find_index)(s,(t=>r===t));break}default:throw new Error(`unknown mode: ${this.mode}`)}return-1!=e?this._y_sorted[e]:NaN}}s.StepInterpolator=h,_=h,h.__name__=\"StepInterpolator\",_.define((()=>({mode:[n.StepMode,\"after\"]})))},\n function _(p,o,t,i,a){i(),a(\"MapOptions\",p(393).MapOptions),a(\"GMapOptions\",p(393).GMapOptions),a(\"GMapPlot\",p(393).GMapPlot),a(\"GMap\",p(401).GMap),a(\"Plot\",p(394).Plot),a(\"GridPlot\",p(402).GridPlot),a(\"Figure\",p(403).Figure)},\n function _(e,t,a,n,o){var p,s,l;n();const _=e(394),i=e(19),r=e(50),c=e(88),d=e(400);o(\"GMapPlotView\",d.GMapPlotView);class u extends r.Model{constructor(e){super(e)}}a.MapOptions=u,p=u,u.__name__=\"MapOptions\",p.define((({Int:e,Number:t})=>({lat:[t],lng:[t],zoom:[e,12]})));class M extends u{constructor(e){super(e)}}a.GMapOptions=M,s=M,M.__name__=\"GMapOptions\",s.define((({Boolean:e,Int:t,String:a,Nullable:n})=>({map_type:[i.MapType,\"roadmap\"],scale_control:[e,!1],styles:[n(a),null],tilt:[t,45]})));class m extends _.Plot{constructor(e){super(e),this.use_map=!0}}a.GMapPlot=m,l=m,m.__name__=\"GMapPlot\",l.prototype.default_view=d.GMapPlotView,l.define((({String:e,Bytes:t,Ref:a})=>({map_options:[a(M)],api_key:[t],api_version:[e,\"weekly\"]}))),l.override({x_range:()=>new c.Range1d,y_range:()=>new c.Range1d,background_fill_alpha:0})},\n function _(e,t,o,r,n){var a;r();const l=e(1),i=l.__importStar(e(78)),s=l.__importStar(e(17)),_=e(15),d=e(19),c=e(10),h=e(43),u=e(8),g=e(360),b=e(159),f=e(356),m=e(73),p=e(142),w=e(89),y=e(256),v=e(87),x=e(85),S=e(104),R=e(74),A=e(200),D=e(199),L=e(264),O=e(93),P=e(395);n(\"PlotView\",P.PlotView);class T extends g.LayoutDOM{constructor(e){super(e),this.use_map=!1,this.reset=new _.Signal0(this,\"reset\")}add_layout(e,t=\"center\"){const o=this.properties[t].get_value();this.setv({[t]:[...o,e]})}remove_layout(e){const t=t=>{(0,c.remove_by)(t,(t=>t==e))};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}get data_renderers(){return this.renderers.filter((e=>e instanceof A.DataRenderer))}add_renderers(...e){this.renderers=[...this.renderers,...e]}add_glyph(e,t=new S.ColumnDataSource,o={}){const r=new D.GlyphRenderer(Object.assign(Object.assign({},o),{data_source:t,glyph:e}));return this.add_renderers(r),r}add_tools(...e){const t=e.map((e=>e instanceof L.Tool?e:L.Tool.from_string(e)));this.toolbar.tools=[...this.toolbar.tools,...t]}remove_tools(...e){this.toolbar.tools=[...(0,h.difference)(new Set(this.toolbar.tools),new Set(e))]}get panels(){return[...this.side_panels,...this.center]}get side_panels(){const{above:e,below:t,left:o,right:r}=this;return(0,c.concat)([e,t,o,r])}}o.Plot=T,a=T,T.__name__=\"Plot\",a.prototype.default_view=P.PlotView,a.mixins([[\"outline_\",i.Line],[\"background_\",i.Fill],[\"border_\",i.Fill]]),a.define((({Boolean:e,Number:t,String:o,Array:r,Dict:n,Or:a,Ref:l,Null:i,Nullable:_,Struct:c,Opt:h})=>({toolbar:[l(y.Toolbar),()=>new y.Toolbar],toolbar_location:[_(d.Location),\"right\"],toolbar_sticky:[e,!0],toolbar_inner:[e,!1],frame_width:[_(t),null],frame_height:[_(t),null],frame_align:[a(e,c({left:h(e),right:h(e),top:h(e),bottom:h(e)})),!0],title:[a(l(p.Title),o,i),\"\",{convert:e=>(0,u.isString)(e)?new p.Title({text:e}):e}],title_location:[_(d.Location),\"above\"],above:[r(a(l(m.Annotation),l(b.Axis))),[]],below:[r(a(l(m.Annotation),l(b.Axis))),[]],left:[r(a(l(m.Annotation),l(b.Axis))),[]],right:[r(a(l(m.Annotation),l(b.Axis))),[]],center:[r(a(l(m.Annotation),l(f.Grid))),[]],renderers:[r(l(R.Renderer)),[]],x_range:[l(v.Range),()=>new O.DataRange1d],y_range:[l(v.Range),()=>new O.DataRange1d],x_scale:[l(x.Scale),()=>new w.LinearScale],y_scale:[l(x.Scale),()=>new w.LinearScale],extra_x_ranges:[n(l(v.Range)),{}],extra_y_ranges:[n(l(v.Range)),{}],extra_x_scales:[n(l(x.Scale)),{}],extra_y_scales:[n(l(x.Scale)),{}],lod_factor:[t,10],lod_interval:[t,300],lod_threshold:[_(t),2e3],lod_timeout:[t,500],hidpi:[e,!0],output_backend:[d.OutputBackend,\"canvas\"],min_border:[_(t),5],min_border_top:[_(t),null],min_border_left:[_(t),null],min_border_bottom:[_(t),null],min_border_right:[_(t),null],inner_width:[t,s.unset,{readonly:!0}],inner_height:[t,s.unset,{readonly:!0}],outer_width:[t,s.unset,{readonly:!0}],outer_height:[t,s.unset,{readonly:!0}],match_aspect:[e,!1],aspect_scale:[t,1],reset_policy:[d.ResetPolicy,\"standard\"],hold_render:[e,!1]}))),a.override({width:600,height:600,outline_line_color:\"#e5e5e5\",border_fill_color:\"#ffffff\",background_fill_color:\"#ffffff\"})},\n function _(e,t,i,s,n){s();const a=e(1),r=e(157),o=e(291),l=e(265),_=e(360),h=e(73),d=e(142),c=e(159),u=e(255),p=e(93),g=e(52),m=e(59),b=e(75),v=e(18),f=e(52),w=e(396),y=e(8),x=e(10),z=e(32),k=e(260),S=e(227),M=e(229),$=e(228),q=e(144),V=e(57),O=e(152),R=e(397),j=e(398),P=e(28),T=e(56),C=a.__importDefault(e(399)),{max:B}=Math;class A extends _.LayoutDOMView{constructor(){super(...arguments),this._computed_style=new T.InlineStyleSheet,this._outer_bbox=new V.BBox,this._inner_bbox=new V.BBox,this._needs_paint=!0,this._invalidated_painters=new Set,this._invalidate_all=!0,this.renderer_views=new Map,this.tool_views=new Map,this._needs_notify=!1}get canvas(){return this.canvas_view}stylesheets(){return[...super.stylesheets(),C.default,this._computed_style]}get toolbar_panel(){return null!=this._toolbar?this.renderer_view(this._toolbar):void 0}get state(){return this._state_manager}set invalidate_dataranges(e){this._range_manager.invalidate_dataranges=e}renderer_view(e){const t=this.renderer_views.get(e);if(null==t)for(const[,t]of this.renderer_views){const i=t.renderer_view(e);if(null!=i)return i}return t}get auto_ranged_renderers(){return this.model.renderers.map((e=>this.renderer_view(e))).filter(p.is_auto_ranged)}get base_font_size(){const e=getComputedStyle(this.el).fontSize,t=(0,O.parse_css_font_size)(e);if(null!=t){const{value:e,unit:i}=t;if(\"px\"==i)return e}return null}*children(){yield*super.children(),yield*this.renderer_views.values(),yield*this.tool_views.values(),yield this.canvas}get is_paused(){return null!=this._is_paused&&0!==this._is_paused}get child_models(){return[]}pause(){null==this._is_paused?this._is_paused=1:this._is_paused+=1}unpause(e=!1){if(null==this._is_paused)throw new Error(\"wasn't paused\");this._is_paused=Math.max(this._is_paused-1,0),0!=this._is_paused||e||this.request_paint(\"everything\")}notify_finished_after_paint(){this._needs_notify=!0}request_render(){this.request_paint(\"everything\")}request_paint(e){this.invalidate_painters(e),this.schedule_paint()}invalidate_painters(e){if(\"everything\"==e)this._invalidate_all=!0;else if((0,y.isArray)(e))for(const t of e)this._invalidated_painters.add(t);else this._invalidated_painters.add(e)}schedule_paint(){if(!this.is_paused){const e=this.throttled_paint();this._ready=this._ready.then((()=>e))}}request_layout(){this.request_paint(\"everything\")}reset(){\"standard\"==this.model.reset_policy&&(this.state.clear(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new g.Reset)}remove(){for(const e of this.frame.ranges.values())e.plots.delete(this);(0,m.remove_views)(this.renderer_views),(0,m.remove_views)(this.tool_views),this.canvas_view.remove(),super.remove()}render(){super.render(),this.shadow_el.appendChild(this.canvas_view.el),this.canvas_view.render()}initialize(){this.pause(),super.initialize(),this.lod_started=!1,this.visuals=new b.Visuals(this),this._initial_state={selection:new Map},this.frame=new r.CartesianFrame(this.model.x_scale,this.model.y_scale,this.model.x_range,this.model.y_range,this.model.extra_x_ranges,this.model.extra_y_ranges,this.model.extra_x_scales,this.model.extra_y_scales);for(const e of this.frame.ranges.values())e.plots.add(this);this._range_manager=new R.RangeManager(this),this._state_manager=new j.StateManager(this,this._initial_state),this.throttled_paint=(0,w.throttle)((()=>{this._removed||this.repaint()}),1e3/60);const{title_location:e,title:t}=this.model;null!=e&&null!=t&&(this._title=t instanceof d.Title?t:new d.Title({text:t}));const{toolbar_location:i,toolbar_inner:s,toolbar:n}=this.model;null!=i&&(this._toolbar=new u.ToolbarPanel({toolbar:n}),n.location=i,n.inner=s)}async lazy_initialize(){await super.lazy_initialize();const{hidpi:e,output_backend:t}=this.model,i=new o.Canvas({hidpi:e,output_backend:t});this.canvas_view=await(0,m.build_view)(i,{parent:this}),this.canvas_view.plot_views=[this],await this.build_tool_views(),await this.build_renderer_views(),this._range_manager.update_dataranges()}box_sizing(){const e=super.box_sizing(),{width_policy:t,height_policy:i}=e,s=a.__rest(e,[\"width_policy\",\"height_policy\"]),{frame_width:n,frame_height:r}=this.model;return Object.assign(Object.assign({},s),{width_policy:null!=n&&\"auto\"==t?\"fit\":t,height_policy:null!=r&&\"auto\"==i?\"fit\":i})}_intrinsic_display(){return{inner:this.model.flow_mode,outer:\"grid\"}}_update_layout(){var e,t,i,s,n;super._update_layout(),this._invalidate_all=!0,this._needs_paint=!0;const a=new M.BorderLayout,{frame_align:r}=this.model;if(a.aligns=(()=>{if((0,y.isBoolean)(r))return{left:r,right:r,top:r,bottom:r};{const{left:e=!0,right:t=!0,top:i=!0,bottom:s=!0}=r;return{left:e,right:t,top:i,bottom:s}}})(),a.set_sizing({width_policy:\"max\",height_policy:\"max\"}),this.visuals.outline_line.doit){const e=this.visuals.outline_line.line_width.get_value();a.center_border_width=e}const o=(0,x.copy)(this.model.above),l=(0,x.copy)(this.model.below),_=(0,x.copy)(this.model.left),c=(0,x.copy)(this.model.right),p=[],g=[],m=[],b=[],v=(e,t=!1)=>{switch(e){case\"above\":return t?p:o;case\"below\":return t?g:l;case\"left\":return t?m:_;case\"right\":return t?b:c}},{title_location:f}=this.model;if(null!=f&&null!=this._title&&v(f).push(this._title),null!=this._toolbar){const{location:e}=this._toolbar.toolbar;if(this.model.toolbar_inner){v(e,!0).push(this._toolbar)}else{const t=v(e);let i=!0;if(this.model.toolbar_sticky)for(let s=0;s<t.length;s++){const n=t[s];if(n instanceof d.Title){t[s]=\"above\"==e||\"below\"==e?[n,this._toolbar]:[this._toolbar,n],i=!1;break}}i&&t.push(this._toolbar)}}const w=(e,t)=>{var i;const s=this.renderer_view(t);return s.panel=new q.Panel(e),null===(i=s.update_layout)||void 0===i||i.call(s),s.layout},z=(e,t)=>{const i=\"above\"==e||\"below\"==e,s=[];for(const n of t)if((0,y.isArray)(n)){const t=n.map((t=>{const s=w(e,t);if(t instanceof u.ToolbarPanel){const e=i?\"width_policy\":\"height_policy\";s.set_sizing(Object.assign(Object.assign({},s.sizing),{[e]:\"min\"}))}return s}));let a;i?(a=new $.Row(t),a.set_sizing({width_policy:\"max\",height_policy:\"min\"})):(a=new $.Column(t),a.set_sizing({width_policy:\"min\",height_policy:\"max\"})),a.absolute=!0,s.push(a)}else s.push(w(e,n));return s},k=null!==(e=this.model.min_border)&&void 0!==e?e:0;a.min_border={left:null!==(t=this.model.min_border_left)&&void 0!==t?t:k,top:null!==(i=this.model.min_border_top)&&void 0!==i?i:k,right:null!==(s=this.model.min_border_right)&&void 0!==s?s:k,bottom:null!==(n=this.model.min_border_bottom)&&void 0!==n?n:k};const V=new S.NodeLayout,O=new S.VStack,R=new S.VStack,j=new S.HStack,P=new S.HStack,T=new S.VStack,C=new S.VStack,B=new S.HStack,A=new S.HStack;V.absolute=!0,O.absolute=!0,R.absolute=!0,j.absolute=!0,P.absolute=!0,T.absolute=!0,C.absolute=!0,B.absolute=!0,A.absolute=!0,V.children=this.model.center.filter((e=>e instanceof h.Annotation)).map((e=>{var t;const i=this.renderer_view(e);return null===(t=i.update_layout)||void 0===t||t.call(i),i.layout})).filter((e=>null!=e));const{frame_width:H,frame_height:L}=this.model;V.set_sizing(Object.assign(Object.assign({},null!=H?{width_policy:\"fixed\",width:H}:{width_policy:\"fit\"}),null!=L?{height_policy:\"fixed\",height:L}:{height_policy:\"fit\"})),V.on_resize((e=>this.frame.set_geometry(e))),O.children=(0,x.reversed)(z(\"above\",o)),R.children=z(\"below\",l),j.children=(0,x.reversed)(z(\"left\",_)),P.children=z(\"right\",c),T.children=z(\"above\",p),C.children=z(\"below\",g),B.children=z(\"left\",m),A.children=z(\"right\",b),O.set_sizing({width_policy:\"fit\",height_policy:\"min\"}),R.set_sizing({width_policy:\"fit\",height_policy:\"min\"}),j.set_sizing({width_policy:\"min\",height_policy:\"fit\"}),P.set_sizing({width_policy:\"min\",height_policy:\"fit\"}),T.set_sizing({width_policy:\"fit\",height_policy:\"min\"}),C.set_sizing({width_policy:\"fit\",height_policy:\"min\"}),B.set_sizing({width_policy:\"min\",height_policy:\"fit\"}),A.set_sizing({width_policy:\"min\",height_policy:\"fit\"}),a.center_panel=V,a.top_panel=O,a.bottom_panel=R,a.left_panel=j,a.right_panel=P,0!=T.children.length&&(a.inner_top_panel=T),0!=C.children.length&&(a.inner_bottom_panel=C),0!=B.children.length&&(a.inner_left_panel=B),0!=A.children.length&&(a.inner_right_panel=A),this.layout=a}_measure_layout(){const{frame_width:e,frame_height:t}=this.model,i=null==e?\"1fr\":(0,T.px)(e),s=null==t?\"1fr\":(0,T.px)(t),{layout:n}=this,a=n.top_panel.measure({width:1/0,height:1/0}),r=n.bottom_panel.measure({width:1/0,height:1/0}),o=n.left_panel.measure({width:1/0,height:1/0}),l=n.right_panel.measure({width:1/0,height:1/0}),_=B(a.height,n.min_border.top),h=B(r.height,n.min_border.bottom),d=B(o.width,n.min_border.left),c=B(l.width,n.min_border.right);this._computed_style.replace(`\\n :host {\\n grid-template-rows: ${_}px ${s} ${h}px;\\n grid-template-columns: ${d}px ${i} ${c}px;\\n }\\n `)}get axis_views(){const e=[];for(const[,t]of this.renderer_views)t instanceof c.AxisView&&e.push(t);return e}update_range(e,t){this.pause(),this._range_manager.update(e,t),this.unpause()}reset_range(){this.update_range(null),this.trigger_ranges_update_event()}trigger_ranges_update_event(){const{x_range:e,y_range:t}=this.model,i=new Set([...e.plots,...t.plots]);for(const e of i){const{x_range:t,y_range:i}=e.model;e.model.trigger_event(new f.RangesUpdate(t.start,t.end,i.start,i.end))}}get_selection(){const e=new Map;for(const t of this.model.data_renderers){const{selected:i}=t.selection_manager.source;e.set(t,i)}return e}update_selection(e){for(const t of this.model.data_renderers){const i=t.selection_manager.source;if(null!=e){const s=e.get(t);null!=s&&i.selected.update(s,!0)}else i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_invalidate_layout_if_needed(){(()=>{var e,t;for(const i of this.model.side_panels){const s=this.renderer_views.get(i);if(null!==(t=null===(e=s.layout)||void 0===e?void 0:e.has_size_changed())&&void 0!==t&&t)return this.invalidate_painters(s),!0}return!1})()&&this.compute_layout()}get_renderer_views(){return this.computed_renderers.map((e=>this.renderer_views.get(e)))}*_compute_renderers(){const{above:e,below:t,left:i,right:s,center:n,renderers:a}=this.model;yield*a,yield*e,yield*t,yield*i,yield*s,yield*n,null!=this._title&&(yield this._title),null!=this._toolbar&&(yield this._toolbar);for(const[,e]of this.tool_views)yield*e.overlays}async build_renderer_views(){this.computed_renderers=[...this._compute_renderers()],await(0,m.build_views)(this.renderer_views,this.computed_renderers,{parent:this})}async build_tool_views(){const e=(0,z.flat_map)(this.model.toolbar.tools,(e=>e instanceof l.ToolProxy?e.tools:[e])),{created:t}=await(0,m.build_views)(this.tool_views,[...e],{parent:this});t.map((e=>this.canvas_view.ui_event_bus.register_tool(e)))}connect_signals(){super.connect_signals();const{extra_x_ranges:e,extra_y_ranges:t,extra_x_scales:i,extra_y_scales:s}=this.model.properties;this.on_change([e,t,i,s],(()=>{this.frame.x_range=this.model.x_range,this.frame.y_range=this.model.y_range,this.frame.in_x_scale=this.model.x_scale,this.frame.in_y_scale=this.model.y_scale,this.frame.extra_x_ranges=this.model.extra_x_ranges,this.frame.extra_y_ranges=this.model.extra_y_ranges,this.frame.extra_x_scales=this.model.extra_x_scales,this.frame.extra_y_scales=this.model.extra_y_scales,this.frame.configure_scales()}));const{above:n,below:a,left:r,right:o,center:l,renderers:_}=this.model.properties,h=[n,a,r,o,l];this.on_change(_,(async()=>{await this.build_renderer_views()})),this.on_change(h,(async()=>{await this.build_renderer_views(),this.invalidate_layout()})),this.connect(this.model.toolbar.properties.tools.change,(async()=>{await this.build_tool_views(),await this.build_renderer_views()}));const{x_ranges:d,y_ranges:c}=this.frame;for(const[,e]of d)this.connect(e.change,(()=>{this.request_paint(\"everything\")}));for(const[,e]of c)this.connect(e.change,(()=>{this.request_paint(\"everything\")}));this.connect(this.model.change,(()=>this.request_paint(\"everything\"))),this.connect(this.model.reset,(()=>this.reset()));const{toolbar_location:p}=this.model.properties;this.on_change(p,(async()=>{const{toolbar_location:e}=this.model;if(null!=this._toolbar)null!=e?this._toolbar.toolbar.location=e:(this._toolbar=void 0,await this.build_renderer_views());else if(null!=e){const{toolbar:t,toolbar_inner:i}=this.model;this._toolbar=new u.ToolbarPanel({toolbar:t}),t.location=e,t.inner=i,await this.build_renderer_views()}this.invalidate_layout()}));const{hold_render:g}=this.model.properties;this.on_change(g,(()=>this._hold_render_changed()))}has_finished(){if(!super.has_finished())return!1;if(this.model.visible)for(const[,e]of this.renderer_views)if(!e.has_finished())return!1;return!0}_after_layout(){var e;super._after_layout(),this.unpause(!0);const t=this.layout.left_panel.bbox,i=this.layout.right_panel.bbox,s=this.layout.center_panel.bbox,n=this.layout.top_panel.bbox,a=this.layout.bottom_panel.bbox,{bbox:r}=this,o=n.bottom,l=r.height-a.top,_=t.right,d=r.width-i.left;this.canvas.style.replace(`\\n .bk-layer.bk-events {\\n display: grid;\\n grid-template-areas:\\n \". above . \"\\n \"left center right\"\\n \". below . \";\\n grid-template-rows: ${(0,T.px)(o)} ${(0,T.px)(s.height)} ${(0,T.px)(l)};\\n grid-template-columns: ${(0,T.px)(_)} ${(0,T.px)(s.width)} ${(0,T.px)(d)};\\n }\\n `);for(const[,t]of this.renderer_views)t instanceof h.AnnotationView&&(null===(e=t.after_layout)||void 0===e||e.call(t));this.model.setv({inner_width:Math.round(this.frame.bbox.width),inner_height:Math.round(this.frame.bbox.height),outer_width:Math.round(this.bbox.width),outer_height:Math.round(this.bbox.height)},{no_change:!0}),this.model.match_aspect&&(this.pause(),this._range_manager.update_dataranges(),this.unpause(!0)),this._outer_bbox.equals(this.bbox)||(this.canvas_view.resize(),this._outer_bbox=this.bbox,this._invalidate_all=!0,this._needs_paint=!0);const{inner_bbox:c}=this.layout;this._inner_bbox.equals(c)||(this._inner_bbox=c,this._needs_paint=!0),this._needs_paint&&this.paint()}repaint(){this._invalidate_layout_if_needed(),this.paint()}paint(){this.is_paused||(this.model.visible&&(v.logger.trace(`${this.toString()}.paint()`),this._actual_paint()),this._needs_notify&&(this._needs_notify=!1,this.notify_finished()))}_actual_paint(){var e;const{document:t}=this.model;if(null!=t){const e=t.interactive_duration();e>=0&&e<this.model.lod_interval?setTimeout((()=>{t.interactive_duration()>this.model.lod_timeout&&t.interactive_stop(),this.request_paint(\"everything\")}),this.model.lod_timeout):t.interactive_stop()}this._range_manager.invalidate_dataranges&&(this._range_manager.update_dataranges(),this._invalidate_layout_if_needed());let i=!1,s=!1;if(this._invalidate_all)i=!0,s=!0;else for(const e of this._invalidated_painters){const{level:t}=e.model;if(\"overlay\"!=t?i=!0:s=!0,i&&s)break}this._invalidated_painters.clear(),this._invalidate_all=!1;const n=[this.frame.bbox.left,this.frame.bbox.top,this.frame.bbox.width,this.frame.bbox.height],{primary:a,overlays:r}=this.canvas_view;i&&(a.prepare(),this.canvas_view.prepare_webgl(n),this._paint_empty(a.ctx,n),this._paint_outline(a.ctx,n),this._paint_levels(a.ctx,\"image\",n,!0),this._paint_levels(a.ctx,\"underlay\",n,!0),this._paint_levels(a.ctx,\"glyph\",n,!0),this._paint_levels(a.ctx,\"guide\",n,!1),this._paint_levels(a.ctx,\"annotation\",n,!1),a.finish()),(s||P.settings.wireframe)&&(r.prepare(),this._paint_levels(r.ctx,\"overlay\",n,!1),P.settings.wireframe&&this._paint_layout(r.ctx,this.layout),r.finish()),null==this._initial_state.range&&(this._initial_state.range=null!==(e=this._range_manager.compute_initial())&&void 0!==e?e:void 0),this._needs_paint=!1}_paint_levels(e,t,i,s){for(const n of this.computed_renderers){if(n.level!=t)continue;const a=this.renderer_views.get(n);e.save(),(s||a.needs_clip)&&(e.beginPath(),e.rect(...i),e.clip()),a.render(),e.restore(),a.has_webgl&&a.needs_webgl_blit&&this.canvas_view.blit_webgl(e)}}_paint_layout(e,t){const{x:i,y:s,width:n,height:a}=t.bbox;e.strokeStyle=\"blue\",e.strokeRect(i,s,n,a);for(const n of t)e.save(),t.absolute||e.translate(i,s),this._paint_layout(e,n),e.restore()}_paint_empty(e,t){const[i,s,n,a]=[0,0,this.bbox.width,this.bbox.height],[r,o,l,_]=t;this.visuals.border_fill.doit&&(this.visuals.border_fill.set_value(e),e.fillRect(i,s,n,a),e.clearRect(r,o,l,_)),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fillRect(r,o,l,_))}_paint_outline(e,t){if(this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[i,s,n,a]=t;i+n==this.bbox.width&&(n-=1),s+a==this.bbox.height&&(a-=1),e.strokeRect(i,s,n,a),e.restore()}}export(e=\"auto\",t=!0){const i=(()=>{switch(e){case\"auto\":return this.canvas_view.model.output_backend;case\"png\":return\"canvas\";case\"svg\":return\"svg\"}})(),s=new k.CanvasLayer(i,t),{width:n,height:a}=this.bbox;if(s.resize(n,a),0!=n&&0!=a){const{canvas:e}=this.canvas_view.compose();s.ctx.drawImage(e,0,0)}return s}serializable_state(){const e=super.serializable_state(),{children:t}=e,i=a.__rest(e,[\"children\"]),s=this.get_renderer_views().filter((e=>e.model.syncable)).map((e=>e.serializable_state())).filter((e=>null!=e.bbox)),n={type:\"CartesianFrame\",bbox:this.frame.bbox};return Object.assign(Object.assign({},i),{children:[...null!=t?t:[],n,...s]})}_hold_render_changed(){this.model.hold_render?this.pause():this.unpause()}}i.PlotView=A,A.__name__=\"PlotView\"},\n function _(n,t,e,l,u){l(),e.throttle=function(n,t){let e,l=null,u=null,o=0,i=!1;const r=function(){return new Promise(((r,c)=>{e=r;const a=function(){o=Date.now(),l=null,u=null,i=!1;try{n(),r()}catch(n){c(n)}},m=Date.now(),s=t-(m-o);s<=0&&!i?(null!=l&&clearTimeout(l),i=!0,u=requestAnimationFrame(a)):null!=l||i?r():l=setTimeout((()=>u=requestAnimationFrame(a)),s)}))};return r.stop=function(){null!=l&&clearTimeout(l),null!=u&&cancelAnimationFrame(u),e()},r}},\n function _(t,n,a,e,s){e();const o=t(93),r=t(18);class l{constructor(t){this.invalidate_dataranges=!0,this.parent=t}get frame(){return this.parent.frame}update(t,n={}){var a;const{x_ranges:e,y_ranges:s}=this.frame;if(null==t){for(const[,t]of e)t.reset();for(const[,t]of s)t.reset();this.update_dataranges()}else{const o=[];for(const[n,a]of e)o.push([a,t.xrs.get(n)]);for(const[n,a]of s)o.push([a,t.yrs.get(n)]);null!==(a=n.scrolling)&&void 0!==a&&a&&this._update_ranges_together(o),this._update_ranges_individually(o,n)}}reset(){this.update(null)}_update_dataranges(t){const n=new Map,a=new Map;let e=!1;for(const[,n]of t.x_ranges)n instanceof o.DataRange1d&&\"log\"==n.scale_hint&&(e=!0);for(const[,n]of t.y_ranges)n instanceof o.DataRange1d&&\"log\"==n.scale_hint&&(e=!0);for(const t of this.parent.auto_ranged_renderers){const s=t.bounds();if(n.set(t.model,s),e){const n=t.log_bounds();a.set(t.model,n)}}let s=!1,l=!1;const i=t.x_target.span,d=t.y_target.span;let u;!1!==this.parent.model.match_aspect&&0!=i&&0!=d&&(u=1/this.parent.model.aspect_scale*(i/d));for(const[,e]of t.x_ranges){if(e instanceof o.DataRange1d){const t=\"log\"==e.scale_hint?a:n;e.update(t,0,this.parent,u),null!=e.follow&&(s=!0)}null!=e.bounds&&(l=!0)}for(const[,e]of t.y_ranges){if(e instanceof o.DataRange1d){const t=\"log\"==e.scale_hint?a:n;e.update(t,1,this.parent,u),null!=e.follow&&(s=!0)}null!=e.bounds&&(l=!0)}if(s&&l){r.logger.warn(\"Follow enabled so bounds are unset.\");for(const[,n]of t.x_ranges)n.bounds=null;for(const[,n]of t.y_ranges)n.bounds=null}}update_dataranges(){this._update_dataranges(this.frame);for(const t of this.parent.auto_ranged_renderers){const{coordinates:n}=t.model;null!=n&&this._update_dataranges(n)}null!=this.compute_initial()&&(this.invalidate_dataranges=!1)}compute_initial(){let t=!0;const{x_ranges:n,y_ranges:a}=this.frame,e=new Map,s=new Map;for(const[a,s]of n){const{start:n,end:o}=s;if(isNaN(n+o)){t=!1;break}e.set(a,{start:n,end:o})}if(t)for(const[n,e]of a){const{start:a,end:o}=e;if(isNaN(a+o)){t=!1;break}s.set(n,{start:a,end:o})}return t?{xrs:e,yrs:s}:(r.logger.warn(\"could not set initial ranges\"),null)}_update_ranges_together(t){let n=1;for(const[a,e]of t)n=Math.min(n,this._get_weight_to_constrain_interval(a,e));if(n<1)for(const[a,e]of t)e.start=n*e.start+(1-n)*a.start,e.end=n*e.end+(1-n)*a.end}_update_ranges_individually(t,n={}){var a,e,s;const o=null!==(a=n.panning)&&void 0!==a&&a,r=null!==(e=n.scrolling)&&void 0!==e&&e,l=null!==(s=n.maintain_focus)&&void 0!==s&&s;let i=!1;for(const[n,a]of t){if(!r){const t=this._get_weight_to_constrain_interval(n,a);t<1&&(a.start=t*a.start+(1-t)*n.start,a.end=t*a.end+(1-t)*n.end)}if(null!=n.bounds&&\"auto\"!=n.bounds){const[t,e]=n.bounds,s=Math.abs(a.end-a.start);n.is_reversed?(null!=t&&t>a.end&&(i=!0,a.end=t,(o||r)&&(a.start=t+s)),null!=e&&e<a.start&&(i=!0,a.start=e,(o||r)&&(a.end=e-s))):(null!=t&&t>a.start&&(i=!0,a.start=t,(o||r)&&(a.end=t+s)),null!=e&&e<a.end&&(i=!0,a.end=e,(o||r)&&(a.start=e-s)))}}if(!(r&&i&&l))for(const[n,a]of t)n.have_updated_interactively=!0,n.start==a.start&&n.end==a.end||n.setv(a)}_get_weight_to_constrain_interval(t,n){const{min_interval:a}=t;let{max_interval:e}=t;if(null!=t.bounds&&\"auto\"!=t.bounds){const[n,a]=t.bounds;if(null!=n&&null!=a){const t=Math.abs(a-n);e=null!=e?Math.min(e,t):t}}let s=1;if(null!=a||null!=e){const o=Math.abs(t.end-t.start),r=Math.abs(n.end-n.start);null!=a&&a>0&&r<a&&(s=(o-a)/(o-r)),null!=e&&e>0&&r>e&&(s=(e-o)/(r-o)),s=Math.max(0,Math.min(1,s))}return s}}a.RangeManager=l,l.__name__=\"RangeManager\"},\n function _(t,i,s,e,n){e();const h=t(15);class a{constructor(t,i){this.history=[],this.index=-1,this.parent=t,this.initial_state=i,this.changed=new h.Signal0(this.parent,\"state_changed\")}_do_state_change(t){const i=t in this.history?this.history[t].state:this.initial_state;return null!=i.range&&this.parent.update_range(i.range),null!=i.selection&&this.parent.update_selection(i.selection),i}peek(){return this.can_undo?this.history[this.index]:null}push(t,i){const{history:s,index:e}=this,n=e in s?s[e].state:{},h=Object.assign(Object.assign(Object.assign({},this.initial_state),n),i);this.history=this.history.slice(0,this.index+1),this.history.push({type:t,state:h}),this.index=this.history.length-1,this.changed.emit()}clear(){this.history=[],this.index=-1,this.changed.emit()}undo(){if(this.can_undo){this.index-=1;const t=this._do_state_change(this.index);return this.changed.emit(),t}return null}redo(){if(this.can_redo){this.index+=1;const t=this._do_state_change(this.index);return this.changed.emit(),t}return null}get can_undo(){return this.index>=0}get can_redo(){return this.index<this.history.length-1}}s.StateManager=a,a.__name__=\"StateManager\"},\n function _(a,r,t,e,n){e(),t.Canvas=\"bk-Canvas\",t.default=':host{display:grid;grid-template-areas:\". above . \" \"left center right\" \". below . \";grid-template-rows:0px 1fr 0px;grid-template-columns:0px 1fr 0px;}.bk-Canvas{grid-row-start:1;grid-row-end:span 3;grid-column-start:1;grid-column-end:span 3;}'},\n function _(t,e,s,i,o){i();const a=t(18),n=t(15),p=t(56),_=t(105),l=t(395);const h=new n.Signal0({},\"gmaps_ready\");class d extends l.PlotView{initialize(){super.initialize(),this._tiles_loaded=!1,this.zoom_count=0;const{zoom:t,lat:e,lng:s}=this.model.map_options;this.initial_zoom=t,this.initial_lat=e,this.initial_lng=s;const i=new TextDecoder(\"utf-8\");if(this._api_key=i.decode(this.model.api_key),\"\"==this._api_key){const t=\"https://developers.google.com/maps/documentation/javascript/get-api-key\";a.logger.error(`api_key is required. See ${t} for more information on how to obtain your own.`)}}async lazy_initialize(){if(await super.lazy_initialize(),this.map_el=(0,p.div)({style:{position:\"absolute\"}}),this.canvas_view.add_underlay(this.map_el),\"undefined\"==typeof google||void 0===google.maps){if(void 0===window._bokeh_gmaps_callback){const{api_version:t}=this.model;!function(t,e){window._bokeh_gmaps_callback=()=>h.emit();const s=encodeURIComponent,i=document.createElement(\"script\");i.type=\"text/javascript\",i.src=`https://maps.googleapis.com/maps/api/js?v=${s(e)}&key=${s(t)}&callback=_bokeh_gmaps_callback`,document.body.appendChild(i)}(this._api_key,t)}h.connect((()=>{this._build_map(),this.request_paint(\"everything\")}))}else this._build_map()}remove(){(0,p.remove)(this.map_el),super.remove()}update_range(t,e){var s,i;if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.update_range(null,e);else if(null!=t.sdx||null!=t.sdy)this.map.panBy(null!==(s=t.sdx)&&void 0!==s?s:0,null!==(i=t.sdy)&&void 0!==i?i:0),super.update_range(t,e);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t,e);const s=t.factor<0?-1:1,i=this.map.getZoom();if(null!=i){const t=i+s;if(t>=2){this.map.setZoom(t);const[e,s]=this._get_projected_bounds();s-e<0&&this.map.setZoom(i)}}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,\"idle\",(()=>this._set_bokeh_ranges())),t.event.addListener(this.map,\"bounds_changed\",(()=>this._set_bokeh_ranges())),t.event.addListenerOnce(this.map,\"tilesloaded\",(()=>this._render_finished())),this.connect(this.model.properties.map_options.change,(()=>this._update_options())),this.connect(this.model.map_options.properties.styles.change,(()=>this._update_styling())),this.connect(this.model.map_options.properties.lat.change,(()=>this._update_center(\"lat\"))),this.connect(this.model.map_options.properties.lng.change,(()=>this._update_center(\"lng\"))),this.connect(this.model.map_options.properties.zoom.change,(()=>this._update_zoom())),this.connect(this.model.map_options.properties.map_type.change,(()=>this._update_map_type())),this.connect(this.model.map_options.properties.scale_control.change,(()=>this._update_scale_control())),this.connect(this.model.map_options.properties.tilt.change,(()=>this._update_tilt()))}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(){const t=this.map.getBounds(),e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(){const[t,e,s,i]=this._get_latlon_bounds(),[o,a]=_.wgs84_mercator.compute(t,s),[n,p]=_.wgs84_mercator.compute(e,i);return[o,n,a,p]}_set_bokeh_ranges(){const[t,e,s,i]=this._get_projected_bounds();this.frame.x_range.setv({start:t,end:e}),this.frame.y_range.setv({start:s,end:i})}_update_center(t){var e;const s=null===(e=this.map.getCenter())||void 0===e?void 0:e.toJSON();null!=s&&(s[t]=this.model.map_options[t],this.map.setCenter(s),this._set_bokeh_ranges())}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styling(),this._update_center(\"lat\"),this._update_center(\"lng\"),this._update_zoom(),this._update_map_type()}_update_styling(){const{styles:t}=this.model.map_options;this.map.setOptions({styles:null!=t?JSON.parse(t):null})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_after_layout(){super._after_layout();const{left:t,top:e,width:s,height:i}=this.frame.bbox;this.map_el.style.top=`${e}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${s}px`,this.map_el.style.height=`${i}px`}}s.GMapPlotView=d,d.__name__=\"GMapPlotView\"},\n function _(e,a,t,s,n){var p;s();const _=e(393);class i extends _.GMapPlotView{serializable_state(){const e=super.serializable_state();return Object.assign(Object.assign({},e),{type:\"GMapPlot\"})}}t.GMapView=i,i.__name__=\"GMapView\";class l extends _.GMapPlot{constructor(e){super(e)}}t.GMap=l,p=l,l.__name__=\"GMap\",p.prototype.default_view=i},\n function _(i,t,e,o,s){var l;o();const r=i(360),n=i(364),a=i(233),c=i(256),_=i(274),d=i(260),h=i(59),u=i(19);class b extends r.LayoutDOMView{constructor(){super(...arguments),this._tool_views=new Map}get toolbar_view(){return this.child_views.find((i=>i.model==this.model.toolbar))}get grid_box_view(){return this.child_views.find((i=>i.model==this._grid_box))}_update_location(){const i=this.model.toolbar_location;null==i?this.model.toolbar.visible=!1:this.model.toolbar.setv({visible:!0,location:i})}initialize(){super.initialize(),this._update_location();const{children:i,rows:t,cols:e,spacing:o}=this.model;this._grid_box=new n.GridBox({children:i,rows:t,cols:e,spacing:o,sizing_mode:\"inherit\"})}async lazy_initialize(){await super.lazy_initialize(),await this.build_tool_views()}connect_signals(){super.connect_signals();const{toolbar:i,toolbar_location:t,children:e,rows:o,cols:s,spacing:l}=this.model.properties;this.on_change(t,(()=>{this._update_location(),this.rebuild()})),this.on_change([i,e,o,s,l],(()=>{this.rebuild()})),this.on_change(this.model.toolbar.properties.tools,(async()=>{await this.build_tool_views()})),this.mouseenter.connect((()=>{this.toolbar_view.set_visibility(!0)})),this.mouseleave.connect((()=>{this.toolbar_view.set_visibility(!1)}))}remove(){(0,h.remove_views)(this._tool_views),super.remove()}async build_tool_views(){const i=this.model.toolbar.tools.filter((i=>i instanceof _.ActionTool));await(0,h.build_views)(this._tool_views,i,{parent:this})}*children(){yield*super.children(),yield*this._tool_views.values()}get child_models(){return[this.model.toolbar,this._grid_box]}_intrinsic_display(){return{inner:this.model.flow_mode,outer:\"flex\"}}_update_layout(){super._update_layout();const{location:i}=this.model.toolbar,t=(()=>{switch(i){case\"above\":return\"column\";case\"below\":return\"column-reverse\";case\"left\":return\"row\";case\"right\":return\"row-reverse\"}})();this.style.append(\":host\",{flex_direction:t})}export(i=\"auto\",t=!0){const e=(()=>{switch(i){case\"auto\":case\"png\":return\"canvas\";case\"svg\":return\"svg\"}})(),o=new d.CanvasLayer(e,t),{x:s,y:l,width:r,height:n}=this.grid_box_view.bbox.relative();o.resize(r,n),o.ctx.save();const a=getComputedStyle(this.el).backgroundColor;o.ctx.fillStyle=a,o.ctx.fillRect(s,l,r,n);for(const e of this.child_views){const s=e.export(i,t),{x:l,y:r}=e.bbox;o.ctx.drawImage(s.canvas,l,r)}return o.ctx.restore(),o}}e.GridPlotView=b,b.__name__=\"GridPlotView\";class w extends r.LayoutDOM{constructor(i){super(i)}}e.GridPlot=w,l=w,w.__name__=\"GridPlot\",l.prototype.default_view=b,l.define((({Array:i,Ref:t,Nullable:e})=>({toolbar:[t(c.Toolbar),()=>new c.Toolbar],toolbar_location:[e(u.Location),\"above\"],children:[i((0,a.GridChild)(r.LayoutDOM)),[]],rows:[e(a.TracksSizing),null],cols:[e(a.TracksSizing),null],spacing:[a.GridSpacing,0]})))},\n function _(e,t,s,i,a){var r;i();const n=e(394);class _ extends n.PlotView{serializable_state(){const e=super.serializable_state();return Object.assign(Object.assign({},e),{type:\"Plot\"})}}s.FigureView=_,_.__name__=\"FigureView\";class l extends n.Plot{constructor(e){super(e)}}s.Figure=l,r=l,l.__name__=\"Figure\",r.prototype.default_view=_},\n function _(t,_,n,o,r){o();t(1).__exportStar(t(163),n)},\n function _(l,r,i,a,e){a(),e(\"ParkMillerLCG\",l(406).ParkMillerLCG)},\n function _(e,n,r,a,l){var t;a();const o=e(389),s=e(262);class d extends o.RandomGenerator{constructor(e){super(e)}generator(){var e;return new s.LCGRandom(null!==(e=this.seed)&&void 0!==e?e:Date.now())}}r.ParkMillerLCG=d,t=d,d.__name__=\"ParkMillerLCG\",t.define((({Int:e,Nullable:n})=>({seed:[n(e),null]})))},\n function _(e,r,n,d,R){d(),R(\"ContourRenderer\",e(408).ContourRenderer),R(\"GlyphRenderer\",e(199).GlyphRenderer),R(\"GraphRenderer\",e(409).GraphRenderer),R(\"GuideRenderer\",e(160).GuideRenderer);var G=e(74);R(\"Renderer\",G.Renderer),R(\"RendererGroup\",G.RendererGroup)},\n function _(e,i,r,n,l){var t;n();const _=e(200),s=e(199),d=e(59);class a extends _.DataRendererView{*children(){yield*super.children(),yield this.fill_view,yield this.line_view}get glyph_view(){return this.fill_view.glyph.data_size>0?this.fill_view.glyph:this.line_view.glyph}async lazy_initialize(){await super.lazy_initialize();const{parent:e}=this,{fill_renderer:i,line_renderer:r}=this.model;this.fill_view=await(0,d.build_view)(i,{parent:e}),this.line_view=await(0,d.build_view)(r,{parent:e})}remove(){this.fill_view.remove(),this.line_view.remove(),super.remove()}_render(){this.fill_view.render(),this.line_view.render()}renderer_view(e){if(e instanceof s.GlyphRenderer){if(e==this.fill_view.model)return this.fill_view;if(e==this.line_view.model)return this.line_view}return super.renderer_view(e)}}r.ContourRendererView=a,a.__name__=\"ContourRendererView\";class h extends _.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.fill_renderer.data_source.selection_manager}}r.ContourRenderer=h,t=h,h.__name__=\"ContourRenderer\",t.prototype.default_view=a,t.define((({Array:e,Number:i,Ref:r})=>({fill_renderer:[r(s.GlyphRenderer)],line_renderer:[r(s.GlyphRenderer)],levels:[e(i),[]]})))},\n function _(e,r,i,n,t){var d;n();const s=e(200),o=e(199),a=e(353),l=e(352),p=e(59),h=e(202),_=e(333),y=e(335);class c extends s.DataRendererView{get glyph_view(){return this.node_view.glyph}*children(){yield*super.children(),yield this.edge_view,yield this.node_view}async lazy_initialize(){await super.lazy_initialize(),this.apply_coordinates();const{parent:e}=this,{edge_renderer:r,node_renderer:i}=this.model;this.edge_view=await(0,p.build_view)(r,{parent:e}),this.node_view=await(0,p.build_view)(i,{parent:e})}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,(()=>{this.apply_coordinates(),this.edge_view.set_data(),this.node_view.set_data(),this.request_render()}))}apply_coordinates(){const{edge_renderer:e,node_renderer:r}=this.model;if(!(e.glyph instanceof _.MultiLine||e.glyph instanceof y.Patches))throw new Error(`${this}.edge_renderer.glyph must be a MultiLine glyph`);if(!(r.glyph instanceof h.XYGlyph))throw new Error(`${this}.node_renderer.glyph must be a XYGlyph glyph`);const i=this.model.layout_provider.edge_coordinates,n=this.model.layout_provider.node_coordinates;e.glyph.properties.xs.internal=!0,e.glyph.properties.ys.internal=!0,r.glyph.properties.x.internal=!0,r.glyph.properties.y.internal=!0,e.glyph.xs={expr:i.x},e.glyph.ys={expr:i.y},r.glyph.x={expr:n.x},r.glyph.y={expr:n.y}}remove(){this.edge_view.remove(),this.node_view.remove(),super.remove()}_render(){this.edge_view.render(),this.node_view.render()}renderer_view(e){if(e instanceof o.GlyphRenderer){if(e==this.edge_view.model)return this.edge_view;if(e==this.node_view.model)return this.node_view}return super.renderer_view(e)}}i.GraphRendererView=c,c.__name__=\"GraphRendererView\";class g extends s.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}i.GraphRenderer=g,d=g,g.__name__=\"GraphRenderer\",d.prototype.default_view=c,d.define((({Ref:e})=>({layout_provider:[e(a.LayoutProvider)],node_renderer:[e(o.GlyphRenderer)],edge_renderer:[e(o.GlyphRenderer)],selection_policy:[e(l.GraphHitTestPolicy),()=>new l.NodesOnly],inspection_policy:[e(l.GraphHitTestPolicy),()=>new l.NodesOnly]})))},\n function _(e,t,n,o,c){o();e(1).__exportStar(e(102),n),c(\"Selection\",e(101).Selection)},\n function _(y,B,a,s,C){s(),C(\"ByID\",y(412).ByID),C(\"ByClass\",y(414).ByClass),C(\"ByCSS\",y(415).ByCSS),C(\"ByXPath\",y(416).ByXPath)},\n function _(e,n,r,t,c){t();const o=e(413);class s extends o.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(`#${this.query}`)}}r.ByID=s,s.__name__=\"ByID\"},\n function _(e,n,r,t,c){var o;t();const s=e(50);class _ extends s.Model{constructor(e){super(e)}}r.Selector=_,o=_,_.__name__=\"Selector\",o.define((({String:e})=>({query:[e]})))},\n function _(e,s,n,r,t){r();const c=e(413);class o extends c.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(`.${this.query}`)}}n.ByClass=o,o.__name__=\"ByClass\"},\n function _(e,n,r,t,c){t();const o=e(413);class s extends o.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(this.query)}}r.ByCSS=s,s.__name__=\"ByCSS\"},\n function _(e,t,n,r,a){r();const c=e(413);class o extends c.Selector{constructor(e){super(e)}find_one(e){return document.evaluate(this.query,e).iterateNext()}}n.ByXPath=o,o.__name__=\"ByXPath\"},\n function _(a,e,S,o,r){o(),r(\"ServerSentDataSource\",a(418).ServerSentDataSource),r(\"AjaxDataSource\",a(420).AjaxDataSource),r(\"ColumnDataSource\",a(104).ColumnDataSource),r(\"ColumnarDataSource\",a(99).ColumnarDataSource),r(\"CDSView\",a(215).CDSView),r(\"DataSource\",a(103).DataSource),r(\"GeoJSONDataSource\",a(421).GeoJSONDataSource),r(\"WebDataSource\",a(419).WebDataSource)},\n function _(e,t,i,a,s){a();const n=e(419);class r extends n.WebDataSource{constructor(e){super(e),this.initialized=!1}setup(){if(!this.initialized){this.initialized=!0;new EventSource(this.data_url).onmessage=e=>{var t;this.load_data(JSON.parse(e.data),this.mode,null!==(t=this.max_size)&&void 0!==t?t:void 0)}}}}i.ServerSentDataSource=r,r.__name__=\"ServerSentDataSource\"},\n function _(t,e,a,n,r){var s;n();const l=t(104),i=t(19);class o extends l.ColumnDataSource{constructor(t){super(t)}get_column(t){return t in this.data?this.data[t]:[]}get_length(){var t;return null!==(t=super.get_length())&&void 0!==t?t:0}initialize(){super.initialize(),this.setup()}load_data(t,e,a){const{adapter:n}=this;let r;switch(r=null!=n?n.execute(this,{response:t}):t,e){case\"replace\":this.data=r;break;case\"append\":{const t=this.data;for(const e of this.columns()){const n=Array.from(t[e]),s=Array.from(r[e]),l=n.concat(s);r[e]=null!=a?l.slice(-a):l}this.data=r;break}}}}a.WebDataSource=o,s=o,o.__name__=\"WebDataSource\",s.define((({Any:t,Int:e,String:a,Nullable:n})=>({max_size:[n(e),null],mode:[i.UpdateMode,\"replace\"],adapter:[n(t),null],data_url:[a]})))},\n function _(t,e,i,s,a){var n;s();const r=t(419),o=t(19),l=t(18),d=t(9);class h extends r.WebDataSource{constructor(t){super(t),this.interval=null,this.initialized=!1}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!this.initialized&&(this.initialized=!0,this.get_data(this.mode),null!=this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=null,i=!1){const s=this.prepare_request();s.addEventListener(\"load\",(()=>this.do_load(s,t,null!=e?e:void 0))),s.addEventListener(\"error\",(()=>this.do_error(s))),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader(\"Content-Type\",this.content_type);const e=this.http_headers;for(const[i,s]of(0,d.entries)(e))t.setRequestHeader(i,s);return t}do_load(t,e,i){if(200===t.status){const s=JSON.parse(t.responseText);this.load_data(s,e,i)}}do_error(t){l.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=h,n=h,h.__name__=\"AjaxDataSource\",n.define((({Boolean:t,Int:e,String:i,Dict:s,Nullable:a})=>({polling_interval:[a(e),null],content_type:[i,\"application/json\"],http_headers:[s(i),{}],method:[o.HTTPMethod,\"POST\"],if_modified:[t,!1]})))},\n function _(e,t,o,r,n){var s;r();const a=e(99),i=e(18),l=e(8),c=e(10),_=e(9);function g(e){return null!=e?e:NaN}const{hasOwnProperty:u}=Object.prototype;class y extends a.ColumnarDataSource{constructor(e){super(e)}initialize(){super.initialize(),this._update_data()}connect_signals(){super.connect_signals(),this.connect(this.properties.geojson.change,(()=>this._update_data()))}_update_data(){this.data=this.geojson_to_column_data()}_get_new_list_array(e){return(0,c.range)(0,e).map((e=>[]))}_get_new_nan_array(e){return(0,c.range)(0,e).map((e=>NaN))}_add_properties(e,t,o,r){var n;const s=null!==(n=e.properties)&&void 0!==n?n:{};for(const[e,n]of(0,_.entries)(s))u.call(t,e)||(t[e]=this._get_new_nan_array(r)),t[e][o]=g(n)}_add_geometry(e,t,o){function r(e,t){return e.concat([[NaN,NaN,NaN]]).concat(t)}switch(e.type){case\"Point\":{const[r,n,s]=e.coordinates;t.x[o]=r,t.y[o]=n,t.z[o]=g(s);break}case\"LineString\":{const{coordinates:r}=e;for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=g(a)}break}case\"Polygon\":{e.coordinates.length>1&&i.logger.warn(\"Bokeh does not support Polygons with holes in, only exterior ring used.\");const r=e.coordinates[0];for(let e=0;e<r.length;e++){const[n,s,a]=r[e];t.xs[o][e]=n,t.ys[o][e]=s,t.zs[o][e]=g(a)}break}case\"MultiPoint\":i.logger.warn(\"MultiPoint not supported in Bokeh\");break;case\"MultiLineString\":{const n=e.coordinates.reduce(r);for(let e=0;e<n.length;e++){const[r,s,a]=n[e];t.xs[o][e]=r,t.ys[o][e]=s,t.zs[o][e]=g(a)}break}case\"MultiPolygon\":{const n=[];for(const t of e.coordinates)t.length>1&&i.logger.warn(\"Bokeh does not support Polygons with holes in, only exterior ring used.\"),n.push(t[0]);const s=n.reduce(r);for(let e=0;e<s.length;e++){const[r,n,a]=s[e];t.xs[o][e]=r,t.ys[o][e]=n,t.zs[o][e]=g(a)}break}default:throw new Error(`Invalid GeoJSON geometry type: ${e.type}`)}}geojson_to_column_data(){const e=JSON.parse(this.geojson);let t;switch(e.type){case\"GeometryCollection\":if((0,l.is_undefined)(e.geometries))throw new Error(\"No geometries found in GeometryCollection\");if(0===e.geometries.length)throw new Error(\"geojson.geometries must have one or more items\");t=e.geometries;break;case\"FeatureCollection\":if((0,l.is_undefined)(e.features))throw new Error(\"No features found in FeaturesCollection\");if(0==e.features.length)throw new Error(\"geojson.features must have one or more items\");t=e.features;break;default:throw new Error(\"Bokeh only supports type GeometryCollection and FeatureCollection at top level\")}let o=0;for(const e of t){const t=\"Feature\"===e.type?e.geometry:e;\"GeometryCollection\"==t.type?o+=t.geometries.length:o+=1}const r={x:this._get_new_nan_array(o),y:this._get_new_nan_array(o),z:this._get_new_nan_array(o),xs:this._get_new_list_array(o),ys:this._get_new_list_array(o),zs:this._get_new_list_array(o)};let n=0;for(const e of t){const t=\"Feature\"==e.type?e.geometry:e;if(\"GeometryCollection\"==t.type)for(const s of t.geometries)this._add_geometry(s,r,n),\"Feature\"===e.type&&this._add_properties(e,r,n,o),n+=1;else this._add_geometry(t,r,n),\"Feature\"===e.type&&this._add_properties(e,r,n,o),n+=1}return r}}o.GeoJSONDataSource=y,s=y,y.__name__=\"GeoJSONDataSource\",s.define((({String:e})=>({geojson:[e]}))),s.internal((({Any:e,Dict:t,Arrayable:o})=>({data:[t(o(e)),{}]})))},\n function _(e,r,T,o,S){o(),S(\"BBoxTileSource\",e(423).BBoxTileSource),S(\"MercatorTileSource\",e(424).MercatorTileSource),S(\"QUADKEYTileSource\",e(427).QUADKEYTileSource),S(\"TileRenderer\",e(428).TileRenderer),S(\"TileSource\",e(425).TileSource),S(\"TMSTileSource\",e(431).TMSTileSource),S(\"WMTSTileSource\",e(429).WMTSTileSource)},\n function _(e,t,r,o,l){var i;o();const n=e(424);class s extends n.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let l,i,n,s;return this.use_latlon?[i,s,l,n]=this.get_tile_geographic_bounds(e,t,r):[i,s,l,n]=this.get_tile_meter_bounds(e,t,r),o.replace(\"{XMIN}\",i.toString()).replace(\"{YMIN}\",s.toString()).replace(\"{XMAX}\",l.toString()).replace(\"{YMAX}\",n.toString())}}r.BBoxTileSource=s,i=s,s.__name__=\"BBoxTileSource\",i.define((({Boolean:e})=>({use_latlon:[e,!1]})))},\n function _(t,e,i,_,s){var r;_();const o=t(425),n=t(10),l=t(426);class u extends o.TileSource{constructor(t){super(t)}initialize(){super.initialize(),this._resolutions=(0,n.range)(this.min_zoom,this.max_zoom+1).map((t=>this.get_resolution(t)))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t}));return this._resolutions.indexOf(o)}snap_to_zoom_level(t,e,i,_){const[s,r,o,n]=t,l=this._resolutions[_];let u=i*l,a=e*l;if(!this.snap_to_zoom){const t=(o-s)/u,e=(n-r)/a;t>e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);i=0===i?i:i-1;return[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<<i)-e]}meters_to_tile(t,e,i){const[_,s]=this.meters_to_pixels(t,e,i);return this.pixels_to_tile(_,s)}get_tile_meter_bounds(t,e,i){const[_,s]=this.pixels_to_meters(t*this.tile_size,e*this.tile_size,i),[r,o]=this.pixels_to_meters((t+1)*this.tile_size,(e+1)*this.tile_size,i);return[_,s,r,o]}get_tile_geographic_bounds(t,e,i){const _=this.get_tile_meter_bounds(t,e,i),[s,r,o,n]=(0,l.meters_extent_to_geographic)(_);return[s,r,o,n]}get_tiles_by_extent(t,e,i=1){const[_,s,r,o]=t;let[n,l]=this.meters_to_tile(_,s,e),[u,a]=this.meters_to_tile(r,o,e);n-=i,l-=i,u+=i,a+=i;const h=[];for(let t=a;t>=l;t--)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s--){const r=1<<s-1;switch(t.charAt(_-s)){case\"0\":continue;case\"1\":e|=r;break;case\"2\":i|=r;break;case\"3\":e|=r,i|=r;break;default:throw new TypeError(`Invalid Quadkey: ${t}`)}}return[e,i,_]}tile_xyz_to_quadkey(t,e,i){let _=\"\";for(let s=i;s>0;s--){const i=1<<s-1;let r=0;0!=(t&i)&&(r+=1),0!=(e&i)&&(r+=2),_+=r.toString()}return _}children_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=[];for(let t=0;t<=3;t++){const[e,i,r]=this.quadkey_to_tile_xyz(_+t.toString()),o=this.get_tile_meter_bounds(e,i,r);s.push([e,i,r,o])}return s}get_closest_parent_by_tile_xyz(t,e,i){const _=this.calculate_world_x_by_tile_xyz(t,e,i);[t,e,i]=this.normalize_xyz(t,e,i);let s=this.tile_xyz_to_quadkey(t,e,i);for(;s.length>0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=u,r=u,u.__name__=\"MercatorTileSource\",r.define((({Boolean:t})=>({snap_to_zoom:[t,!1],wrap_around:[t,!0]}))),r.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})},\n function _(e,t,r,i,n){var l;i();const a=e(50),s=e(9);class c extends a.Model{constructor(e){super(e)}initialize(){super.initialize(),this.tiles=new Map,this._normalize_case()}connect_signals(){super.connect_signals(),this.connect(this.change,(()=>this._clear_cache()))}string_lookup_replace(e,t){let r=e;for(const[e,i]of(0,s.entries)(t))r=r.replace(`{${e}}`,i);return r}_normalize_case(){const e=this.url.replace(\"{x}\",\"{X}\").replace(\"{y}\",\"{Y}\").replace(\"{z}\",\"{Z}\").replace(\"{q}\",\"{Q}\").replace(\"{xmin}\",\"{XMIN}\").replace(\"{ymin}\",\"{YMIN}\").replace(\"{xmax}\",\"{XMAX}\").replace(\"{ymax}\",\"{YMAX}\");this.url=e}_clear_cache(){this.tiles=new Map}tile_xyz_to_key(e,t,r){return`${e}:${t}:${r}`}key_to_tile_xyz(e){const[t,r,i]=e.split(\":\").map((e=>parseInt(e)));return[t,r,i]}sort_tiles_from_center(e,t){const[r,i,n,l]=t,a=(n-r)/2+r,s=(l-i)/2+i;e.sort((function(e,t){return Math.sqrt((a-e[0])**2+(s-e[1])**2)-Math.sqrt((a-t[0])**2+(s-t[1])**2)}))}get_image_url(e,t,r){return this.string_lookup_replace(this.url,this.extra_url_vars).replace(\"{X}\",e.toString()).replace(\"{Y}\",t.toString()).replace(\"{Z}\",r.toString())}}r.TileSource=c,l=c,c.__name__=\"TileSource\",l.define((({Number:e,String:t,Dict:r,Nullable:i})=>({url:[t,\"\"],tile_size:[e,256],max_zoom:[e,30],min_zoom:[e,0],extra_url_vars:[r(t),{}],attribution:[t,\"\"],x_origin_offset:[e],y_origin_offset:[e],initial_resolution:[i(e),null]})))},\n function _(t,e,r,n,o){n();const c=t(105);function _(t,e){return c.wgs84_mercator.compute(t,e)}function g(t,e){return c.wgs84_mercator.invert(t,e)}r.geographic_to_meters=_,r.meters_to_geographic=g,r.geographic_extent_to_meters=function(t){const[e,r,n,o]=t,[c,g]=_(e,r),[i,u]=_(n,o);return[c,g,i,u]},r.meters_extent_to_geographic=function(t){const[e,r,n,o]=t,[c,_]=g(e,r),[i,u]=g(n,o);return[c,_,i,u]}},\n function _(e,t,r,s,_){s();const o=e(424);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const s=this.string_lookup_replace(this.url,this.extra_url_vars),[_,o,c]=this.tms_to_wmts(e,t,r),i=this.tile_xyz_to_quadkey(_,o,c);return s.replace(\"{Q}\",i)}}r.QUADKEYTileSource=c,c.__name__=\"QUADKEYTileSource\"},\n function _(t,e,i,s,_){var n;s();const a=t(1),h=t(425),o=t(429),r=t(74),l=t(88),d=t(56),m=t(150),c=t(10),u=t(8),p=a.__importDefault(t(430));class g extends r.RendererView{initialize(){this._tiles=[],super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_render())),this.connect(this.model.tile_source.change,(()=>this.request_render()))}remove(){null!=this.attribution_el&&(0,d.remove)(this.attribution_el),super.remove()}get_extent(){return[this.x_range.start,this.y_range.start,this.x_range.end,this.y_range.end]}get map_plot(){return this.plot_model}get map_canvas(){return this.layer.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}_update_attribution(){null!=this.attribution_el&&(0,d.remove)(this.attribution_el);const{attribution:t}=this.model.tile_source;if((0,u.isString)(t)&&t.length>0){const{layout:e,frame:i}=this.plot_view,s=e.bbox.width-i.bbox.right,_=e.bbox.height-i.bbox.bottom,n=i.bbox.width;this.attribution_el=(0,d.div)({style:{right:`${s}px`,bottom:`${_}px`,\"max-width\":`${n}px`}});const a=(0,d.div)();a.innerHTML=t;const h=this.attribution_el.attachShadow({mode:\"open\"});new d.InlineStyleSheet(p.default).install(h),h.appendChild(a),this.attribution_el.title=a.textContent.replace(/\\s*\\n\\s*/g,\" \"),this.plot_view.canvas_view.add_event(this.attribution_el)}}_map_data(){this.initial_extent=this.get_extent();const t=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame.bbox.height,this.map_frame.bbox.width),e=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame.bbox.height,this.map_frame.bbox.width,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 l.Range1d&&(this.x_range.reset_start=e[0],this.x_range.reset_end=e[2]),this.y_range instanceof l.Range1d&&(this.y_range.reset_start=e[1],this.y_range.reset_end=e[3]),this._update_attribution()}_create_tile(t,e,i,s,_=!1){const n=this.model.tile_source.tile_xyz_to_quadkey(t,e,i),a=this.model.tile_source.tile_xyz_to_key(t,e,i);if(this.model.tile_source.tiles.has(a))return;const[h,o,r]=this.model.tile_source.normalize_xyz(t,e,i),l=this.model.tile_source.get_image_url(h,o,r),d={img:void 0,tile_coords:[t,e,i],normalized_coords:[h,o,r],quadkey:n,cache_key:a,bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]};this.model.tile_source.tiles.set(a,d),this._tiles.push(d),new m.ImageLoader(l,{loaded:t=>{Object.assign(d,{img:t,loaded:!0}),_?(d.finished=!0,this.notify_finished()):this.request_render()},failed(){d.finished=!0}})}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame.bbox.height||this._last_width!==this.map_frame.bbox.width){const t=this.get_extent(),e=this.model.tile_source.get_level_by_extent(t,this.map_frame.bbox.height,this.map_frame.bbox.width),i=this.model.tile_source.snap_to_zoom_level(t,this.map_frame.bbox.height,this.map_frame.bbox.width,e);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame.bbox.height,this._last_width=this.map_frame.bbox.width}}has_finished(){if(!super.has_finished())return!1;if(0==this._tiles.length)return!1;for(const t of this._tiles)if(!t.finished)return!1;return!0}_render(){null==this.map_initialized&&(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(t){const e=this.model.tile_source.tiles.get(t);if(null!=e&&e.loaded){const[[t],[i]]=this.coordinates.map_to_screen([e.bounds[0]],[e.bounds[3]]),[[s],[_]]=this.coordinates.map_to_screen([e.bounds[2]],[e.bounds[1]]),n=s-t,a=_-i,h=t,o=i,r=this.map_canvas.imageSmoothingEnabled;this.map_canvas.imageSmoothingEnabled=this.model.smoothing,this.map_canvas.drawImage(e.img,h,o,n,a),this.map_canvas.imageSmoothingEnabled=r,e.finished=!0}}_set_rect(){const t=this.plot_model.outline_line_width,e=this.map_frame.bbox.left+t/2,i=this.map_frame.bbox.top+t/2,s=this.map_frame.bbox.width-t,_=this.map_frame.bbox.height-t;this.map_canvas.rect(e,i,s,_),this.map_canvas.clip()}_render_tiles(t){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const e of t)this._draw_tile(e);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:t}=this.model,e=this.get_extent(),i=this.map_frame.bbox.height,s=this.map_frame.bbox.width,_=this.model.tile_source.get_level_by_extent(e,i,s),n=this.model.tile_source.get_tiles_by_extent(e,_);for(let e=0,i=Math.min(10,n.length);e<i;e++){const[i,s,_]=n[e],a=this.model.tile_source.children_by_tile_xyz(i,s,_);for(const e of a){const[i,s,_,n]=e;t.tiles.has(t.tile_xyz_to_key(i,s,_))||this._create_tile(i,s,_,n,!0)}}}_fetch_tiles(t){for(const e of t){const[t,i,s,_]=e;this._create_tile(t,i,s,_)}}_update(){const{tile_source:t}=this.model,{min_zoom:e}=t,{max_zoom:i}=t;let s=this.get_extent();const _=this.extent[2]-this.extent[0]<s[2]-s[0],n=this.map_frame.bbox.height,a=this.map_frame.bbox.width;let h=t.get_level_by_extent(s,n,a),o=!1;h<e?(s=this.extent,h=e,o=!0):h>i&&(s=this.extent,h=i,o=!0),o&&(this.x_range.setv({start:s[0],end:s[2]}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const r=t.get_tiles_by_extent(s,h),l=[],d=[],m=[],u=[];for(const e of r){const[i,s,n]=e,a=t.tile_xyz_to_key(i,s,n),h=t.tiles.get(a);if(null!=h&&h.loaded)d.push(a);else if(this.model.render_parents){const[e,a,h]=t.get_closest_parent_by_tile_xyz(i,s,n),o=t.tile_xyz_to_key(e,a,h),r=t.tiles.get(o);if(null!=r&&r.loaded&&!(0,c.includes)(m,o)&&m.push(o),_){const e=t.children_by_tile_xyz(i,s,n);for(const[i,s,_]of e){const e=t.tile_xyz_to_key(i,s,_);t.tiles.has(e)&&u.push(e)}}}null==h&&l.push(e)}this._render_tiles(m),this._render_tiles(u),this._render_tiles(d),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout((()=>this._fetch_tiles(l)),65)}}i.TileRendererView=g,g.__name__=\"TileRendererView\";class b extends r.Renderer{constructor(t){super(t)}}i.TileRenderer=b,n=b,b.__name__=\"TileRenderer\",n.prototype.default_view=g,n.define((({Boolean:t,Number:e,Ref:i})=>({alpha:[e,1],smoothing:[t,!0],tile_source:[i(h.TileSource),()=>new o.WMTSTileSource],render_parents:[t,!0]}))),n.override({level:\"image\"})},\n function _(t,e,r,o,s){o();const c=t(424);class i extends c.MercatorTileSource{constructor(t){super(t)}get_image_url(t,e,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,i]=this.tms_to_wmts(t,e,r);return o.replace(\"{X}\",s.toString()).replace(\"{Y}\",c.toString()).replace(\"{Z}\",i.toString())}}r.WMTSTileSource=i,i.__name__=\"WMTSTileSource\"},\n function _(o,e,i,l,t){l(),i.default=\":host{position:absolute;padding:2px;background-color:rgba(255, 255, 255, 0.5);font-size:9px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}a{color:black;}\"},\n function _(e,r,t,c,o){c();const i=e(424);class l extends i.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace(\"{X}\",e.toString()).replace(\"{Y}\",r.toString()).replace(\"{Z}\",t.toString())}}t.TMSTileSource=l,l.__name__=\"TMSTileSource\"},\n function _(e,t,u,a,r){a(),r(\"CanvasTexture\",e(433).CanvasTexture),r(\"ImageURLTexture\",e(435).ImageURLTexture),r(\"Texture\",e(434).Texture)},\n function _(t,e,n,c,s){var r;c();const o=t(434),a=t(38);class u extends o.Texture{constructor(t){super(t)}get func(){const t=(0,a.use_strict)(this.code);return new Function(\"ctx\",\"color\",\"scale\",\"weight\",t)}get_pattern(t,e,n){const c=document.createElement(\"canvas\");c.width=e,c.height=e;const s=c.getContext(\"2d\");return this.func.call(this,s,t,e,n),c}}n.CanvasTexture=u,r=u,u.__name__=\"CanvasTexture\",r.define((({String:t})=>({code:[t]})))},\n function _(e,t,n,r,o){var i;r();const s=e(50),u=e(19);class c extends s.Model{constructor(e){super(e)}}n.Texture=c,i=c,c.__name__=\"Texture\",i.define((()=>({repetition:[u.TextureRepetition,\"repeat\"]})))},\n function _(e,t,i,r,n){var a;r();const s=e(434),o=e(150);class u extends s.Texture{constructor(e){super(e)}initialize(){super.initialize(),this._loader=new o.ImageLoader(this.url)}get_pattern(e,t,i){const{_loader:r}=this;return this._loader.finished?r.image:r.promise}}i.ImageURLTexture=u,a=u,u.__name__=\"ImageURLTexture\",a.define((({String:e})=>({url:[e]})))},\n function _(e,n,o,a,i){a();e(1).__exportStar(e(437),o),i(\"Dialog\",e(441).Dialog),i(\"Examiner\",e(445).Examiner),i(\"Pane\",e(447).Pane),i(\"Tooltip\",e(448).Tooltip),i(\"UIElement\",e(257).UIElement)},\n function _(n,c,o,I,i){I(),i(\"BuiltinIcon\",n(438).BuiltinIcon),i(\"SVGIcon\",n(439).SVGIcon),i(\"TablerIcon\",n(440).TablerIcon)},\n function _(e,n,t,i,s){var o;i();const r=e(1),a=e(378),l=e(56),c=e(21),m=e(8),u=r.__importDefault(e(269));class _ extends a.IconView{constructor(){super(...arguments),this._style=new l.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),u.default,this._style]}render(){super.render();const e=`var(--bokeh-icon-${this.model.icon_name})`,n=(0,c.color2css)(this.model.color),t=(()=>{const{size:e}=this.model;return(0,m.isNumber)(e)?`${e}px`:e})();this._style.replace(`\\n :host {\\n display: inline-block;\\n vertical-align: middle;\\n width: ${t};\\n height: ${t};\\n background-color: ${n};\\n mask-image: ${e};\\n mask-size: contain;\\n mask-repeat: no-repeat;\\n -webkit-mask-image: ${e};\\n -webkit-mask-size: contain;\\n -webkit-mask-repeat: no-repeat;\\n }\\n `)}}t.BuiltinIconView=_,_.__name__=\"BuiltinIconView\";class d extends a.Icon{constructor(e){super(e)}}t.BuiltinIcon=d,o=d,d.__name__=\"BuiltinIcon\",o.prototype.default_view=_,o.define((({String:e,Color:n})=>({icon_name:[e],color:[n,\"gray\"]})))},\n function _(e,n,s,t,r){var i;t();const o=e(378),l=e(56),c=e(8);class a extends o.IconView{constructor(){super(...arguments),this._style=new l.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),this._style]}render(){super.render();const e=(()=>{const{size:e}=this.model;return(0,c.isNumber)(e)?`${e}px`:e})();this._style.replace(`\\n :host {\\n display: inline-block;\\n vertical-align: middle;\\n }\\n :host svg {\\n width: ${e};\\n height: ${e};\\n }\\n `);const n=(new DOMParser).parseFromString(this.model.svg,\"image/svg+xml\");this.shadow_el.append(n.documentElement)}}s.SVGIconView=a,a.__name__=\"SVGIconView\";class d extends o.Icon{constructor(e){super(e)}}s.SVGIcon=d,i=d,d.__name__=\"SVGIcon\",i.prototype.default_view=a,i.define((({String:e})=>({svg:[e]})))},\n function _(e,n,t,s,r){var o,l;s();const i=e(378),a=e(56),c=e(8);class f extends i.IconView{constructor(){super(...arguments),this._tabler=new a.ImportedStyleSheet(`${f._url}/tabler-icons.min.css`),this._style=new a.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),f._fonts,this._tabler,this._style]}render(){super.render();const e=(()=>{const{size:e}=this.model;return(0,c.isNumber)(e)?`${e}px`:e})();this._style.replace(`\\n :host {\\n display: inline-block;\\n vertical-align: middle;\\n font-size: ${e};\\n }\\n `);const n=(0,a.span)({class:[\"ti\",`ti-${this.model.icon_name}`]});this.shadow_el.appendChild(n)}}t.TablerIconView=f,o=f,f.__name__=\"TablerIconView\",f._url=\"https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest\",f._fonts=new a.GlobalInlineStyleSheet(` /*!\\n * Tabler Icons 1.68.0 by tabler - https://tabler.io\\n * License - https://github.com/tabler/tabler-icons/blob/master/LICENSE\\n */\\n @font-face {\\n font-family: \"tabler-icons\";\\n font-style: normal;\\n font-weight: 400;\\n src: url(\"${o._url}/fonts/tabler-icons.eot\");\\n src: url(\"${o._url}/fonts/tabler-icons.eot?#iefix\") format(\"embedded-opentype\"),\\n url(\"${o._url}/fonts/tabler-icons.woff2\") format(\"woff2\"),\\n url(\"${o._url}/fonts/tabler-icons.woff\") format(\"woff\"),\\n url(\"${o._url}/fonts/tabler-icons.ttf\") format(\"truetype\"),\\n url(\"${o._url}/fonts/tabler-icons.svg#tabler-icons\") format(\"svg\");\\n }\\n\\n @media screen and (-webkit-min-device-pixel-ratio: 0) {\\n @font-face {\\n font-family: \"tabler-icons\";\\n src: url(\"${o._url}/fonts/tabler-icons.svg#tabler-icons\") format(\"svg\");\\n }\\n }\\n`);class b extends i.Icon{constructor(e){super(e)}}t.TablerIcon=b,l=b,b.__name__=\"TablerIcon\",l.prototype.default_view=f,l.define((({String:e})=>({icon_name:[e]})))},\n function _(e,t,i,s,n){var l;s();const o=e(1),a=e(257),d=e(442),r=e(443),c=e(56),h=e(8),_=e(59),p=o.__importStar(e(444)),u=p,m=o.__importDefault(e(269)),v=a.UIElement;class w extends a.UIElementView{*children(){yield*super.children(),yield this._content}stylesheets(){return[...super.stylesheets(),p.default,m.default]}async lazy_initialize(){await super.lazy_initialize();const e=(()=>{const{content:e}=this.model;return(0,h.isString)(e)?new r.Text({content:e}):e})();this._content=await(0,_.build_view)(e,{parent:this})}connect_signals(){super.connect_signals();const{visible:e}=this.model.properties;this.on_change(e,(()=>this.render()))}remove(){this._content.remove(),super.remove()}render(){if(super.render(),!this.model.visible)return void this.el.remove();document.body.appendChild(this.el),this._content.render();const e=(0,c.div)({class:u.title}),t=(0,c.div)({class:u.content},this._content.el),i=(0,c.div)({class:u.buttons});if(this.shadow_el.appendChild(e),this.shadow_el.appendChild(t),this.shadow_el.appendChild(i),this.model.closable){const e=(0,c.div)({class:u.close});e.addEventListener(\"click\",(()=>this.model.visible=!1)),this.shadow_el.appendChild(e)}}}i.DialogView=w,w.__name__=\"DialogView\";class b extends a.UIElement{constructor(e){super(e)}}i.Dialog=b,l=b,b.__name__=\"Dialog\",l.prototype.default_view=w,l.define((({Boolean:e,String:t,Array:i,Ref:s,Or:n,Nullable:l})=>({title:[l(n(t,s(d.DOMNode))),null],content:[n(t,s(d.DOMNode),s(a.UIElement))],buttons:[i(s(v)),[]],modal:[e,!1],closable:[e,!0],draggable:[e,!0]})))},\n function _(e,o,_,d,s){d();const n=e(55),c=e(50);class t extends n.DOMView{}_.DOMNodeView=t,t.__name__=\"DOMNodeView\";class M extends c.Model{constructor(e){super(e)}}_.DOMNode=M,M.__name__=\"DOMNode\",M.__module__=\"bokeh.models.dom\"},\n function _(e,t,n,o,r){var c;o();const s=e(442);class _ extends s.DOMNodeView{render(){this.el.textContent=this.model.content}_createElement(){return document.createTextNode(\"\")}}n.TextView=_,_.__name__=\"TextView\";class d extends s.DOMNode{constructor(e){super(e)}}n.Text=d,c=d,d.__name__=\"Text\",c.prototype.default_view=_,c.define((({String:e})=>({content:[e,\"\"]})))},\n function _(o,e,t,i,r){i(),t.title=\"bk-title\",t.content=\"bk-content\",t.buttons=\"bk-buttons\",t.close=\"bk-close\",t.default=\":host{--bokeh-bg-color:white;--bokeh-border-color:#e5e5e5;--bokeh-shadow-color:#e5e5e5;}:host{position:fixed;z-index:1000;left:0;right:0;top:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;width:80vw;height:60vh;overflow:hidden;display:flex;flex-direction:column;flex-wrap:nowrap;background-color:var(--bokeh-bg-color);border:1px solid var(--bokeh-border-color);box-shadow:5px 5px 10px var(--bokeh-shadow-color);}.bk-title{position:relative;flex:1;min-height:0;}.bk-content{position:relative;flex:1;min-height:100%;display:flex;}.bk-buttons{position:relative;flex:1;min-height:0;}.bk-close{position:absolute;top:0;right:0;width:18px;height:18px;cursor:pointer;background-color:gray;mask-image:var(--bokeh-icon-x);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-x);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}.bk-close:hover{background-color:red;}\"},\n function _(t,e,s,n,o){var i;n();const a=t(1),l=t(257),r=a.__importStar(t(17)),c=t(14),d=t(56),p=t(40),h=t(50),u=t(8),f=t(9),_=t(10),v=t(32),g=t(15),m=t(36),b=a.__importDefault(t(446));class y{constructor(t,e,s){this.visited=new WeakSet,this.depth=0,this.click=t,this.max_items=e,this.max_depth=s}to_html(t){if((0,u.isObject)(t)){if(this.visited.has(t))return(0,d.span)(\"<circular>\");this.visited.add(t)}return null==t?this.null():(0,u.isBoolean)(t)?this.boolean(t):(0,u.isNumber)(t)?this.number(t):(0,u.isString)(t)?this.string(t):(0,u.isSymbol)(t)?this.symbol(t):t instanceof h.Model?this.model(t):t instanceof r.Property?this.property(t):(0,u.isPlainObject)(t)?this.object(t):(0,u.isArray)(t)?this.array(t):(0,u.isIterable)(t)?this.iterable(t):(0,d.span)((0,p.to_string)(t))}null(){return(0,d.span)({class:\"null\"},\"null\")}token(t){return(0,d.span)({class:\"token\"},t)}boolean(t){return(0,d.span)({class:\"boolean\"},`${t}`)}number(t){return(0,d.span)({class:\"number\"},`${t}`)}string(t){const e=t.includes(\"'\"),s=t.includes('\"'),n=e&&s?`\\`${t.replace(/`/g,\"\\\\`\")}\\``:s?`'${t}'`:`\"${t}\"`;return(0,d.span)({class:\"string\"},n)}symbol(t){return(0,d.span)({class:\"symbol\"},t.toString())}array(t){const e=this.token,s=[];let n=0;for(const e of t)if(s.push(this.to_html(e)),n++>this.max_items){s.push((0,d.span)(\"\\u2026\"));break}return(0,d.span)({class:\"array\"},e(\"[\"),...(0,v.interleave)(s,(()=>e(\", \"))),e(\"]\"))}iterable(t){var e;const s=this.token,n=null!==(e=Object(t)[Symbol.toStringTag])&&void 0!==e?e:\"Object\",o=this.array([...t]);return(0,d.span)({class:\"iterable\"},`${n}`,s(\"(\"),o,s(\")\"))}object(t){const e=this.token,s=[];let n=0;for(const[o,i]of(0,f.entries)(t))if(s.push((0,d.span)(`${o}`,e(\": \"),this.to_html(i))),n++>this.max_items){s.push((0,d.span)(\"\\u2026\"));break}return(0,d.span)({class:\"object\"},e(\"{\"),...(0,v.interleave)(s,(()=>e(\", \"))),e(\"}\"))}model(t){const e=this.token,s=(0,d.span)({class:\"model\"},t.constructor.__qualified__,e(\"(\"),this.to_html(t.id),e(\")\"));return s.addEventListener(\"click\",(()=>this.click(t))),s}property(t){const e=this.model(t.obj),s=(0,d.span)({class:\"attr\"},t.attr);return(0,d.span)(e,this.token(\".\"),s)}}s.HTMLPrinter=y,y.__name__=\"HTMLPrinter\";class k extends l.UIElementView{constructor(){super(...arguments),this.prev_listener=null,this.watched_props=new Set}stylesheets(){return[...super.stylesheets(),b.default]}render(){super.render(),null!=this.prev_listener&&m.diagnostics.disconnect(this.prev_listener);const t=[],e=[],s=[],n=new WeakMap;m.diagnostics.connect((o=>{if(o instanceof r.Property){for(const[e,s]of t)e==o.obj&&i(s);for(const[t,s]of e)if(t==o){const[,,,e]=s.children;a(t,s,e);break}for(const[t,e]of s)if(t==o){const[,s]=e.children;a(t,e,s);break}}function i(t){const e=n.get(t);null!=e&&e.cancel();const s=t.animate([{backgroundColor:\"#def189\"},{backgroundColor:\"initial\"}],{duration:2e3});n.set(t,s)}function a(t,e,s){e.classList.toggle(\"dirty\",t.dirty),(0,d.empty)(s);const n=t.is_unset?(0,d.span)(\"unset\"):C(t.get_value());s.appendChild(n),i(s)}}));const o=(()=>{const e=(0,d.input)({class:\"filter\",type:\"text\",placeholder:\"Filter\"});return e.addEventListener(\"keyup\",(()=>{const s=e.value;for(const[e,n]of t){const t=e.constructor.__qualified__.includes(s);n.classList.toggle(\"hidden\",!t)}})),(0,d.div)({class:\"toolbar\"},e)})(),i=(0,d.input)({type:\"checkbox\",checked:!0}),a=(0,d.input)({type:\"checkbox\",checked:!0}),l=()=>{for(const[t,s]of e){const e=i.checked,n=a.checked,o=!t.dirty&&!e||t.internal&&!n;s.classList.toggle(\"hidden\",o)}};i.addEventListener(\"change\",(()=>l())),a.addEventListener(\"change\",(()=>l()));const p=(()=>{const t=(0,d.input)({class:\"filter\",type:\"text\",placeholder:\"Filter\"}),s=(0,d.span)({class:\"checkbox\"},(0,d.input)({type:\"checkbox\",checked:!0}),(0,d.span)(\"Group\")),n=(0,d.span)({class:\"checkbox\"},i,(0,d.span)(\"Initial?\")),o=(0,d.span)({class:\"checkbox\"},a,(0,d.span)(\"Internal?\"));return t.addEventListener(\"keyup\",(()=>{const s=t.value;for(const[t,n]of e){const e=t.attr.includes(s);n.classList.toggle(\"hidden\",!e)}})),(0,d.div)({class:\"toolbar\"},t,s,n,o)})(),u=(()=>{const t=(0,d.input)({class:\"filter\",type:\"text\",placeholder:\"Filter\"});return t.addEventListener(\"keyup\",(()=>{const e=t.value;for(const[t,n]of s){const s=t.attr.includes(e);n.classList.toggle(\"hidden\",!s)}})),(0,d.div)({class:\"toolbar\"},t)})(),v=(0,d.div)({class:\"models-list\"}),b=(0,d.div)({class:\"props-list\"}),k=(0,d.div)({class:\"watches-list\"}),x=(0,d.div)({class:\"models-panel\"},o,v),w=(0,d.div)({class:\"props-panel\"},p,b),L=(0,d.div)({class:\"watches-panel\"},u,k),E=(0,d.div)({class:\"col\",style:{width:\"100%\"}},L,w),j=(0,d.div)({class:\"examiner\"},x,E);function S(t){t instanceof h.Model&&O(t)}function C(t){return new y(S,5,3).to_html(t)}const P=(e,s)=>{(0,_.clear)(t),(0,d.empty)(v);const n=null!=s?new Set(s.roots()):new Set;for(const s of e){const e=n.has(s)?(0,d.span)({class:\"tag\"},\"root\"):null,o=(0,d.span)({class:\"model-ref\",tabIndex:0},C(s),e);o.addEventListener(\"keydown\",(t=>{\"Enter\"==t.key&&O(s)})),t.push([s,o]),v.appendChild(o)}},O=s=>{var n;(0,_.clear)(e),(0,d.empty)(b);for(const[e,n]of t)n.classList.toggle(\"active\",s==e);const o=(()=>{const t=[];let e=Object.getPrototypeOf(s);do{t.push([e.constructor,(0,f.keys)(e._props)]),e=Object.getPrototypeOf(e)}while(e.constructor!=c.HasProps);t.reverse();const n=[];for(const[,e]of t)e.splice(0,n.length),n.push(...e);return t})(),l=null!==(n=g.receivers_for_sender.get(s))&&void 0!==n?n:[];for(const[t,n]of o){if(0==n.length)continue;const o=(0,d.span)({class:[\"expander\"]}),r=(0,d.div)({class:\"base\"},o,\"inherited from\",\" \",(0,d.span)({class:\"monospace\"},t.__qualified__));b.appendChild(r);const c=[];for(const t of n){const n=s.property(t),o=n.kind.toString(),r=n.is_unset?(0,d.span)(\"unset\"):C(n.get_value()),p=n.internal?(0,d.span)({class:\"tag\"},\"internal\"):null,h=l.filter((t=>t.signal==n.change)).length,u=0!=h?(0,d.span)({class:\"tag\"},`${h}`):null,f=this.watched_props.has(n),_=(0,d.input)({type:\"checkbox\",checked:f}),v=(0,d.div)({class:\"prop-attr\",tabIndex:0},_,(0,d.span)({class:\"attr\"},t),p),g=(0,d.div)({class:\"prop-conns\"},u),m=(0,d.div)({class:\"prop-kind\"},o),y=(0,d.div)({class:\"prop-value\"},r),k=n.dirty?\"dirty\":null,x=n.internal?\"internal\":null,w=i.checked,L=a.checked,E=!n.dirty&&!w||n.internal&&!L?\"hidden\":null,j=(0,d.div)({class:[\"prop\",k,x,E]},v,g,m,y);c.push(j),e.push([n,j]),b.appendChild(j),_.addEventListener(\"change\",(()=>{this.watched_props[_.checked?\"add\":\"delete\"](n),$()}))}r.addEventListener(\"click\",(()=>{o.classList.toggle(\"closed\");for(const t of c)t.classList.toggle(\"closed\")}))}},$=()=>{if((0,_.clear)(s),(0,d.empty)(k),0==this.watched_props.size){const t=(0,d.div)({class:\"nothing\"},\"No watched properties\");k.appendChild(t)}else for(const t of this.watched_props){const e=(0,d.span)(C(t)),n=(0,d.span)(t.is_unset?(0,d.span)(\"unset\"):C(t.get_value())),o=(0,d.div)({class:[\"prop\",t.dirty?\"dirty\":null]},e,n);s.push([t,o]),k.appendChild(o)}};this.shadow_el.appendChild(j);const{target:I}=this.model;if(null!=I){const t=I.references(),{document:e}=I;P(t,e),O(I)}else{const{document:t}=this.model;if(null!=t){P(t._all_models.values(),t);const e=t.roots();if(0!=e.length){const[t]=e;O(t)}}}$()}}s.ExaminerView=k,k.__name__=\"ExaminerView\";class x extends l.UIElement{constructor(t){super(t)}}s.Examiner=x,i=x,x.__name__=\"Examiner\",i.prototype.default_view=k,i.define((({Ref:t,Nullable:e})=>({target:[e(t(c.HasProps)),null]})))},\n function _(o,e,r,i,l){i(),r.default='.null{color:#7724c1;}.token{color:#881280;}.boolean{color:#007500;}.number{color:#1a1aa6;}.string{color:#994500;}.symbol{color:#c80000;}.model{cursor:pointer;}.attr{color:#c80000;}:root{--common-padding:3px;--common-outline:#1a73e8 solid 1px;--panel-bg-color:#f1f3f4;--panel-border-color:#cacdd1;}.monospace{font-family:var(--mono-font);}.hidden{display:none !important;}.col{display:flex;flex-direction:column;}.row{display:flex;flex-direction:row;}.toolbar{display:flex;flex-direction:row;gap:1em;background-color:var(--panel-bg-color);border-bottom:1px solid var(--panel-border-color);padding:var(--common-padding);}.checkbox{display:flex;flex-direction:row;align-items:center;gap:0.25em;}.filter:focus{outline:var(--common-outline);}.examiner{height:100%;display:flex;border:1px solid var(--panel-border-color);}.models-panel{display:flex;flex-direction:column;border-right:1px solid var(--panel-border-color);}.props-panel{display:flex;flex-direction:column;height:100%;overflow:auto;}.watches-panel{display:flex;flex-direction:column;border-bottom:1px solid var(--panel-border-color);}.models-list{display:flex;flex-direction:column;height:min-content;padding:var(--common-padding);overflow-x:hidden;overflow-y:auto;}.props-list{display:grid;grid-template-columns:min-content min-content 1fr 1fr;column-gap:1em;padding:var(--common-padding);}.watches-list{display:grid;grid-template-columns:1fr 1fr;column-gap:1em;padding:var(--common-padding);}.nothing{grid-column:1 / span 2;font-style:italic;text-align:center;}.prop{display:contents;}.prop.closed{display:none;}.prop > *{opacity:0.6;}.prop.dirty > *{opacity:1;}.model-ref{display:flex;align-items:center;flex-direction:row;font-family:var(--mono-font);}.model-ref:focus-visible{outline:var(--common-outline);}.model-ref:hover{background-color:#e2e2e2;}.model-ref.active{background-color:#c8e0ee;}.tag{margin-left:1em;padding:0 4px;font-size:60%;border-width:1px;border-style:solid;border-radius:4px;color:#202124;background-color:#f1f3f4;border-color:#cacdd1;}.expander{margin:0 2px;display:inline-block;vertical-align:middle;background-color:#5f6368;--open-image:url(\\'data:image/svg+xml;utf8, <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"6\"> <path d=\"M 0 1 L 6 1 3 5 Z\"/> </svg>\\');--closed-image:url(\\'data:image/svg+xml;utf8, <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"6\"> <path d=\"M 1 0 L 5 3 1 6 Z\"/> </svg>\\');}.expander{width:6px;height:6px;mask-image:var(--open-image);-webkit-mask-image:var(--open-image);}.expander.closed{width:6px;height:6px;mask-image:var(--closed-image);-webkit-mask-image:var(--closed-image);}.base{grid-column:1 / span 4;color:#5f6368;cursor:pointer;}.prop-attr,.prop-conns,.prop-kind,.prop-value{display:flex;flex-direction:row;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:var(--mono-font);}.prop-attr > input[type=\"checkbox\"]{visibility:hidden;margin-right:0.25em;}.prop-attr > input[type=\"checkbox\"]:checked,.prop-attr:hover > input{visibility:visible;}.prop-attr:focus-visible{outline:var(--common-outline);}'},\n function _(e,i,s,t,n){var r;t();const l=e(257),_=e(59),a=e(8);class h extends l.UIElementView{constructor(){super(...arguments),this._child_views=new Map}get _ui_elements(){return this.model.children.filter((e=>e instanceof l.UIElement))}get child_views(){return this._ui_elements.map((e=>this._child_views.get(e)))}*children(){yield*super.children(),yield*this._child_views.values()}async lazy_initialize(){await super.lazy_initialize(),await this._rebuild_views()}async _rebuild_views(){await(0,_.build_views)(this._child_views,this._ui_elements,{parent:this})}remove(){(0,_.remove_views)(this._child_views),super.remove()}connect_signals(){super.connect_signals();const{children:e}=this.model.properties;this.on_change(e,(()=>{this._rebuild_views(),this.render()}))}render(){super.render();for(const e of this.model.children)if((0,a.isString)(e)){const i=document.createTextNode(e);this.shadow_el.append(i)}else{const i=this._child_views.get(e);i.render(),this.shadow_el.append(i.el),i.after_render()}}has_finished(){if(!super.has_finished())return!1;for(const e of this.child_views)if(!e.has_finished())return!1;return!0}serializable_state(){return Object.assign(Object.assign({},super.serializable_state()),{children:this.child_views.map((e=>e.serializable_state()))})}}s.PaneView=h,h.__name__=\"PaneView\";class d extends l.UIElement{constructor(e){super(e)}}s.Pane=d,r=d,d.__name__=\"Pane\",r.prototype.default_view=h,r.define((({String:e,Array:i,Ref:s,Or:t})=>({children:[i(t(e,s(l.UIElement))),[]]})))},\n function _(t,e,i,s,r){var n;s();const o=t(1),l=t(257),a=t(413),c=t(449),h=t(19),u=t(56),_=t(55),d=t(8),g=t(12),m=t(18),p=t(59),v=o.__importStar(t(450)),b=v,f=o.__importDefault(t(269));class w extends l.UIElementView{constructor(){super(...arguments),this._html=null}get target(){return this._target}_init_target(){const{target:t}=this.model,e=(()=>{var e,i;if(t instanceof l.UIElement)return null!==(i=null===(e=this.owner.find_one(t))||void 0===e?void 0:e.el)&&void 0!==i?i:null;if(t instanceof a.Selector)return t.find_one(document);if(t instanceof Node)return t;{const{parent:t}=this;return t instanceof _.DOMElementView?t.el:null}})();e instanceof Element?this._target=e:(m.logger.warn(`unable to resolve target '${t}' for '${this}'`),this._target=document.body)}initialize(){super.initialize(),this._init_target()}*children(){yield*super.children(),null!=this._html&&(yield this._html)}async lazy_initialize(){await super.lazy_initialize();const{content:t}=this.model;t instanceof c.HTML&&(this._html=await(0,p.build_view)(t,{parent:this})),this.render()}connect_signals(){super.connect_signals(),this._observer=new ResizeObserver((()=>{this._reposition()})),this._observer.observe(this.target);const{target:t,content:e,closable:i,interactive:s,position:r,attachment:n,visible:o}=this.model.properties;this.on_change(t,(()=>{this._init_target(),this._observer.disconnect(),this._observer.observe(this.target),this.render()})),this.on_change([e,i,s],(()=>this.render())),this.on_change([r,n,o],(()=>this._reposition()))}remove(){var t;null===(t=this._html)||void 0===t||t.remove(),this._observer.disconnect(),super.remove()}stylesheets(){return[...super.stylesheets(),v.default,f.default]}get content(){const{content:t}=this.model;return(0,d.isString)(t)?document.createTextNode(t):t instanceof c.HTML?((0,g.assert)(null!=this._html),this._html.el):t}render(){var t;if(super.render(),null===(t=this._html)||void 0===t||t.render(),this.content_el=(0,u.div)({class:b.tooltip_content},this.content),this.shadow_el.appendChild(this.content_el),this.model.closable){const t=(0,u.div)({class:b.close});t.addEventListener(\"click\",(()=>{this.model.visible=!1})),this.shadow_el.appendChild(t)}this.el.classList.toggle(b.tooltip_arrow,this.model.show_arrow),this.el.classList.toggle(b.non_interactive,!this.model.interactive),this._reposition()}_anchor_to_align(t){switch(t){case\"top_left\":return[\"top\",\"left\"];case\"top\":case\"top_center\":return[\"top\",\"center\"];case\"top_right\":return[\"top\",\"right\"];case\"left\":case\"center_left\":return[\"center\",\"left\"];case\"center\":case\"center_center\":return[\"center\",\"center\"];case\"right\":case\"center_right\":return[\"center\",\"right\"];case\"bottom_left\":return[\"bottom\",\"left\"];case\"bottom\":case\"bottom_center\":return[\"bottom\",\"center\"];case\"bottom_right\":return[\"bottom\",\"right\"]}}_reposition(){var t;const{position:e,visible:i}=this.model;if(null==e||!i)return void this.el.remove();(null!==(t=this.target.shadowRoot)&&void 0!==t?t:this.target).appendChild(this.el);const s=(0,u.bounding_box)(this.target).relative(),[r,n]=(()=>{if((0,d.isString)(e)){const[t,i]=this._anchor_to_align(e);return[(()=>{switch(i){case\"left\":return s.left;case\"center\":return s.hcenter;case\"right\":return s.right}})(),(()=>{switch(t){case\"top\":return s.top;case\"center\":return s.vcenter;case\"bottom\":return s.bottom}})()]}return e})(),o=(()=>{const t=(()=>{const{attachment:t}=this.model;if(\"auto\"==t){if((0,d.isString)(e)){const[t,i]=this._anchor_to_align(e);if(\"center\"!=i)return\"left\"==i?\"left\":\"right\";if(\"center\"!=t)return\"top\"==t?\"above\":\"below\"}return\"horizontal\"}return t})();switch(t){case\"horizontal\":return r<s.hcenter?\"right\":\"left\";case\"vertical\":return n<s.vcenter?\"below\":\"above\";default:return t}})();let l;this.el.classList.remove(b.right),this.el.classList.remove(b.left),this.el.classList.remove(b.above),this.el.classList.remove(b.below);let a=null,c=null;const{width:h,height:_}=(0,u.bounding_box)(this.el);switch(o){case\"right\":this.el.classList.add(b.left),a=r+(h-this.el.clientWidth)+10,l=n-_/2;break;case\"left\":this.el.classList.add(b.right),c=s.width-r+10,l=n-_/2;break;case\"below\":this.el.classList.add(b.above),l=n+(_-this.el.clientHeight)+10,a=Math.round(r-h/2);break;case\"above\":this.el.classList.add(b.below),l=n-_-10,a=Math.round(r-h/2)}this.el.style.top=`${l}px`,this.el.style.left=null!=a?`${a}px`:\"\",this.el.style.right=null!=c?`${c}px`:\"\"}}i.TooltipView=w,w.__name__=\"TooltipView\";class L extends l.UIElement{constructor(t){super(t)}clear(){this.position=null}}i.Tooltip=L,n=L,L.__name__=\"Tooltip\",n.prototype.default_view=w,n.define((({Boolean:t,Number:e,String:i,Tuple:s,Or:r,Ref:n,Nullable:o,Auto:u})=>({target:[r(n(l.UIElement),n(a.Selector),n(Node),u),\"auto\"],position:[o(r(h.Anchor,s(e,e))),null],content:[r(i,n(c.HTML),n(Node))],attachment:[r(h.TooltipAttachment,u),\"auto\"],show_arrow:[t,!0],closable:[t,!1],interactive:[t,!0]}))),n.override({visible:!1})},\n function _(e,t,r,s,i){var n;s();const o=e(442),l=e(257),d=e(59),a=e(56),c=e(12),_=e(8);class f extends o.DOMNodeView{constructor(){super(...arguments),this._refs=new Map}*children(){yield*super.children(),yield*this._refs.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,d.build_views)(this._refs,this.model.refs)}remove(){(0,d.remove_views)(this._refs),super.remove()}render(){(0,a.empty)(this.el),this.el.style.display=\"contents\";const e=new DOMParser,t=(()=>{const{html:t}=this.model;if((0,_.isString)(t)){const r=e.parseFromString(t,\"text/html\"),s=r.createNodeIterator(r,NodeFilter.SHOW_ELEMENT,(e=>\"ref\"==e.nodeName.toLowerCase()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT));let i;for(;null!=(i=s.nextNode());){(0,c.assert)(i instanceof Element);const e=i.getAttribute(\"id\");if(null!=e)for(const[t,r]of this._refs)if(t.id==e){r.render(),i.replaceWith(r.el);break}}return[...r.body.childNodes]}return[]})();for(const e of t)this.el.appendChild(e)}}r.HTMLView=f,f.__name__=\"HTMLView\";class h extends o.DOMNode{constructor(e){super(e)}}r.HTML=h,n=h,h.__name__=\"HTML\",n.prototype.default_view=f,n.define((({String:e,Array:t,Or:r,Ref:s})=>({html:[r(e,t(r(e,s(o.DOMNode),s(l.UIElement))))],refs:[t(r(s(o.DOMNode),s(l.UIElement))),[]]})))},\n function _(o,t,r,i,l){i(),r.non_interactive=\"bk-non-interactive\",r.tooltip_content=\"bk-tooltip-content\",r.left=\"bk-left\",r.tooltip_arrow=\"bk-tooltip-arrow\",r.right=\"bk-right\",r.above=\"bk-above\",r.below=\"bk-below\",r.tooltip_row_label=\"bk-tooltip-row-label\",r.tooltip_row_value=\"bk-tooltip-row-value\",r.tooltip_color_block=\"bk-tooltip-color-block\",r.close=\"bk-close\",r.default=':host{--tooltip-border:#e5e5e5;--tooltip-color:white;--tooltip-text:#2f2f2f;--tooltip-arrow-color:#909599;--tooltip-arrow-width:10px;--tooltip-arrow-height:10px;--tooltip-arrow-half-width:7px;--tooltip-arrow-half-height:7px;}:host{width:max-content;font-weight:300;font-size:12px;position:absolute;padding:5px;border:1px solid var(--tooltip-border);color:var(--tooltip-text);background-color:var(--tooltip-color);opacity:0.95;z-index:100;}:host(.bk-non-interactive){pointer-events:none;}.bk-tooltip-content > div:not(:first-child){margin-top:5px;border-top:var(--tooltip-border) 1px dashed;}:host(.bk-left.bk-tooltip-arrow) .bk-tooltip-content::before{position:absolute;margin:calc(-1*var(--tooltip-arrow-half-height)) 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:var(--tooltip-arrow-half-height) 0 var(--tooltip-arrow-half-height) 0;border-color:transparent;content:\" \";display:block;left:calc(-1*var(--tooltip-arrow-width));border-right-width:var(--tooltip-arrow-width);border-right-color:var(--tooltip-arrow-color);}:host(.bk-left) .bk-tooltip-content::before{left:calc(-1*var(--tooltip-arrow-width));border-right-width:var(--tooltip-arrow-width);border-right-color:var(--tooltip-arrow-color);}:host(.bk-right.bk-tooltip-arrow) .bk-tooltip-content::after{position:absolute;margin:calc(-1*var(--tooltip-arrow-half-height)) 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:var(--tooltip-arrow-half-height) 0 var(--tooltip-arrow-half-height) 0;border-color:transparent;content:\" \";display:block;right:calc(-1*var(--tooltip-arrow-width));border-left-width:var(--tooltip-arrow-width);border-left-color:var(--tooltip-arrow-color);}:host(.bk-right) .bk-tooltip-content::after{right:calc(-1*var(--tooltip-arrow-width));border-left-width:var(--tooltip-arrow-width);border-left-color:var(--tooltip-arrow-color);}:host(.bk-above) .bk-tooltip-content::before{position:absolute;margin:0 0 0 calc(-1*var(--tooltip-arrow-half-width));left:50%;width:0;height:0;border-style:solid;border-width:0 var(--tooltip-arrow-half-width) 0 var(--tooltip-arrow-half-width);border-color:transparent;content:\" \";display:block;top:calc(-1*var(--tooltip-arrow-height));border-bottom-width:var(--tooltip-arrow-height);border-bottom-color:var(--tooltip-arrow-color);}:host(.bk-below) .bk-tooltip-content::after{position:absolute;margin:0 0 0 calc(-1*var(--tooltip-arrow-half-width));left:50%;width:0;height:0;border-style:solid;border-width:0 var(--tooltip-arrow-half-width) 0 var(--tooltip-arrow-half-width);border-color:transparent;content:\" \";display:block;bottom:calc(-1*var(--tooltip-arrow-height));border-top-width:var(--tooltip-arrow-height);border-top-color:var(--tooltip-arrow-color);}.bk-tooltip-row-label{text-align:right;color:#26aae1;}.bk-tooltip-row-value{color:none;}.bk-tooltip-color-block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#dddddd solid 1px;display:inline-block;}.bk-close{position:absolute;top:2px;right:2px;width:12px;height:12px;cursor:pointer;background-color:gray;mask-image:var(--bokeh-icon-x);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-x);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}.bk-close:hover{background-color:red;}'},\n function _(o,t,r,n,l){n();const _=o(1);_.__exportStar(o(452),r),_.__exportStar(o(466),r),_.__exportStar(o(476),r),_.__exportStar(o(488),r),l(\"Tool\",o(264).Tool),l(\"ToolProxy\",o(265).ToolProxy),l(\"Toolbar\",o(256).Toolbar),l(\"ToolButton\",o(266).ToolButton),l(\"OnOffButton\",o(272).OnOffButton),l(\"ClickButton\",o(275).ClickButton)},\n function _(o,l,T,e,n){e(),n(\"ActionTool\",o(274).ActionTool),n(\"CopyTool\",o(453).CopyTool),n(\"CustomAction\",o(454).CustomAction),n(\"FullscreenTool\",o(455).FullscreenTool),n(\"HelpTool\",o(276).HelpTool),n(\"ExamineTool\",o(456).ExamineTool),n(\"RedoTool\",o(457).RedoTool),n(\"ResetTool\",o(459).ResetTool),n(\"SaveTool\",o(460).SaveTool),n(\"UndoTool\",o(461).UndoTool),n(\"ZoomInTool\",o(462).ZoomInTool),n(\"ZoomOutTool\",o(465).ZoomOutTool)},\n function _(o,t,e,i,a){var n;i();const c=o(274),p=o(269);class s extends c.ActionToolView{async copy(){const o=await this.parent.export().to_blob(),t=new ClipboardItem({[o.type]:o});await navigator.clipboard.write([t])}doit(){this.copy()}}e.CopyToolView=s,s.__name__=\"CopyToolView\";class l extends c.ActionTool{constructor(o){super(o),this.tool_name=\"Copy\",this.tool_icon=p.tool_icon_copy}}e.CopyTool=l,n=l,l.__name__=\"CopyTool\",n.prototype.default_view=s,n.register_alias(\"copy\",(()=>new l))},\n function _(o,t,n,e,i){var c;e();const l=o(1),s=o(274),_=l.__importStar(o(269));class a extends s.ActionToolView{doit(){var o;null===(o=this.model.callback)||void 0===o||o.execute(this.model)}}n.CustomActionView=a,a.__name__=\"CustomActionView\";class u extends s.ActionTool{constructor(o){super(o),this.tool_name=\"Custom Action\",this.tool_icon=_.tool_icon_unknown}}n.CustomAction=u,c=u,u.__name__=\"CustomAction\",c.prototype.default_view=a,c.define((({Any:o,Nullable:t})=>({callback:[t(o),null]}))),c.override({description:\"Perform a Custom Action\"})},\n function _(e,l,o,t,n){var s;t();const c=e(1),r=e(274),u=c.__importStar(e(269)),i=void 0!==Element.prototype.webkitRequestFullscreen?(e,l)=>e.webkitRequestFullscreen(l):(e,l)=>e.requestFullscreen(l);class _ extends r.ActionToolView{doit(){null!=document.fullscreenElement?document.exitFullscreen():(async()=>{await i(this.parent.el)})()}}o.FullscreenToolView=_,_.__name__=\"FullscreenToolView\";class a extends r.ActionTool{constructor(e){super(e),this.tool_name=\"Fullscreen\",this.tool_icon=u.tool_icon_fullscreen}}o.FullscreenTool=a,s=a,a.__name__=\"FullscreenTool\",s.prototype.default_view=_,s.register_alias(\"fullscreen\",(()=>new a))},\n function _(i,e,o,t,a){var n;t();const l=i(1),s=i(274),_=l.__importStar(i(269)),r=i(441),c=i(445),d=i(59);class m extends s.ActionToolView{*children(){yield*super.children(),yield this._dialog}async lazy_initialize(){await super.lazy_initialize();const i=new r.Dialog({content:new c.Examiner({target:this.parent.model}),closable:!0,visible:!1});this._dialog=await(0,d.build_view)(i,{parent:this.parent})}doit(){this._dialog.model.visible=!0}}o.ExamineToolView=m,m.__name__=\"ExamineToolView\";class w extends s.ActionTool{constructor(i){super(i),this.tool_name=\"Examine\",this.tool_icon=_.tool_icon_settings}}o.ExamineTool=w,n=w,w.__name__=\"ExamineTool\",n.prototype.default_view=m,n.register_alias(\"examine\",(()=>new w))},\n function _(o,e,t,i,s){var n;i();const l=o(458),_=o(269);class d extends l.PlotActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state.changed,(()=>this.model.disabled=!this.plot_view.state.can_redo))}doit(){const o=this.plot_view.state.redo();null!=(null==o?void 0:o.range)&&this.plot_view.trigger_ranges_update_event()}}t.RedoToolView=d,d.__name__=\"RedoToolView\";class a extends l.PlotActionTool{constructor(o){super(o),this.tool_name=\"Redo\",this.tool_icon=_.tool_icon_redo}}t.RedoTool=a,n=a,a.__name__=\"RedoTool\",n.prototype.default_view=d,n.override({disabled:!0}),n.register_alias(\"redo\",(()=>new a))},\n function _(o,t,n,e,l){e();const c=o(274);class i extends c.ActionToolView{get plot_view(){return this.parent}}n.PlotActionToolView=i,i.__name__=\"PlotActionToolView\";class s extends c.ActionTool{constructor(o){super(o)}}n.PlotActionTool=s,s.__name__=\"PlotActionTool\"},\n function _(e,o,t,s,i){var l;s();const _=e(458),n=e(269);class c extends _.PlotActionToolView{doit(){this.plot_view.reset()}}t.ResetToolView=c,c.__name__=\"ResetToolView\";class r extends _.PlotActionTool{constructor(e){super(e),this.tool_name=\"Reset\",this.tool_icon=n.tool_icon_reset}}t.ResetTool=r,l=r,r.__name__=\"ResetTool\",l.prototype.default_view=c,l.register_alias(\"reset\",(()=>new r))},\n function _(e,o,t,a,n){var i;a();const l=e(274),s=e(269);class c extends l.ActionToolView{async copy(){const e=await this.parent.export().to_blob(),o=new ClipboardItem({[e.type]:e});await navigator.clipboard.write([o])}async save(e){const o=await this.parent.export().to_blob(),t=document.createElement(\"a\");t.href=URL.createObjectURL(o),t.download=e,t.target=\"_blank\",t.dispatchEvent(new MouseEvent(\"click\"))}doit(e=\"save\"){var o;switch(e){case\"save\":{const e=null!==(o=this.model.filename)&&void 0!==o?o:prompt(\"Enter filename\",\"bokeh_plot\");null!=e&&this.save(e);break}case\"copy\":this.copy()}}}t.SaveToolView=c,c.__name__=\"SaveToolView\";class r extends l.ActionTool{constructor(e){super(e),this.tool_name=\"Save\",this.tool_icon=s.tool_icon_save}get menu(){return[{icon:\"bk-tool-icon-copy\",tooltip:\"Copy image to clipboard\",if:()=>\"undefined\"!=typeof ClipboardItem,handler:()=>{this.do.emit(\"copy\")}}]}}t.SaveTool=r,i=r,r.__name__=\"SaveTool\",i.prototype.default_view=c,i.define((({String:e,Nullable:o})=>({filename:[o(e),null]}))),i.register_alias(\"save\",(()=>new r))},\n function _(o,t,e,n,i){var s;n();const l=o(458),_=o(269);class d extends l.PlotActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state.changed,(()=>this.model.disabled=!this.plot_view.state.can_undo))}doit(){const o=this.plot_view.state.undo();null!=(null==o?void 0:o.range)&&this.plot_view.trigger_ranges_update_event()}}e.UndoToolView=d,d.__name__=\"UndoToolView\";class a extends l.PlotActionTool{constructor(o){super(o),this.tool_name=\"Undo\",this.tool_icon=_.tool_icon_undo}}e.UndoTool=a,s=a,a.__name__=\"UndoTool\",s.prototype.default_view=d,s.override({disabled:!0}),s.register_alias(\"undo\",(()=>new a))},\n function _(o,n,e,i,s){var t;i();const _=o(463),a=o(269);class m extends _.ZoomBaseToolView{}e.ZoomInToolView=m,m.__name__=\"ZoomInToolView\";class l extends _.ZoomBaseTool{constructor(o){super(o),this.maintain_focus=!0,this.tool_name=\"Zoom In\",this.tool_icon=a.tool_icon_zoom_in}get_factor(){return this.factor}}e.ZoomInTool=l,t=l,l.__name__=\"ZoomInTool\",t.prototype.default_view=m,t.register_alias(\"zoom_in\",(()=>new l({dimensions:\"both\"}))),t.register_alias(\"xzoom_in\",(()=>new l({dimensions:\"width\"}))),t.register_alias(\"yzoom_in\",(()=>new l({dimensions:\"height\"})))},\n function _(o,t,e,i,s){var n;i();const a=o(458),l=o(19),_=o(464);class m extends a.PlotActionToolView{doit(){var o;const t=this.plot_view.frame,e=this.model.dimensions,i=\"width\"==e||\"both\"==e,s=\"height\"==e||\"both\"==e,n=this.model.get_factor(),a=(0,_.scale_range)(t,n,i,s);this.plot_view.state.push(\"zoom_out\",{range:a}),this.plot_view.update_range(a,{scrolling:!0,maintain_focus:this.model.maintain_focus}),null===(o=this.model.document)||void 0===o||o.interactive_start(this.plot_view.model),this.plot_view.trigger_ranges_update_event()}}e.ZoomBaseToolView=m,m.__name__=\"ZoomBaseToolView\";class r extends a.PlotActionTool{constructor(o){super(o)}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}e.ZoomBaseTool=r,n=r,r.__name__=\"ZoomBaseTool\",n.define((({Percent:o})=>({factor:[o,.1],dimensions:[l.Dimensions,\"both\"]})))},\n function _(n,t,o,r,e){function s(n,t,o){const[r,e]=[n.start,n.end],s=null!=o?o:(e+r)/2;return[r-(r-s)*t,e-(e-s)*t]}function c(n,[t,o]){const r=new Map;for(const[e,s]of n){const[n,c]=s.r_invert(t,o);r.set(e,{start:n,end:c})}return r}r(),o.scale_highlow=s,o.get_info=c,o.scale_range=function(n,t,o=!0,r=!0,e){const a=o?t:0,[l,u]=s(n.bbox.h_range,a,null!=e?e.x:void 0),i=c(n.x_scales,[l,u]),_=r?t:0,[f,g]=s(n.bbox.v_range,_,null!=e?e.y:void 0);return{xrs:i,yrs:c(n.y_scales,[f,g]),factor:t}}},\n function _(o,t,e,i,s){var n;i();const _=o(463),a=o(269);class m extends _.ZoomBaseToolView{}e.ZoomOutToolView=m,m.__name__=\"ZoomOutToolView\";class l extends _.ZoomBaseTool{constructor(o){super(o),this.tool_name=\"Zoom Out\",this.tool_icon=a.tool_icon_zoom_out}get_factor(){return-this.factor/(1-this.factor)}}e.ZoomOutTool=l,n=l,l.__name__=\"ZoomOutTool\",n.prototype.default_view=m,n.define((({Boolean:o})=>({maintain_focus:[o,!0]}))),n.register_alias(\"zoom_out\",(()=>new l({dimensions:\"both\"}))),n.register_alias(\"xzoom_out\",(()=>new l({dimensions:\"width\"}))),n.register_alias(\"yzoom_out\",(()=>new l({dimensions:\"height\"})))},\n function _(o,l,T,i,t){i(),t(\"EditTool\",o(467).EditTool),t(\"BoxEditTool\",o(468).BoxEditTool),t(\"FreehandDrawTool\",o(469).FreehandDrawTool),t(\"LineEditTool\",o(470).LineEditTool),t(\"PointDrawTool\",o(472).PointDrawTool),t(\"PolyDrawTool\",o(473).PolyDrawTool),t(\"PolyTool\",o(474).PolyTool),t(\"PolyEditTool\",o(475).PolyEditTool)},\n function _(e,t,s,o,n){var r;o();const i=e(10),_=e(8),c=e(12),a=e(199),l=e(271);class d extends l.GestureToolView{constructor(){super(...arguments),this._mouse_in_frame=!0}_select_mode(e){const{shift_key:t,ctrl_key:s}=e;return t||s?t&&!s?\"append\":!t&&s?\"intersect\":t&&s?\"subtract\":void(0,c.unreachable)():\"replace\"}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){if(!this.plot_view.frame.bbox.contains(e,t))return null;const o=this.plot_view.renderer_view(s);if(null==o)return null;return[o.coordinates.x_scale.invert(e),o.coordinates.y_scale.invert(t)]}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;e<s.length;e++){const t=s[e];o.splice(t-e,1)}}this._emit_cds_changes(t)}_pop_glyphs(e,t){const s=e.columns();if(0!=t&&0!=s.length)for(const o of s){let s=e.get_array(o);const n=s.length-t+1;n<1||((0,_.isArray)(s)||(s=Array.from(s),e.data[o]=s),s.splice(0,n))}}_emit_cds_changes(e,t=!0,s=!0,o=!0){if(s&&e.selection_manager.clear(),t&&e.change.emit(),o){const{data:t}=e;e.setv({data:t},{check_eq:!1})}}_drag_points(e,t,s=\"both\"){if(null==this._basepoint)return;const[o,n]=this._basepoint;for(const r of t){const t=this._map_drag(o,n,r),i=this._map_drag(e.sx,e.sy,r);if(null==i||null==t)continue;const[_,c]=i,[a,l]=t,[d,u]=[_-a,c-l],h=r.glyph,f=r.data_source,[p,m]=[h.x.field,h.y.field];for(const e of f.selected.indices)!p||\"width\"!=s&&\"both\"!=s||(f.data[p][e]+=d),!m||\"height\"!=s&&\"both\"!=s||(f.data[m][e]+=u);f.change.emit()}this._basepoint=[e.sx,e.sy]}_pad_empty_columns(e,t){for(const s of e.columns())(0,i.includes)(t,s)||e.get_array(s).push(this.model.empty_value)}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:r}=e;if(!o.bbox.contains(n,r))return[];const i={type:\"point\",sx:n,sy:r},_=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=this.plot_view.renderer_view(e);if(null!=n){s.select([n],i,!0,t)&&_.push(e),o.properties.selected.change.emit()}}return _}}s.EditToolView=d,d.__name__=\"EditToolView\";class u extends l.GestureTool{constructor(e){super(e)}}s.EditTool=u,r=u,u.__name__=\"EditTool\",r.define((({Unknown:e,Array:t,Ref:s})=>({empty_value:[e,0],renderers:[t(s(a.GlyphRenderer)),[]]})))},\n function _(e,t,s,i,_){var o;i();const n=e(19),a=e(467),d=e(269);class r extends a.EditToolView{_tap(e){null==this._draw_basepoint&&null==this._basepoint&&this._select_event(e,this._select_mode(e),this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)if(\"Backspace\"==e.key)this._delete_selected(t);else if(\"Escape\"==e.key){t.data_source.selection_manager.clear()}}_set_extent([e,t],[s,i],_,o=!1){const n=this.model.renderers[0],a=this.plot_view.renderer_view(n);if(null==a)return;const d=n.glyph,r=n.data_source,[l,h]=a.coordinates.x_scale.r_invert(e,t),[p,u]=a.coordinates.y_scale.r_invert(s,i),[c,m]=[(l+h)/2,(p+u)/2],[f,b]=[h-l,u-p],[x,y]=[d.x.field,d.y.field],[w,v]=[d.width.field,d.height.field];if(_)this._pop_glyphs(r,this.model.num_objects),x&&r.get_array(x).push(c),y&&r.get_array(y).push(m),w&&r.get_array(w).push(f),v&&r.get_array(v).push(b),this._pad_empty_columns(r,[x,y,w,v]);else{const e=r.data[x].length-1;x&&(r.data[x][e]=c),y&&(r.data[y][e]=m),w&&(r.data[w][e]=f),v&&(r.data[v][e]=b)}this._emit_cds_changes(r,!0,!1,o)}_update_box(e,t=!1,s=!1){if(null==this._draw_basepoint)return;const i=[e.sx,e.sy],_=this.plot_view.frame,o=this.model.dimensions,[n,a]=this.model._get_dim_limits(this._draw_basepoint,i,_,o);this._set_extent(n,a,t,s)}_doubletap(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,\"append\",this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.shift_key){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._select_event(e,\"append\",this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,t=!1,s=!1){if(e.shift_key){if(null==this._draw_basepoint)return;this._update_box(e,t,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_pan_end(e){if(this._pan(e,!1,!0),e.shift_key)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=r,r.__name__=\"BoxEditToolView\";class l extends a.EditTool{constructor(e){super(e),this.tool_name=\"Box Edit Tool\",this.tool_icon=d.tool_icon_box_edit,this.event_type=[\"tap\",\"pan\",\"move\"],this.default_order=1}}s.BoxEditTool=l,o=l,l.__name__=\"BoxEditTool\",o.prototype.default_view=r,o.define((({Int:e})=>({dimensions:[n.Dimensions,\"both\"],num_objects:[e,0]})))},\n function _(e,t,a,s,r){var _;s();const o=e(8),d=e(467),n=e(269);class i extends d.EditToolView{_draw(e,t,a=!1){if(!this.model.active)return;const s=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,s);if(null==r)return;const[_,d]=r,n=s.data_source,i=s.glyph,[l,h]=[i.xs.field,i.ys.field];if(\"new\"==t)this._pop_glyphs(n,this.model.num_objects),l&&n.get_array(l).push([_]),h&&n.get_array(h).push([d]),this._pad_empty_columns(n,[l,h]);else if(\"add\"==t){if(l){const e=n.data[l].length-1;let t=n.get_array(l)[e];(0,o.isArray)(t)||(t=Array.from(t),n.data[l][e]=t),t.push(_)}if(h){const e=n.data[h].length-1;let t=n.get_array(h)[e];(0,o.isArray)(t)||(t=Array.from(t),n.data[h][e]=t),t.push(d)}}this._emit_cds_changes(n,!0,!0,a)}_pan_start(e){this._draw(e,\"new\")}_pan(e){this._draw(e,\"add\")}_pan_end(e){this._draw(e,\"add\",!0)}_tap(e){this._select_event(e,this._select_mode(e),this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)\"Escape\"==e.key?t.data_source.selection_manager.clear():\"Backspace\"==e.key&&this._delete_selected(t)}}a.FreehandDrawToolView=i,i.__name__=\"FreehandDrawToolView\";class l extends d.EditTool{constructor(e){super(e),this.tool_name=\"Freehand Draw Tool\",this.tool_icon=n.tool_icon_freehand_draw,this.event_type=[\"pan\",\"tap\"],this.default_order=3}}a.FreehandDrawTool=l,_=l,l.__name__=\"FreehandDrawTool\",_.prototype.default_view=i,_.define((({Int:e})=>({num_objects:[e,0]}))),_.register_alias(\"freehand_draw\",(()=>new l))},\n function _(e,t,s,i,n){var r;i();const _=e(19),d=e(471),o=e(269);class l extends d.LineToolView{constructor(){super(...arguments),this._drawing=!1}_doubletap(e){if(!this.model.active)return;const t=this.model.renderers;for(const s of t){1==this._select_event(e,\"replace\",[s]).length&&(this._selected_renderer=s)}this._show_intersections(),this._update_line_cds()}_show_intersections(){if(!this.model.active)return;if(null==this._selected_renderer)return;if(0==this.model.renderers.length)return this._set_intersection([],[]),this._selected_renderer=null,void(this._drawing=!1);const e=this._selected_renderer.data_source,t=this._selected_renderer.glyph,[s,i]=[t.x.field,t.y.field],n=e.get_array(s),r=e.get_array(i);this._set_intersection(n,r)}_tap(e){const t=this.model.intersection_renderer;if(null==this._map_drag(e.sx,e.sy,t))return;if(this._drawing&&null!=this._selected_renderer){const s=this._select_mode(e);if(0==this._select_event(e,s,[t]).length)return}const s=this._select_mode(e);this._select_event(e,s,[t]),this._select_event(e,s,this.model.renderers)}_update_line_cds(){if(null==this._selected_renderer)return;const e=this.model.intersection_renderer.glyph,t=this.model.intersection_renderer.data_source,[s,i]=[e.x.field,e.y.field];if(s&&i){const e=t.data[s],n=t.data[i];this._selected_renderer.data_source.data[s]=e,this._selected_renderer.data_source.data[i]=n}this._emit_cds_changes(this._selected_renderer.data_source,!0,!0,!1)}_pan_start(e){this._select_event(e,\"append\",[this.model.intersection_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.intersection_renderer],this.model.dimensions),null!=this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.intersection_renderer]),this._emit_cds_changes(this.model.intersection_renderer.data_source,!1,!0,!0),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}activate(){this._drawing=!0}deactivate(){null!=this._selected_renderer&&(this._drawing&&(this._drawing=!1),this._hide_intersections())}}s.LineEditToolView=l,l.__name__=\"LineEditToolView\";class h extends d.LineTool{constructor(e){super(e),this.tool_name=\"Line Edit Tool\",this.tool_icon=o.tool_icon_line_edit,this.event_type=[\"tap\",\"pan\",\"move\"],this.default_order=4}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}s.LineEditTool=h,r=h,h.__name__=\"LineEditTool\",r.prototype.default_view=l,r.define((()=>({dimensions:[_.Dimensions,\"both\"]})))},\n function _(e,i,n,t,s){var o;t();const r=e(8),_=e(467);class d extends _.EditToolView{_set_intersection(e,i){const n=this.model.intersection_renderer.glyph,t=this.model.intersection_renderer.data_source,[s,o]=[n.x.field,n.y.field];s&&((0,r.isArray)(e)?t.data[s]=e:n.x={value:e}),o&&((0,r.isArray)(i)?t.data[o]=i:n.y={value:i}),this._emit_cds_changes(t,!0,!0,!1)}_hide_intersections(){this._set_intersection([],[])}}n.LineToolView=d,d.__name__=\"LineToolView\";class a extends _.EditTool{constructor(e){super(e)}}n.LineTool=a,o=a,a.__name__=\"LineTool\",o.define((({AnyRef:e})=>({intersection_renderer:[e()]})))},\n function _(e,t,s,o,a){var i;o();const _=e(467),n=e(269);class r extends _.EditToolView{_tap(e){if(0!=this._select_event(e,this._select_mode(e),this.model.renderers).length||!this.model.add)return;const t=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,t);if(null==s)return;const o=t.glyph,a=t.data_source,[i,_]=[o.x.field,o.y.field],[n,r]=s;this._pop_glyphs(a,this.model.num_objects),i&&a.get_array(i).push(n),_&&a.get_array(_).push(r),this._pad_empty_columns(a,[i,_]);const{data:d}=a;a.setv({data:d},{check_eq:!1})}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)\"Backspace\"==e.key?this._delete_selected(t):\"Escape\"==e.key&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,\"append\",this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}s.PointDrawToolView=r,r.__name__=\"PointDrawToolView\";class d extends _.EditTool{constructor(e){super(e),this.tool_name=\"Point Draw Tool\",this.tool_icon=n.tool_icon_point_draw,this.event_type=[\"tap\",\"pan\",\"move\"],this.default_order=2}}s.PointDrawTool=d,i=d,d.__name__=\"PointDrawTool\",i.prototype.default_view=r,i.define((({Boolean:e,Int:t})=>({add:[e,!0],drag:[e,!0],num_objects:[t,0]})))},\n function _(e,t,s,i,a){var r;i();const o=e(8),n=e(474),_=e(269);class d extends n.PolyToolView{constructor(){super(...arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,\"add\",!0):this._select_event(e,this._select_mode(e),this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],a=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==a)return;const[r,n]=this._snap_to_vertex(e,...a),_=i.data_source,d=i.glyph,[l,h]=[d.xs.field,d.ys.field];if(\"new\"==t)this._pop_glyphs(_,this.model.num_objects),l&&_.get_array(l).push([r,r]),h&&_.get_array(h).push([n,n]),this._pad_empty_columns(_,[l,h]);else if(\"edit\"==t){if(l){const e=_.data[l][_.data[l].length-1];e[e.length-1]=r}if(h){const e=_.data[h][_.data[h].length-1];e[e.length-1]=n}}else if(\"add\"==t){if(l){const e=_.data[l].length-1;let t=_.get_array(l)[e];const s=t[t.length-1];t[t.length-1]=r,(0,o.isArray)(t)||(t=Array.from(t),_.data[l][e]=t),t.push(s)}if(h){const e=_.data[h].length-1;let t=_.get_array(h)[e];const s=t[t.length-1];t[t.length-1]=n,(0,o.isArray)(t)||(t=Array.from(t),_.data[h][e]=t),t.push(s)}}this._emit_cds_changes(_,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;s<this.model.renderers.length;s++){const i=this.model.renderers[s],a=i.data_source,r=i.glyph,[o,n]=[r.xs.field,r.ys.field];if(o)for(const t of a.get_array(o))e.push(...t);if(n)for(const e of a.get_array(n))t.push(...e);this._drawing&&s==this.model.renderers.length-1&&(e.splice(e.length-1,1),t.splice(t.length-1,1))}this._set_vertices(e,t)}_doubletap(e){this.model.active&&(this._drawing?(this._drawing=!1,this._draw(e,\"edit\",!0)):(this._drawing=!0,this._draw(e,\"new\",!0)))}_move(e){this._drawing&&this._draw(e,\"edit\")}_remove(){const e=this.model.renderers[0],t=e.data_source,s=e.glyph,[i,a]=[s.xs.field,s.ys.field];if(i){const e=t.data[i].length-1,s=t.get_array(i)[e];s.splice(s.length-1,1)}if(a){const e=t.data[a].length-1,s=t.get_array(a)[e];s.splice(s.length-1,1)}this._emit_cds_changes(t)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)\"Backspace\"==e.key?this._delete_selected(t):\"Escape\"==e.key&&(this._drawing&&(this._remove(),this._drawing=!1),t.data_source.selection_manager.clear())}_pan_start(e){this.model.drag&&(this._select_event(e,\"append\",this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){if(null==this._basepoint||!this.model.drag)return;const[t,s]=this._basepoint;for(const i of this.model.renderers){const a=this._map_drag(t,s,i),r=this._map_drag(e.sx,e.sy,i);if(null==r||null==a)continue;const o=i.data_source,n=i.glyph,[_,d]=[n.xs.field,n.ys.field];if(!_&&!d)continue;const[l,h]=r,[c,g]=a,[f,p]=[l-c,h-g];for(const e of o.selected.indices){let t,s,i;_&&(s=o.data[_][e]),d?(i=o.data[d][e],t=i.length):t=s.length;for(let e=0;e<t;e++)s&&(s[e]+=f),i&&(i[e]+=p)}o.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source);this._basepoint=null}}activate(){if(null!=this.model.vertex_renderer&&this.model.active){if(this._show_vertices(),!this._initialized)for(const e of this.model.renderers){const t=e.data_source;t.connect(t.properties.data.change,(()=>this._show_vertices()))}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),null!=this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=d,d.__name__=\"PolyDrawToolView\";class l extends n.PolyTool{constructor(e){super(e),this.tool_name=\"Polygon Draw Tool\",this.tool_icon=_.tool_icon_poly_draw,this.event_type=[\"pan\",\"tap\",\"move\"],this.default_order=3}}s.PolyDrawTool=l,r=l,l.__name__=\"PolyDrawTool\",r.prototype.default_view=d,r.define((({Boolean:e,Int:t})=>({drag:[e,!0],num_objects:[t,0]})))},\n function _(e,t,r,l,s){var o;l();const _=e(8),i=e(12),n=e(467);class d extends n.EditToolView{_set_vertices(e,t){const{vertex_renderer:r}=this.model;(0,i.assert)(null!=r);const l=r.glyph,s=r.data_source,[o,n]=[l.x.field,l.y.field];o&&((0,_.isArray)(e)?s.data[o]=e:l.x={value:e}),n&&((0,_.isArray)(t)?s.data[n]=t:l.y={value:t}),this._emit_cds_changes(s,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,t,r){if(null!=this.model.vertex_renderer){const l=this._select_event(e,\"replace\",[this.model.vertex_renderer]),s=this.model.vertex_renderer.data_source,o=this.model.vertex_renderer.glyph,[_,i]=[o.x.field,o.y.field];if(0!=l.length){const e=s.selected.indices[0];_&&(t=s.data[_][e]),i&&(r=s.data[i][e]),s.selection_manager.clear()}}return[t,r]}}r.PolyToolView=d,d.__name__=\"PolyToolView\";class a extends n.EditTool{constructor(e){super(e)}}r.PolyTool=a,o=a,a.__name__=\"PolyTool\",o.define((({AnyRef:e,Nullable:t})=>({vertex_renderer:[t(e()),null]})))},\n function _(e,t,r,s,i){var _;s();const n=e(8),d=e(474),l=e(269);class a extends d.PolyToolView{constructor(){super(...arguments),this._drawing=!1,this._cur_index=null}_doubletap(e){if(null==this.model.vertex_renderer||!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[r,s]=t,i=this._select_event(e,\"replace\",[this.model.vertex_renderer]),_=this.model.vertex_renderer.data_source,n=this.model.vertex_renderer.glyph,[d,l]=[n.x.field,n.y.field];if(0!=i.length&&null!=this._selected_renderer){const e=_.selected.indices[0];this._drawing?(this._drawing=!1,_.selection_manager.clear()):(_.selected.indices=[e+1],d&&_.get_array(d).splice(e+1,0,r),l&&_.get_array(l).splice(e+1,0,s),this._drawing=!0),_.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;if(0==this.model.renderers.length)return;const t=this.model.renderers[0],r=()=>this._update_vertices(t),s=t.data_source,i=this._select_event(e,\"replace\",this.model.renderers);if(0==i.length)return this._set_vertices([],[]),this._selected_renderer=null,this._drawing=!1,this._cur_index=null,void s.disconnect(s.properties.data.change,r);s.connect(s.properties.data.change,r),this._cur_index=i[0].data_source.selected.indices[0],this._update_vertices(i[0])}_update_vertices(e){const t=e.glyph,r=e.data_source,s=this._cur_index,[i,_]=[t.xs.field,t.ys.field];if(this._drawing)return;if(null==s&&(i||_))return;let d,l;i&&null!=s?(d=r.data[i][s],(0,n.isArray)(d)||(r.data[i][s]=d=Array.from(d))):d=t.xs.value,_&&null!=s?(l=r.data[_][s],(0,n.isArray)(l)||(r.data[_][s]=l=Array.from(l))):l=t.ys.value,this._selected_renderer=e,this._set_vertices(d,l)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer;if(null==t)return;const r=t.data_source,s=t.glyph,i=this._map_drag(e.sx,e.sy,t);if(null==i)return;let[_,n]=i;const d=r.selected.indices;[_,n]=this._snap_to_vertex(e,_,n),r.selected.indices=d;const[l,a]=[s.x.field,s.y.field],c=d[0];l&&(r.data[l][c]=_),a&&(r.data[a][c]=n),r.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer;if(null==t)return;const r=this._map_drag(e.sx,e.sy,t);if(null==r)return;if(this._drawing&&null!=this._selected_renderer){let[s,i]=r;const _=t.data_source,n=t.glyph,[d,l]=[n.x.field,n.y.field],a=_.selected.indices;[s,i]=this._snap_to_vertex(e,s,i);const c=a[0];if(_.selected.indices=[c+1],d){const e=_.get_array(d),t=e[c];e[c]=s,e.splice(c+1,0,t)}if(l){const e=_.get_array(l),t=e[c];e[c]=i,e.splice(c+1,0,t)}return _.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const s=this._select_mode(e);this._select_event(e,s,[t]),this._select_event(e,s,this.model.renderers)}_remove_vertex(){if(!this._drawing||null==this._selected_renderer)return;const e=this.model.vertex_renderer;if(null==e)return;const t=e.data_source,r=e.glyph,s=t.selected.indices[0],[i,_]=[r.x.field,r.y.field];i&&t.get_array(i).splice(s,1),_&&t.get_array(_).splice(s,1),t.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){null!=this.model.vertex_renderer&&(this._select_event(e,\"append\",[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy])}_pan(e){null!=this._basepoint&&null!=this.model.vertex_renderer&&(this._drag_points(e,[this.model.vertex_renderer]),null!=this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&null!=this.model.vertex_renderer&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;if(null!=this._selected_renderer){const{vertex_renderer:e}=this.model;t=null!=e?[e]:[]}else t=this.model.renderers;for(const r of t)\"Backspace\"==e.key?(this._delete_selected(r),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):\"Escape\"==e.key&&(this._drawing?(this._remove_vertex(),this._drawing=!1):null!=this._selected_renderer&&this._hide_vertices(),r.data_source.selection_manager.clear())}deactivate(){null!=this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}r.PolyEditToolView=a,a.__name__=\"PolyEditToolView\";class c extends d.PolyTool{constructor(e){super(e),this.tool_name=\"Poly Edit Tool\",this.tool_icon=l.tool_icon_poly_edit,this.event_type=[\"tap\",\"pan\",\"move\"],this.default_order=4}}r.PolyEditTool=c,_=c,c.__name__=\"PolyEditTool\",_.prototype.default_view=a},\n function _(o,l,e,T,t){T(),t(\"BoxSelectTool\",o(477).BoxSelectTool),t(\"BoxZoomTool\",o(480).BoxZoomTool),t(\"GestureTool\",o(271).GestureTool),t(\"LassoSelectTool\",o(481).LassoSelectTool),t(\"PanTool\",o(483).PanTool),t(\"PolySelectTool\",o(482).PolySelectTool),t(\"RangeTool\",o(484).RangeTool),t(\"SelectTool\",o(479).SelectTool),t(\"TapTool\",o(485).TapTool),t(\"WheelPanTool\",o(486).WheelPanTool),t(\"WheelZoomTool\",o(487).WheelZoomTool)},\n function _(t,e,i,o,s){var l;o();const n=t(1),_=t(478),r=t(232),c=t(19),a=n.__importStar(t(269));class h extends _.RegionSelectToolView{connect_signals(){super.connect_signals();const{pan:t}=this.model.overlay;this.connect(t,(([t,e])=>{if(\"pan\"==t&&this._is_continuous(e)||\"pan:end\"==t){const{left:t,top:i,right:o,bottom:s}=this.model.overlay;if(null!=t&&null!=i&&null!=o&&null!=s){const l=this._compute_lrtb({left:t,right:o,top:i,bottom:s});this._do_select([l.left,l.right],[l.top,l.bottom],!1,this._select_mode(e))}}}));const{active:e}=this.model.properties;this.on_change(e,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_compute_limits(t){const e=this.plot_view.frame,i=this.model.dimensions;let o=this._base_point;if(\"center\"==this.model.origin){const[e,i]=o,[s,l]=t;o=[e-(s-e),i-(l-i)]}return this.model._get_dim_limits(o,t,e,i)}_mappers(){const t=(t,e,i,o)=>{switch(t){case\"canvas\":return o;case\"screen\":return i;case\"data\":return e}},{overlay:e}=this.model,{frame:i,canvas:o}=this.plot_view,{x_scale:s,y_scale:l}=i,{x_view:n,y_view:_}=i.bbox,{x_screen:r,y_screen:c}=o.bbox;return{left:t(e.left_units,s,n,r),right:t(e.right_units,s,n,r),top:t(e.top_units,l,_,c),bottom:t(e.bottom_units,l,_,c)}}_compute_lrtb({left:t,right:e,top:i,bottom:o}){const s=this._mappers();return{left:s.left.compute(t),right:s.right.compute(e),top:s.top.compute(i),bottom:s.bottom.compute(o)}}_invert_lrtb({left:t,right:e,top:i,bottom:o}){const s=this._mappers();return{left:s.left.invert(t),right:s.right.invert(e),top:s.top.invert(i),bottom:s.bottom.invert(o)}}_pan_start(t){const{sx:e,sy:i}=t,{frame:o}=this.plot_view;o.bbox.contains(e,i)&&(this._clear_other_overlays(),this._base_point=[e,i])}_pan(t){if(null==this._base_point)return;const{sx:e,sy:i}=t,[o,s]=this._compute_limits([e,i]),[[l,n],[_,r]]=[o,s];this.model.overlay.update(this._invert_lrtb({left:l,right:n,top:_,bottom:r})),this._is_continuous(t)&&this._do_select(o,s,!1,this._select_mode(t))}_pan_end(t){if(null==this._base_point)return;const{sx:e,sy:i}=t,[o,s]=this._compute_limits([e,i]);this._do_select(o,s,!0,this._select_mode(t)),this.model.persistent||this._clear_overlay(),this._base_point=null,this.plot_view.state.push(\"box_select\",{selection:this.plot_view.get_selection()})}get _is_selecting(){return null!=this._base_point}_stop(){this._clear_overlay(),this._base_point=null}_keyup(t){if(this.model.active){if(\"Escape\"==t.key){if(this._is_selecting)return void this._stop();if(this.model.overlay.visible)return void this._clear_overlay()}super._keyup(t)}}_clear_selection(){this.model.overlay.visible?this._clear_overlay():super._clear_selection()}_do_select([t,e],[i,o],s,l=\"replace\"){const n={type:\"rect\",sx0:t,sx1:e,sy0:i,sy1:o};this._select(n,s,l)}}i.BoxSelectToolView=h,h.__name__=\"BoxSelectToolView\";const p=()=>new r.BoxAnnotation({syncable:!1,level:\"overlay\",visible:!1,editable:!0,top_units:\"data\",left_units:\"data\",bottom_units:\"data\",right_units:\"data\",fill_color:\"lightgrey\",fill_alpha:.5,line_color:\"black\",line_alpha:1,line_width:2,line_dash:[4,4]});class m extends _.RegionSelectTool{constructor(t){super(t),this.tool_name=\"Box Select\",this.event_type=\"pan\",this.default_order=30}initialize(){super.initialize();const[t,e]=(()=>{switch(this.dimensions){case\"width\":return[\"x\",\"x\"];case\"height\":return[\"y\",\"y\"];case\"both\":return[\"all\",\"both\"]}})(),i=\"center\"==this.origin;this.overlay.setv({resizable:t,movable:e,symmetric:i})}get computed_icon(){const t=super.computed_icon;if(null!=t)return t;switch(this.dimensions){case\"both\":return`.${a.tool_icon_box_select}`;case\"width\":return`.${a.tool_icon_x_box_select}`;case\"height\":return`.${a.tool_icon_y_box_select}`}}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}i.BoxSelectTool=m,l=m,m.__name__=\"BoxSelectTool\",l.prototype.default_view=h,l.define((({Ref:t})=>({dimensions:[c.Dimensions,\"both\"],overlay:[t(r.BoxAnnotation),p],origin:[c.BoxOrigin,\"corner\"]}))),l.register_alias(\"box_select\",(()=>new m)),l.register_alias(\"xbox_select\",(()=>new m({dimensions:\"width\"}))),l.register_alias(\"ybox_select\",(()=>new m({dimensions:\"height\"})))},\n function _(e,o,t,s,l){var n;s();const r=e(479);class c extends r.SelectToolView{get overlays(){return[...super.overlays,this.model.overlay]}_is_continuous(e){return this.model.continuous!=e.alt_key}_select(e,o,t){const s=this._computed_renderers_by_data_source();for(const[,l]of s){const s=l[0].get_selection_manager(),n=[];for(const e of l){const o=this.plot_view.renderer_view(e);null!=o&&n.push(o)}s.select(n,e,o,t)}this._emit_selection_event(e,o)}_clear_overlay(){super._clear_overlay(),this.model.overlay.clear()}}t.RegionSelectToolView=c,c.__name__=\"RegionSelectToolView\";class _ extends r.SelectTool{constructor(e){super(e)}}t.RegionSelectTool=_,n=_,_.__name__=\"RegionSelectTool\",n.define((({Boolean:e})=>({continuous:[e,!1],persistent:[e,!1]})))},\n function _(e,t,r,s,o){var n;s();const i=e(271),c=e(199),a=e(409),l=e(200),_=e(95),d=e(19),h=e(52),p=e(15),u=e(12);class v extends i.GestureToolView{connect_signals(){super.connect_signals(),this.model.clear.connect((()=>this._clear_selection()))}get computed_renderers(){const{renderers:e}=this.model,t=this.plot_view.model.data_renderers;return(0,_.compute_renderers)(e,t)}_computed_renderers_by_data_source(){var e;const t=new Map;for(const r of this.computed_renderers){let s;if(r instanceof c.GlyphRenderer)s=r.data_source;else{if(!(r instanceof a.GraphRenderer))continue;s=r.node_renderer.data_source}const o=null!==(e=t.get(s))&&void 0!==e?e:[];t.set(s,[...o,r])}return t}_clear_overlay(){}_clear_other_overlays(){for(const e of this.plot_view.tool_views.values())e instanceof v&&e!=this&&e._clear_overlay()}_clear_selection(){this._clear()}_select_mode(e){const{shift_key:t,ctrl_key:r}=e;return t||r?t&&!r?\"append\":!t&&r?\"intersect\":t&&r?\"subtract\":void(0,u.unreachable)():this.model.mode}_keyup(e){this.model.active&&\"Escape\"==e.key&&this._clear()}_clear(){for(const e of this.computed_renderers)e.get_selection_manager().clear();const e=this.computed_renderers.map((e=>this.plot_view.renderer_view(e)));this.plot_view.request_paint(e)}_emit_selection_event(e,t=!0){const{x_scale:r,y_scale:s}=this.plot_view.frame,o=(()=>{switch(e.type){case\"point\":{const{sx:t,sy:o}=e,n=r.invert(t),i=s.invert(o);return Object.assign(Object.assign({},e),{x:n,y:i})}case\"span\":{const{sx:t,sy:o}=e,n=r.invert(t),i=s.invert(o);return Object.assign(Object.assign({},e),{x:n,y:i})}case\"rect\":{const{sx0:t,sx1:o,sy0:n,sy1:i}=e,[c,a]=r.r_invert(t,o),[l,_]=s.r_invert(n,i);return Object.assign(Object.assign({},e),{x0:c,y0:l,x1:a,y1:_})}case\"poly\":{const{sx:t,sy:o}=e,n=r.v_invert(t),i=s.v_invert(o);return Object.assign(Object.assign({},e),{x:n,y:i})}}})();this.plot_view.model.trigger_event(new h.SelectionGeometry(o,t))}}r.SelectToolView=v,v.__name__=\"SelectToolView\";class m extends i.GestureTool{constructor(e){super(e)}initialize(){super.initialize(),this.clear=new p.Signal0(this,\"clear\")}get menu(){return[{icon:\"bk-tool-icon-replace-mode\",tooltip:\"Replace the current selection\",active:()=>\"replace\"==this.mode,handler:()=>{this.mode=\"replace\",this.active=!0}},{icon:\"bk-tool-icon-append-mode\",tooltip:\"Append to the current selection (Shift)\",active:()=>\"append\"==this.mode,handler:()=>{this.mode=\"append\",this.active=!0}},{icon:\"bk-tool-icon-intersect-mode\",tooltip:\"Intersect with the current selection (Ctrl)\",active:()=>\"intersect\"==this.mode,handler:()=>{this.mode=\"intersect\",this.active=!0}},{icon:\"bk-tool-icon-subtract-mode\",tooltip:\"Subtract from the current selection (Shift+Ctrl)\",active:()=>\"subtract\"==this.mode,handler:()=>{this.mode=\"subtract\",this.active=!0}},null,{icon:\"bk-tool-icon-clear-selection\",tooltip:\"Clear the current selection and/or selection overlay (Esc)\",handler:()=>{this.clear.emit()}}]}}r.SelectTool=m,n=m,m.__name__=\"SelectTool\",n.define((({Array:e,Ref:t,Or:r,Auto:s})=>({renderers:[r(e(t(l.DataRenderer)),s),\"auto\"],mode:[d.SelectionMode,\"replace\"]})))},\n function _(o,t,e,i,s){var n;i();const a=o(1),_=o(271),r=o(232),l=o(19),h=a.__importStar(o(269));class c extends _.GestureToolView{constructor(){super(...arguments),this._base_point=null}get overlays(){return[...super.overlays,this.model.overlay]}_match_aspect([o,t],[e,i],s){const n=s.bbox.aspect,a=s.bbox.h_range.end,_=s.bbox.h_range.start,r=s.bbox.v_range.end,l=s.bbox.v_range.start;let h=Math.abs(o-e),c=Math.abs(t-i);const m=0==c?0:h/c,[d]=m>=n?[1,m/n]:[n/m,1];let p,u,b,x;return o<=e?(p=o,u=o+h*d,u>a&&(u=a)):(u=o,p=o-h*d,p<_&&(p=_)),h=Math.abs(u-p),t<=i?(x=t,b=t+h/n,b>r&&(b=r)):(b=t,x=t-h/n,x<l&&(x=l)),c=Math.abs(b-x),o<=e?u=o+n*c:p=o-n*c,[[p,u],[x,b]]}_compute_limits(o,t){const{frame:e}=this.plot_view;if(\"center\"==this.model.origin){const[e,i]=o,[s,n]=t;o=[e-(s-e),i-(n-i)]}const i=(()=>{const{dimensions:e}=this.model;if(\"auto\"==e){const[e,i]=o,[s,n]=t,a=Math.abs(e-s),_=Math.abs(i-n),r=5;return a<r&&_>r?\"height\":a>r&&_<r?\"width\":\"both\"}return e})();return this.model.match_aspect&&\"both\"==i?this._match_aspect(o,t,e):this.model._get_dim_limits(o,t,e,i)}_pan_start(o){const{sx:t,sy:e}=o;this.plot_view.frame.bbox.contains(t,e)&&(this._base_point=[t,e])}_pan(o){if(null==this._base_point)return;const[[t,e],[i,s]]=this._compute_limits(this._base_point,[o.sx,o.sy]);this.model.overlay.update({left:t,right:e,top:i,bottom:s})}_pan_end(o){if(null==this._base_point)return;const[t,e]=this._compute_limits(this._base_point,[o.sx,o.sy]);this._update(t,e),this._stop()}_stop(){this.model.overlay.clear(),this._base_point=null}_keydown(o){\"Escape\"==o.key&&this._stop()}_doubletap(o){var t;const{state:e}=this.plot_view;\"box_zoom\"==(null===(t=e.peek())||void 0===t?void 0:t.type)&&e.undo()}_update([o,t],[e,i]){if(Math.abs(t-o)<=5||Math.abs(i-e)<=5)return;const{x_scales:s,y_scales:n}=this.plot_view.frame,a=new Map;for(const[e,i]of s){const[s,n]=i.r_invert(o,t);a.set(e,{start:s,end:n})}const _=new Map;for(const[o,t]of n){const[s,n]=t.r_invert(e,i);_.set(o,{start:s,end:n})}const r={xrs:a,yrs:_};this.plot_view.state.push(\"box_zoom\",{range:r}),this.plot_view.update_range(r),this.plot_view.trigger_ranges_update_event()}}e.BoxZoomToolView=c,c.__name__=\"BoxZoomToolView\";const m=()=>new r.BoxAnnotation({syncable:!1,level:\"overlay\",visible:!1,editable:!1,top_units:\"canvas\",left_units:\"canvas\",bottom_units:\"canvas\",right_units:\"canvas\",fill_color:\"lightgrey\",fill_alpha:.5,line_color:\"black\",line_alpha:1,line_width:2,line_dash:[4,4]});class d extends _.GestureTool{constructor(o){super(o),this.tool_name=\"Box Zoom\",this.event_type=[\"pan\",\"doubletap\"],this.default_order=20}get event_role(){return\"pan\"}get computed_icon(){const o=super.computed_icon;if(null!=o)return o;switch(this.dimensions){case\"both\":return`.${h.tool_icon_box_zoom}`;case\"width\":return`.${h.tool_icon_x_box_zoom}`;case\"height\":return`.${h.tool_icon_y_box_zoom}`;case\"auto\":return`.${h.tool_icon_auto_box_zoom}`}}get tooltip(){return this._get_dim_tooltip(this.dimensions)}get menu(){return[{icon:h.tool_icon_box_zoom,tooltip:\"Box zoom in both dimensions\",active:()=>\"both\"==this.dimensions,handler:()=>{this.dimensions=\"both\",this.active=!0}},{icon:h.tool_icon_x_box_zoom,tooltip:\"Box zoom in x-dimension\",active:()=>\"width\"==this.dimensions,handler:()=>{this.dimensions=\"width\",this.active=!0}},{icon:h.tool_icon_y_box_zoom,tooltip:\"Box zoom in y-dimension\",active:()=>\"height\"==this.dimensions,handler:()=>{this.dimensions=\"height\",this.active=!0}},{icon:h.tool_icon_auto_box_zoom,tooltip:\"Automatic mode (box zoom in x, y or both dimensions, depending on the mouse gesture)\",active:()=>\"auto\"==this.dimensions,handler:()=>{this.dimensions=\"auto\",this.active=!0}}]}}e.BoxZoomTool=d,n=d,d.__name__=\"BoxZoomTool\",n.prototype.default_view=c,n.define((({Boolean:o,Ref:t,Or:e,Auto:i})=>({dimensions:[e(l.Dimensions,i),\"both\"],overlay:[t(r.BoxAnnotation),m],match_aspect:[o,!1],origin:[l.BoxOrigin,\"corner\"]}))),n.register_alias(\"box_zoom\",(()=>new d({dimensions:\"both\"}))),n.register_alias(\"xbox_zoom\",(()=>new d({dimensions:\"width\"}))),n.register_alias(\"ybox_zoom\",(()=>new d({dimensions:\"height\"}))),n.register_alias(\"auto_box_zoom\",(()=>new d({dimensions:\"auto\"})))},\n function _(e,s,t,o,i){var _;o();const l=e(478),n=e(252),c=e(482),a=e(12),r=e(269);class h extends l.RegionSelectToolView{constructor(){super(...arguments),this._is_selecting=!1}_mappers(){const e=(e,s,t,o)=>{switch(e){case\"canvas\":return o;case\"screen\":return t;case\"data\":return s}},{overlay:s}=this.model,{frame:t,canvas:o}=this.plot_view,{x_scale:i,y_scale:_}=t,{x_view:l,y_view:n}=t.bbox,{x_screen:c,y_screen:a}=o.bbox;return{x:e(s.xs_units,i,l,c),y:e(s.ys_units,_,n,a)}}_v_compute(e,s){const{x:t,y:o}=this._mappers();return[t.v_compute(e),o.v_compute(s)]}_v_invert(e,s){const{x:t,y:o}=this._mappers();return[t.v_invert(e),o.v_invert(s)]}connect_signals(){super.connect_signals();const{pan:e}=this.model.overlay;this.connect(e,(([e,s])=>{if(\"pan\"==e&&this._is_continuous(s)||\"pan:end\"==e){const{xs:e,ys:t}=this.model.overlay,[o,i]=this._v_compute(e,t);this._do_select(o,i,!1,this._select_mode(s))}}));const{active:s}=this.model.properties;this.on_change(s,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_pan_start(e){const{sx:s,sy:t}=e,{frame:o}=this.plot_view;if(!o.bbox.contains(s,t))return;this._clear_other_overlays(),this._is_selecting=!0;const[i,_]=this._v_invert([s],[t]);this.model.overlay.update({xs:i,ys:_})}_pan(e){(0,a.assert)(this._is_selecting);const[s,t]=(()=>{const{xs:e,ys:s}=this.model.overlay,[t,o]=this._v_compute(e,s);return[[...t],[...o]]})(),[o,i]=this.plot_view.frame.bbox.clip(e.sx,e.sy);s.push(o),t.push(i);const[_,l]=this._v_invert(s,t);this.model.overlay.update({xs:_,ys:l}),this._is_continuous(e)&&this._do_select(s,t,!1,this._select_mode(e))}_pan_end(e){(0,a.assert)(this._is_selecting),this._is_selecting=!1;const{xs:s,ys:t}=this.model.overlay,[o,i]=this._v_compute(s,t);this._do_select(o,i,!0,this._select_mode(e)),this.plot_view.state.push(\"lasso_select\",{selection:this.plot_view.get_selection()}),this.model.persistent||this._clear_overlay()}_keyup(e){this.model.active&&(\"Escape\"==e.key&&this.model.overlay.visible?this._clear_overlay():super._keyup(e))}_clear_selection(){this.model.overlay.visible?this._clear_overlay():super._clear_selection()}_do_select(e,s,t,o){const i={type:\"poly\",sx:e,sy:s};this._select(i,t,o)}}t.LassoSelectToolView=h,h.__name__=\"LassoSelectToolView\";class v extends l.RegionSelectTool{constructor(e){super(e),this.tool_name=\"Lasso Select\",this.tool_icon=r.tool_icon_lasso_select,this.event_type=\"pan\",this.default_order=12}}t.LassoSelectTool=v,_=v,v.__name__=\"LassoSelectTool\",_.prototype.default_view=h,_.define((({Ref:e})=>({overlay:[e(n.PolyAnnotation),c.DEFAULT_POLY_OVERLAY]}))),_.override({continuous:!0}),_.register_alias(\"lasso_select\",(()=>new v))},\n function _(e,t,s,i,o){var _;i();const l=e(478),n=e(252),c=e(269);class a extends l.RegionSelectToolView{constructor(){super(...arguments),this._is_selecting=!1}_mappers(){const e=(e,t,s,i)=>{switch(e){case\"canvas\":return i;case\"screen\":return s;case\"data\":return t}},{overlay:t}=this.model,{frame:s,canvas:i}=this.plot_view,{x_scale:o,y_scale:_}=s,{x_view:l,y_view:n}=s.bbox,{x_screen:c,y_screen:a}=i.bbox;return{x:e(t.xs_units,o,l,c),y:e(t.ys_units,_,n,a)}}_v_compute(e,t){const{x:s,y:i}=this._mappers();return[s.v_compute(e),i.v_compute(t)]}_v_invert(e,t){const{x:s,y:i}=this._mappers();return[s.v_invert(e),i.v_invert(t)]}connect_signals(){super.connect_signals();const{pan:e}=this.model.overlay;this.connect(e,(([e,t])=>{if(\"pan\"==e&&this._is_continuous(t)||\"pan:end\"==e&&!this._is_selecting){const{xs:e,ys:s}=this.model.overlay,[i,o]=this._v_compute(e,s);this._do_select(i,o,!1,this._select_mode(t))}}));const{active:t}=this.model.properties;this.on_change(t,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_tap(e){const{sx:t,sy:s}=e,{frame:i}=this.plot_view;if(!i.bbox.contains(t,s))return;this._clear_other_overlays();const[o,_]=(()=>{if(this._is_selecting){const{xs:e,ys:t}=this.model.overlay,[s,i]=this._v_compute(e,t);return[[...s],[...i]]}return this._is_selecting=!0,[[],[]]})();o.push(t),_.push(s);const[l,n]=this._v_invert(o,_);this.model.overlay.update({xs:l,ys:n}),this._is_continuous(e)&&this._do_select(o,_,!0,this._select_mode(e))}_finish_selection(e){this._is_selecting=!1;const{xs:t,ys:s}=this.model.overlay,[i,o]=this._v_compute(t,s);this._do_select(i,o,!0,this._select_mode(e)),this.plot_view.state.push(\"poly_select\",{selection:this.plot_view.get_selection()}),this.model.persistent||this._clear_overlay()}_doubletap(e){this._finish_selection(e)}_keyup(e){this.model.active&&(\"Enter\"!=e.key?\"Escape\"==e.key&&this.model.overlay.visible?this._clear_overlay():super._keyup(e):this._finish_selection(e))}_clear_selection(){this.model.overlay.visible?this._clear_overlay():(this._is_selecting=!1,super._clear_selection())}_clear_overlay(){this._is_selecting=!1,super._clear_overlay()}_do_select(e,t,s,i){const o={type:\"poly\",sx:e,sy:t};this._select(o,s,i)}}s.PolySelectToolView=a,a.__name__=\"PolySelectToolView\";s.DEFAULT_POLY_OVERLAY=()=>new n.PolyAnnotation({syncable:!1,level:\"overlay\",visible:!1,editable:!0,xs_units:\"data\",ys_units:\"data\",fill_color:\"lightgrey\",fill_alpha:.5,line_color:\"black\",line_alpha:1,line_width:2,line_dash:[4,4]});class r extends l.RegionSelectTool{constructor(e){super(e),this.tool_name=\"Poly Select\",this.tool_icon=c.tool_icon_polygon_select,this.event_type=\"tap\",this.default_order=11}}s.PolySelectTool=r,_=r,r.__name__=\"PolySelectTool\",_.prototype.default_view=a,_.define((({Ref:e})=>({overlay:[e(n.PolyAnnotation),s.DEFAULT_POLY_OVERLAY]}))),_.register_alias(\"poly_select\",(()=>new r))},\n function _(t,i,n,s,e){var o;s();const a=t(1),_=t(271),h=t(19),r=a.__importStar(t(269));function d(t,i,n){const s=new Map;for(const[e,o]of t){const[t,a]=o.r_invert(i,n);s.set(e,{start:t,end:a})}return s}n.update_ranges=d;class l extends _.GestureToolView{_pan_start(t){var i;this.last_dx=0,this.last_dy=0;const{sx:n,sy:s}=t,e=this.plot_view.frame.bbox;if(!e.contains(n,s)){const t=e.h_range,i=e.v_range;(n<t.start||n>t.end)&&(this.v_axis_only=!0),(s<i.start||s>i.end)&&(this.h_axis_only=!0)}null===(i=this.model.document)||void 0===i||i.interactive_start(this.plot_view.model)}_pan(t){var i;this._update(t.dx,t.dy),null===(i=this.model.document)||void 0===i||i.interactive_start(this.plot_view.model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.state.push(\"pan\",{range:this.pan_info}),this.plot_view.trigger_ranges_update_event()}_update(t,i){const n=this.plot_view.frame,s=t-this.last_dx,e=i-this.last_dy,o=n.bbox.h_range,a=o.start-s,_=o.end-s,h=n.bbox.v_range,r=h.start-e,l=h.end-e,p=this.model.dimensions;let c,m,u,v,g,x;\"width\"!=p&&\"both\"!=p||this.v_axis_only?(c=o.start,m=o.end,u=0):(c=a,m=_,u=-s),\"height\"!=p&&\"both\"!=p||this.h_axis_only?(v=h.start,g=h.end,x=0):(v=r,g=l,x=-e),this.last_dx=t,this.last_dy=i;const{x_scales:w,y_scales:y}=n,f=d(w,c,m),b=d(y,v,g);this.pan_info={xrs:f,yrs:b,sdx:u,sdy:x},this.plot_view.update_range(this.pan_info,{panning:!0})}}n.PanToolView=l,l.__name__=\"PanToolView\";class p extends _.GestureTool{constructor(t){super(t),this.tool_name=\"Pan\",this.event_type=\"pan\",this.default_order=10}get tooltip(){return this._get_dim_tooltip(this.dimensions)}get computed_icon(){const t=super.computed_icon;if(null!=t)return t;switch(this.dimensions){case\"both\":return`.${r.tool_icon_pan}`;case\"width\":return`.${r.tool_icon_x_pan}`;case\"height\":return`.${r.tool_icon_y_pan}`}}get menu(){return[{icon:r.tool_icon_pan,tooltip:\"Pan in both dimensions\",active:()=>\"both\"==this.dimensions,handler:()=>{this.dimensions=\"both\",this.active=!0}},{icon:r.tool_icon_x_pan,tooltip:\"Pan in x-dimension\",active:()=>\"width\"==this.dimensions,handler:()=>{this.dimensions=\"width\",this.active=!0}},{icon:r.tool_icon_y_pan,tooltip:\"Pan in y-dimension\",active:()=>\"height\"==this.dimensions,handler:()=>{this.dimensions=\"height\",this.active=!0}}]}}n.PanTool=p,o=p,p.__name__=\"PanTool\",o.prototype.default_view=l,o.define((()=>({dimensions:[h.Dimensions,\"both\"]}))),o.register_alias(\"pan\",(()=>new p({dimensions:\"both\"}))),o.register_alias(\"xpan\",(()=>new p({dimensions:\"width\"}))),o.register_alias(\"ypan\",(()=>new p({dimensions:\"height\"})))},\n function _(e,t,n,o,l){var a;o();const i=e(264),r=e(272),s=e(232),_=e(88),h=e(18),g=e(269);class c extends i.ToolView{get overlays(){return[...super.overlays,this.model.overlay]}initialize(){super.initialize(),this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals(),null!=this.model.x_range&&this.connect(this.model.x_range.change,(()=>this.model.update_overlay_from_ranges())),null!=this.model.y_range&&this.connect(this.model.y_range.change,(()=>this.model.update_overlay_from_ranges())),this.model.overlay.pan.connect((([e,t])=>{\"pan\"==e?this.model.update_ranges_from_overlay():\"pan:end\"==e&&this.parent.trigger_ranges_update_event()}));const{active:e}=this.model.properties;this.on_change(e,(()=>{this.model.overlay.editable=this.model.active}))}}n.RangeToolView=c,c.__name__=\"RangeToolView\";const v=()=>new s.BoxAnnotation({syncable:!1,level:\"overlay\",visible:!0,editable:!0,propagate_hover:!0,fill_color:\"lightgrey\",fill_alpha:.5,line_color:\"black\",line_alpha:1,line_width:.5,line_dash:[2,2]});class y extends i.Tool{constructor(e){super(e),this.tool_name=\"Range Tool\",this.tool_icon=g.tool_icon_range}initialize(){super.initialize(),this.overlay.editable=this.active;const e=null!=this.x_range&&this.x_interaction,t=null!=this.y_range&&this.y_interaction;e&&t?(this.overlay.movable=\"both\",this.overlay.resizable=\"all\"):e?(this.overlay.movable=\"x\",this.overlay.resizable=\"x\"):t?(this.overlay.movable=\"y\",this.overlay.resizable=\"y\"):(this.overlay.movable=\"none\",this.overlay.resizable=\"none\")}update_ranges_from_overlay(){const{left:e,right:t,top:n,bottom:o}=this.overlay;null!=this.x_range&&this.x_interaction&&this.x_range.setv({start:e,end:t}),null!=this.y_range&&this.y_interaction&&this.y_range.setv({start:o,end:n})}update_overlay_from_ranges(){const{x_range:e,y_range:t}=this,n=null!=e,o=null!=t;n||o?this.overlay.update({left:n?e.start:null,right:n?e.end:null,bottom:o?t.start:null,top:o?t.end:null}):(this.overlay.clear(),h.logger.warn(\"RangeTool not configured with any Ranges.\"))}tool_button(){return new r.OnOffButton({tool:this})}}n.RangeTool=y,a=y,y.__name__=\"RangeTool\",a.prototype.default_view=c,a.define((({Boolean:e,Ref:t,Nullable:n})=>({x_range:[n(t(_.Range1d)),null],y_range:[n(t(_.Range1d)),null],x_interaction:[e,!0],y_interaction:[e,!0],overlay:[t(s.BoxAnnotation),v]}))),a.override({active:!0})},\n function _(e,t,s,o,i){var l;o();const a=e(479),n=e(19),c=e(269);class r extends a.SelectToolView{_tap(e){\"tap\"==this.model.gesture&&this._handle_tap(e)}_doubletap(e){\"doubletap\"==this.model.gesture&&this._handle_tap(e)}_handle_tap(e){const{sx:t,sy:s}=e,{frame:o}=this.plot_view;if(!o.bbox.contains(t,s))return;this._clear_other_overlays();const i={type:\"point\",sx:t,sy:s};this._select(i,!0,this._select_mode(e))}_select(e,t,s){const{callback:o}=this.model;if(\"select\"==this.model.behavior){const i=this._computed_renderers_by_data_source();for(const[,l]of i){const i=l[0].get_selection_manager(),a=l.map((e=>this.plot_view.renderer_view(e))).filter((e=>null!=e));if(i.select(a,e,t,s)&&null!=o){const t=a[0].coordinates.x_scale.invert(e.sx),s=a[0].coordinates.y_scale.invert(e.sy),l={geometries:Object.assign(Object.assign({},e),{x:t,y:s}),source:i.source};o.execute(this.model,l)}}this._emit_selection_event(e),this.plot_view.state.push(\"tap\",{selection:this.plot_view.get_selection()})}else for(const t of this.computed_renderers){const s=this.plot_view.renderer_view(t);if(null==s)continue;const i=t.get_selection_manager();if(i.inspect(s,e)&&null!=o){const t=s.coordinates.x_scale.invert(e.sx),l=s.coordinates.y_scale.invert(e.sy),a={geometries:Object.assign(Object.assign({},e),{x:t,y:l}),source:i.source};o.execute(this.model,a)}}}}s.TapToolView=r,r.__name__=\"TapToolView\";class _ extends a.SelectTool{constructor(e){super(e),this.tool_name=\"Tap\",this.tool_icon=c.tool_icon_tap_select,this.event_type=\"tap\",this.default_order=10}}s.TapTool=_,l=_,_.__name__=\"TapTool\",l.prototype.default_view=r,l.define((({Any:e,Nullable:t})=>({behavior:[n.TapBehavior,\"select\"],gesture:[n.TapGesture,\"tap\"],callback:[t(e),null]}))),l.register_alias(\"click\",(()=>new _({behavior:\"inspect\"}))),l.register_alias(\"tap\",(()=>new _)),l.register_alias(\"doubletap\",(()=>new _({gesture:\"doubletap\"})))},\n function _(e,t,s,i,n){var o;i();const a=e(271),l=e(19),_=e(269),r=e(483);class h extends a.GestureToolView{_scroll(e){let t=this.model.speed*e.delta;t>.9?t=.9:t<-.9&&(t=-.9),this._update_ranges(t)}_update_ranges(e){var t;const{frame:s}=this.plot_view,i=s.bbox.h_range,n=s.bbox.v_range,[o,a]=[i.start,i.end],[l,_]=[n.start,n.end];let h,d,p,c;switch(this.model.dimension){case\"height\":{const t=Math.abs(_-l);h=o,d=a,p=l-t*e,c=_-t*e;break}case\"width\":{const t=Math.abs(a-o);h=o-t*e,d=a-t*e,p=l,c=_;break}}const{x_scales:w,y_scales:g}=s,u={xrs:(0,r.update_ranges)(w,h,d),yrs:(0,r.update_ranges)(g,p,c),factor:e};this.plot_view.state.push(\"wheel_pan\",{range:u}),this.plot_view.update_range(u,{scrolling:!0}),null===(t=this.model.document)||void 0===t||t.interactive_start(this.plot_view.model,(()=>this.plot_view.trigger_ranges_update_event()))}}s.WheelPanToolView=h,h.__name__=\"WheelPanToolView\";class d extends a.GestureTool{constructor(e){super(e),this.tool_name=\"Wheel Pan\",this.tool_icon=_.tool_icon_wheel_pan,this.event_type=\"scroll\",this.default_order=12}get tooltip(){return this._get_dim_tooltip(this.dimension)}}s.WheelPanTool=d,o=d,d.__name__=\"WheelPanTool\",o.prototype.default_view=h,o.define((()=>({dimension:[l.Dimension,\"width\"]}))),o.internal((({Number:e})=>({speed:[e,.001]}))),o.register_alias(\"xwheel_pan\",(()=>new d({dimension:\"width\"}))),o.register_alias(\"ywheel_pan\",(()=>new d({dimension:\"height\"})))},\n function _(e,o,t,s,i){var l;s();const n=e(271),_=e(464),a=e(19),h=e(26),r=e(269);class m extends n.GestureToolView{_pinch(e){const{sx:o,sy:t,scale:s,shift_key:i,ctrl_key:l,alt_key:n}=e;let _;_=s>=1?20*(s-1):-20/s,this._scroll({type:\"wheel\",sx:o,sy:t,delta:_,shift_key:i,ctrl_key:l,alt_key:n})}_scroll(e){var o;const{frame:t}=this.plot_view,s=t.bbox.h_range,i=t.bbox.v_range,{sx:l,sy:n}=e,a=this.model.dimensions,h=(\"width\"==a||\"both\"==a)&&s.start<l&&l<s.end,r=(\"height\"==a||\"both\"==a)&&i.start<n&&n<i.end;if(!(h&&r||this.model.zoom_on_axis))return;const m=this.model.speed*e.delta,d=(0,_.scale_range)(t,m,h,r,{x:l,y:n});this.plot_view.state.push(\"wheel_zoom\",{range:d});const{maintain_focus:c}=this.model;this.plot_view.update_range(d,{scrolling:!0,maintain_focus:c}),null===(o=this.model.document)||void 0===o||o.interactive_start(this.plot_view.model,(()=>this.plot_view.trigger_ranges_update_event()))}}t.WheelZoomToolView=m,m.__name__=\"WheelZoomToolView\";class d extends n.GestureTool{constructor(e){super(e),this.tool_name=\"Wheel Zoom\",this.tool_icon=r.tool_icon_wheel_zoom,this.event_type=h.is_mobile?\"pinch\":\"scroll\",this.default_order=10}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}t.WheelZoomTool=d,l=d,d.__name__=\"WheelZoomTool\",l.prototype.default_view=m,l.define((({Boolean:e,Number:o})=>({dimensions:[a.Dimensions,\"both\"],maintain_focus:[e,!0],zoom_on_axis:[e,!0],speed:[o,1/600]}))),l.register_alias(\"wheel_zoom\",(()=>new d({dimensions:\"both\"}))),l.register_alias(\"xwheel_zoom\",(()=>new d({dimensions:\"width\"}))),l.register_alias(\"ywheel_zoom\",(()=>new d({dimensions:\"height\"})))},\n function _(o,r,s,e,l){e(),l(\"CrosshairTool\",o(489).CrosshairTool),l(\"CustomJSHover\",o(490).CustomJSHover),l(\"HoverTool\",o(491).HoverTool),l(\"InspectTool\",o(273).InspectTool)},\n function _(s,e,i,t,o){var n;t();const a=s(273),r=s(254),l=s(19),_=s(8),h=s(269);class c extends a.InspectToolView{get overlays(){return[...super.overlays,...this._spans]}initialize(){super.initialize(),this._update_overlays()}connect_signals(){super.connect_signals();const{overlay:s,dimensions:e,line_color:i,line_width:t,line_alpha:o}=this.model.properties;this.on_change([s,e,i,t,o],(()=>{this._update_overlays()}))}_update_overlays(){const{overlay:s}=this.model;if(\"auto\"==s){const{dimensions:e,line_color:i,line_alpha:t,line_width:o}=this.model;function n(s){return new r.Span({dimension:s,location_units:\"canvas\",level:\"overlay\",line_color:i,line_width:o,line_alpha:t})}switch(e){case\"width\":this._spans=[n(\"width\")];break;case\"height\":this._spans=[n(\"height\")];break;case\"both\":this._spans=[n(\"width\"),n(\"height\")]}}else(0,_.isArray)(s)?this._spans=[...s]:this._spans=[s]}_move(s){if(!this.model.active)return;const{sx:e,sy:i}=s;this.plot_view.frame.bbox.contains(e,i)?this._update_spans(e,i):this._update_spans(NaN,NaN)}_move_exit(s){this._update_spans(NaN,NaN)}_update_spans(s,e){const{frame:i}=this.plot_view;function t(s,e,t){const{dimension:o}=s;switch(s.location_units){case\"canvas\":return\"width\"==o?t:e;case\"screen\":{const{xview:s,yview:n}=i.bbox;return\"width\"==o?n.invert(t):s.invert(e)}case\"data\":{const{x_scale:s,y_scale:n}=i;return\"width\"==o?n.invert(t):s.invert(e)}}}for(const i of this._spans)i.location=t(i,s,e)}}i.CrosshairToolView=c,c.__name__=\"CrosshairToolView\";class p extends a.InspectTool{constructor(s){super(s),this.tool_name=\"Crosshair\",this.tool_icon=h.tool_icon_crosshair}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}i.CrosshairTool=p,n=p,p.__name__=\"CrosshairTool\",n.prototype.default_view=c,n.define((({Alpha:s,Number:e,Color:i,Auto:t,Tuple:o,Ref:n,Or:a})=>({overlay:[a(t,n(r.Span),o(n(r.Span),n(r.Span))),\"auto\"],dimensions:[l.Dimensions,\"both\"],line_color:[i,\"black\"],line_width:[e,1],line_alpha:[s,1]}))),n.register_alias(\"crosshair\",(()=>new p))},\n function _(e,s,t,r,n){var o;r();const a=e(50),u=e(9),c=e(38);class i extends a.Model{constructor(e){super(e)}get values(){return(0,u.values)(this.args)}_make_code(e,s,t,r){return new Function(...(0,u.keys)(this.args),e,s,t,(0,c.use_strict)(r))}format(e,s,t){return this._make_code(\"value\",\"format\",\"special_vars\",this.code)(...this.values,e,s,t)}}t.CustomJSHover=i,o=i,i.__name__=\"CustomJSHover\",o.define((({Unknown:e,String:s,Dict:t})=>({args:[t(e),{}],code:[s,\"\"]})))},\n function _(e,t,n,s,i){var o;s();const r=e(1),l=e(59),a=e(56),c=e(19),_=r.__importStar(e(210)),d=e(15),p=e(12),u=e(21),h=e(32),m=e(9),y=e(170),f=e(8),v=e(269),x=r.__importStar(e(450)),w=e(448),g=e(492),b=e(212),C=e(329),T=e(201),S=e(333),$=e(211),k=e(214),V=e(200),A=e(199),M=e(409),H=e(95),R=e(490),z=e(273);function G(e,t,n,s){const i={x:n[e],y:s[e]},o={x:n[e+1],y:s[e+1]},{sx:r,sy:l}=t,[a,c]=function(){if(\"span\"==t.type)return\"h\"==t.direction?[Math.abs(i.x-r),Math.abs(o.x-r)]:[Math.abs(i.y-l),Math.abs(o.y-l)];const e={x:r,y:l};return[_.dist_2_pts(i,e),_.dist_2_pts(o,e)]}();return a<c?[[i.x,i.y],e]:[[o.x,o.y],e+1]}function P(e,t,n){return[[e[n],t[n]],n]}n._nearest_line_hit=G,n._line_hit=P;class N extends z.InspectToolView{constructor(){super(...arguments),this.ttmodels=new Map,this._ttviews=new Map}*children(){yield*super.children(),yield*this._ttviews.values(),null!=this._template_view&&(yield this._template_view)}async lazy_initialize(){await super.lazy_initialize(),await this._update_ttmodels();const{tooltips:e}=this.model;e instanceof g.Template&&(this._template_view=await(0,l.build_view)(e,{parent:this.plot_view.canvas}),this._template_view.render())}remove(){var e;null===(e=this._template_view)||void 0===e||e.remove(),(0,l.remove_views)(this._ttviews),super.remove()}connect_signals(){super.connect_signals();const e=this.plot_view.model.properties.renderers,{renderers:t,tooltips:n}=this.model.properties;this.on_change(n,(()=>delete this._template_el)),this.on_change([e,t,n],(async()=>await this._update_ttmodels()))}async _update_ttmodels(){const{ttmodels:e}=this;e.clear();const{tooltips:t}=this.model;if(null==t)return;const{computed_renderers:n}=this;for(const t of n){const n=new w.Tooltip({content:document.createElement(\"div\"),attachment:this.model.attachment,show_arrow:this.model.show_arrow,interactive:!1,visible:!0,position:null,target:this.parent.canvas.overlays_el});t instanceof A.GlyphRenderer?e.set(t,n):t instanceof M.GraphRenderer&&(e.set(t.node_renderer,n),e.set(t.edge_renderer,n))}await(0,l.build_views)(this._ttviews,[...e.values()],{parent:this.plot_view});const s=[...function*(){for(const e of n)e instanceof A.GlyphRenderer?yield e:e instanceof M.GraphRenderer&&(yield e.node_renderer,yield e.edge_renderer)}()],i=this._slots.get(this.update);if(null!=i){const e=new Set(s.map((e=>e.data_source)));d.Signal.disconnect_receiver(this,i,e)}for(const e of s)this.connect(e.data_source.inspect,this.update)}get computed_renderers(){const{renderers:e}=this.model,t=this.plot_view.model.data_renderers;return(0,H.compute_renderers)(e,t)}_clear(){this._inspect(1/0,1/0);for(const[,e]of this.ttmodels)e.clear()}_move(e){if(!this.model.active)return;const{sx:t,sy:n}=e;this.plot_view.frame.bbox.contains(t,n)?this._inspect(t,n):this._clear()}_move_exit(){this._clear()}_inspect(e,t){let n;if(\"mouse\"==this.model.mode)n={type:\"point\",sx:e,sy:t};else{n={type:\"span\",direction:\"vline\"==this.model.mode?\"h\":\"v\",sx:e,sy:t}}for(const e of this.computed_renderers){const t=e.get_selection_manager(),s=this.plot_view.renderer_view(e);null!=s&&t.inspect(s,n)}this._emit_callback(n)}_update(e,t,n){var s,i;const o=e.get_selection_manager(),r=o.inspectors.get(e),l=e.view.convert_selection_to_subset(r);if(r.is_empty()&&null==r.view)return void n.clear();const c=o.source,_=this.plot_view.renderer_view(e);if(null==_)return;const{sx:d,sy:u}=t,h=_.coordinates.x_scale,y=_.coordinates.y_scale,f=h.invert(d),v=y.invert(u),{glyph:x}=_,w=[];if(x instanceof $.PatchView){const[t,n]=[d,u],[s,i]=[f,v],o={index:null,glyph_view:x,x:f,y:v,sx:d,sy:u,snap_x:s,snap_y:i,snap_sx:t,snap_sy:n,name:e.name},r=this._render_tooltips(c,o);w.push([t,n,r])}else if(x instanceof k.VAreaView||x instanceof b.HAreaView)for(const t of l.line_indices){const[n,s]=[f,v],[i,o]=[d,u],r={index:t,glyph_view:x,x:f,y:v,sx:d,sy:u,snap_x:n,snap_y:s,snap_sx:i,snap_sy:o,name:e.name,indices:l.line_indices},a=this._render_tooltips(c,r);w.push([i,o,a])}else if(x instanceof T.LineView){const{line_policy:n}=this.model;for(const s of l.line_indices){const[[i,o],[r,a],p]=(()=>{const[e,i]=[x._x,x._y];switch(n){case\"interp\":{const[e,n]=x.get_interpolation_hit(s,t);return[[e,n],[h.compute(e),y.compute(n)],s]}case\"prev\":{const[t,n]=P(x.sx,x.sy,s);return[[e[s+1],i[s+1]],t,n]}case\"next\":{const[t,n]=P(x.sx,x.sy,s+1);return[[e[s+1],i[s+1]],t,n]}case\"nearest\":{const[n,o]=G(s,t,x.sx,x.sy);return[[e[o],i[o]],n,o]}case\"none\":{const e=_.coordinates.x_scale,t=_.coordinates.y_scale;return[[e.invert(d),t.invert(u)],[d,u],s]}}})(),m={index:p,glyph_view:x,x:f,y:v,sx:d,sy:u,snap_x:i,snap_y:o,snap_sx:r,snap_sy:a,name:e.name,indices:l.line_indices},g=this._render_tooltips(c,m);w.push([r,a,g])}}else if(x instanceof C.ImageBaseView)for(const t of r.image_indices){const[n,s]=[d,u],[i,o]=[f,v],r={index:t.index,glyph_view:x,x:f,y:v,sx:d,sy:u,snap_x:i,snap_y:o,snap_sx:n,snap_sy:s,name:e.name,image_index:t},l=this._render_tooltips(c,r);w.push([n,s,l])}else for(const n of l.indices)if(x instanceof S.MultiLineView&&!(0,m.is_empty)(l.multiline_indices)){const{line_policy:s}=this.model;for(const i of l.multiline_indices[n.toString()]){const[[o,r],[a,_],p]=function(){if(\"interp\"==s){const[e,s]=x.get_interpolation_hit(n,i,t);return[[e,s],[h.compute(e),y.compute(s)],i]}const[e,o]=[x._xs.get(n),x._ys.get(n)];if(\"prev\"==s){const[t,s]=P(x.sxs.get(n),x.sys.get(n),i);return[[e[i],o[i]],t,s]}if(\"next\"==s){const[t,s]=P(x.sxs.get(n),x.sys.get(n),i+1);return[[e[i],o[i]],t,s]}if(\"nearest\"==s){const[s,r]=G(i,t,x.sxs.get(n),x.sys.get(n));return[[e[r],o[r]],s,r]}throw new Error(\"shouldn't have happened\")}(),m={index:e.view.convert_indices_from_subset([n])[0],glyph_view:x,x:f,y:v,sx:d,sy:u,snap_x:o,snap_y:r,snap_sx:a,snap_sy:_,name:e.name,indices:l.multiline_indices,segment_index:p},g=this._render_tooltips(c,m);w.push([a,_,g])}}else{const t=null===(s=x._x)||void 0===s?void 0:s[n],o=null===(i=x._y)||void 0===i?void 0:i[n],{point_policy:r,anchor:a}=this.model,[_,p]=function(){if(\"snap_to_data\"==r){const e=x.get_anchor_point(a,n,[d,u]);if(null!=e)return[e.x,e.y];const t=x.get_anchor_point(\"center\",n,[d,u]);return null!=t?[t.x,t.y]:[d,u]}return[d,u]}(),h={index:e.view.convert_indices_from_subset([n])[0],glyph_view:x,x:f,y:v,sx:d,sy:u,snap_x:t,snap_y:o,snap_sx:_,snap_sy:p,name:e.name,indices:l.indices},m=this._render_tooltips(c,h);w.push([_,p,m])}const{bbox:g}=this.plot_view.frame,V=w.filter((([e,t])=>g.contains(e,t)));if(0==V.length)n.clear();else{const{content:e}=n;(0,p.assert)(e instanceof Element),(0,a.empty)(e);for(const[,,t]of V)null!=t&&e.appendChild(t);const[t,s]=V[V.length-1];n.setv({position:[t,s]},{check_eq:!1})}}update([e,{geometry:t}]){if(!this.model.active)return;if(\"point\"!=t.type&&\"span\"!=t.type)return;if(\"ignore\"==this.model.muted_policy&&e.muted)return;const n=this.ttmodels.get(e);(0,f.is_undefined)(n)||this._update(e,t,n)}_emit_callback(e){const{callback:t}=this.model;if(null!=t)for(const n of this.computed_renderers){if(!(n instanceof A.GlyphRenderer))continue;const s=this.plot_view.renderer_view(n);if(null==s)continue;const{x_scale:i,y_scale:o}=s.coordinates,r=i.invert(e.sx),l=o.invert(e.sy),a=n.data_source.inspected;t.execute(this.model,{geometry:Object.assign({x:r,y:l},e),renderer:n,index:a})}}_create_template(e){const t=(0,a.div)({style:{display:\"table\",borderSpacing:\"2px\"}});for(const[n]of e){const e=(0,a.div)({style:{display:\"table-row\"}});t.appendChild(e);const s=(0,a.div)({style:{display:\"table-cell\"},class:x.tooltip_row_label},0!=n.length?`${n}: `:\"\");e.appendChild(s);const i=(0,a.span)();i.dataset.value=\"\";const o=(0,a.span)({class:x.tooltip_color_block},\" \");o.dataset.swatch=\"\",(0,a.undisplay)(o);const r=(0,a.div)({style:{display:\"table-cell\"},class:x.tooltip_row_value},i,o);e.appendChild(r)}return t}_render_template(e,t,n,s){const i=e.cloneNode(!0),o=(0,f.is_undefined)(s.image_index)?s.index:s.image_index,r=i.querySelectorAll(\"[data-value]\"),l=i.querySelectorAll(\"[data-swatch]\"),c=/\\$color(\\[.*\\])?:(\\w*)/,_=/\\$swatch:(\\w*)/;for(const[[,e],i]of(0,h.enumerate)(t)){const t=e.match(_),d=e.match(c);if(null!=t||null!=d){if(null!=t){const[,e]=t,s=n.get_column(e);if(null==s)r[i].textContent=`${e} unknown`;else{const e=(0,f.isNumber)(o)?s[o]:null;null!=e&&(l[i].style.backgroundColor=(0,u.color2css)(e),(0,a.display)(l[i]))}}if(null!=d){const[,e=\"\",t]=d,s=n.get_column(t);if(null==s){r[i].textContent=`${t} unknown`;continue}const c=e.indexOf(\"hex\")>=0,_=e.indexOf(\"swatch\")>=0,p=(0,f.isNumber)(o)?s[o]:null;if(null==p){r[i].textContent=\"(null)\";continue}r[i].textContent=c?(0,u.color2hex)(p):(0,u.color2css)(p),_&&(l[i].style.backgroundColor=(0,u.color2css)(p),(0,a.display)(l[i]))}}else{const t=(0,y.replace_placeholders)(e.replace(\"$~\",\"$data_\"),n,o,this.model.formatters,s);if((0,f.isString)(t))r[i].textContent=t;else for(const e of t)r[i].appendChild(e)}}return i}_render_tooltips(e,t){var n;const{tooltips:s}=this.model,i=t.index;if((0,f.isString)(s)){const n=(0,y.replace_placeholders)({html:s},e,i,this.model.formatters,t);return(0,a.div)(n)}if((0,f.isFunction)(s))return s(e,t);if(s instanceof g.Template)return this._template_view.update(e,i,t),this._template_view.el;if(null!=s){const i=null!==(n=this._template_el)&&void 0!==n?n:this._template_el=this._create_template(s);return this._render_template(i,s,e,t)}return null}}n.HoverToolView=N,N.__name__=\"HoverToolView\";class O extends z.InspectTool{constructor(e){super(e),this.tool_name=\"Hover\",this.tool_icon=v.tool_icon_hover}}n.HoverTool=O,o=O,O.__name__=\"HoverTool\",o.prototype.default_view=N,o.define((({Any:e,Boolean:t,String:n,Array:s,Tuple:i,Dict:o,Or:r,Ref:l,Function:a,Auto:_,Nullable:d})=>({tooltips:[d(r(l(g.Template),n,s(i(n,n)),a())),[[\"index\",\"$index\"],[\"data (x, y)\",\"($x, $y)\"],[\"screen (x, y)\",\"($sx, $sy)\"]]],formatters:[o(r(l(R.CustomJSHover),y.FormatterType)),{}],renderers:[r(s(l(V.DataRenderer)),_),\"auto\"],mode:[c.HoverMode,\"mouse\"],muted_policy:[c.MutedPolicy,\"show\"],point_policy:[c.PointPolicy,\"snap_to_data\"],line_policy:[c.LinePolicy,\"nearest\"],show_arrow:[t,!0],anchor:[c.Anchor,\"center\"],attachment:[c.TooltipAttachment,\"horizontal\"],callback:[d(e),null]}))),o.register_alias(\"hover\",(()=>new O))},\n function _(e,i,t,a,s){var n;a();const o=e(493),l=e(494),c=e(495),_=e(59);class r extends o.DOMElementView{constructor(){super(...arguments),this.action_views=new Map}*children(){yield*super.children(),yield*this.action_views.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,_.build_views)(this.action_views,this.model.actions,{parent:this})}remove(){(0,_.remove_views)(this.action_views),super.remove()}update(e,i,t={}){!function a(s){for(const n of s.child_views.values())n instanceof c.PlaceholderView?n.update(e,i,t):n instanceof o.DOMElementView&&a(n)}(this);for(const a of this.action_views.values())a.update(e,i,t)}}t.TemplateView=r,r.__name__=\"TemplateView\",r.tag_name=\"div\";class v extends o.DOMElement{}t.Template=v,n=v,v.__name__=\"Template\",n.prototype.default_view=r,n.define((({Array:e,Ref:i})=>({actions:[e(i(l.Action)),[]]})))},\n function _(e,t,i,s,l){var n;s();const r=e(442),o=e(258),c=e(257),h=e(59),a=e(9),d=e(8);class _ extends r.DOMNodeView{constructor(){super(...arguments),this.child_views=new Map}*children(){yield*super.children(),yield*this.child_views.values()}async lazy_initialize(){await super.lazy_initialize();const e=this.model.children.filter((e=>!(0,d.isString)(e)));await(0,h.build_views)(this.child_views,e,{parent:this})}remove(){(0,h.remove_views)(this.child_views),super.remove()}render(){const{style:e}=this.model;if(null!=e)if(e instanceof o.Styles)for(const t of e){const e=t.get_value();if((0,d.isString)(e)){const i=t.attr.replace(/_/g,\"-\");this.el.style.hasOwnProperty(i)&&this.el.style.setProperty(i,e)}}else for(const[t,i]of(0,a.entries)(e)){const e=t.replace(/_/g,\"-\");this.el.style.hasOwnProperty(e)&&this.el.style.setProperty(e,i)}for(const e of this.model.children)if((0,d.isString)(e)){const t=document.createTextNode(e);this.el.appendChild(t)}else{this.child_views.get(e).render_to(this.el)}this.finish()}}i.DOMElementView=_,_.__name__=\"DOMElementView\";class y extends r.DOMNode{constructor(e){super(e)}}i.DOMElement=y,n=y,y.__name__=\"DOMElement\",n.define((({String:e,Array:t,Dict:i,Or:s,Nullable:l,Ref:n})=>({style:[l(s(n(o.Styles),i(e))),null],children:[t(s(e,n(r.DOMNode),n(c.UIElement))),[]]})))},\n function _(e,o,_,n,c){n();const s=e(50),t=e(54);class i extends t.View{}_.ActionView=i,i.__name__=\"ActionView\";class d extends s.Model{constructor(e){super(e)}}_.Action=d,d.__name__=\"Action\",d.__module__=\"bokeh.models.dom\"},\n function _(e,a,n,c,l){c();const o=e(442);class s extends o.DOMNodeView{render(){}}n.PlaceholderView=s,s.__name__=\"PlaceholderView\",s.tag_name=\"span\";class _ extends o.DOMNode{constructor(e){super(e)}}n.Placeholder=_,_.__name__=\"Placeholder\"},\n function _(e,l,t,o,a){o(),a(\"Action\",e(494).Action),a(\"ColorRef\",e(497).ColorRef),a(\"DOMElement\",e(493).DOMElement),a(\"DOMNode\",e(442).DOMNode);var S=e(499);a(\"Span\",S.Span),a(\"Div\",S.Div),a(\"Table\",S.Table),a(\"TableRow\",S.TableRow),a(\"HTML\",e(449).HTML),a(\"Index\",e(500).Index),a(\"Placeholder\",e(495).Placeholder),a(\"Styles\",e(258).Styles);var n=e(259);a(\"InlineStyleSheet\",n.InlineStyleSheet),a(\"GlobalInlineStyleSheet\",n.GlobalInlineStyleSheet),a(\"ImportedStyleSheet\",n.ImportedStyleSheet),a(\"GlobalImportedStyleSheet\",n.GlobalImportedStyleSheet),a(\"Template\",e(492).Template),a(\"Text\",e(443).Text),a(\"ToggleGroup\",e(501).ToggleGroup),a(\"ValueOf\",e(502).ValueOf),a(\"ValueRef\",e(498).ValueRef)},\n function _(e,l,t,o,s){var a;o();const n=e(1),_=e(498),i=e(170),r=e(56),c=n.__importStar(e(450));class h extends _.ValueRefView{render(){super.render(),this.value_el=(0,r.span)(),this.swatch_el=(0,r.span)({class:c.tooltip_color_block},\" \"),this.el.appendChild(this.value_el),this.el.appendChild(this.swatch_el)}update(e,l,t){const o=(0,i._get_column_value)(this.model.field,e,l),s=null==o?\"???\":`${o}`;this.el.textContent=s}}t.ColorRefView=h,h.__name__=\"ColorRefView\";class d extends _.ValueRef{constructor(e){super(e)}}t.ColorRef=d,a=d,d.__name__=\"ColorRef\",a.prototype.default_view=h,a.define((({Boolean:e})=>({hex:[e,!0],swatch:[e,!0]})))},\n function _(e,l,t,n,a){var _;n();const o=e(495),s=e(170);class u extends o.PlaceholderView{update(e,l,t){const n=(0,s._get_column_value)(this.model.field,e,l),a=null==n?\"???\":`${n}`;this.el.textContent=a}}t.ValueRefView=u,u.__name__=\"ValueRefView\";class i extends o.Placeholder{constructor(e){super(e)}}t.ValueRef=i,_=i,i.__name__=\"ValueRef\",_.prototype.default_view=u,_.define((({String:e})=>({field:[e]})))},\n function _(e,a,_,n,t){var l,s,i,m;n();const w=e(493);class o extends w.DOMElementView{}_.SpanView=o,o.__name__=\"SpanView\",o.tag_name=\"span\";class d extends w.DOMElement{}_.Span=d,l=d,d.__name__=\"Span\",l.prototype.default_view=o;class p extends w.DOMElementView{}_.DivView=p,p.__name__=\"DivView\",p.tag_name=\"div\";class D extends w.DOMElement{}_.Div=D,s=D,D.__name__=\"Div\",s.prototype.default_view=p;class V extends w.DOMElementView{}_.TableView=V,V.__name__=\"TableView\",V.tag_name=\"table\";class c extends w.DOMElement{}_.Table=c,i=c,c.__name__=\"Table\",i.prototype.default_view=V;class v extends w.DOMElementView{}_.TableRowView=v,v.__name__=\"TableRowView\",v.tag_name=\"tr\";class b extends w.DOMElement{}_.TableRow=b,m=b,b.__name__=\"TableRow\",m.prototype.default_view=v},\n function _(e,n,t,l,d){var o;l();const s=e(495);class _ extends s.PlaceholderView{update(e,n,t){this.el.textContent=null==n?\"(null)\":n.toString()}}t.IndexView=_,_.__name__=\"IndexView\";class a extends s.Placeholder{constructor(e){super(e)}}t.Index=a,o=a,a.__name__=\"Index\",o.prototype.default_view=_},\n function _(e,o,r,t,n){var s;t();const u=e(494),i=e(74),p=e(32);class g extends u.ActionView{update(e,o,r){for(const[e,r]of(0,p.enumerate)(this.model.groups))e.visible=o==r}}r.ToggleGroupView=g,g.__name__=\"ToggleGroupView\";class _ extends u.Action{constructor(e){super(e)}}r.ToggleGroup=_,s=_,_.__name__=\"ToggleGroup\",s.prototype.default_view=g,s.define((({Array:e,Ref:o})=>({groups:[e(o(i.RendererGroup)),[]]})))},\n function _(e,t,n,s,o){var r;s();const i=e(442),a=e(14),l=e(56),c=e(40);class p extends i.DOMNodeView{connect_signals(){super.connect_signals();const{obj:e,attr:t}=this.model;t in e.properties&&this.on_change(e.properties[t],(()=>this.render()))}render(){(0,l.empty)(this.el),this.el.style.display=\"contents\";const e=(()=>{const{obj:e,attr:t}=this.model;if(t in e.properties){const n=e.properties[t].get_value();return(0,c.to_string)(n)}return`<not found: ${e.type}.${t}>`})();this.el.textContent=e}}n.ValueOfView=p,p.__name__=\"ValueOfView\";class _ extends i.DOMNode{constructor(e){super(e)}}n.ValueOf=_,r=_,_.__name__=\"ValueOf\",r.prototype.default_view=p,r.define((({String:e,Ref:t})=>({obj:[t(a.HasProps)],attr:[e]})))},\n ], 0, {\"main\":0,\"tslib\":1,\"index\":2,\"version\":3,\"embed/index\":4,\"document/index\":5,\"document/document\":6,\"base\":7,\"core/util/types\":8,\"core/util/object\":9,\"core/util/array\":10,\"core/util/math\":11,\"core/util/assert\":12,\"core/util/arrayable\":13,\"core/has_props\":14,\"core/signaling\":15,\"core/util/defer\":16,\"core/properties\":17,\"core/logging\":18,\"core/enums\":19,\"core/kinds\":20,\"core/util/color\":21,\"core/util/svg_colors\":22,\"core/types\":23,\"core/util/bitset\":24,\"core/util/eq\":25,\"core/util/platform\":26,\"core/vectorization\":27,\"core/settings\":28,\"core/util/ndarray\":29,\"core/serialization/index\":30,\"core/serialization/serializer\":31,\"core/util/iterator\":32,\"core/serialization/buffer\":33,\"core/util/buffer\":34,\"core/serialization/reps\":35,\"core/diagnostics\":36,\"core/uniforms\":37,\"core/util/string\":38,\"document/events\":39,\"core/util/pretty\":40,\"core/util/cloneable\":41,\"core/patching\":42,\"core/util/set\":43,\"core/util/typed_array\":44,\"core/resolvers\":45,\"core/serialization/deserializer\":46,\"core/util/refs\":47,\"core/util/slice\":48,\"core/util/version\":49,\"model\":50,\"document/defs\":51,\"core/bokeh_events\":52,\"embed/standalone\":53,\"core/view\":54,\"core/dom_view\":55,\"core/dom\":56,\"core/util/bbox\":57,\"styles/base.css\":58,\"core/build_views\":59,\"embed/server\":60,\"client/connection\":61,\"protocol/message\":62,\"protocol/receiver\":63,\"client/session\":64,\"embed/dom\":65,\"embed/notebook\":66,\"protocol/index\":67,\"testing\":68,\"safely\":69,\"models/main\":70,\"models/index\":71,\"models/annotations/index\":72,\"models/annotations/annotation\":73,\"models/renderers/renderer\":74,\"core/visuals/index\":75,\"core/visuals/line\":76,\"core/visuals/visual\":77,\"core/property_mixins\":78,\"core/visuals/fill\":79,\"core/visuals/text\":80,\"core/visuals/hatch\":81,\"core/visuals/patterns\":82,\"core/visuals/image\":83,\"models/coordinates/coordinate_mapping\":84,\"models/scales/scale\":85,\"models/transforms/transform\":86,\"models/ranges/range\":87,\"models/ranges/range1d\":88,\"models/scales/linear_scale\":89,\"models/scales/continuous_scale\":90,\"models/scales/log_scale\":91,\"models/scales/categorical_scale\":92,\"models/ranges/data_range1d\":93,\"models/ranges/data_range\":94,\"models/util\":95,\"models/ranges/factor_range\":96,\"models/annotations/arrow\":97,\"models/annotations/data_annotation\":98,\"models/sources/columnar_data_source\":99,\"core/selection_manager\":100,\"models/selections/selection\":101,\"models/selections/interaction_policy\":102,\"models/sources/data_source\":103,\"models/sources/column_data_source\":104,\"core/util/projections\":105,\"models/annotations/arrow_head\":139,\"models/graphics/marking\":140,\"models/annotations/base_color_bar\":141,\"models/annotations/title\":142,\"models/annotations/text_annotation\":143,\"core/layout/side_panel\":144,\"core/layout/types\":145,\"core/layout/layoutable\":146,\"models/text/base_text\":147,\"models/text/utils\":148,\"models/text/math_text\":149,\"core/util/image\":150,\"core/graphics\":151,\"core/util/text\":152,\"core/util/affine\":153,\"models/text/providers\":154,\"core/util/modules\":155,\"models/text/plain_text\":156,\"models/canvas/cartesian_frame\":157,\"models/axes/index\":158,\"models/axes/axis\":159,\"models/renderers/guide_renderer\":160,\"models/tickers/ticker\":161,\"models/formatters/tick_formatter\":162,\"models/policies/labeling\":163,\"models/axes/categorical_axis\":164,\"models/tickers/categorical_ticker\":165,\"models/formatters/categorical_tick_formatter\":166,\"models/axes/continuous_axis\":167,\"models/axes/datetime_axis\":168,\"models/formatters/datetime_tick_formatter\":169,\"core/util/templating\":170,\"models/tickers/util\":174,\"models/tickers/datetime_ticker\":175,\"models/tickers/adaptive_ticker\":176,\"models/tickers/continuous_ticker\":177,\"models/tickers/composite_ticker\":178,\"models/tickers/days_ticker\":179,\"models/tickers/single_interval_ticker\":180,\"models/tickers/months_ticker\":181,\"models/tickers/years_ticker\":182,\"models/tickers/basic_ticker\":183,\"models/axes/linear_axis\":184,\"models/formatters/basic_tick_formatter\":185,\"models/axes/log_axis\":186,\"models/formatters/log_tick_formatter\":187,\"models/tickers/log_ticker\":188,\"models/axes/mercator_axis\":189,\"models/formatters/mercator_tick_formatter\":190,\"models/tickers/mercator_ticker\":191,\"models/tickers/index\":192,\"models/tickers/fixed_ticker\":193,\"models/tickers/binned_ticker\":194,\"models/mappers/scanning_color_mapper\":195,\"models/mappers/continuous_color_mapper\":196,\"models/mappers/color_mapper\":197,\"models/mappers/mapper\":198,\"models/renderers/glyph_renderer\":199,\"models/renderers/data_renderer\":200,\"models/glyphs/line\":201,\"models/glyphs/xy_glyph\":202,\"models/glyphs/glyph\":203,\"core/util/ragged_array\":204,\"core/util/spatial\":205,\"models/graphics/decoration\":208,\"models/glyphs/utils\":209,\"core/hittest\":210,\"models/glyphs/patch\":211,\"models/glyphs/harea\":212,\"models/glyphs/area\":213,\"models/glyphs/varea\":214,\"models/sources/cds_view\":215,\"models/filters/filter\":216,\"models/filters/all_indices\":217,\"models/filters/intersection_filter\":218,\"models/formatters/index\":219,\"models/formatters/customjs_tick_formatter\":220,\"models/formatters/numeral_tick_formatter\":221,\"models/formatters/printf_tick_formatter\":222,\"models/scales/index\":223,\"models/scales/linear_interpolation_scale\":224,\"models/ranges/index\":225,\"core/layout/index\":226,\"core/layout/alignments\":227,\"core/layout/grid\":228,\"core/layout/border\":229,\"models/annotations/band\":230,\"models/annotations/upper_lower\":231,\"models/annotations/box_annotation\":232,\"models/common/kinds\":233,\"models/common/painting\":234,\"models/common/resolve\":235,\"models/annotations/color_bar\":236,\"models/mappers/index\":237,\"models/mappers/categorical_color_mapper\":238,\"models/mappers/categorical_mapper\":239,\"models/mappers/categorical_marker_mapper\":240,\"models/mappers/categorical_pattern_mapper\":241,\"models/mappers/linear_color_mapper\":242,\"models/mappers/log_color_mapper\":243,\"models/mappers/eqhist_color_mapper\":244,\"models/mappers/stack_color_mapper\":245,\"models/mappers/weighted_stack_color_mapper\":246,\"models/annotations/contour_color_bar\":247,\"models/annotations/label\":248,\"models/annotations/label_set\":249,\"models/annotations/legend\":250,\"models/annotations/legend_item\":251,\"models/annotations/poly_annotation\":252,\"models/annotations/slope\":253,\"models/annotations/span\":254,\"models/annotations/toolbar_panel\":255,\"models/tools/toolbar\":256,\"models/ui/ui_element\":257,\"models/dom/styles\":258,\"models/dom/stylesheets\":259,\"core/util/canvas\":260,\"core/util/svg\":261,\"core/util/random\":262,\"styles/ui.css\":263,\"models/tools/tool\":264,\"models/tools/tool_proxy\":265,\"models/tools/tool_button\":266,\"core/util/menus\":267,\"styles/menus.css\":268,\"styles/icons.css\":269,\"styles/tool_button.css\":270,\"models/tools/gestures/gesture_tool\":271,\"models/tools/on_off_button\":272,\"models/tools/inspectors/inspect_tool\":273,\"models/tools/actions/action_tool\":274,\"models/tools/click_button\":275,\"models/tools/actions/help_tool\":276,\"styles/toolbar.css\":277,\"styles/logo.css\":278,\"models/annotations/whisker\":279,\"models/annotations/html/index\":280,\"models/annotations/html/label\":281,\"models/annotations/html/text_annotation\":282,\"models/annotations/html/label_set\":283,\"models/annotations/html/title\":284,\"models/callbacks/index\":285,\"models/callbacks/customjs\":286,\"models/callbacks/callback\":287,\"models/callbacks/open_url\":288,\"models/callbacks/set_value\":289,\"models/canvas/index\":290,\"models/canvas/canvas\":291,\"core/ui_events\":292,\"core/util/wheel\":294,\"styles/canvas.css\":295,\"models/coordinates/index\":296,\"models/expressions/index\":297,\"models/expressions/expression\":298,\"models/expressions/customjs_expr\":299,\"models/expressions/stack\":300,\"models/expressions/cumsum\":301,\"models/expressions/minimum\":302,\"models/expressions/maximum\":303,\"models/expressions/coordinate_transform\":304,\"models/expressions/polar\":305,\"models/filters/index\":306,\"models/filters/boolean_filter\":307,\"models/filters/customjs_filter\":308,\"models/filters/group_filter\":309,\"models/filters/index_filter\":310,\"models/filters/inversion_filter\":311,\"models/filters/union_filter\":312,\"models/filters/difference_filter\":313,\"models/filters/symmetric_difference_filter\":314,\"models/glyphs/index\":315,\"models/glyphs/annular_wedge\":316,\"models/glyphs/annulus\":317,\"models/glyphs/arc\":318,\"models/glyphs/bezier\":319,\"core/util/algorithms\":320,\"models/glyphs/block\":321,\"models/glyphs/lrtb\":322,\"models/glyphs/circle\":323,\"models/glyphs/ellipse\":324,\"models/glyphs/center_rotatable\":325,\"models/glyphs/hbar\":326,\"models/glyphs/hex_tile\":327,\"models/glyphs/image\":328,\"models/glyphs/image_base\":329,\"models/glyphs/image_rgba\":330,\"models/glyphs/image_stack\":331,\"models/glyphs/image_url\":332,\"models/glyphs/multi_line\":333,\"models/glyphs/multi_polygons\":334,\"models/glyphs/patches\":335,\"models/glyphs/quad\":336,\"models/glyphs/quadratic\":337,\"models/glyphs/ray\":338,\"models/glyphs/rect\":339,\"models/glyphs/scatter\":340,\"models/glyphs/marker\":341,\"models/glyphs/defs\":342,\"models/glyphs/segment\":343,\"models/glyphs/spline\":344,\"core/util/interpolation\":345,\"models/glyphs/step\":346,\"models/glyphs/text\":347,\"models/glyphs/vbar\":348,\"models/glyphs/wedge\":349,\"models/graphics/index\":350,\"models/graphs/index\":351,\"models/graphs/graph_hit_test_policy\":352,\"models/graphs/layout_provider\":353,\"models/graphs/static_layout_provider\":354,\"models/grids/index\":355,\"models/grids/grid\":356,\"models/layouts/index\":357,\"models/layouts/column\":358,\"models/layouts/flex_box\":359,\"models/layouts/layout_dom\":360,\"models/menus/menu\":361,\"models/menus/menu_item\":362,\"models/layouts/alignments\":363,\"models/layouts/grid_box\":364,\"models/layouts/css_grid_box\":365,\"models/layouts/group_box\":366,\"styles/group_box.css\":367,\"models/layouts/hbox\":368,\"models/layouts/row\":369,\"models/layouts/scroll_box\":370,\"models/layouts/spacer\":371,\"models/layouts/tab_panel\":372,\"models/layouts/tabs\":373,\"styles/tabs.css\":374,\"models/layouts/vbox\":375,\"models/menus/index\":376,\"models/menus/action\":377,\"models/ui/icons/icon\":378,\"models/menus/check_action\":379,\"models/menus/section\":380,\"models/menus/divider\":381,\"models/text/index\":382,\"models/transforms/index\":383,\"models/transforms/customjs_transform\":384,\"models/transforms/dodge\":385,\"models/transforms/range_transform\":386,\"models/transforms/interpolator\":387,\"models/transforms/jitter\":388,\"models/random/random_generator\":389,\"models/transforms/linear_interpolator\":390,\"models/transforms/step_interpolator\":391,\"models/plots/index\":392,\"models/plots/gmap_plot\":393,\"models/plots/plot\":394,\"models/plots/plot_canvas\":395,\"core/util/throttle\":396,\"models/plots/range_manager\":397,\"models/plots/state_manager\":398,\"styles/plots.css\":399,\"models/plots/gmap_plot_canvas\":400,\"models/plots/gmap\":401,\"models/plots/grid_plot\":402,\"models/plots/figure\":403,\"models/policies/index\":404,\"models/random/index\":405,\"models/random/park_miller_lcg\":406,\"models/renderers/index\":407,\"models/renderers/contour_renderer\":408,\"models/renderers/graph_renderer\":409,\"models/selections/index\":410,\"models/selectors/index\":411,\"models/selectors/by_id\":412,\"models/selectors/selector\":413,\"models/selectors/by_class\":414,\"models/selectors/by_css\":415,\"models/selectors/by_xpath\":416,\"models/sources/index\":417,\"models/sources/server_sent_data_source\":418,\"models/sources/web_data_source\":419,\"models/sources/ajax_data_source\":420,\"models/sources/geojson_data_source\":421,\"models/tiles/index\":422,\"models/tiles/bbox_tile_source\":423,\"models/tiles/mercator_tile_source\":424,\"models/tiles/tile_source\":425,\"models/tiles/tile_utils\":426,\"models/tiles/quadkey_tile_source\":427,\"models/tiles/tile_renderer\":428,\"models/tiles/wmts_tile_source\":429,\"styles/attribution.css\":430,\"models/tiles/tms_tile_source\":431,\"models/textures/index\":432,\"models/textures/canvas_texture\":433,\"models/textures/texture\":434,\"models/textures/image_url_texture\":435,\"models/ui/index\":436,\"models/ui/icons/index\":437,\"models/ui/icons/builtin_icon\":438,\"models/ui/icons/svg_icon\":439,\"models/ui/icons/tabler_icon\":440,\"models/ui/dialog\":441,\"models/dom/dom_node\":442,\"models/dom/text\":443,\"styles/dialogs.css\":444,\"models/ui/examiner\":445,\"styles/examiner.css\":446,\"models/ui/pane\":447,\"models/ui/tooltip\":448,\"models/dom/html\":449,\"styles/tooltips.css\":450,\"models/tools/index\":451,\"models/tools/actions/index\":452,\"models/tools/actions/copy_tool\":453,\"models/tools/actions/custom_action\":454,\"models/tools/actions/fullscreen_tool\":455,\"models/tools/actions/examine_tool\":456,\"models/tools/actions/redo_tool\":457,\"models/tools/actions/plot_action_tool\":458,\"models/tools/actions/reset_tool\":459,\"models/tools/actions/save_tool\":460,\"models/tools/actions/undo_tool\":461,\"models/tools/actions/zoom_in_tool\":462,\"models/tools/actions/zoom_base_tool\":463,\"core/util/zoom\":464,\"models/tools/actions/zoom_out_tool\":465,\"models/tools/edit/index\":466,\"models/tools/edit/edit_tool\":467,\"models/tools/edit/box_edit_tool\":468,\"models/tools/edit/freehand_draw_tool\":469,\"models/tools/edit/line_edit_tool\":470,\"models/tools/edit/line_tool\":471,\"models/tools/edit/point_draw_tool\":472,\"models/tools/edit/poly_draw_tool\":473,\"models/tools/edit/poly_tool\":474,\"models/tools/edit/poly_edit_tool\":475,\"models/tools/gestures/index\":476,\"models/tools/gestures/box_select_tool\":477,\"models/tools/gestures/region_select_tool\":478,\"models/tools/gestures/select_tool\":479,\"models/tools/gestures/box_zoom_tool\":480,\"models/tools/gestures/lasso_select_tool\":481,\"models/tools/gestures/poly_select_tool\":482,\"models/tools/gestures/pan_tool\":483,\"models/tools/gestures/range_tool\":484,\"models/tools/gestures/tap_tool\":485,\"models/tools/gestures/wheel_pan_tool\":486,\"models/tools/gestures/wheel_zoom_tool\":487,\"models/tools/inspectors/index\":488,\"models/tools/inspectors/crosshair_tool\":489,\"models/tools/inspectors/customjs_hover\":490,\"models/tools/inspectors/hover_tool\":491,\"models/dom/template\":492,\"models/dom/dom_element\":493,\"models/dom/action\":494,\"models/dom/placeholder\":495,\"models/dom/index\":496,\"models/dom/color_ref\":497,\"models/dom/value_ref\":498,\"models/dom/elements\":499,\"models/dom/index_\":500,\"models/dom/toggle_group\":501,\"models/dom/value_of\":502}, {});});\n\n /* END bokeh.min.js */\n },\n function(Bokeh) {\n /* BEGIN bokeh-gl.min.js */\n /*!\n * Copyright (c) 2012 - 2023, 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(root, factory) {\n factory(root[\"Bokeh\"], \"3.1.1\");\n })(this, function(Bokeh, version) {\n let define;\n return (function(modules, entry, aliases, externals) {\n const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n if (bokeh != null) {\n return bokeh.register_plugin(modules, entry, aliases);\n } else {\n throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n }\n })\n ({\n 503: function _(n,c,f,i,o){i(),n(504)},\n 504: function _(t,_,r,e,o){e();const a=t(1);o(\"get_regl\",t(505).get_regl),a.__exportStar(t(513),r),a.__exportStar(t(517),r),a.__exportStar(t(518),r),a.__exportStar(t(520),r),a.__exportStar(t(521),r),a.__exportStar(t(522),r),a.__exportStar(t(523),r),a.__exportStar(t(524),r),a.__exportStar(t(519),r),a.__exportStar(t(525),r)},\n 505: function _(t,i,e,_,a){_();const r=t(1),o=r.__importDefault(t(506)),n=t(507),s=r.__importDefault(t(509)),l=r.__importDefault(t(510)),p=r.__importDefault(t(511)),h=r.__importDefault(t(512));let c=null;e.get_regl=function(t){return null==c&&(c=new u(t)),c};class u{constructor(t){try{this._regl=(0,o.default)({gl:t,extensions:[\"ANGLE_instanced_arrays\",\"EXT_blend_minmax\"]}),this._regl_available=!0,this._line_geometry=this._regl.buffer({usage:\"static\",type:\"float\",data:[[-2,0],[-1,-1],[1,-1],[1,1],[-1,1]]}),this._line_triangles=this._regl.elements({usage:\"static\",primitive:\"triangle fan\",data:[0,1,2,3,4]})}catch(t){this._regl_available=!1}}buffer(t){return this._regl.buffer(t)}clear(t,i){this._viewport={x:0,y:0,width:t,height:i},this._regl.clear({color:[0,0,0,0]})}get has_webgl(){return this._regl_available}get scissor(){return this._scissor}set_scissor(t,i,e,_){this._scissor={x:t,y:i,width:e,height:_}}get viewport(){return this._viewport}dashed_line(){return null==this._dashed_line&&(this._dashed_line=function(t,i,e){const _={vert:`#define DASHED\\n\\n${s.default}`,frag:`#define DASHED\\n\\n${l.default}`,attributes:{a_position:{buffer:i,divisor:0},a_point_prev:(t,i)=>i.points.to_attribute_config(),a_point_start:(t,i)=>i.points.to_attribute_config(2*Float32Array.BYTES_PER_ELEMENT),a_point_end:(t,i)=>i.points.to_attribute_config(4*Float32Array.BYTES_PER_ELEMENT),a_point_next:(t,i)=>i.points.to_attribute_config(6*Float32Array.BYTES_PER_ELEMENT),a_show_prev:(t,i)=>i.show.to_attribute_config(),a_show_curr:(t,i)=>i.show.to_attribute_config(Uint8Array.BYTES_PER_ELEMENT),a_show_next:(t,i)=>i.show.to_attribute_config(2*Uint8Array.BYTES_PER_ELEMENT),a_length_so_far:(t,i)=>i.length_so_far.to_attribute_config()},uniforms:{u_canvas_size:t.prop(\"canvas_size\"),u_pixel_ratio:t.prop(\"pixel_ratio\"),u_antialias:t.prop(\"antialias\"),u_line_color:t.prop(\"line_color\"),u_linewidth:t.prop(\"linewidth\"),u_miter_limit:t.prop(\"miter_limit\"),u_line_join:t.prop(\"line_join\"),u_line_cap:t.prop(\"line_cap\"),u_dash_tex:t.prop(\"dash_tex\"),u_dash_tex_info:t.prop(\"dash_tex_info\"),u_dash_scale:t.prop(\"dash_scale\"),u_dash_offset:t.prop(\"dash_offset\")},elements:e,instances:t.prop(\"nsegments\"),blend:{enable:!0,equation:\"max\",func:{srcRGB:1,srcAlpha:1,dstRGB:1,dstAlpha:1}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(\"scissor\")},viewport:t.prop(\"viewport\")};return t(_)}(this._regl,this._line_geometry,this._line_triangles)),this._dashed_line}get_dash(t){return null==this._dash_cache&&(this._dash_cache=new n.DashCache(this._regl)),this._dash_cache.get(t)}marker_no_hatch(t){null==this._marker_no_hatch_map&&(this._marker_no_hatch_map=new Map);let i=this._marker_no_hatch_map.get(t);return null==i&&(i=function(t,i){const e={vert:p.default,frag:` #define USE_${i.toUpperCase()}\\n ${h.default}\\n `,attributes:{a_position:{buffer:t.buffer([[-.5,-.5],[-.5,.5],[.5,.5],[.5,-.5]]),divisor:0},a_center:(t,i)=>i.center.to_attribute_config(),a_width:(t,i)=>i.width.to_attribute_config(),a_height:(t,i)=>i.height.to_attribute_config(),a_angle:(t,i)=>i.angle.to_attribute_config(),a_linewidth:(t,i)=>i.linewidth.to_attribute_config(),a_line_color:(t,i)=>i.line_color.to_attribute_config(),a_fill_color:(t,i)=>i.fill_color.to_attribute_config(),a_line_cap:(t,i)=>i.line_cap.to_attribute_config(),a_line_join:(t,i)=>i.line_join.to_attribute_config(),a_show:(t,i)=>i.show.to_attribute_config()},uniforms:{u_canvas_size:t.prop(\"canvas_size\"),u_pixel_ratio:t.prop(\"pixel_ratio\"),u_antialias:t.prop(\"antialias\"),u_border_radius:t.prop(\"border_radius\"),u_size_hint:t.prop(\"size_hint\")},count:4,primitive:\"triangle fan\",instances:t.prop(\"nmarkers\"),blend:{enable:!0,func:{srcRGB:\"one\",srcAlpha:\"one\",dstRGB:\"one minus src alpha\",dstAlpha:\"one minus src alpha\"}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(\"scissor\")},viewport:t.prop(\"viewport\")};return t(e)}(this._regl,t),this._marker_no_hatch_map.set(t,i)),i}marker_hatch(t){null==this._marker_hatch_map&&(this._marker_hatch_map=new Map);let i=this._marker_hatch_map.get(t);return null==i&&(i=function(t,i){const e={vert:`#define HATCH\\n${p.default}`,frag:`#define USE_${i.toUpperCase()}\\n#define HATCH\\n${h.default}`,attributes:{a_position:{buffer:t.buffer([[-.5,-.5],[-.5,.5],[.5,.5],[.5,-.5]]),divisor:0},a_center:(t,i)=>i.center.to_attribute_config(),a_width:(t,i)=>i.width.to_attribute_config(),a_height:(t,i)=>i.height.to_attribute_config(),a_angle:(t,i)=>i.angle.to_attribute_config(),a_linewidth:(t,i)=>i.linewidth.to_attribute_config(),a_line_color:(t,i)=>i.line_color.to_attribute_config(),a_fill_color:(t,i)=>i.fill_color.to_attribute_config(),a_line_cap:(t,i)=>i.line_cap.to_attribute_config(),a_line_join:(t,i)=>i.line_join.to_attribute_config(),a_show:(t,i)=>i.show.to_attribute_config(),a_hatch_pattern:(t,i)=>i.hatch_pattern.to_attribute_config(),a_hatch_scale:(t,i)=>i.hatch_scale.to_attribute_config(),a_hatch_weight:(t,i)=>i.hatch_weight.to_attribute_config(),a_hatch_color:(t,i)=>i.hatch_color.to_attribute_config()},uniforms:{u_canvas_size:t.prop(\"canvas_size\"),u_pixel_ratio:t.prop(\"pixel_ratio\"),u_antialias:t.prop(\"antialias\"),u_border_radius:t.prop(\"border_radius\"),u_size_hint:t.prop(\"size_hint\")},count:4,primitive:\"triangle fan\",instances:t.prop(\"nmarkers\"),blend:{enable:!0,func:{srcRGB:\"one\",srcAlpha:\"one\",dstRGB:\"one minus src alpha\",dstAlpha:\"one minus src alpha\"}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(\"scissor\")},viewport:t.prop(\"viewport\")};return t(e)}(this._regl,t),this._marker_hatch_map.set(t,i)),i}solid_line(){return null==this._solid_line&&(this._solid_line=function(t,i,e){const _={vert:s.default,frag:l.default,attributes:{a_position:{buffer:i,divisor:0},a_point_prev:(t,i)=>i.points.to_attribute_config(),a_point_start:(t,i)=>i.points.to_attribute_config(2*Float32Array.BYTES_PER_ELEMENT),a_point_end:(t,i)=>i.points.to_attribute_config(4*Float32Array.BYTES_PER_ELEMENT),a_point_next:(t,i)=>i.points.to_attribute_config(6*Float32Array.BYTES_PER_ELEMENT),a_show_prev:(t,i)=>i.show.to_attribute_config(),a_show_curr:(t,i)=>i.show.to_attribute_config(Uint8Array.BYTES_PER_ELEMENT),a_show_next:(t,i)=>i.show.to_attribute_config(2*Uint8Array.BYTES_PER_ELEMENT)},uniforms:{u_canvas_size:t.prop(\"canvas_size\"),u_pixel_ratio:t.prop(\"pixel_ratio\"),u_antialias:t.prop(\"antialias\"),u_line_color:t.prop(\"line_color\"),u_linewidth:t.prop(\"linewidth\"),u_miter_limit:t.prop(\"miter_limit\"),u_line_join:t.prop(\"line_join\"),u_line_cap:t.prop(\"line_cap\")},elements:e,instances:t.prop(\"nsegments\"),blend:{enable:!0,equation:\"max\",func:{srcRGB:1,srcAlpha:1,dstRGB:1,dstAlpha:1}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(\"scissor\")},viewport:t.prop(\"viewport\")};return t(_)}(this._regl,this._line_geometry,this._line_triangles)),this._solid_line}}e.ReglWrapper=u,u.__name__=\"ReglWrapper\"},\n 506: function _(e,t,r,n,a){var i,o;i=this,o=function(){\"use strict\";var e=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray},t=function(e,t){for(var r=Object.keys(t),n=0;n<r.length;++n)e[r[n]]=t[r[n]];return e},r=\"\\n\";function n(e){var t=new Error(\"(regl) \"+e);throw console.error(t),t}function a(e,t){e||n(t)}function i(e){return e?\": \"+e:\"\"}function o(e,t){switch(t){case\"number\":return\"number\"==typeof e;case\"object\":return\"object\"==typeof e;case\"string\":return\"string\"==typeof e;case\"boolean\":return\"boolean\"==typeof e;case\"function\":return\"function\"==typeof e;case\"undefined\":return void 0===e;case\"symbol\":return\"symbol\"==typeof e}}function f(e,t,r){t.indexOf(e)<0&&n(\"invalid value\"+i(r)+\". must be one of: \"+t)}var u=[\"gl\",\"canvas\",\"container\",\"attributes\",\"pixelRatio\",\"extensions\",\"optionalExtensions\",\"profile\",\"onDone\"];function s(e,t){for(e+=\"\";e.length<t;)e=\" \"+e;return e}function c(){this.name=\"unknown\",this.lines=[],this.index={},this.hasErrors=!1}function l(e,t){this.number=e,this.line=t,this.errors=[]}function d(e,t,r){this.file=e,this.line=t,this.message=r}function m(){return\"unknown\"}function p(){return\"unknown\"}function h(e,t){var r,n=e.split(\"\\n\"),a=1,i=0,o={unknown:new c,0:new c};o.unknown.name=o[0].name=t||\"unknown\",o.unknown.lines.push(new l(0,\"\"));for(var f=0;f<n.length;++f){var u=n[f],s=/^\\s*#\\s*(\\w+)\\s+(.+)\\s*$/.exec(u);if(s)switch(s[1]){case\"line\":var d=/(\\d+)(\\s+\\d+)?/.exec(s[2]);d&&(a=0|d[1],d[2]&&((i=0|d[2])in o||(o[i]=new c)));break;case\"define\":var m=/SHADER_NAME(_B64)?\\s+(.*)$/.exec(s[2]);m&&(o[i].name=m[1]?(r=m[2],\"undefined\"!=typeof atob?atob(r):\"base64:\"+r):m[2])}o[i].lines.push(new l(a++,u))}return Object.keys(o).forEach((function(e){var t=o[e];t.lines.forEach((function(e){t.index[e.number]=e}))})),o}function b(e){e._commandRef=\"unknown\"}function v(e,t){n(e+\" in command \"+(t||\"unknown\"))}function g(e,t,r,n){o(e,t)||v(\"invalid parameter type\"+i(r)+\". expected \"+t+\", got \"+typeof e,n||\"unknown\")}var y=33071,x=9728,w=9984,A=9985,_=9986,k=9987,S=5126,O=32819,E=32820,T=33635,D=34042,j={};function C(e,t){return e===E||e===O||e===T?2:e===D?4:j[e]*t}function z(e){return!(e&e-1||!e)}j[5120]=j[5121]=1,j[5122]=j[5123]=j[36193]=j[T]=j[O]=j[E]=2,j[5124]=j[5125]=j[S]=j[D]=4;var F=t(a,{optional:function(e){e()},raise:n,commandRaise:v,command:function(e,t,r){e||v(t,r||\"unknown\")},parameter:function(e,t,r){e in t||n(\"unknown parameter (\"+e+\")\"+i(r)+\". possible values: \"+Object.keys(t).join())},commandParameter:function(e,t,r,n){e in t||v(\"unknown parameter (\"+e+\")\"+i(r)+\". possible values: \"+Object.keys(t).join(),n||\"unknown\")},constructor:function(e){Object.keys(e).forEach((function(e){u.indexOf(e)<0&&n('invalid regl constructor argument \"'+e+'\". must be one of '+u)}))},type:function(e,t,r){o(e,t)||n(\"invalid parameter type\"+i(r)+\". expected \"+t+\", got \"+typeof e)},commandType:g,isTypedArray:function(t,r){e(t)||n(\"invalid parameter type\"+i(r)+\". must be a typed array\")},nni:function(e,t){e>=0&&(0|e)===e||n(\"invalid parameter type, (\"+e+\")\"+i(t)+\". must be a nonnegative integer\")},oneOf:f,shaderError:function(e,t,n,i,o){if(!e.getShaderParameter(t,e.COMPILE_STATUS)){var f=e.getShaderInfoLog(t),u=i===e.FRAGMENT_SHADER?\"fragment\":\"vertex\";g(n,\"string\",u+\" shader source must be a string\",o);var c=h(n,o),l=function(e){var t=[];return e.split(\"\\n\").forEach((function(e){if(!(e.length<5)){var r=/^ERROR:\\s+(\\d+):(\\d+):\\s*(.*)$/.exec(e);r?t.push(new d(0|r[1],0|r[2],r[3].trim())):e.length>0&&t.push(new d(\"unknown\",0,e))}})),t}(f);!function(e,t){t.forEach((function(t){var r=e[t.file];if(r){var n=r.index[t.line];if(n)return n.errors.push(t),void(r.hasErrors=!0)}e.unknown.hasErrors=!0,e.unknown.lines[0].errors.push(t)}))}(c,l),Object.keys(c).forEach((function(e){var t=c[e];if(t.hasErrors){var n=[\"\"],a=[\"\"];i(\"file number \"+e+\": \"+t.name+\"\\n\",\"color:red;text-decoration:underline;font-weight:bold\"),t.lines.forEach((function(e){if(e.errors.length>0){i(s(e.number,4)+\"| \",\"background-color:yellow; font-weight:bold\"),i(e.line+r,\"color:red; background-color:yellow; font-weight:bold\");var t=0;e.errors.forEach((function(n){var a=n.message,o=/^\\s*'(.*)'\\s*:\\s*(.*)$/.exec(a);if(o){var f=o[1];a=o[2],\"assign\"===f&&(f=\"=\"),t=Math.max(e.line.indexOf(f,t),0)}else t=0;i(s(\"| \",6)),i(s(\"^^^\",t+3)+r,\"font-weight:bold\"),i(s(\"| \",6)),i(a+r,\"font-weight:bold\")})),i(s(\"| \",6)+r)}else i(s(e.number,4)+\"| \"),i(e.line+r,\"color:red\")})),\"undefined\"==typeof document||window.chrome?console.log(n.join(\"\")):(a[0]=n.join(\"%c\"),console.log.apply(console,a))}function i(e,t){n.push(e),a.push(t||\"\")}})),a.raise(\"Error compiling \"+u+\" shader, \"+c[0].name)}},linkError:function(e,t,n,i,o){if(!e.getProgramParameter(t,e.LINK_STATUS)){var f=e.getProgramInfoLog(t),u=h(n,o),s='Error linking program with vertex shader, \"'+h(i,o)[0].name+'\", and fragment shader \"'+u[0].name+'\"';\"undefined\"!=typeof document?console.log(\"%c\"+s+r+\"%c\"+f,\"color:red;text-decoration:underline;font-weight:bold\",\"color:red\"):console.log(s+r+f),a.raise(s)}},callSite:p,saveCommandRef:b,saveDrawInfo:function(e,t,r,n){function a(e){return e?n.id(e):0}function i(e,t){Object.keys(t).forEach((function(t){e[n.id(t)]=!0}))}b(e),e._fragId=a(e.static.frag),e._vertId=a(e.static.vert);var o=e._uniformSet={};i(o,t.static),i(o,t.dynamic);var f=e._attributeSet={};i(f,r.static),i(f,r.dynamic),e._hasCount=\"count\"in e.static||\"count\"in e.dynamic||\"elements\"in e.static||\"elements\"in e.dynamic},framebufferFormat:function(e,t,r){e.texture?f(e.texture._texture.internalformat,t,\"unsupported texture format for attachment\"):f(e.renderbuffer._renderbuffer.format,r,\"unsupported renderbuffer format for attachment\")},guessCommand:m,texture2D:function(e,t,r){var n,i=t.width,o=t.height,f=t.channels;a(i>0&&i<=r.maxTextureSize&&o>0&&o<=r.maxTextureSize,\"invalid texture shape\"),e.wrapS===y&&e.wrapT===y||a(z(i)&&z(o),\"incompatible wrap mode for texture, both width and height must be power of 2\"),1===t.mipmask?1!==i&&1!==o&&a(e.minFilter!==w&&e.minFilter!==_&&e.minFilter!==A&&e.minFilter!==k,\"min filter requires mipmap\"):(a(z(i)&&z(o),\"texture must be a square power of 2 to support mipmapping\"),a(t.mipmask===(i<<1)-1,\"missing or incomplete mipmap data\")),t.type===S&&(r.extensions.indexOf(\"oes_texture_float_linear\")<0&&a(e.minFilter===x&&e.magFilter===x,\"filter not supported, must enable oes_texture_float_linear\"),a(!e.genMipmaps,\"mipmap generation not supported with float textures\"));var u=t.images;for(n=0;n<16;++n)if(u[n]){var s=i>>n,c=o>>n;a(t.mipmask&1<<n,\"missing mipmap data\");var l=u[n];if(a(l.width===s&&l.height===c,\"invalid shape for mip images\"),a(l.format===t.format&&l.internalformat===t.internalformat&&l.type===t.type,\"incompatible type for mip image\"),l.compressed);else if(l.data){var d=Math.ceil(C(l.type,f)*s/l.unpackAlignment)*l.unpackAlignment;a(l.data.byteLength===d*c,\"invalid data for image, buffer size is inconsistent with image format\")}else l.element||l.copy}else e.genMipmaps||a(0==(t.mipmask&1<<n),\"extra mipmap data\");t.compressed&&a(!e.genMipmaps,\"mipmap generation for compressed images not supported\")},textureCube:function(e,t,r,n){var i=e.width,o=e.height,f=e.channels;a(i>0&&i<=n.maxTextureSize&&o>0&&o<=n.maxTextureSize,\"invalid texture shape\"),a(i===o,\"cube map must be square\"),a(t.wrapS===y&&t.wrapT===y,\"wrap mode not supported by cube map\");for(var u=0;u<r.length;++u){var s=r[u];a(s.width===i&&s.height===o,\"inconsistent cube map face shape\"),t.genMipmaps&&(a(!s.compressed,\"can not generate mipmap for compressed textures\"),a(1===s.mipmask,\"can not specify mipmaps and generate mipmaps\"));for(var c=s.images,l=0;l<16;++l){var d=c[l];if(d){var m=i>>l,p=o>>l;a(s.mipmask&1<<l,\"missing mipmap data\"),a(d.width===m&&d.height===p,\"invalid shape for mip images\"),a(d.format===e.format&&d.internalformat===e.internalformat&&d.type===e.type,\"incompatible type for mip image\"),d.compressed||(d.data?a(d.data.byteLength===m*p*Math.max(C(d.type,f),d.unpackAlignment),\"invalid data for image, buffer size is inconsistent with image format\"):d.element||d.copy)}}}}}),V=0,B=0,I=5,P=6;function L(e,t){this.id=V++,this.type=e,this.data=t}function R(e){return e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')}function M(e){if(0===e.length)return[];var t=e.charAt(0),r=e.charAt(e.length-1);if(e.length>1&&t===r&&('\"'===t||\"'\"===t))return['\"'+R(e.substr(1,e.length-2))+'\"'];var n=/\\[(false|true|null|\\d+|'[^']*'|\"[^\"]*\")\\]/.exec(e);if(n)return M(e.substr(0,n.index)).concat(M(n[1])).concat(M(e.substr(n.index+n[0].length)));var a=e.split(\".\");if(1===a.length)return['\"'+R(e)+'\"'];for(var i=[],o=0;o<a.length;++o)i=i.concat(M(a[o]));return i}function U(e){return\"[\"+M(e).join(\"][\")+\"]\"}var W={DynamicVariable:L,define:function(e,t){return new L(e,U(t+\"\"))},isDynamic:function(e){return\"function\"==typeof e&&!e._reglType||e instanceof L},unbox:function e(t,r){return\"function\"==typeof t?new L(B,t):\"number\"==typeof t||\"boolean\"==typeof t?new L(I,t):Array.isArray(t)?new L(P,t.map((function(t,n){return e(t,r+\"[\"+n+\"]\")}))):t instanceof L?t:void F(!1,\"invalid option type in uniform \"+r)},accessor:U},G={next:\"function\"==typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,16)},cancel:\"function\"==typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:clearTimeout},H=\"undefined\"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function N(e){return\"string\"==typeof e?e.split():(F(Array.isArray(e),\"invalid extension array\"),e)}function q(e){return\"string\"==typeof e?(F(\"undefined\"!=typeof document,\"not supported outside of DOM\"),document.querySelector(e)):e}function Q(e){var r,n,a,i,o,f=e||{},u={},s=[],c=[],l=\"undefined\"==typeof window?1:window.devicePixelRatio,d=!1,m=function(e){e&&F.raise(e)},p=function(){};if(\"string\"==typeof f?(F(\"undefined\"!=typeof document,\"selector queries only supported in DOM enviroments\"),r=document.querySelector(f),F(r,\"invalid query string for element\")):\"object\"==typeof f?\"string\"==typeof(o=f).nodeName&&\"function\"==typeof o.appendChild&&\"function\"==typeof o.getBoundingClientRect?r=f:function(e){return\"function\"==typeof e.drawArrays||\"function\"==typeof e.drawElements}(f)?a=(i=f).canvas:(F.constructor(f),\"gl\"in f?i=f.gl:\"canvas\"in f?a=q(f.canvas):\"container\"in f&&(n=q(f.container)),\"attributes\"in f&&(u=f.attributes,F.type(u,\"object\",\"invalid context attributes\")),\"extensions\"in f&&(s=N(f.extensions)),\"optionalExtensions\"in f&&(c=N(f.optionalExtensions)),\"onDone\"in f&&(F.type(f.onDone,\"function\",\"invalid or missing onDone callback\"),m=f.onDone),\"profile\"in f&&(d=!!f.profile),\"pixelRatio\"in f&&(l=+f.pixelRatio,F(l>0,\"invalid pixel ratio\"))):F.raise(\"invalid arguments to regl\"),r&&(\"canvas\"===r.nodeName.toLowerCase()?a=r:n=r),!i){if(!a){F(\"undefined\"!=typeof document,\"must manually specify webgl context outside of DOM environments\");var h=function(e,r,n){var a,i=document.createElement(\"canvas\");function o(){var t=window.innerWidth,r=window.innerHeight;if(e!==document.body){var a=i.getBoundingClientRect();t=a.right-a.left,r=a.bottom-a.top}i.width=n*t,i.height=n*r}return t(i.style,{border:0,margin:0,padding:0,top:0,left:0,width:\"100%\",height:\"100%\"}),e.appendChild(i),e===document.body&&(i.style.position=\"absolute\",t(e.style,{margin:0,padding:0})),e!==document.body&&\"function\"==typeof ResizeObserver?(a=new ResizeObserver((function(){setTimeout(o)}))).observe(e):window.addEventListener(\"resize\",o,!1),o(),{canvas:i,onDestroy:function(){a?a.disconnect():window.removeEventListener(\"resize\",o),e.removeChild(i)}}}(n||document.body,0,l);if(!h)return null;a=h.canvas,p=h.onDestroy}void 0===u.premultipliedAlpha&&(u.premultipliedAlpha=!0),i=function(e,t){function r(r){try{return e.getContext(r,t)}catch(e){return null}}return r(\"webgl\")||r(\"experimental-webgl\")||r(\"webgl-experimental\")}(a,u)}return i?{gl:i,canvas:a,container:n,extensions:s,optionalExtensions:c,pixelRatio:l,profile:d,onDone:m,onDestroy:p}:(p(),m(\"webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org\"),null)}function Y(e,t){for(var r=Array(e),n=0;n<e;++n)r[n]=t(n);return r}var X=5120,$=5121,K=5122,J=5123,Z=5124,ee=5125,te=5126;function re(e){var t,r;return t=(e>65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1}function ne(){var e=Y(8,(function(){return[]}));function t(t){var r=function(e){for(var t=16;t<=1<<28;t*=16)if(e<=t)return t;return 0}(t),n=e[re(r)>>2];return n.length>0?n.pop():new ArrayBuffer(r)}function r(t){e[re(t.byteLength)>>2].push(t)}return{alloc:t,free:r,allocType:function(e,r){var n=null;switch(e){case X:n=new Int8Array(t(r),0,r);break;case $:n=new Uint8Array(t(r),0,r);break;case K:n=new Int16Array(t(2*r),0,r);break;case J:n=new Uint16Array(t(2*r),0,r);break;case Z:n=new Int32Array(t(4*r),0,r);break;case ee:n=new Uint32Array(t(4*r),0,r);break;case te:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(e){r(e.buffer)}}}var ae=ne();ae.zero=ne();var ie=3553,oe=6408,fe=5126,ue=36160,se=function(e,t){var r=1;t.ext_texture_filter_anisotropic&&(r=e.getParameter(34047));var n=1,a=1;t.webgl_draw_buffers&&(n=e.getParameter(34852),a=e.getParameter(36063));var i=!!t.oes_texture_float;if(i){var o=e.createTexture();e.bindTexture(ie,o),e.texImage2D(ie,0,oe,1,1,0,oe,fe,null);var f=e.createFramebuffer();if(e.bindFramebuffer(ue,f),e.framebufferTexture2D(ue,36064,ie,o,0),e.bindTexture(ie,null),36053!==e.checkFramebufferStatus(ue))i=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(16384);var u=ae.allocType(fe,4);e.readPixels(0,0,1,1,oe,fe,u),e.getError()?i=!1:(e.deleteFramebuffer(f),e.deleteTexture(o),i=1===u[0]),ae.freeType(u)}}var s=!0;if(\"undefined\"==typeof navigator||!(/MSIE/.test(navigator.userAgent)||/Trident\\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))){var c=e.createTexture(),l=ae.allocType(5121,36);e.activeTexture(33984),e.bindTexture(34067,c),e.texImage2D(34069,0,oe,3,3,0,oe,5121,l),ae.freeType(l),e.bindTexture(34067,null),e.deleteTexture(c),s=!e.getError()}return{colorBits:[e.getParameter(3410),e.getParameter(3411),e.getParameter(3412),e.getParameter(3413)],depthBits:e.getParameter(3414),stencilBits:e.getParameter(3415),subpixelBits:e.getParameter(3408),extensions:Object.keys(t).filter((function(e){return!!t[e]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:a,pointSizeDims:e.getParameter(33901),lineWidthDims:e.getParameter(33902),maxViewportDims:e.getParameter(3386),maxCombinedTextureUnits:e.getParameter(35661),maxCubeMapSize:e.getParameter(34076),maxRenderbufferSize:e.getParameter(34024),maxTextureUnits:e.getParameter(34930),maxTextureSize:e.getParameter(3379),maxAttributes:e.getParameter(34921),maxVertexUniforms:e.getParameter(36347),maxVertexTextureUnits:e.getParameter(35660),maxVaryingVectors:e.getParameter(36348),maxFragmentUniforms:e.getParameter(36349),glsl:e.getParameter(35724),renderer:e.getParameter(7937),vendor:e.getParameter(7936),version:e.getParameter(7938),readFloat:i,npotTextureCube:s}};function ce(t){return!!t&&\"object\"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&\"number\"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||e(t.data))}var le=function(e){return Object.keys(e).map((function(t){return e[t]}))},de={shape:function(e){for(var t=[],r=e;r.length;r=r[0])t.push(r.length);return t},flatten:function(e,t,r,n){var a=1;if(t.length)for(var i=0;i<t.length;++i)a*=t[i];else a=0;var o=n||ae.allocType(r,a);switch(t.length){case 0:break;case 1:!function(e,t,r){for(var n=0;n<t;++n)r[n]=e[n]}(e,t[0],o);break;case 2:!function(e,t,r,n){for(var a=0,i=0;i<t;++i)for(var o=e[i],f=0;f<r;++f)n[a++]=o[f]}(e,t[0],t[1],o);break;case 3:me(e,t[0],t[1],t[2],o,0);break;default:pe(e,t,0,o,0)}return o}};function me(e,t,r,n,a,i){for(var o=i,f=0;f<t;++f)for(var u=e[f],s=0;s<r;++s)for(var c=u[s],l=0;l<n;++l)a[o++]=c[l]}function pe(e,t,r,n,a){for(var i=1,o=r+1;o<t.length;++o)i*=t[o];var f=t[r];if(t.length-r==4){var u=t[r+1],s=t[r+2],c=t[r+3];for(o=0;o<f;++o)me(e[o],u,s,c,n,a),a+=i}else for(o=0;o<f;++o)pe(e[o],t,r+1,n,a),a+=i}var he={\"[object Int8Array]\":5120,\"[object Int16Array]\":5122,\"[object Int32Array]\":5124,\"[object Uint8Array]\":5121,\"[object Uint8ClampedArray]\":5121,\"[object Uint16Array]\":5123,\"[object Uint32Array]\":5125,\"[object Float32Array]\":5126,\"[object Float64Array]\":5121,\"[object ArrayBuffer]\":5121},be={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ve={dynamic:35048,stream:35040,static:35044},ge=de.flatten,ye=de.shape,xe=35044,we=35040,Ae=5121,_e=5126,ke=[];function Se(e){return 0|he[Object.prototype.toString.call(e)]}function Oe(e,t){for(var r=0;r<t.length;++r)e[r]=t[r]}function Ee(e,t,r,n,a,i,o){for(var f=0,u=0;u<r;++u)for(var s=0;s<n;++s)e[f++]=t[a*u+i*s+o]}ke[5120]=1,ke[5122]=2,ke[5124]=4,ke[5121]=1,ke[5123]=2,ke[5125]=4,ke[5126]=4;var Te={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,\"line loop\":2,\"line strip\":3,\"triangle strip\":5,\"triangle fan\":6},De=0,je=1,Ce=4,ze=5120,Fe=5121,Ve=5122,Be=5123,Ie=5124,Pe=5125,Le=34963,Re=35040,Me=35044,Ue=new Float32Array(1),We=new Uint32Array(Ue.buffer),Ge=5123;function He(e){for(var t=ae.allocType(Ge,e.length),r=0;r<e.length;++r)if(isNaN(e[r]))t[r]=65535;else if(e[r]===1/0)t[r]=31744;else if(e[r]===-1/0)t[r]=64512;else{Ue[0]=e[r];var n=We[0],a=n>>>31<<15,i=(n<<1>>>24)-127,o=n>>13&1023;if(i<-24)t[r]=a;else if(i<-14){var f=-14-i;t[r]=a+(o+1024>>f)}else t[r]=i>15?a+31744:a+(i+15<<10)+o}return t}function Ne(t){return Array.isArray(t)||e(t)}var qe=function(e){return!(e&e-1||!e)},Qe=34467,Ye=3553,Xe=34067,$e=34069,Ke=6408,Je=6406,Ze=6407,et=6409,tt=6410,rt=32854,nt=32855,at=36194,it=32819,ot=32820,ft=33635,ut=34042,st=6402,ct=34041,lt=35904,dt=35906,mt=36193,pt=33776,ht=33777,bt=33778,vt=33779,gt=35986,yt=35987,xt=34798,wt=35840,At=35841,_t=35842,kt=35843,St=36196,Ot=5121,Et=5123,Tt=5125,Dt=5126,jt=10242,Ct=10243,zt=10497,Ft=33071,Vt=33648,Bt=10240,It=10241,Pt=9728,Lt=9729,Rt=9984,Mt=9985,Ut=9986,Wt=9987,Gt=33170,Ht=4352,Nt=4353,qt=4354,Qt=34046,Yt=3317,Xt=37440,$t=37441,Kt=37443,Jt=37444,Zt=33984,er=[Rt,Ut,Mt,Wt],tr=[0,et,tt,Ze,Ke],rr={};function nr(e){return\"[object \"+e+\"]\"}rr[et]=rr[Je]=rr[st]=1,rr[ct]=rr[tt]=2,rr[Ze]=rr[lt]=3,rr[Ke]=rr[dt]=4;var ar=nr(\"HTMLCanvasElement\"),ir=nr(\"OffscreenCanvas\"),or=nr(\"CanvasRenderingContext2D\"),fr=nr(\"ImageBitmap\"),ur=nr(\"HTMLImageElement\"),sr=nr(\"HTMLVideoElement\"),cr=Object.keys(he).concat([ar,ir,or,fr,ur,sr]),lr=[];lr[Ot]=1,lr[Dt]=4,lr[mt]=2,lr[Et]=2,lr[Tt]=4;var dr=[];function mr(e){return Array.isArray(e)&&(0===e.length||\"number\"==typeof e[0])}function pr(e){return!!Array.isArray(e)&&!(0===e.length||!Ne(e[0]))}function hr(e){return Object.prototype.toString.call(e)}function br(e){return hr(e)===ar}function vr(e){return hr(e)===ir}function gr(e){if(!e)return!1;var t=hr(e);return cr.indexOf(t)>=0||mr(e)||pr(e)||ce(e)}function yr(e){return 0|he[Object.prototype.toString.call(e)]}function xr(e,t){return ae.allocType(e.type===mt?Dt:e.type,t)}function wr(e,t){e.type===mt?(e.data=He(t),ae.freeType(t)):e.data=t}function Ar(e,t,r,n,a,i){var o;if(o=void 0!==dr[e]?dr[e]:rr[e]*lr[t],i&&(o*=6),a){for(var f=0,u=r;u>=1;)f+=o*u*u,u/=2;return f}return o*r*n}function _r(r,n,a,i,o,f,u){var s={\"don't care\":Ht,\"dont care\":Ht,nice:qt,fast:Nt},c={repeat:zt,clamp:Ft,mirror:Vt},l={nearest:Pt,linear:Lt},d=t({mipmap:Wt,\"nearest mipmap nearest\":Rt,\"linear mipmap nearest\":Mt,\"nearest mipmap linear\":Ut,\"linear mipmap linear\":Wt},l),m={none:0,browser:Jt},p={uint8:Ot,rgba4:it,rgb565:ft,\"rgb5 a1\":ot},h={alpha:Je,luminance:et,\"luminance alpha\":tt,rgb:Ze,rgba:Ke,rgba4:rt,\"rgb5 a1\":nt,rgb565:at},b={};n.ext_srgb&&(h.srgb=lt,h.srgba=dt),n.oes_texture_float&&(p.float32=p.float=Dt),n.oes_texture_half_float&&(p.float16=p[\"half float\"]=mt),n.webgl_depth_texture&&(t(h,{depth:st,\"depth stencil\":ct}),t(p,{uint16:Et,uint32:Tt,\"depth stencil\":ut})),n.webgl_compressed_texture_s3tc&&t(b,{\"rgb s3tc dxt1\":pt,\"rgba s3tc dxt1\":ht,\"rgba s3tc dxt3\":bt,\"rgba s3tc dxt5\":vt}),n.webgl_compressed_texture_atc&&t(b,{\"rgb atc\":gt,\"rgba atc explicit alpha\":yt,\"rgba atc interpolated alpha\":xt}),n.webgl_compressed_texture_pvrtc&&t(b,{\"rgb pvrtc 4bppv1\":wt,\"rgb pvrtc 2bppv1\":At,\"rgba pvrtc 4bppv1\":_t,\"rgba pvrtc 2bppv1\":kt}),n.webgl_compressed_texture_etc1&&(b[\"rgb etc1\"]=St);var v=Array.prototype.slice.call(r.getParameter(Qe));Object.keys(b).forEach((function(e){var t=b[e];v.indexOf(t)>=0&&(h[e]=t)}));var g=Object.keys(h);a.textureFormats=g;var y=[];Object.keys(h).forEach((function(e){var t=h[e];y[t]=e}));var x=[];Object.keys(p).forEach((function(e){var t=p[e];x[t]=e}));var w=[];Object.keys(l).forEach((function(e){var t=l[e];w[t]=e}));var A=[];Object.keys(d).forEach((function(e){var t=d[e];A[t]=e}));var _=[];Object.keys(c).forEach((function(e){var t=c[e];_[t]=e}));var k=g.reduce((function(e,t){var r=h[t];return r===et||r===Je||r===et||r===tt||r===st||r===ct||n.ext_srgb&&(r===lt||r===dt)?e[r]=r:r===nt||t.indexOf(\"rgba\")>=0?e[r]=Ke:e[r]=Ze,e}),{});function S(){this.internalformat=Ke,this.format=Ke,this.type=Ot,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Jt,this.width=0,this.height=0,this.channels=0}function O(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function E(e,t){if(\"object\"==typeof t&&t){if(\"premultiplyAlpha\"in t&&(F.type(t.premultiplyAlpha,\"boolean\",\"invalid premultiplyAlpha\"),e.premultiplyAlpha=t.premultiplyAlpha),\"flipY\"in t&&(F.type(t.flipY,\"boolean\",\"invalid texture flip\"),e.flipY=t.flipY),\"alignment\"in t&&(F.oneOf(t.alignment,[1,2,4,8],\"invalid texture unpack alignment\"),e.unpackAlignment=t.alignment),\"colorSpace\"in t&&(F.parameter(t.colorSpace,m,\"invalid colorSpace\"),e.colorSpace=m[t.colorSpace]),\"type\"in t){var r=t.type;F(n.oes_texture_float||!(\"float\"===r||\"float32\"===r),\"you must enable the OES_texture_float extension in order to use floating point textures.\"),F(n.oes_texture_half_float||!(\"half float\"===r||\"float16\"===r),\"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures.\"),F(n.webgl_depth_texture||!(\"uint16\"===r||\"uint32\"===r||\"depth stencil\"===r),\"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures.\"),F.parameter(r,p,\"invalid texture type\"),e.type=p[r]}var i=e.width,o=e.height,f=e.channels,u=!1;\"shape\"in t?(F(Array.isArray(t.shape)&&t.shape.length>=2,\"shape must be an array\"),i=t.shape[0],o=t.shape[1],3===t.shape.length&&(f=t.shape[2],F(f>0&&f<=4,\"invalid number of channels\"),u=!0),F(i>=0&&i<=a.maxTextureSize,\"invalid width\"),F(o>=0&&o<=a.maxTextureSize,\"invalid height\")):(\"radius\"in t&&(i=o=t.radius,F(i>=0&&i<=a.maxTextureSize,\"invalid radius\")),\"width\"in t&&(i=t.width,F(i>=0&&i<=a.maxTextureSize,\"invalid width\")),\"height\"in t&&(o=t.height,F(o>=0&&o<=a.maxTextureSize,\"invalid height\")),\"channels\"in t&&(f=t.channels,F(f>0&&f<=4,\"invalid number of channels\"),u=!0)),e.width=0|i,e.height=0|o,e.channels=0|f;var s=!1;if(\"format\"in t){var c=t.format;F(n.webgl_depth_texture||!(\"depth\"===c||\"depth stencil\"===c),\"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures.\"),F.parameter(c,h,\"invalid texture format\");var l=e.internalformat=h[c];e.format=k[l],c in p&&(\"type\"in t||(e.type=p[c])),c in b&&(e.compressed=!0),s=!0}!u&&s?e.channels=rr[e.format]:u&&!s?e.channels!==tr[e.format]&&(e.format=e.internalformat=tr[e.channels]):s&&u&&F(e.channels===rr[e.format],\"number of channels inconsistent with specified format\")}}function T(e){r.pixelStorei(Xt,e.flipY),r.pixelStorei($t,e.premultiplyAlpha),r.pixelStorei(Kt,e.colorSpace),r.pixelStorei(Yt,e.unpackAlignment)}function D(){S.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function j(t,r){var n=null;if(gr(r)?n=r:r&&(F.type(r,\"object\",\"invalid pixel data type\"),E(t,r),\"x\"in r&&(t.xOffset=0|r.x),\"y\"in r&&(t.yOffset=0|r.y),gr(r.data)&&(n=r.data)),F(!t.compressed||n instanceof Uint8Array,\"compressed texture data must be stored in a uint8array\"),r.copy){F(!n,\"can not specify copy and data field for the same texture\");var i=o.viewportWidth,f=o.viewportHeight;t.width=t.width||i-t.xOffset,t.height=t.height||f-t.yOffset,t.needsCopy=!0,F(t.xOffset>=0&&t.xOffset<i&&t.yOffset>=0&&t.yOffset<f&&t.width>0&&t.width<=i&&t.height>0&&t.height<=f,\"copy texture read out of bounds\")}else if(n){if(e(n))t.channels=t.channels||4,t.data=n,\"type\"in r||t.type!==Ot||(t.type=yr(n));else if(mr(n))t.channels=t.channels||4,function(e,t){var r=t.length;switch(e.type){case Ot:case Et:case Tt:case Dt:var n=ae.allocType(e.type,r);n.set(t),e.data=n;break;case mt:e.data=He(t);break;default:F.raise(\"unsupported texture type, must specify a typed array\")}}(t,n),t.alignment=1,t.needsFree=!0;else if(ce(n)){var u=n.data;Array.isArray(u)||t.type!==Ot||(t.type=yr(u));var s,c,l,d,m,p,h=n.shape,b=n.stride;3===h.length?(l=h[2],p=b[2]):(F(2===h.length,\"invalid ndarray pixel data, must be 2 or 3D\"),l=1,p=1),s=h[0],c=h[1],d=b[0],m=b[1],t.alignment=1,t.width=s,t.height=c,t.channels=l,t.format=t.internalformat=tr[l],t.needsFree=!0,function(e,t,r,n,a,i){for(var o=e.width,f=e.height,u=e.channels,s=xr(e,o*f*u),c=0,l=0;l<f;++l)for(var d=0;d<o;++d)for(var m=0;m<u;++m)s[c++]=t[r*d+n*l+a*m+i];wr(e,s)}(t,u,d,m,p,n.offset)}else if(br(n)||vr(n)||hr(n)===or)br(n)||vr(n)?t.element=n:t.element=n.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(function(e){return hr(e)===fr}(n))t.element=n,t.width=n.width,t.height=n.height,t.channels=4;else if(function(e){return hr(e)===ur}(n))t.element=n,t.width=n.naturalWidth,t.height=n.naturalHeight,t.channels=4;else if(function(e){return hr(e)===sr}(n))t.element=n,t.width=n.videoWidth,t.height=n.videoHeight,t.channels=4;else if(pr(n)){var v=t.width||n[0].length,g=t.height||n.length,y=t.channels;y=Ne(n[0][0])?y||n[0][0].length:y||1;for(var x=de.shape(n),w=1,A=0;A<x.length;++A)w*=x[A];var _=xr(t,w);de.flatten(n,x,\"\",_),wr(t,_),t.alignment=1,t.width=v,t.height=g,t.channels=y,t.format=t.internalformat=tr[y],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4;t.type===Dt?F(a.extensions.indexOf(\"oes_texture_float\")>=0,\"oes_texture_float extension not enabled\"):t.type===mt&&F(a.extensions.indexOf(\"oes_texture_half_float\")>=0,\"oes_texture_half_float extension not enabled\")}function C(e,t,n){var a=e.element,o=e.data,f=e.internalformat,u=e.format,s=e.type,c=e.width,l=e.height;T(e),a?r.texImage2D(t,n,u,u,s,a):e.compressed?r.compressedTexImage2D(t,n,f,c,l,0,o):e.needsCopy?(i(),r.copyTexImage2D(t,n,u,e.xOffset,e.yOffset,c,l,0)):r.texImage2D(t,n,u,c,l,0,u,s,o||null)}function z(e,t,n,a,o){var f=e.element,u=e.data,s=e.internalformat,c=e.format,l=e.type,d=e.width,m=e.height;T(e),f?r.texSubImage2D(t,o,n,a,c,l,f):e.compressed?r.compressedTexSubImage2D(t,o,n,a,s,d,m,u):e.needsCopy?(i(),r.copyTexSubImage2D(t,o,n,a,e.xOffset,e.yOffset,d,m)):r.texSubImage2D(t,o,n,a,d,m,c,l,u)}var V=[];function B(){return V.pop()||new D}function I(e){e.needsFree&&ae.freeType(e.data),D.call(e),V.push(e)}function P(){S.call(this),this.genMipmaps=!1,this.mipmapHint=Ht,this.mipmask=0,this.images=Array(16)}function L(e,t,r){var n=e.images[0]=B();e.mipmask=1,n.width=e.width=t,n.height=e.height=r,n.channels=e.channels=4}function R(e,t){var r=null;if(gr(t))O(r=e.images[0]=B(),e),j(r,t),e.mipmask=1;else if(E(e,t),Array.isArray(t.mipmap))for(var n=t.mipmap,a=0;a<n.length;++a)O(r=e.images[a]=B(),e),r.width>>=a,r.height>>=a,j(r,n[a]),e.mipmask|=1<<a;else O(r=e.images[0]=B(),e),j(r,t),e.mipmask=1;O(e,e.images[0]),!e.compressed||e.internalformat!==pt&&e.internalformat!==ht&&e.internalformat!==bt&&e.internalformat!==vt||F(e.width%4==0&&e.height%4==0,\"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4\")}function M(e,t){for(var r=e.images,n=0;n<r.length;++n){if(!r[n])return;C(r[n],t,n)}}var U=[];function W(){var e=U.pop()||new P;S.call(e),e.mipmask=0;for(var t=0;t<16;++t)e.images[t]=null;return e}function G(e){for(var t=e.images,r=0;r<t.length;++r)t[r]&&I(t[r]),t[r]=null;U.push(e)}function H(){this.minFilter=Pt,this.magFilter=Pt,this.wrapS=Ft,this.wrapT=Ft,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Ht}function N(e,t){if(\"min\"in t){var r=t.min;F.parameter(r,d),e.minFilter=d[r],er.indexOf(e.minFilter)>=0&&!(\"faces\"in t)&&(e.genMipmaps=!0)}if(\"mag\"in t){var n=t.mag;F.parameter(n,l),e.magFilter=l[n]}var i=e.wrapS,o=e.wrapT;if(\"wrap\"in t){var f=t.wrap;\"string\"==typeof f?(F.parameter(f,c),i=o=c[f]):Array.isArray(f)&&(F.parameter(f[0],c),F.parameter(f[1],c),i=c[f[0]],o=c[f[1]])}else{if(\"wrapS\"in t){var u=t.wrapS;F.parameter(u,c),i=c[u]}if(\"wrapT\"in t){var m=t.wrapT;F.parameter(m,c),o=c[m]}}if(e.wrapS=i,e.wrapT=o,\"anisotropic\"in t){var p=t.anisotropic;F(\"number\"==typeof p&&p>=1&&p<=a.maxAnisotropic,\"aniso samples must be between 1 and \"),e.anisotropic=t.anisotropic}if(\"mipmap\"in t){var h=!1;switch(typeof t.mipmap){case\"string\":F.parameter(t.mipmap,s,\"invalid mipmap hint\"),e.mipmapHint=s[t.mipmap],e.genMipmaps=!0,h=!0;break;case\"boolean\":h=e.genMipmaps=t.mipmap;break;case\"object\":F(Array.isArray(t.mipmap),\"invalid mipmap type\"),e.genMipmaps=!1,h=!0;break;default:F.raise(\"invalid mipmap type\")}h&&!(\"min\"in t)&&(e.minFilter=Rt)}}function q(e,t){r.texParameteri(t,It,e.minFilter),r.texParameteri(t,Bt,e.magFilter),r.texParameteri(t,jt,e.wrapS),r.texParameteri(t,Ct,e.wrapT),n.ext_texture_filter_anisotropic&&r.texParameteri(t,Qt,e.anisotropic),e.genMipmaps&&(r.hint(Gt,e.mipmapHint),r.generateMipmap(t))}var Q=0,Y={},X=a.maxTextureUnits,$=Array(X).map((function(){return null}));function K(e){S.call(this),this.mipmask=0,this.internalformat=Ke,this.id=Q++,this.refCount=1,this.target=e,this.texture=r.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new H,u.profile&&(this.stats={size:0})}function J(e){r.activeTexture(Zt),r.bindTexture(e.target,e.texture)}function Z(){var e=$[0];e?r.bindTexture(e.target,e.texture):r.bindTexture(Ye,null)}function ee(e){var t=e.texture;F(t,\"must not double destroy texture\");var n=e.unit,a=e.target;n>=0&&(r.activeTexture(Zt+n),r.bindTexture(a,null),$[n]=null),r.deleteTexture(t),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete Y[e.id],f.textureCount--}return t(K.prototype,{bind:function(){var e=this;e.bindCount+=1;var t=e.unit;if(t<0){for(var n=0;n<X;++n){var a=$[n];if(a){if(a.bindCount>0)continue;a.unit=-1}$[n]=e,t=n;break}t>=X&&F.raise(\"insufficient number of texture units\"),u.profile&&f.maxTextureUnits<t+1&&(f.maxTextureUnits=t+1),e.unit=t,r.activeTexture(Zt+t),r.bindTexture(e.target,e.texture)}return t},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&ee(this)}}),u.profile&&(f.getTotalTextureSize=function(){var e=0;return Object.keys(Y).forEach((function(t){e+=Y[t].stats.size})),e}),{create2D:function(e,t){var n=new K(Ye);function i(e,t){var r=n.texInfo;H.call(r);var o=W();return\"number\"==typeof e?L(o,0|e,\"number\"==typeof t?0|t:0|e):e?(F.type(e,\"object\",\"invalid arguments to regl.texture\"),N(r,e),R(o,e)):L(o,1,1),r.genMipmaps&&(o.mipmask=(o.width<<1)-1),n.mipmask=o.mipmask,O(n,o),F.texture2D(r,o,a),n.internalformat=o.internalformat,i.width=o.width,i.height=o.height,J(n),M(o,Ye),q(r,Ye),Z(),G(o),u.profile&&(n.stats.size=Ar(n.internalformat,n.type,o.width,o.height,r.genMipmaps,!1)),i.format=y[n.internalformat],i.type=x[n.type],i.mag=w[r.magFilter],i.min=A[r.minFilter],i.wrapS=_[r.wrapS],i.wrapT=_[r.wrapT],i}return Y[n.id]=n,f.textureCount++,i(e,t),i.subimage=function(e,t,r,a){F(!!e,\"must specify image data\");var o=0|t,f=0|r,u=0|a,s=B();return O(s,n),s.width=0,s.height=0,j(s,e),s.width=s.width||(n.width>>u)-o,s.height=s.height||(n.height>>u)-f,F(n.type===s.type&&n.format===s.format&&n.internalformat===s.internalformat,\"incompatible format for texture.subimage\"),F(o>=0&&f>=0&&o+s.width<=n.width&&f+s.height<=n.height,\"texture.subimage write out of bounds\"),F(n.mipmask&1<<u,\"missing mipmap data\"),F(s.data||s.element||s.needsCopy,\"missing image data\"),J(n),z(s,Ye,o,f,u),Z(),I(s),i},i.resize=function(e,t){var a=0|e,o=0|t||a;if(a===n.width&&o===n.height)return i;i.width=n.width=a,i.height=n.height=o,J(n);for(var f=0;n.mipmask>>f;++f){var s=a>>f,c=o>>f;if(!s||!c)break;r.texImage2D(Ye,f,n.format,s,c,0,n.format,n.type,null)}return Z(),u.profile&&(n.stats.size=Ar(n.internalformat,n.type,a,o,!1,!1)),i},i._reglType=\"texture2d\",i._texture=n,u.profile&&(i.stats=n.stats),i.destroy=function(){n.decRef()},i},createCube:function(e,t,n,i,o,s){var c=new K(Xe);Y[c.id]=c,f.cubeCount++;var l=new Array(6);function d(e,t,r,n,i,o){var f,s=c.texInfo;for(H.call(s),f=0;f<6;++f)l[f]=W();if(\"number\"!=typeof e&&e)if(\"object\"==typeof e)if(t)R(l[0],e),R(l[1],t),R(l[2],r),R(l[3],n),R(l[4],i),R(l[5],o);else if(N(s,e),E(c,e),\"faces\"in e){var m=e.faces;for(F(Array.isArray(m)&&6===m.length,\"cube faces must be a length 6 array\"),f=0;f<6;++f)F(\"object\"==typeof m[f]&&!!m[f],\"invalid input for cube map face\"),O(l[f],c),R(l[f],m[f])}else for(f=0;f<6;++f)R(l[f],e);else F.raise(\"invalid arguments to cube map\");else{var p=0|e||1;for(f=0;f<6;++f)L(l[f],p,p)}for(O(c,l[0]),F.optional((function(){a.npotTextureCube||F(qe(c.width)&&qe(c.height),\"your browser does not support non power or two texture dimensions\")})),s.genMipmaps?c.mipmask=(l[0].width<<1)-1:c.mipmask=l[0].mipmask,F.textureCube(c,s,l,a),c.internalformat=l[0].internalformat,d.width=l[0].width,d.height=l[0].height,J(c),f=0;f<6;++f)M(l[f],$e+f);for(q(s,Xe),Z(),u.profile&&(c.stats.size=Ar(c.internalformat,c.type,d.width,d.height,s.genMipmaps,!0)),d.format=y[c.internalformat],d.type=x[c.type],d.mag=w[s.magFilter],d.min=A[s.minFilter],d.wrapS=_[s.wrapS],d.wrapT=_[s.wrapT],f=0;f<6;++f)G(l[f]);return d}return d(e,t,n,i,o,s),d.subimage=function(e,t,r,n,a){F(!!t,\"must specify image data\"),F(\"number\"==typeof e&&e===(0|e)&&e>=0&&e<6,\"invalid face\");var i=0|r,o=0|n,f=0|a,u=B();return O(u,c),u.width=0,u.height=0,j(u,t),u.width=u.width||(c.width>>f)-i,u.height=u.height||(c.height>>f)-o,F(c.type===u.type&&c.format===u.format&&c.internalformat===u.internalformat,\"incompatible format for texture.subimage\"),F(i>=0&&o>=0&&i+u.width<=c.width&&o+u.height<=c.height,\"texture.subimage write out of bounds\"),F(c.mipmask&1<<f,\"missing mipmap data\"),F(u.data||u.element||u.needsCopy,\"missing image data\"),J(c),z(u,$e+e,i,o,f),Z(),I(u),d},d.resize=function(e){var t=0|e;if(t!==c.width){d.width=c.width=t,d.height=c.height=t,J(c);for(var n=0;n<6;++n)for(var a=0;c.mipmask>>a;++a)r.texImage2D($e+n,a,c.format,t>>a,t>>a,0,c.format,c.type,null);return Z(),u.profile&&(c.stats.size=Ar(c.internalformat,c.type,d.width,d.height,!1,!0)),d}},d._reglType=\"textureCube\",d._texture=c,u.profile&&(d.stats=c.stats),d.destroy=function(){c.decRef()},d},clear:function(){for(var e=0;e<X;++e)r.activeTexture(Zt+e),r.bindTexture(Ye,null),$[e]=null;le(Y).forEach(ee),f.cubeCount=0,f.textureCount=0},getTexture:function(e){return null},restore:function(){for(var e=0;e<X;++e){var t=$[e];t&&(t.bindCount=0,t.unit=-1,$[e]=null)}le(Y).forEach((function(e){e.texture=r.createTexture(),r.bindTexture(e.target,e.texture);for(var t=0;t<32;++t)if(0!=(e.mipmask&1<<t))if(e.target===Ye)r.texImage2D(Ye,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);else for(var n=0;n<6;++n)r.texImage2D($e+n,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);q(e.texInfo,e.target)}))},refresh:function(){for(var e=0;e<X;++e){var t=$[e];t&&(t.bindCount=0,t.unit=-1,$[e]=null),r.activeTexture(Zt+e),r.bindTexture(Ye,null),r.bindTexture(Xe,null)}}}}dr[rt]=2,dr[nt]=2,dr[at]=2,dr[ct]=4,dr[pt]=.5,dr[ht]=.5,dr[bt]=1,dr[vt]=1,dr[gt]=.5,dr[yt]=1,dr[xt]=1,dr[wt]=.5,dr[At]=.25,dr[_t]=.5,dr[kt]=.25,dr[St]=.5;var kr=36161,Sr=32854,Or=[];function Er(e,t,r){return Or[e]*t*r}Or[Sr]=2,Or[32855]=2,Or[36194]=2,Or[33189]=2,Or[36168]=1,Or[34041]=4,Or[35907]=4,Or[34836]=16,Or[34842]=8,Or[34843]=6;var Tr=function(e,t,r,n,a){var i={rgba4:Sr,rgb565:36194,\"rgb5 a1\":32855,depth:33189,stencil:36168,\"depth stencil\":34041};t.ext_srgb&&(i.srgba=35907),t.ext_color_buffer_half_float&&(i.rgba16f=34842,i.rgb16f=34843),t.webgl_color_buffer_float&&(i.rgba32f=34836);var o=[];Object.keys(i).forEach((function(e){var t=i[e];o[t]=e}));var f=0,u={};function s(e){this.id=f++,this.refCount=1,this.renderbuffer=e,this.format=Sr,this.width=0,this.height=0,a.profile&&(this.stats={size:0})}function c(t){var r=t.renderbuffer;F(r,\"must not double destroy renderbuffer\"),e.bindRenderbuffer(kr,null),e.deleteRenderbuffer(r),t.renderbuffer=null,t.refCount=0,delete u[t.id],n.renderbufferCount--}return s.prototype.decRef=function(){--this.refCount<=0&&c(this)},a.profile&&(n.getTotalRenderbufferSize=function(){var e=0;return Object.keys(u).forEach((function(t){e+=u[t].stats.size})),e}),{create:function(t,f){var c=new s(e.createRenderbuffer());function l(t,n){var f=0,u=0,s=Sr;if(\"object\"==typeof t&&t){var d=t;if(\"shape\"in d){var m=d.shape;F(Array.isArray(m)&&m.length>=2,\"invalid renderbuffer shape\"),f=0|m[0],u=0|m[1]}else\"radius\"in d&&(f=u=0|d.radius),\"width\"in d&&(f=0|d.width),\"height\"in d&&(u=0|d.height);\"format\"in d&&(F.parameter(d.format,i,\"invalid renderbuffer format\"),s=i[d.format])}else\"number\"==typeof t?(f=0|t,u=\"number\"==typeof n?0|n:f):t?F.raise(\"invalid arguments to renderbuffer constructor\"):f=u=1;if(F(f>0&&u>0&&f<=r.maxRenderbufferSize&&u<=r.maxRenderbufferSize,\"invalid renderbuffer size\"),f!==c.width||u!==c.height||s!==c.format)return l.width=c.width=f,l.height=c.height=u,c.format=s,e.bindRenderbuffer(kr,c.renderbuffer),e.renderbufferStorage(kr,s,f,u),F(0===e.getError(),\"invalid render buffer format\"),a.profile&&(c.stats.size=Er(c.format,c.width,c.height)),l.format=o[c.format],l}return u[c.id]=c,n.renderbufferCount++,l(t,f),l.resize=function(t,n){var i=0|t,o=0|n||i;return i===c.width&&o===c.height||(F(i>0&&o>0&&i<=r.maxRenderbufferSize&&o<=r.maxRenderbufferSize,\"invalid renderbuffer size\"),l.width=c.width=i,l.height=c.height=o,e.bindRenderbuffer(kr,c.renderbuffer),e.renderbufferStorage(kr,c.format,i,o),F(0===e.getError(),\"invalid render buffer format\"),a.profile&&(c.stats.size=Er(c.format,c.width,c.height))),l},l._reglType=\"renderbuffer\",l._renderbuffer=c,a.profile&&(l.stats=c.stats),l.destroy=function(){c.decRef()},l},clear:function(){le(u).forEach(c)},restore:function(){le(u).forEach((function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(kr,t.renderbuffer),e.renderbufferStorage(kr,t.format,t.width,t.height)})),e.bindRenderbuffer(kr,null)}}},Dr=36160,jr=36161,Cr=3553,zr=34069,Fr=36064,Vr=36096,Br=36128,Ir=33306,Pr=36053,Lr=6402,Rr=[6407,6408],Mr=[];Mr[6408]=4,Mr[6407]=3;var Ur=[];Ur[5121]=1,Ur[5126]=4,Ur[36193]=2;var Wr=33189,Gr=36168,Hr=34041,Nr=[32854,32855,36194,35907,34842,34843,34836],qr={};qr[Pr]=\"complete\",qr[36054]=\"incomplete attachment\",qr[36057]=\"incomplete dimensions\",qr[36055]=\"incomplete, missing attachment\",qr[36061]=\"unsupported\";var Qr=5126,Yr=34962,Xr=34963,$r=[\"attributes\",\"elements\",\"offset\",\"count\",\"primitive\",\"instances\"];function Kr(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Qr,this.offset=0,this.stride=0,this.divisor=0}var Jr=35632,Zr=35633,en=35718,tn=35721,rn=6408,nn=5121,an=3333,on=5126;function fn(t,r,n,a,i,o,f){function u(u){var s;null===r.next?(F(i.preserveDrawingBuffer,'you must create a webgl context with \"preserveDrawingBuffer\":true in order to read pixels from the drawing buffer'),s=nn):(F(null!==r.next.colorAttachments[0].texture,\"You cannot read from a renderbuffer\"),s=r.next.colorAttachments[0].texture._texture.type,F.optional((function(){o.oes_texture_float?(F(s===nn||s===on,\"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'\"),s===on&&F(f.readFloat,\"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float\")):F(s===nn,\"Reading from a framebuffer is only allowed for the type 'uint8'\")})));var c=0,l=0,d=a.framebufferWidth,m=a.framebufferHeight,p=null;e(u)?p=u:u&&(F.type(u,\"object\",\"invalid arguments to regl.read()\"),c=0|u.x,l=0|u.y,F(c>=0&&c<a.framebufferWidth,\"invalid x offset for regl.read\"),F(l>=0&&l<a.framebufferHeight,\"invalid y offset for regl.read\"),d=0|(u.width||a.framebufferWidth-c),m=0|(u.height||a.framebufferHeight-l),p=u.data||null),p&&(s===nn?F(p instanceof Uint8Array,\"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'\"):s===on&&F(p instanceof Float32Array,\"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'\")),F(d>0&&d+c<=a.framebufferWidth,\"invalid width for read pixels\"),F(m>0&&m+l<=a.framebufferHeight,\"invalid height for read pixels\"),n();var h=d*m*4;return p||(s===nn?p=new Uint8Array(h):s===on&&(p=p||new Float32Array(h))),F.isTypedArray(p,\"data buffer for regl.read() must be a typedarray\"),F(p.byteLength>=h,\"data buffer for regl.read() too small\"),t.pixelStorei(an,4),t.readPixels(c,l,d,m,rn,s,p),p}return function(e){return e&&\"framebuffer\"in e?function(e){var t;return r.setFBO({framebuffer:e.framebuffer},(function(){t=u(e)})),t}(e):u(e)}}function un(e){return Array.prototype.slice.call(e)}function sn(e){return un(e).join(\"\")}var cn=\"xyzw\".split(\"\"),ln=5121,dn=1,mn=2,pn=0,hn=1,bn=2,vn=3,gn=4,yn=5,xn=6,wn=\"dither\",An=\"blend.enable\",_n=\"blend.color\",kn=\"blend.equation\",Sn=\"blend.func\",On=\"depth.enable\",En=\"depth.func\",Tn=\"depth.range\",Dn=\"depth.mask\",jn=\"colorMask\",Cn=\"cull.enable\",zn=\"cull.face\",Fn=\"frontFace\",Vn=\"lineWidth\",Bn=\"polygonOffset.enable\",In=\"polygonOffset.offset\",Pn=\"sample.alpha\",Ln=\"sample.enable\",Rn=\"sample.coverage\",Mn=\"stencil.enable\",Un=\"stencil.mask\",Wn=\"stencil.func\",Gn=\"stencil.opFront\",Hn=\"stencil.opBack\",Nn=\"scissor.enable\",qn=\"scissor.box\",Qn=\"viewport\",Yn=\"profile\",Xn=\"framebuffer\",$n=\"vert\",Kn=\"frag\",Jn=\"elements\",Zn=\"primitive\",ea=\"count\",ta=\"offset\",ra=\"instances\",na=\"vao\",aa=\"Width\",ia=\"Height\",oa=Xn+aa,fa=Xn+ia,ua=Qn+aa,sa=Qn+ia,ca=\"drawingBuffer\",la=ca+aa,da=ca+ia,ma=[Sn,kn,Wn,Gn,Hn,Rn,Qn,qn,In],pa=34962,ha=34963,ba=3553,va=34067,ga=2884,ya=3042,xa=3024,wa=2960,Aa=2929,_a=3089,ka=32823,Sa=32926,Oa=32928,Ea=5126,Ta=35664,Da=35665,ja=35666,Ca=5124,za=35667,Fa=35668,Va=35669,Ba=35670,Ia=35671,Pa=35672,La=35673,Ra=35674,Ma=35675,Ua=35676,Wa=35678,Ga=35680,Ha=4,Na=1028,qa=1029,Qa=2304,Ya=2305,Xa=32775,$a=32776,Ka=519,Ja=7680,Za=0,ei=1,ti=32774,ri=513,ni=36160,ai=36064,ii={0:0,1:1,zero:0,one:1,\"src color\":768,\"one minus src color\":769,\"src alpha\":770,\"one minus src alpha\":771,\"dst color\":774,\"one minus dst color\":775,\"dst alpha\":772,\"one minus dst alpha\":773,\"constant color\":32769,\"one minus constant color\":32770,\"constant alpha\":32771,\"one minus constant alpha\":32772,\"src alpha saturate\":776},oi=[\"constant color, constant alpha\",\"one minus constant color, constant alpha\",\"constant color, one minus constant alpha\",\"one minus constant color, one minus constant alpha\",\"constant alpha, constant color\",\"constant alpha, one minus constant color\",\"one minus constant alpha, constant color\",\"one minus constant alpha, one minus constant color\"],fi={never:512,less:513,\"<\":513,equal:514,\"=\":514,\"==\":514,\"===\":514,lequal:515,\"<=\":515,greater:516,\">\":516,notequal:517,\"!=\":517,\"!==\":517,gequal:518,\">=\":518,always:519},ui={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,\"increment wrap\":34055,\"decrement wrap\":34056,invert:5386},si={frag:35632,vert:35633},ci={cw:Qa,ccw:Ya};function li(t){return Array.isArray(t)||e(t)||ce(t)}function di(e){return e.sort((function(e,t){return e===Qn?-1:t===Qn?1:e<t?-1:1}))}function mi(e,t,r,n){this.thisDep=e,this.contextDep=t,this.propDep=r,this.append=n}function pi(e){return e&&!(e.thisDep||e.contextDep||e.propDep)}function hi(e){return new mi(!1,!1,!1,e)}function bi(e,t){var r=e.type;if(r===pn){var n=e.data.length;return new mi(!0,n>=1,n>=2,t)}if(r===gn){var a=e.data;return new mi(a.thisDep,a.contextDep,a.propDep,t)}if(r===yn)return new mi(!1,!1,!1,t);if(r===xn){for(var i=!1,o=!1,f=!1,u=0;u<e.data.length;++u){var s=e.data[u];if(s.type===hn)f=!0;else if(s.type===bn)o=!0;else if(s.type===vn)i=!0;else if(s.type===pn){i=!0;var c=s.data;c>=1&&(o=!0),c>=2&&(f=!0)}else s.type===gn&&(i=i||s.data.thisDep,o=o||s.data.contextDep,f=f||s.data.propDep)}return new mi(i,o,f,t)}return new mi(r===vn,r===bn,r===hn,t)}var vi=new mi(!1,!1,!1,(function(){}));function gi(e,r,n,a,i,o,f,u,s,c,l,d,m,p,h){var b=c.Record,v={add:32774,subtract:32778,\"reverse subtract\":32779};n.ext_blend_minmax&&(v.min=Xa,v.max=$a);var g=n.angle_instanced_arrays,y=n.webgl_draw_buffers,x=n.oes_vertex_array_object,w={dirty:!0,profile:h.profile},A={},_=[],k={},S={};function O(e){return e.replace(\".\",\"_\")}function E(e,t,r){var n=O(e);_.push(e),A[n]=w[n]=!!r,k[n]=t}function T(e,t,r){var n=O(e);_.push(e),Array.isArray(r)?(w[n]=r.slice(),A[n]=r.slice()):w[n]=A[n]=r,S[n]=t}E(wn,xa),E(An,ya),T(_n,\"blendColor\",[0,0,0,0]),T(kn,\"blendEquationSeparate\",[ti,ti]),T(Sn,\"blendFuncSeparate\",[ei,Za,ei,Za]),E(On,Aa,!0),T(En,\"depthFunc\",ri),T(Tn,\"depthRange\",[0,1]),T(Dn,\"depthMask\",!0),T(jn,jn,[!0,!0,!0,!0]),E(Cn,ga),T(zn,\"cullFace\",qa),T(Fn,Fn,Ya),T(Vn,Vn,1),E(Bn,ka),T(In,\"polygonOffset\",[0,0]),E(Pn,Sa),E(Ln,Oa),T(Rn,\"sampleCoverage\",[1,!1]),E(Mn,wa),T(Un,\"stencilMask\",-1),T(Wn,\"stencilFunc\",[Ka,0,-1]),T(Gn,\"stencilOpSeparate\",[Na,Ja,Ja,Ja]),T(Hn,\"stencilOpSeparate\",[qa,Ja,Ja,Ja]),E(Nn,_a),T(qn,\"scissor\",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]),T(Qn,Qn,[0,0,e.drawingBufferWidth,e.drawingBufferHeight]);var D={gl:e,context:m,strings:r,next:A,current:w,draw:d,elements:o,buffer:i,shader:l,attributes:c.state,vao:c,uniforms:s,framebuffer:u,extensions:n,timer:p,isBufferArgs:li},j={primTypes:Te,compareFuncs:fi,blendFuncs:ii,blendEquations:v,stencilOps:ui,glTypes:be,orientationType:ci};F.optional((function(){D.isArrayLike=Ne})),y&&(j.backBuffer=[qa],j.drawBuffer=Y(a.maxDrawbuffers,(function(e){return 0===e?[0]:Y(e,(function(e){return ai+e}))})));var C=0;function z(){var e=function(){var e=0,r=[],n=[];function a(){var r=[],n=[];return t((function(){r.push.apply(r,un(arguments))}),{def:function(){var t=\"v\"+e++;return n.push(t),arguments.length>0&&(r.push(t,\"=\"),r.push.apply(r,un(arguments)),r.push(\";\")),t},toString:function(){return sn([n.length>0?\"var \"+n.join(\",\")+\";\":\"\",sn(r)])}})}function i(){var e=a(),r=a(),n=e.toString,i=r.toString;function o(t,n){r(t,n,\"=\",e.def(t,n),\";\")}return t((function(){e.apply(e,un(arguments))}),{def:e.def,entry:e,exit:r,save:o,set:function(t,r,n){o(t,r),e(t,r,\"=\",n,\";\")},toString:function(){return n()+i()}})}var o=a(),f={};return{global:o,link:function(t){for(var a=0;a<n.length;++a)if(n[a]===t)return r[a];var i=\"g\"+e++;return r.push(i),n.push(t),i},block:a,proc:function(e,r){var n=[];function a(){var e=\"a\"+n.length;return n.push(e),e}r=r||0;for(var o=0;o<r;++o)a();var u=i(),s=u.toString;return f[e]=t(u,{arg:a,toString:function(){return sn([\"function(\",n.join(),\"){\",s(),\"}\"])}})},scope:i,cond:function(){var e=sn(arguments),r=i(),n=i(),a=r.toString,o=n.toString;return t(r,{then:function(){return r.apply(r,un(arguments)),this},else:function(){return n.apply(n,un(arguments)),this},toString:function(){var t=o();return t&&(t=\"else{\"+t+\"}\"),sn([\"if(\",e,\"){\",a(),\"}\",t])}})},compile:function(){var e=['\"use strict\";',o,\"return {\"];Object.keys(f).forEach((function(t){e.push('\"',t,'\":',f[t].toString(),\",\")})),e.push(\"}\");var t=sn(e).replace(/;/g,\";\\n\").replace(/}/g,\"}\\n\").replace(/{/g,\"{\\n\");return Function.apply(null,r.concat(t)).apply(null,n)}}}(),n=e.link,a=e.global;e.id=C++,e.batchId=\"0\";var i=n(D),o=e.shared={props:\"a0\"};Object.keys(D).forEach((function(e){o[e]=a.def(i,\".\",e)})),F.optional((function(){e.CHECK=n(F),e.commandStr=F.guessCommand(),e.command=n(e.commandStr),e.assert=function(e,t,r){e(\"if(!(\",t,\"))\",this.CHECK,\".commandRaise(\",n(r),\",\",this.command,\");\")},j.invalidBlendCombinations=oi}));var f=e.next={},u=e.current={};Object.keys(S).forEach((function(e){Array.isArray(w[e])&&(f[e]=a.def(o.next,\".\",e),u[e]=a.def(o.current,\".\",e))}));var s=e.constants={};Object.keys(j).forEach((function(e){s[e]=a.def(JSON.stringify(j[e]))})),e.invoke=function(t,r){switch(r.type){case pn:var a=[\"this\",o.context,o.props,e.batchId];return t.def(n(r.data),\".call(\",a.slice(0,Math.max(r.data.length+1,4)),\")\");case hn:return t.def(o.props,r.data);case bn:return t.def(o.context,r.data);case vn:return t.def(\"this\",r.data);case gn:return r.data.append(e,t),r.data.ref;case yn:return r.data.toString();case xn:return r.data.map((function(r){return e.invoke(t,r)}))}},e.attribCache={};var l={};return e.scopeAttrib=function(e){var t=r.id(e);if(t in l)return l[t];var a=c.scope[t];return a||(a=c.scope[t]=new b),l[t]=n(a)},e}function V(e,t,f,s,d){var m=e.static,p=e.dynamic;F.optional((function(){var e=[Xn,$n,Kn,Jn,Zn,ta,ea,ra,Yn,na].concat(_);function t(t){Object.keys(t).forEach((function(t){F.command(e.indexOf(t)>=0,'unknown parameter \"'+t+'\"',d.commandStr)}))}t(m),t(p)}));var h=function(e,t){var r=e.static;if(\"string\"==typeof r[Kn]&&\"string\"==typeof r[$n]){if(Object.keys(t.dynamic).length>0)return null;var n=t.static,a=Object.keys(n);if(a.length>0&&\"number\"==typeof n[a[0]]){for(var i=[],o=0;o<a.length;++o)F(\"number\"==typeof n[a[o]],\"must specify all vertex attribute locations when using vaos\"),i.push([0|n[a[o]],a[o]]);return i}}return null}(e,t),y=function(e,t){var r=e.static,n=e.dynamic;if(Xn in r){var a=r[Xn];return a?(a=u.getFramebuffer(a),F.command(a,\"invalid framebuffer object\"),hi((function(e,t){var r=e.link(a),n=e.shared;t.set(n.framebuffer,\".next\",r);var i=n.context;return t.set(i,\".\"+oa,r+\".width\"),t.set(i,\".\"+fa,r+\".height\"),r}))):hi((function(e,t){var r=e.shared;t.set(r.framebuffer,\".next\",\"null\");var n=r.context;return t.set(n,\".\"+oa,n+\".\"+la),t.set(n,\".\"+fa,n+\".\"+da),\"null\"}))}if(Xn in n){var i=n[Xn];return bi(i,(function(e,t){var r=e.invoke(t,i),n=e.shared,a=n.framebuffer,o=t.def(a,\".getFramebuffer(\",r,\")\");F.optional((function(){e.assert(t,\"!\"+r+\"||\"+o,\"invalid framebuffer object\")})),t.set(a,\".next\",o);var f=n.context;return t.set(f,\".\"+oa,o+\"?\"+o+\".width:\"+f+\".\"+la),t.set(f,\".\"+fa,o+\"?\"+o+\".height:\"+f+\".\"+da),o}))}return null}(e),x=function(e,t,r){var n=e.static,a=e.dynamic;function i(e){if(e in n){var i=n[e];F.commandType(i,\"object\",\"invalid \"+e,r.commandStr);var o,f,u=!0,s=0|i.x,c=0|i.y;return\"width\"in i?(o=0|i.width,F.command(o>=0,\"invalid \"+e,r.commandStr)):u=!1,\"height\"in i?(f=0|i.height,F.command(f>=0,\"invalid \"+e,r.commandStr)):u=!1,new mi(!u&&t&&t.thisDep,!u&&t&&t.contextDep,!u&&t&&t.propDep,(function(e,t){var r=e.shared.context,n=o;\"width\"in i||(n=t.def(r,\".\",oa,\"-\",s));var a=f;return\"height\"in i||(a=t.def(r,\".\",fa,\"-\",c)),[s,c,n,a]}))}if(e in a){var l=a[e],d=bi(l,(function(t,r){var n=t.invoke(r,l);F.optional((function(){t.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+e)}));var a=t.shared.context,i=r.def(n,\".x|0\"),o=r.def(n,\".y|0\"),f=r.def('\"width\" in ',n,\"?\",n,\".width|0:\",\"(\",a,\".\",oa,\"-\",i,\")\"),u=r.def('\"height\" in ',n,\"?\",n,\".height|0:\",\"(\",a,\".\",fa,\"-\",o,\")\");return F.optional((function(){t.assert(r,f+\">=0&&\"+u+\">=0\",\"invalid \"+e)})),[i,o,f,u]}));return t&&(d.thisDep=d.thisDep||t.thisDep,d.contextDep=d.contextDep||t.contextDep,d.propDep=d.propDep||t.propDep),d}return t?new mi(t.thisDep,t.contextDep,t.propDep,(function(e,t){var r=e.shared.context;return[0,0,t.def(r,\".\",oa),t.def(r,\".\",fa)]})):null}var o=i(Qn);if(o){var f=o;o=new mi(o.thisDep,o.contextDep,o.propDep,(function(e,t){var r=f.append(e,t),n=e.shared.context;return t.set(n,\".\"+ua,r[2]),t.set(n,\".\"+sa,r[3]),r}))}return{viewport:o,scissor_box:i(qn)}}(e,y,d),w=function(e,t){var r=e.static,n=e.dynamic,a={},i=!1,f=function(){if(na in r){var e=r[na];return null!==e&&null===c.getVAO(e)&&(e=c.createVAO(e)),i=!0,a.vao=e,hi((function(t){var r=c.getVAO(e);return r?t.link(r):\"null\"}))}if(na in n){i=!0;var t=n[na];return bi(t,(function(e,r){var n=e.invoke(r,t);return r.def(e.shared.vao+\".getVAO(\"+n+\")\")}))}return null}(),u=!1,s=function(){if(Jn in r){var e=r[Jn];if(a.elements=e,li(e)){var s=a.elements=o.create(e,!0);e=o.getElements(s),u=!0}else e&&(e=o.getElements(e),u=!0,F.command(e,\"invalid elements\",t.commandStr));var c=hi((function(t,r){if(e){var n=t.link(e);return t.ELEMENTS=n,n}return t.ELEMENTS=null,null}));return c.value=e,c}if(Jn in n){u=!0;var l=n[Jn];return bi(l,(function(e,t){var r=e.shared,n=r.isBufferArgs,a=r.elements,i=e.invoke(t,l),o=t.def(\"null\"),f=t.def(n,\"(\",i,\")\"),u=e.cond(f).then(o,\"=\",a,\".createStream(\",i,\");\").else(o,\"=\",a,\".getElements(\",i,\");\");return F.optional((function(){e.assert(u.else,\"!\"+i+\"||\"+o,\"invalid elements\")})),t.entry(u),t.exit(e.cond(f).then(a,\".destroyStream(\",o,\");\")),e.ELEMENTS=o,o}))}return i?new mi(f.thisDep,f.contextDep,f.propDep,(function(e,t){return t.def(e.shared.vao+\".currentVAO?\"+e.shared.elements+\".getElements(\"+e.shared.vao+\".currentVAO.elements):null\")})):null}();function l(e,o){if(e in r){var s=0|r[e];return o?a.offset=s:a.instances=s,F.command(!o||s>=0,\"invalid \"+e,t.commandStr),hi((function(e,t){return o&&(e.OFFSET=s),s}))}if(e in n){var c=n[e];return bi(c,(function(t,r){var n=t.invoke(r,c);return o&&(t.OFFSET=n,F.optional((function(){t.assert(r,n+\">=0\",\"invalid \"+e)}))),n}))}if(o){if(u)return hi((function(e,t){return e.OFFSET=0,0}));if(i)return new mi(f.thisDep,f.contextDep,f.propDep,(function(e,t){return t.def(e.shared.vao+\".currentVAO?\"+e.shared.vao+\".currentVAO.offset:0\")}))}else if(i)return new mi(f.thisDep,f.contextDep,f.propDep,(function(e,t){return t.def(e.shared.vao+\".currentVAO?\"+e.shared.vao+\".currentVAO.instances:-1\")}));return null}var d=l(ta,!0),m=function(){if(Zn in r){var e=r[Zn];return a.primitive=e,F.commandParameter(e,Te,\"invalid primitve\",t.commandStr),hi((function(t,r){return Te[e]}))}if(Zn in n){var o=n[Zn];return bi(o,(function(e,t){var r=e.constants.primTypes,n=e.invoke(t,o);return F.optional((function(){e.assert(t,n+\" in \"+r,\"invalid primitive, must be one of \"+Object.keys(Te))})),t.def(r,\"[\",n,\"]\")}))}return u?pi(s)?s.value?hi((function(e,t){return t.def(e.ELEMENTS,\".primType\")})):hi((function(){return Ha})):new mi(s.thisDep,s.contextDep,s.propDep,(function(e,t){var r=e.ELEMENTS;return t.def(r,\"?\",r,\".primType:\",Ha)})):i?new mi(f.thisDep,f.contextDep,f.propDep,(function(e,t){return t.def(e.shared.vao+\".currentVAO?\"+e.shared.vao+\".currentVAO.primitive:\"+Ha)})):null}(),p=function(){if(ea in r){var e=0|r[ea];return a.count=e,F.command(\"number\"==typeof e&&e>=0,\"invalid vertex count\",t.commandStr),hi((function(){return e}))}if(ea in n){var o=n[ea];return bi(o,(function(e,t){var r=e.invoke(t,o);return F.optional((function(){e.assert(t,\"typeof \"+r+'===\"number\"&&'+r+\">=0&&\"+r+\"===(\"+r+\"|0)\",\"invalid vertex count\")})),r}))}if(u){if(pi(s)){if(s)return d?new mi(d.thisDep,d.contextDep,d.propDep,(function(e,t){var r=t.def(e.ELEMENTS,\".vertCount-\",e.OFFSET);return F.optional((function(){e.assert(t,r+\">=0\",\"invalid vertex offset/element buffer too small\")})),r})):hi((function(e,t){return t.def(e.ELEMENTS,\".vertCount\")}));var c=hi((function(){return-1}));return F.optional((function(){c.MISSING=!0})),c}var l=new mi(s.thisDep||d.thisDep,s.contextDep||d.contextDep,s.propDep||d.propDep,(function(e,t){var r=e.ELEMENTS;return e.OFFSET?t.def(r,\"?\",r,\".vertCount-\",e.OFFSET,\":-1\"):t.def(r,\"?\",r,\".vertCount:-1\")}));return F.optional((function(){l.DYNAMIC=!0})),l}if(i){var m=new mi(f.thisDep,f.contextDep,f.propDep,(function(e,t){return t.def(e.shared.vao,\".currentVAO?\",e.shared.vao,\".currentVAO.count:-1\")}));return m}return null}(),h=l(ra,!1);return{elements:s,primitive:m,count:p,instances:h,offset:d,vao:f,vaoActive:i,elementsActive:u,static:a}}(e,d),A=function(e,t){var r=e.static,n=e.dynamic,i={};return _.forEach((function(e){var o=O(e);function f(t,a){if(e in r){var f=t(r[e]);i[o]=hi((function(){return f}))}else if(e in n){var u=n[e];i[o]=bi(u,(function(e,t){return a(e,t,e.invoke(t,u))}))}}switch(e){case Cn:case An:case wn:case Mn:case On:case Nn:case Bn:case Pn:case Ln:case Dn:return f((function(r){return F.commandType(r,\"boolean\",e,t.commandStr),r}),(function(t,r,n){return F.optional((function(){t.assert(r,\"typeof \"+n+'===\"boolean\"',\"invalid flag \"+e,t.commandStr)})),n}));case En:return f((function(r){return F.commandParameter(r,fi,\"invalid \"+e,t.commandStr),fi[r]}),(function(t,r,n){var a=t.constants.compareFuncs;return F.optional((function(){t.assert(r,n+\" in \"+a,\"invalid \"+e+\", must be one of \"+Object.keys(fi))})),r.def(a,\"[\",n,\"]\")}));case Tn:return f((function(e){return F.command(Ne(e)&&2===e.length&&\"number\"==typeof e[0]&&\"number\"==typeof e[1]&&e[0]<=e[1],\"depth range is 2d array\",t.commandStr),e}),(function(e,t,r){return F.optional((function(){e.assert(t,e.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===2&&typeof \"+r+'[0]===\"number\"&&typeof '+r+'[1]===\"number\"&&'+r+\"[0]<=\"+r+\"[1]\",\"depth range must be a 2d array\")})),[t.def(\"+\",r,\"[0]\"),t.def(\"+\",r,\"[1]\")]}));case Sn:return f((function(e){F.commandType(e,\"object\",\"blend.func\",t.commandStr);var r=\"srcRGB\"in e?e.srcRGB:e.src,n=\"srcAlpha\"in e?e.srcAlpha:e.src,a=\"dstRGB\"in e?e.dstRGB:e.dst,i=\"dstAlpha\"in e?e.dstAlpha:e.dst;return F.commandParameter(r,ii,o+\".srcRGB\",t.commandStr),F.commandParameter(n,ii,o+\".srcAlpha\",t.commandStr),F.commandParameter(a,ii,o+\".dstRGB\",t.commandStr),F.commandParameter(i,ii,o+\".dstAlpha\",t.commandStr),F.command(-1===oi.indexOf(r+\", \"+a),\"unallowed blending combination (srcRGB, dstRGB) = (\"+r+\", \"+a+\")\",t.commandStr),[ii[r],ii[a],ii[n],ii[i]]}),(function(t,r,n){var a=t.constants.blendFuncs;function i(i,o){var f=r.def('\"',i,o,'\" in ',n,\"?\",n,\".\",i,o,\":\",n,\".\",i);return F.optional((function(){t.assert(r,f+\" in \"+a,\"invalid \"+e+\".\"+i+o+\", must be one of \"+Object.keys(ii))})),f}F.optional((function(){t.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid blend func, must be an object\")}));var o=i(\"src\",\"RGB\"),f=i(\"dst\",\"RGB\");F.optional((function(){var e=t.constants.invalidBlendCombinations;t.assert(r,e+\".indexOf(\"+o+'+\", \"+'+f+\") === -1 \",\"unallowed blending combination for (srcRGB, dstRGB)\")}));var u=r.def(a,\"[\",o,\"]\"),s=r.def(a,\"[\",i(\"src\",\"Alpha\"),\"]\");return[u,r.def(a,\"[\",f,\"]\"),s,r.def(a,\"[\",i(\"dst\",\"Alpha\"),\"]\")]}));case kn:return f((function(r){return\"string\"==typeof r?(F.commandParameter(r,v,\"invalid \"+e,t.commandStr),[v[r],v[r]]):\"object\"==typeof r?(F.commandParameter(r.rgb,v,e+\".rgb\",t.commandStr),F.commandParameter(r.alpha,v,e+\".alpha\",t.commandStr),[v[r.rgb],v[r.alpha]]):void F.commandRaise(\"invalid blend.equation\",t.commandStr)}),(function(t,r,n){var a=t.constants.blendEquations,i=r.def(),o=r.def(),f=t.cond(\"typeof \",n,'===\"string\"');return F.optional((function(){function r(e,r,n){t.assert(e,n+\" in \"+a,\"invalid \"+r+\", must be one of \"+Object.keys(v))}r(f.then,e,n),t.assert(f.else,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+e),r(f.else,e+\".rgb\",n+\".rgb\"),r(f.else,e+\".alpha\",n+\".alpha\")})),f.then(i,\"=\",o,\"=\",a,\"[\",n,\"];\"),f.else(i,\"=\",a,\"[\",n,\".rgb];\",o,\"=\",a,\"[\",n,\".alpha];\"),r(f),[i,o]}));case _n:return f((function(e){return F.command(Ne(e)&&4===e.length,\"blend.color must be a 4d array\",t.commandStr),Y(4,(function(t){return+e[t]}))}),(function(e,t,r){return F.optional((function(){e.assert(t,e.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===4\",\"blend.color must be a 4d array\")})),Y(4,(function(e){return t.def(\"+\",r,\"[\",e,\"]\")}))}));case Un:return f((function(e){return F.commandType(e,\"number\",o,t.commandStr),0|e}),(function(e,t,r){return F.optional((function(){e.assert(t,\"typeof \"+r+'===\"number\"',\"invalid stencil.mask\")})),t.def(r,\"|0\")}));case Wn:return f((function(r){F.commandType(r,\"object\",o,t.commandStr);var n=r.cmp||\"keep\",a=r.ref||0,i=\"mask\"in r?r.mask:-1;return F.commandParameter(n,fi,e+\".cmp\",t.commandStr),F.commandType(a,\"number\",e+\".ref\",t.commandStr),F.commandType(i,\"number\",e+\".mask\",t.commandStr),[fi[n],a,i]}),(function(e,t,r){var n=e.constants.compareFuncs;return F.optional((function(){function a(){e.assert(t,Array.prototype.join.call(arguments,\"\"),\"invalid stencil.func\")}a(r+\"&&typeof \",r,'===\"object\"'),a('!(\"cmp\" in ',r,\")||(\",r,\".cmp in \",n,\")\")})),[t.def('\"cmp\" in ',r,\"?\",n,\"[\",r,\".cmp]\",\":\",Ja),t.def(r,\".ref|0\"),t.def('\"mask\" in ',r,\"?\",r,\".mask|0:-1\")]}));case Gn:case Hn:return f((function(r){F.commandType(r,\"object\",o,t.commandStr);var n=r.fail||\"keep\",a=r.zfail||\"keep\",i=r.zpass||\"keep\";return F.commandParameter(n,ui,e+\".fail\",t.commandStr),F.commandParameter(a,ui,e+\".zfail\",t.commandStr),F.commandParameter(i,ui,e+\".zpass\",t.commandStr),[e===Hn?qa:Na,ui[n],ui[a],ui[i]]}),(function(t,r,n){var a=t.constants.stencilOps;function i(i){return F.optional((function(){t.assert(r,'!(\"'+i+'\" in '+n+\")||(\"+n+\".\"+i+\" in \"+a+\")\",\"invalid \"+e+\".\"+i+\", must be one of \"+Object.keys(ui))})),r.def('\"',i,'\" in ',n,\"?\",a,\"[\",n,\".\",i,\"]:\",Ja)}return F.optional((function(){t.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+e)})),[e===Hn?qa:Na,i(\"fail\"),i(\"zfail\"),i(\"zpass\")]}));case In:return f((function(e){F.commandType(e,\"object\",o,t.commandStr);var r=0|e.factor,n=0|e.units;return F.commandType(r,\"number\",o+\".factor\",t.commandStr),F.commandType(n,\"number\",o+\".units\",t.commandStr),[r,n]}),(function(t,r,n){return F.optional((function(){t.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+e)})),[r.def(n,\".factor|0\"),r.def(n,\".units|0\")]}));case zn:return f((function(e){var r=0;return\"front\"===e?r=Na:\"back\"===e&&(r=qa),F.command(!!r,o,t.commandStr),r}),(function(e,t,r){return F.optional((function(){e.assert(t,r+'===\"front\"||'+r+'===\"back\"',\"invalid cull.face\")})),t.def(r,'===\"front\"?',Na,\":\",qa)}));case Vn:return f((function(e){return F.command(\"number\"==typeof e&&e>=a.lineWidthDims[0]&&e<=a.lineWidthDims[1],\"invalid line width, must be a positive number between \"+a.lineWidthDims[0]+\" and \"+a.lineWidthDims[1],t.commandStr),e}),(function(e,t,r){return F.optional((function(){e.assert(t,\"typeof \"+r+'===\"number\"&&'+r+\">=\"+a.lineWidthDims[0]+\"&&\"+r+\"<=\"+a.lineWidthDims[1],\"invalid line width\")})),r}));case Fn:return f((function(e){return F.commandParameter(e,ci,o,t.commandStr),ci[e]}),(function(e,t,r){return F.optional((function(){e.assert(t,r+'===\"cw\"||'+r+'===\"ccw\"',\"invalid frontFace, must be one of cw,ccw\")})),t.def(r+'===\"cw\"?'+Qa+\":\"+Ya)}));case jn:return f((function(e){return F.command(Ne(e)&&4===e.length,\"color.mask must be length 4 array\",t.commandStr),e.map((function(e){return!!e}))}),(function(e,t,r){return F.optional((function(){e.assert(t,e.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===4\",\"invalid color.mask\")})),Y(4,(function(e){return\"!!\"+r+\"[\"+e+\"]\"}))}));case Rn:return f((function(e){F.command(\"object\"==typeof e&&e,o,t.commandStr);var r=\"value\"in e?e.value:1,n=!!e.invert;return F.command(\"number\"==typeof r&&r>=0&&r<=1,\"sample.coverage.value must be a number between 0 and 1\",t.commandStr),[r,n]}),(function(e,t,r){return F.optional((function(){e.assert(t,r+\"&&typeof \"+r+'===\"object\"',\"invalid sample.coverage\")})),[t.def('\"value\" in ',r,\"?+\",r,\".value:1\"),t.def(\"!!\",r,\".invert\")]}))}})),i}(e,d),k=function(e,t,n){var a=e.static,i=e.dynamic;function o(e){if(e in a){var t=r.id(a[e]);F.optional((function(){l.shader(si[e],t,F.guessCommand())}));var n=hi((function(){return t}));return n.id=t,n}if(e in i){var o=i[e];return bi(o,(function(t,r){var n=t.invoke(r,o),a=r.def(t.shared.strings,\".id(\",n,\")\");return F.optional((function(){r(t.shared.shader,\".shader(\",si[e],\",\",a,\",\",t.command,\");\")})),a}))}return null}var f,u=o(Kn),s=o($n),c=null;return pi(u)&&pi(s)?(c=l.program(s.id,u.id,null,n),f=hi((function(e,t){return e.link(c)}))):f=new mi(u&&u.thisDep||s&&s.thisDep,u&&u.contextDep||s&&s.contextDep,u&&u.propDep||s&&s.propDep,(function(e,t){var r,n=e.shared.shader;r=u?u.append(e,t):t.def(n,\".\",Kn);var a=n+\".program(\"+(s?s.append(e,t):t.def(n,\".\",$n))+\",\"+r;return F.optional((function(){a+=\",\"+e.command})),t.def(a+\")\")})),{frag:u,vert:s,progVar:f,program:c}}(e,0,h);function S(e){var t=x[e];t&&(A[e]=t)}S(Qn),S(O(qn));var E=Object.keys(A).length>0,T={framebuffer:y,draw:w,shader:k,state:A,dirty:E,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(T.profile=function(e){var t,r=e.static,n=e.dynamic;if(Yn in r){var a=!!r[Yn];(t=hi((function(e,t){return a}))).enable=a}else if(Yn in n){var i=n[Yn];t=bi(i,(function(e,t){return e.invoke(t,i)}))}return t}(e),T.uniforms=function(e,t){var r=e.static,n=e.dynamic,a={};return Object.keys(r).forEach((function(e){var n,i=r[e];if(\"number\"==typeof i||\"boolean\"==typeof i)n=hi((function(){return i}));else if(\"function\"==typeof i){var o=i._reglType;\"texture2d\"===o||\"textureCube\"===o?n=hi((function(e){return e.link(i)})):\"framebuffer\"===o||\"framebufferCube\"===o?(F.command(i.color.length>0,'missing color attachment for framebuffer sent to uniform \"'+e+'\"',t.commandStr),n=hi((function(e){return e.link(i.color[0])}))):F.commandRaise('invalid data for uniform \"'+e+'\"',t.commandStr)}else Ne(i)?n=hi((function(t){return t.global.def(\"[\",Y(i.length,(function(r){return F.command(\"number\"==typeof i[r]||\"boolean\"==typeof i[r],\"invalid uniform \"+e,t.commandStr),i[r]})),\"]\")})):F.commandRaise('invalid or missing data for uniform \"'+e+'\"',t.commandStr);n.value=i,a[e]=n})),Object.keys(n).forEach((function(e){var t=n[e];a[e]=bi(t,(function(e,r){return e.invoke(r,t)}))})),a}(f,d),T.drawVAO=T.scopeVAO=w.vao,!T.drawVAO&&k.program&&!h&&n.angle_instanced_arrays&&w.static.elements){var D=!0,j=k.program.attributes.map((function(e){var r=t.static[e];return D=D&&!!r,r}));if(D&&j.length>0){var C=c.getVAO(c.createVAO({attributes:j,elements:w.static.elements}));T.drawVAO=new mi(null,null,null,(function(e,t){return e.link(C)})),T.useVAO=!0}}return h?T.useVAO=!0:T.attributes=function(e,t){var n=e.static,a=e.dynamic,o={};return Object.keys(n).forEach((function(e){var a=n[e],f=r.id(e),u=new b;if(li(a))u.state=dn,u.buffer=i.getBuffer(i.create(a,pa,!1,!0)),u.type=0;else{var s=i.getBuffer(a);if(s)u.state=dn,u.buffer=s,u.type=0;else if(F.command(\"object\"==typeof a&&a,\"invalid data for attribute \"+e,t.commandStr),\"constant\"in a){var c=a.constant;u.buffer=\"null\",u.state=mn,\"number\"==typeof c?u.x=c:(F.command(Ne(c)&&c.length>0&&c.length<=4,\"invalid constant for attribute \"+e,t.commandStr),cn.forEach((function(e,t){t<c.length&&(u[e]=c[t])})))}else{s=li(a.buffer)?i.getBuffer(i.create(a.buffer,pa,!1,!0)):i.getBuffer(a.buffer),F.command(!!s,'missing buffer for attribute \"'+e+'\"',t.commandStr);var l=0|a.offset;F.command(l>=0,'invalid offset for attribute \"'+e+'\"',t.commandStr);var d=0|a.stride;F.command(d>=0&&d<256,'invalid stride for attribute \"'+e+'\", must be integer betweeen [0, 255]',t.commandStr);var m=0|a.size;F.command(!(\"size\"in a)||m>0&&m<=4,'invalid size for attribute \"'+e+'\", must be 1,2,3,4',t.commandStr);var p=!!a.normalized,h=0;\"type\"in a&&(F.commandParameter(a.type,be,\"invalid type for attribute \"+e,t.commandStr),h=be[a.type]);var v=0|a.divisor;F.optional((function(){\"divisor\"in a&&(F.command(0===v||g,'cannot specify divisor for attribute \"'+e+'\", instancing not supported',t.commandStr),F.command(v>=0,'invalid divisor for attribute \"'+e+'\"',t.commandStr));var r=t.commandStr,n=[\"buffer\",\"offset\",\"divisor\",\"normalized\",\"type\",\"size\",\"stride\"];Object.keys(a).forEach((function(t){F.command(n.indexOf(t)>=0,'unknown parameter \"'+t+'\" for attribute pointer \"'+e+'\" (valid parameters are '+n+\")\",r)}))})),u.buffer=s,u.state=dn,u.size=m,u.normalized=p,u.type=h||s.dtype,u.offset=l,u.stride=d,u.divisor=v}}o[e]=hi((function(e,t){var r=e.attribCache;if(f in r)return r[f];var n={isStream:!1};return Object.keys(u).forEach((function(e){n[e]=u[e]})),u.buffer&&(n.buffer=e.link(u.buffer),n.type=n.type||n.buffer+\".dtype\"),r[f]=n,n}))})),Object.keys(a).forEach((function(e){var t=a[e];o[e]=bi(t,(function(r,n){var a=r.invoke(n,t),i=r.shared,o=r.constants,f=i.isBufferArgs,u=i.buffer;F.optional((function(){r.assert(n,a+\"&&(typeof \"+a+'===\"object\"||typeof '+a+'===\"function\")&&('+f+\"(\"+a+\")||\"+u+\".getBuffer(\"+a+\")||\"+u+\".getBuffer(\"+a+\".buffer)||\"+f+\"(\"+a+'.buffer)||(\"constant\" in '+a+\"&&(typeof \"+a+'.constant===\"number\"||'+i.isArrayLike+\"(\"+a+\".constant))))\",'invalid dynamic attribute \"'+e+'\"')}));var s={isStream:n.def(!1)},c=new b;c.state=dn,Object.keys(c).forEach((function(e){s[e]=n.def(\"\"+c[e])}));var l=s.buffer,d=s.type;function m(e){n(s[e],\"=\",a,\".\",e,\"|0;\")}return n(\"if(\",f,\"(\",a,\")){\",s.isStream,\"=true;\",l,\"=\",u,\".createStream(\",pa,\",\",a,\");\",d,\"=\",l,\".dtype;\",\"}else{\",l,\"=\",u,\".getBuffer(\",a,\");\",\"if(\",l,\"){\",d,\"=\",l,\".dtype;\",'}else if(\"constant\" in ',a,\"){\",s.state,\"=\",mn,\";\",\"if(typeof \"+a+'.constant === \"number\"){',s[cn[0]],\"=\",a,\".constant;\",cn.slice(1).map((function(e){return s[e]})).join(\"=\"),\"=0;\",\"}else{\",cn.map((function(e,t){return s[e]+\"=\"+a+\".constant.length>\"+t+\"?\"+a+\".constant[\"+t+\"]:0;\"})).join(\"\"),\"}}else{\",\"if(\",f,\"(\",a,\".buffer)){\",l,\"=\",u,\".createStream(\",pa,\",\",a,\".buffer);\",\"}else{\",l,\"=\",u,\".getBuffer(\",a,\".buffer);\",\"}\",d,'=\"type\" in ',a,\"?\",o.glTypes,\"[\",a,\".type]:\",l,\".dtype;\",s.normalized,\"=!!\",a,\".normalized;\"),m(\"size\"),m(\"offset\"),m(\"stride\"),m(\"divisor\"),n(\"}}\"),n.exit(\"if(\",s.isStream,\"){\",u,\".destroyStream(\",l,\");\",\"}\"),s}))})),o}(t,d),T.context=function(e){var t=e.static,r=e.dynamic,n={};return Object.keys(t).forEach((function(e){var r=t[e];n[e]=hi((function(e,t){return\"number\"==typeof r||\"boolean\"==typeof r?\"\"+r:e.link(r)}))})),Object.keys(r).forEach((function(e){var t=r[e];n[e]=bi(t,(function(e,r){return e.invoke(r,t)}))})),n}(s),T}function B(e,t,r){var n=e.shared.context,a=e.scope();Object.keys(r).forEach((function(i){t.save(n,\".\"+i);var o=r[i].append(e,t);Array.isArray(o)?a(n,\".\",i,\"=[\",o.join(),\"];\"):a(n,\".\",i,\"=\",o,\";\")})),t(a)}function I(e,t,r,n){var a,i=e.shared,o=i.gl,f=i.framebuffer;y&&(a=t.def(i.extensions,\".webgl_draw_buffers\"));var u,s=e.constants,c=s.drawBuffer,l=s.backBuffer;u=r?r.append(e,t):t.def(f,\".next\"),n||t(\"if(\",u,\"!==\",f,\".cur){\"),t(\"if(\",u,\"){\",o,\".bindFramebuffer(\",ni,\",\",u,\".framebuffer);\"),y&&t(a,\".drawBuffersWEBGL(\",c,\"[\",u,\".colorAttachments.length]);\"),t(\"}else{\",o,\".bindFramebuffer(\",ni,\",null);\"),y&&t(a,\".drawBuffersWEBGL(\",l,\");\"),t(\"}\",f,\".cur=\",u,\";\"),n||t(\"}\")}function P(e,t,r){var n=e.shared,a=n.gl,i=e.current,o=e.next,f=n.current,u=n.next,s=e.cond(f,\".dirty\");_.forEach((function(t){var n,c,l=O(t);if(!(l in r.state))if(l in o){n=o[l],c=i[l];var d=Y(w[l].length,(function(e){return s.def(n,\"[\",e,\"]\")}));s(e.cond(d.map((function(e,t){return e+\"!==\"+c+\"[\"+t+\"]\"})).join(\"||\")).then(a,\".\",S[l],\"(\",d,\");\",d.map((function(e,t){return c+\"[\"+t+\"]=\"+e})).join(\";\"),\";\"))}else{n=s.def(u,\".\",l);var m=e.cond(n,\"!==\",f,\".\",l);s(m),l in k?m(e.cond(n).then(a,\".enable(\",k[l],\");\").else(a,\".disable(\",k[l],\");\"),f,\".\",l,\"=\",n,\";\"):m(a,\".\",S[l],\"(\",n,\");\",f,\".\",l,\"=\",n,\";\")}})),0===Object.keys(r.state).length&&s(f,\".dirty=false;\"),t(s)}function L(e,t,r,n){var a=e.shared,i=e.current,o=a.current,f=a.gl;di(Object.keys(r)).forEach((function(a){var u=r[a];if(!n||n(u)){var s=u.append(e,t);if(k[a]){var c=k[a];pi(u)?t(f,s?\".enable(\":\".disable(\",c,\");\"):t(e.cond(s).then(f,\".enable(\",c,\");\").else(f,\".disable(\",c,\");\")),t(o,\".\",a,\"=\",s,\";\")}else if(Ne(s)){var l=i[a];t(f,\".\",S[a],\"(\",s,\");\",s.map((function(e,t){return l+\"[\"+t+\"]=\"+e})).join(\";\"),\";\")}else t(f,\".\",S[a],\"(\",s,\");\",o,\".\",a,\"=\",s,\";\")}}))}function R(e,t){g&&(e.instancing=t.def(e.shared.extensions,\".angle_instanced_arrays\"))}function M(e,t,r,n,a){var i,o,f,u=e.shared,s=e.stats,c=u.current,l=u.timer,d=r.profile;function m(){return\"undefined\"==typeof performance?\"Date.now()\":\"performance.now()\"}function h(e){e(i=t.def(),\"=\",m(),\";\"),\"string\"==typeof a?e(s,\".count+=\",a,\";\"):e(s,\".count++;\"),p&&(n?e(o=t.def(),\"=\",l,\".getNumPendingQueries();\"):e(l,\".beginQuery(\",s,\");\"))}function b(e){e(s,\".cpuTime+=\",m(),\"-\",i,\";\"),p&&(n?e(l,\".pushScopeStats(\",o,\",\",l,\".getNumPendingQueries(),\",s,\");\"):e(l,\".endQuery();\"))}function v(e){var r=t.def(c,\".profile\");t(c,\".profile=\",e,\";\"),t.exit(c,\".profile=\",r,\";\")}if(d){if(pi(d))return void(d.enable?(h(t),b(t.exit),v(\"true\")):v(\"false\"));v(f=d.append(e,t))}else f=t.def(c,\".profile\");var g=e.block();h(g),t(\"if(\",f,\"){\",g,\"}\");var y=e.block();b(y),t.exit(\"if(\",f,\"){\",y,\"}\")}function U(e,t,r,n,a){var i=e.shared;n.forEach((function(n){var o,f=n.name,u=r.attributes[f];if(u){if(!a(u))return;o=u.append(e,t)}else{if(!a(vi))return;var s=e.scopeAttrib(f);F.optional((function(){e.assert(t,s+\".state\",\"missing attribute \"+f)})),o={},Object.keys(new b).forEach((function(e){o[e]=t.def(s,\".\",e)}))}!function(r,n,a){var o=i.gl,f=t.def(r,\".location\"),u=t.def(i.attributes,\"[\",f,\"]\"),s=a.state,c=a.buffer,l=[a.x,a.y,a.z,a.w],d=[\"buffer\",\"normalized\",\"offset\",\"stride\"];function m(){t(\"if(!\",u,\".buffer){\",o,\".enableVertexAttribArray(\",f,\");}\");var r,i=a.type;if(r=a.size?t.def(a.size,\"||\",n):n,t(\"if(\",u,\".type!==\",i,\"||\",u,\".size!==\",r,\"||\",d.map((function(e){return u+\".\"+e+\"!==\"+a[e]})).join(\"||\"),\"){\",o,\".bindBuffer(\",pa,\",\",c,\".buffer);\",o,\".vertexAttribPointer(\",[f,r,i,a.normalized,a.stride,a.offset],\");\",u,\".type=\",i,\";\",u,\".size=\",r,\";\",d.map((function(e){return u+\".\"+e+\"=\"+a[e]+\";\"})).join(\"\"),\"}\"),g){var s=a.divisor;t(\"if(\",u,\".divisor!==\",s,\"){\",e.instancing,\".vertexAttribDivisorANGLE(\",[f,s],\");\",u,\".divisor=\",s,\";}\")}}function p(){t(\"if(\",u,\".buffer){\",o,\".disableVertexAttribArray(\",f,\");\",u,\".buffer=null;\",\"}if(\",cn.map((function(e,t){return u+\".\"+e+\"!==\"+l[t]})).join(\"||\"),\"){\",o,\".vertexAttrib4f(\",f,\",\",l,\");\",cn.map((function(e,t){return u+\".\"+e+\"=\"+l[t]+\";\"})).join(\"\"),\"}\")}s===dn?m():s===mn?p():(t(\"if(\",s,\"===\",dn,\"){\"),m(),t(\"}else{\"),p(),t(\"}\"))}(e.link(n),function(e){switch(e){case Ta:case za:case Ia:return 2;case Da:case Fa:case Pa:return 3;case ja:case Va:case La:return 4;default:return 1}}(n.info.type),o)}))}function G(e,t,n,a,i,o){for(var f,u=e.shared,s=u.gl,c={},l=0;l<a.length;++l){var d=a[l],m=d.name,p=d.info.type,h=d.info.size,b=n.uniforms[m];if(h>1){if(!b)continue;var v=m.replace(\"[0]\",\"\");if(c[v])continue;c[v]=1}var g,y=e.link(d)+\".location\";if(b){if(!i(b))continue;if(pi(b)){var x=b.value;if(F.command(null!=x,'missing uniform \"'+m+'\"',e.commandStr),p===Wa||p===Ga){F.command(\"function\"==typeof x&&(p===Wa&&(\"texture2d\"===x._reglType||\"framebuffer\"===x._reglType)||p===Ga&&(\"textureCube\"===x._reglType||\"framebufferCube\"===x._reglType)),\"invalid texture for uniform \"+m,e.commandStr);var w=e.link(x._texture||x.color[0]._texture);t(s,\".uniform1i(\",y,\",\",w+\".bind());\"),t.exit(w,\".unbind();\")}else if(p===Ra||p===Ma||p===Ua){F.optional((function(){F.command(Ne(x),\"invalid matrix for uniform \"+m,e.commandStr),F.command(p===Ra&&4===x.length||p===Ma&&9===x.length||p===Ua&&16===x.length,\"invalid length for matrix uniform \"+m,e.commandStr)}));var A=e.global.def(\"new Float32Array([\"+Array.prototype.slice.call(x)+\"])\"),_=2;p===Ma?_=3:p===Ua&&(_=4),t(s,\".uniformMatrix\",_,\"fv(\",y,\",false,\",A,\");\")}else{switch(p){case Ea:1===h?F.commandType(x,\"number\",\"uniform \"+m,e.commandStr):F.command(Ne(x)&&x.length===h,\"uniform \"+m,e.commandStr),f=\"1f\";break;case Ta:F.command(Ne(x)&&x.length&&x.length%2==0&&x.length<=2*h,\"uniform \"+m,e.commandStr),f=\"2f\";break;case Da:F.command(Ne(x)&&x.length&&x.length%3==0&&x.length<=3*h,\"uniform \"+m,e.commandStr),f=\"3f\";break;case ja:F.command(Ne(x)&&x.length&&x.length%4==0&&x.length<=4*h,\"uniform \"+m,e.commandStr),f=\"4f\";break;case Ba:1===h?F.commandType(x,\"boolean\",\"uniform \"+m,e.commandStr):F.command(Ne(x)&&x.length===h,\"uniform \"+m,e.commandStr),f=\"1i\";break;case Ca:1===h?F.commandType(x,\"number\",\"uniform \"+m,e.commandStr):F.command(Ne(x)&&x.length===h,\"uniform \"+m,e.commandStr),f=\"1i\";break;case Ia:case za:F.command(Ne(x)&&x.length&&x.length%2==0&&x.length<=2*h,\"uniform \"+m,e.commandStr),f=\"2i\";break;case Pa:case Fa:F.command(Ne(x)&&x.length&&x.length%3==0&&x.length<=3*h,\"uniform \"+m,e.commandStr),f=\"3i\";break;case La:case Va:F.command(Ne(x)&&x.length&&x.length%4==0&&x.length<=4*h,\"uniform \"+m,e.commandStr),f=\"4i\"}h>1?(f+=\"v\",x=e.global.def(\"[\"+Array.prototype.slice.call(x)+\"]\")):x=Ne(x)?Array.prototype.slice.call(x):x,t(s,\".uniform\",f,\"(\",y,\",\",x,\");\")}continue}g=b.append(e,t)}else{if(!i(vi))continue;g=t.def(u.uniforms,\"[\",r.id(m),\"]\")}p===Wa?(F(!Array.isArray(g),\"must specify a scalar prop for textures\"),t(\"if(\",g,\"&&\",g,'._reglType===\"framebuffer\"){',g,\"=\",g,\".color[0];\",\"}\")):p===Ga&&(F(!Array.isArray(g),\"must specify a scalar prop for cube maps\"),t(\"if(\",g,\"&&\",g,'._reglType===\"framebufferCube\"){',g,\"=\",g,\".color[0];\",\"}\")),F.optional((function(){function r(r,n){e.assert(t,r,'bad data or missing for uniform \"'+m+'\". '+n)}function n(e,t){1===t&&F(!Array.isArray(g),\"must not specify an array type for uniform\"),r(\"Array.isArray(\"+g+\") && typeof \"+g+'[0]===\" '+e+'\" || typeof '+g+'===\"'+e+'\"',\"invalid type, expected \"+e)}function a(t,n,a){Array.isArray(g)?F(g.length&&g.length%t==0&&g.length<=t*a,\"must have length of \"+(1===a?\"\":\"n * \")+t):r(u.isArrayLike+\"(\"+g+\")&&\"+g+\".length && \"+g+\".length % \"+t+\" === 0 && \"+g+\".length<=\"+t*a,\"invalid vector, should have length of \"+(1===a?\"\":\"n * \")+t,e.commandStr)}function i(t){F(!Array.isArray(g),\"must not specify a value type\"),r(\"typeof \"+g+'===\"function\"&&'+g+'._reglType===\"texture'+(t===ba?\"2d\":\"Cube\")+'\"',\"invalid texture type\",e.commandStr)}switch(p){case Ca:n(\"number\",h);break;case za:a(2,0,h);break;case Fa:a(3,0,h);break;case Va:a(4,0,h);break;case Ea:n(\"number\",h);break;case Ta:a(2,0,h);break;case Da:a(3,0,h);break;case ja:a(4,0,h);break;case Ba:n(\"boolean\",h);break;case Ia:a(2,0,h);break;case Pa:a(3,0,h);break;case La:case Ra:a(4,0,h);break;case Ma:a(9,0,h);break;case Ua:a(16,0,h);break;case Wa:i(ba);break;case Ga:i(va)}}));var k=1;switch(p){case Wa:case Ga:var S=t.def(g,\"._texture\");t(s,\".uniform1i(\",y,\",\",S,\".bind());\"),t.exit(S,\".unbind();\");continue;case Ca:case Ba:f=\"1i\";break;case za:case Ia:f=\"2i\",k=2;break;case Fa:case Pa:f=\"3i\",k=3;break;case Va:case La:f=\"4i\",k=4;break;case Ea:f=\"1f\";break;case Ta:f=\"2f\",k=2;break;case Da:f=\"3f\",k=3;break;case ja:f=\"4f\",k=4;break;case Ra:f=\"Matrix2fv\";break;case Ma:f=\"Matrix3fv\";break;case Ua:f=\"Matrix4fv\"}if(-1===f.indexOf(\"Matrix\")&&h>1&&(f+=\"v\",k=1),\"M\"===f.charAt(0)){t(s,\".uniform\",f,\"(\",y,\",\");var O=Math.pow(p-Ra+2,2),E=e.global.def(\"new Float32Array(\",O,\")\");Array.isArray(g)?t(\"false,(\",Y(O,(function(e){return E+\"[\"+e+\"]=\"+g[e]})),\",\",E,\")\"):t(\"false,(Array.isArray(\",g,\")||\",g,\" instanceof Float32Array)?\",g,\":(\",Y(O,(function(e){return E+\"[\"+e+\"]=\"+g+\"[\"+e+\"]\"})),\",\",E,\")\"),t(\");\")}else if(k>1){for(var T=[],D=[],j=0;j<k;++j)Array.isArray(g)?D.push(g[j]):D.push(t.def(g+\"[\"+j+\"]\")),o&&T.push(t.def());o&&t(\"if(!\",e.batchId,\"||\",T.map((function(e,t){return e+\"!==\"+D[t]})).join(\"||\"),\"){\",T.map((function(e,t){return e+\"=\"+D[t]+\";\"})).join(\"\")),t(s,\".uniform\",f,\"(\",y,\",\",D.join(\",\"),\");\"),o&&t(\"}\")}else{if(F(!Array.isArray(g),\"uniform value must not be an array\"),o){var C=t.def();t(\"if(!\",e.batchId,\"||\",C,\"!==\",g,\"){\",C,\"=\",g,\";\")}t(s,\".uniform\",f,\"(\",y,\",\",g,\");\"),o&&t(\"}\")}}}function H(e,t,r,n){var a=e.shared,i=a.gl,o=a.draw,f=n.draw,u=function(){var u,s=f.elements,c=t;return s?((s.contextDep&&n.contextDynamic||s.propDep)&&(c=r),u=s.append(e,c),f.elementsActive&&c(\"if(\"+u+\")\"+i+\".bindBuffer(\"+ha+\",\"+u+\".buffer.buffer);\")):(u=c.def(),c(u,\"=\",o,\".\",Jn,\";\",\"if(\",u,\"){\",i,\".bindBuffer(\",ha,\",\",u,\".buffer.buffer);}\",\"else if(\",a.vao,\".currentVAO){\",u,\"=\",e.shared.elements+\".getElements(\"+a.vao,\".currentVAO.elements);\",x?\"\":\"if(\"+u+\")\"+i+\".bindBuffer(\"+ha+\",\"+u+\".buffer.buffer);\",\"}\")),u}();function s(a){var i=f[a];return i?i.contextDep&&n.contextDynamic||i.propDep?i.append(e,r):i.append(e,t):t.def(o,\".\",a)}var c,l,d=s(Zn),m=s(ta),p=function(){var a,i=f.count,u=t;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(u=r),a=i.append(e,u),F.optional((function(){i.MISSING&&e.assert(t,\"false\",\"missing vertex count\"),i.DYNAMIC&&e.assert(u,a+\">=0\",\"missing vertex count\")}))):(a=u.def(o,\".\",ea),F.optional((function(){e.assert(u,a+\">=0\",\"missing vertex count\")}))),a}();if(\"number\"==typeof p){if(0===p)return}else r(\"if(\",p,\"){\"),r.exit(\"}\");g&&(c=s(ra),l=e.instancing);var h=u+\".type\",b=f.elements&&pi(f.elements)&&!f.vaoActive;function v(){function e(){r(l,\".drawElementsInstancedANGLE(\",[d,p,h,m+\"<<((\"+h+\"-\"+ln+\")>>1)\",c],\");\")}function t(){r(l,\".drawArraysInstancedANGLE(\",[d,m,p,c],\");\")}u&&\"null\"!==u?b?e():(r(\"if(\",u,\"){\"),e(),r(\"}else{\"),t(),r(\"}\")):t()}function y(){function e(){r(i+\".drawElements(\"+[d,p,h,m+\"<<((\"+h+\"-\"+ln+\")>>1)\"]+\");\")}function t(){r(i+\".drawArrays(\"+[d,m,p]+\");\")}u&&\"null\"!==u?b?e():(r(\"if(\",u,\"){\"),e(),r(\"}else{\"),t(),r(\"}\")):t()}g&&(\"number\"!=typeof c||c>=0)?\"string\"==typeof c?(r(\"if(\",c,\">0){\"),v(),r(\"}else if(\",c,\"<0){\"),y(),r(\"}\")):v():y()}function N(e,t,r,n,a){var i=z(),o=i.proc(\"body\",a);return F.optional((function(){i.commandStr=t.commandStr,i.command=i.link(t.commandStr)})),g&&(i.instancing=o.def(i.shared.extensions,\".angle_instanced_arrays\")),e(i,o,r,n),i.compile().body}function q(e,t,r,n){R(e,t),r.useVAO?r.drawVAO?t(e.shared.vao,\".setVAO(\",r.drawVAO.append(e,t),\");\"):t(e.shared.vao,\".setVAO(\",e.shared.vao,\".targetVAO);\"):(t(e.shared.vao,\".setVAO(null);\"),U(e,t,r,n.attributes,(function(){return!0}))),G(e,t,r,n.uniforms,(function(){return!0}),!1),H(e,t,t,r)}function Q(e,t,r,n){function a(){return!0}e.batchId=\"a1\",R(e,t),U(e,t,r,n.attributes,a),G(e,t,r,n.uniforms,a,!1),H(e,t,t,r)}function X(e,t,r,n){R(e,t);var a=r.contextDep,i=t.def(),o=t.def();e.shared.props=o,e.batchId=i;var f=e.scope(),u=e.scope();function s(e){return e.contextDep&&a||e.propDep}function c(e){return!s(e)}if(t(f.entry,\"for(\",i,\"=0;\",i,\"<\",\"a1\",\";++\",i,\"){\",o,\"=\",\"a0\",\"[\",i,\"];\",u,\"}\",f.exit),r.needsContext&&B(e,u,r.context),r.needsFramebuffer&&I(e,u,r.framebuffer),L(e,u,r.state,s),r.profile&&s(r.profile)&&M(e,u,r,!1,!0),n)r.useVAO?r.drawVAO?s(r.drawVAO)?u(e.shared.vao,\".setVAO(\",r.drawVAO.append(e,u),\");\"):f(e.shared.vao,\".setVAO(\",r.drawVAO.append(e,f),\");\"):f(e.shared.vao,\".setVAO(\",e.shared.vao,\".targetVAO);\"):(f(e.shared.vao,\".setVAO(null);\"),U(e,f,r,n.attributes,c),U(e,u,r,n.attributes,s)),G(e,f,r,n.uniforms,c,!1),G(e,u,r,n.uniforms,s,!0),H(e,f,u,r);else{var l=e.global.def(\"{}\"),d=r.shader.progVar.append(e,u),m=u.def(d,\".id\"),p=u.def(l,\"[\",m,\"]\");u(e.shared.gl,\".useProgram(\",d,\".program);\",\"if(!\",p,\"){\",p,\"=\",l,\"[\",m,\"]=\",e.link((function(t){return N(Q,e,r,t,2)})),\"(\",d,\");}\",p,\".call(this,a0[\",i,\"],\",i,\");\")}}function $(e,t,r){var n=t.static[r];if(n&&function(e){if(\"object\"==typeof e&&!Ne(e)){for(var t=Object.keys(e),r=0;r<t.length;++r)if(W.isDynamic(e[t[r]]))return!0;return!1}}(n)){var a=e.global,i=Object.keys(n),o=!1,f=!1,u=!1,s=e.global.def(\"{}\");i.forEach((function(t){var r=n[t];if(W.isDynamic(r)){\"function\"==typeof r&&(r=n[t]=W.unbox(r));var i=bi(r,null);o=o||i.thisDep,u=u||i.propDep,f=f||i.contextDep}else{switch(a(s,\".\",t,\"=\"),typeof r){case\"number\":a(r);break;case\"string\":a('\"',r,'\"');break;case\"object\":Array.isArray(r)&&a(\"[\",r.join(),\"]\");break;default:a(e.link(r))}a(\";\")}})),t.dynamic[r]=new W.DynamicVariable(gn,{thisDep:o,contextDep:f,propDep:u,ref:s,append:function(e,t){i.forEach((function(r){var a=n[r];if(W.isDynamic(a)){var i=e.invoke(t,a);t(s,\".\",r,\"=\",i,\";\")}}))}}),delete t.static[r]}}return{next:A,current:w,procs:function(){var e=z(),t=e.proc(\"poll\"),r=e.proc(\"refresh\"),i=e.block();t(i),r(i);var o,f=e.shared,u=f.gl,s=f.next,c=f.current;i(c,\".dirty=false;\"),I(e,t),I(e,r,null,!0),g&&(o=e.link(g)),n.oes_vertex_array_object&&r(e.link(n.oes_vertex_array_object),\".bindVertexArrayOES(null);\");for(var l=0;l<a.maxAttributes;++l){var d=r.def(f.attributes,\"[\",l,\"]\"),m=e.cond(d,\".buffer\");m.then(u,\".enableVertexAttribArray(\",l,\");\",u,\".bindBuffer(\",pa,\",\",d,\".buffer.buffer);\",u,\".vertexAttribPointer(\",l,\",\",d,\".size,\",d,\".type,\",d,\".normalized,\",d,\".stride,\",d,\".offset);\").else(u,\".disableVertexAttribArray(\",l,\");\",u,\".vertexAttrib4f(\",l,\",\",d,\".x,\",d,\".y,\",d,\".z,\",d,\".w);\",d,\".buffer=null;\"),r(m),g&&r(o,\".vertexAttribDivisorANGLE(\",l,\",\",d,\".divisor);\")}return r(e.shared.vao,\".currentVAO=null;\",e.shared.vao,\".setVAO(\",e.shared.vao,\".targetVAO);\"),Object.keys(k).forEach((function(n){var a=k[n],o=i.def(s,\".\",n),f=e.block();f(\"if(\",o,\"){\",u,\".enable(\",a,\")}else{\",u,\".disable(\",a,\")}\",c,\".\",n,\"=\",o,\";\"),r(f),t(\"if(\",o,\"!==\",c,\".\",n,\"){\",f,\"}\")})),Object.keys(S).forEach((function(n){var a,o,f=S[n],l=w[n],d=e.block();if(d(u,\".\",f,\"(\"),Ne(l)){var m=l.length;a=e.global.def(s,\".\",n),o=e.global.def(c,\".\",n),d(Y(m,(function(e){return a+\"[\"+e+\"]\"})),\");\",Y(m,(function(e){return o+\"[\"+e+\"]=\"+a+\"[\"+e+\"];\"})).join(\"\")),t(\"if(\",Y(m,(function(e){return a+\"[\"+e+\"]!==\"+o+\"[\"+e+\"]\"})).join(\"||\"),\"){\",d,\"}\")}else a=i.def(s,\".\",n),o=i.def(c,\".\",n),d(a,\");\",c,\".\",n,\"=\",a,\";\"),t(\"if(\",a,\"!==\",o,\"){\",d,\"}\");r(d)})),e.compile()}(),compile:function(e,n,a,i,o){var f=z();f.stats=f.link(o),Object.keys(n.static).forEach((function(e){$(f,n,e)})),ma.forEach((function(t){$(f,e,t)}));var u=V(e,n,a,i,f);return function(e,t){var r=e.proc(\"draw\",1);R(e,r),B(e,r,t.context),I(e,r,t.framebuffer),P(e,r,t),L(e,r,t.state),M(e,r,t,!1,!0);var n=t.shader.progVar.append(e,r);if(r(e.shared.gl,\".useProgram(\",n,\".program);\"),t.shader.program)q(e,r,t,t.shader.program);else{r(e.shared.vao,\".setVAO(null);\");var a=e.global.def(\"{}\"),i=r.def(n,\".id\"),o=r.def(a,\"[\",i,\"]\");r(e.cond(o).then(o,\".call(this,a0);\").else(o,\"=\",a,\"[\",i,\"]=\",e.link((function(r){return N(q,e,t,r,1)})),\"(\",n,\");\",o,\".call(this,a0);\"))}Object.keys(t.state).length>0&&r(e.shared.current,\".dirty=true;\"),e.shared.vao&&r(e.shared.vao,\".setVAO(null);\")}(f,u),function(e,t){var n=e.proc(\"scope\",3);e.batchId=\"a2\";var a=e.shared,i=a.current;function o(r){var i=t.shader[r];i&&n.set(a.shader,\".\"+r,i.append(e,n))}B(e,n,t.context),t.framebuffer&&t.framebuffer.append(e,n),di(Object.keys(t.state)).forEach((function(r){var i=t.state[r].append(e,n);Ne(i)?i.forEach((function(t,a){n.set(e.next[r],\"[\"+a+\"]\",t)})):n.set(a.next,\".\"+r,i)})),M(e,n,t,!0,!0),[Jn,ta,ea,ra,Zn].forEach((function(r){var i=t.draw[r];i&&n.set(a.draw,\".\"+r,\"\"+i.append(e,n))})),Object.keys(t.uniforms).forEach((function(i){var o=t.uniforms[i].append(e,n);Array.isArray(o)&&(o=\"[\"+o.join()+\"]\"),n.set(a.uniforms,\"[\"+r.id(i)+\"]\",o)})),Object.keys(t.attributes).forEach((function(r){var a=t.attributes[r].append(e,n),i=e.scopeAttrib(r);Object.keys(new b).forEach((function(e){n.set(i,\".\"+e,a[e])}))})),t.scopeVAO&&n.set(a.vao,\".targetVAO\",t.scopeVAO.append(e,n)),o($n),o(Kn),Object.keys(t.state).length>0&&(n(i,\".dirty=true;\"),n.exit(i,\".dirty=true;\")),n(\"a1(\",e.shared.context,\",a0,\",e.batchId,\");\")}(f,u),function(e,t){var r=e.proc(\"batch\",2);e.batchId=\"0\",R(e,r);var n=!1,a=!0;Object.keys(t.context).forEach((function(e){n=n||t.context[e].propDep})),n||(B(e,r,t.context),a=!1);var i=t.framebuffer,o=!1;function f(e){return e.contextDep&&n||e.propDep}i?(i.propDep?n=o=!0:i.contextDep&&n&&(o=!0),o||I(e,r,i)):I(e,r,null),t.state.viewport&&t.state.viewport.propDep&&(n=!0),P(e,r,t),L(e,r,t.state,(function(e){return!f(e)})),t.profile&&f(t.profile)||M(e,r,t,!1,\"a1\"),t.contextDep=n,t.needsContext=a,t.needsFramebuffer=o;var u=t.shader.progVar;if(u.contextDep&&n||u.propDep)X(e,r,t,null);else{var s=u.append(e,r);if(r(e.shared.gl,\".useProgram(\",s,\".program);\"),t.shader.program)X(e,r,t,t.shader.program);else{r(e.shared.vao,\".setVAO(null);\");var c=e.global.def(\"{}\"),l=r.def(s,\".id\"),d=r.def(c,\"[\",l,\"]\");r(e.cond(d).then(d,\".call(this,a0,a1);\").else(d,\"=\",c,\"[\",l,\"]=\",e.link((function(r){return N(X,e,t,r,2)})),\"(\",s,\");\",d,\".call(this,a0,a1);\"))}}Object.keys(t.state).length>0&&r(e.shared.current,\".dirty=true;\"),e.shared.vao&&r(e.shared.vao,\".setVAO(null);\")}(f,u),t(f.compile(),{destroy:function(){u.shader.program.destroy()}})}}}var yi=34918,xi=34919,wi=35007,Ai=function(e,t){if(!t.ext_disjoint_timer_query)return null;var r=[];function n(e){r.push(e)}var a=[];function i(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var o=[];function f(e){o.push(e)}var u=[];function s(e,t,r){var n=o.pop()||new i;n.startQueryIndex=e,n.endQueryIndex=t,n.sum=0,n.stats=r,u.push(n)}var c=[],l=[];return{beginQuery:function(e){var n=r.pop()||t.ext_disjoint_timer_query.createQueryEXT();t.ext_disjoint_timer_query.beginQueryEXT(wi,n),a.push(n),s(a.length-1,a.length,e)},endQuery:function(){t.ext_disjoint_timer_query.endQueryEXT(wi)},pushScopeStats:s,update:function(){var e,r,i=a.length;if(0!==i){l.length=Math.max(l.length,i+1),c.length=Math.max(c.length,i+1),c[0]=0,l[0]=0;var o=0;for(e=0,r=0;r<a.length;++r){var s=a[r];t.ext_disjoint_timer_query.getQueryObjectEXT(s,xi)?(o+=t.ext_disjoint_timer_query.getQueryObjectEXT(s,yi),n(s)):a[e++]=s,c[r+1]=o,l[r+1]=e}for(a.length=e,e=0,r=0;r<u.length;++r){var d=u[r],m=d.startQueryIndex,p=d.endQueryIndex;d.sum+=c[p]-c[m];var h=l[m],b=l[p];b===h?(d.stats.gpuTime+=d.sum/1e6,f(d)):(d.startQueryIndex=h,d.endQueryIndex=b,u[e++]=d)}u.length=e}},getNumPendingQueries:function(){return a.length},clear:function(){r.push.apply(r,a);for(var e=0;e<r.length;e++)t.ext_disjoint_timer_query.deleteQueryEXT(r[e]);a.length=0,r.length=0},restore:function(){a.length=0,r.length=0}}},_i=16384,ki=256,Si=1024,Oi=34962,Ei=\"webglcontextlost\",Ti=\"webglcontextrestored\",Di=1,ji=2,Ci=3;function zi(e,t){for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}return function(r){var n=Q(r);if(!n)return null;var a=n.gl,i=a.getContextAttributes(),o=a.isContextLost(),f=function(e,t){var r={};function n(t){F.type(t,\"string\",\"extension name must be string\");var n,a=t.toLowerCase();try{n=r[a]=e.getExtension(a)}catch(e){}return!!n}for(var a=0;a<t.extensions.length;++a){var i=t.extensions[a];if(!n(i))return t.onDestroy(),t.onDone('\"'+i+'\" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return t.optionalExtensions.forEach(n),{extensions:r,restore:function(){Object.keys(r).forEach((function(e){if(r[e]&&!n(e))throw new Error(\"(regl): error restoring extension \"+e)}))}}}(a,n);if(!f)return null;var u,s,c=(u={\"\":0},s=[\"\"],{id:function(e){var t=u[e];return t||(t=u[e]=s.length,s.push(e),t)},str:function(e){return s[e]}}),l={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},d=f.extensions,m=Ai(a,d),p=H(),h=a.drawingBufferWidth,b=a.drawingBufferHeight,v={tick:0,time:0,viewportWidth:h,viewportHeight:b,framebufferWidth:h,framebufferHeight:b,drawingBufferWidth:h,drawingBufferHeight:b,pixelRatio:n.pixelRatio},g={elements:null,primitive:4,count:-1,offset:0,instances:-1},y=se(a,d),x=function(t,r,n,a){var i=0,o={};function f(e){this.id=i++,this.buffer=t.createBuffer(),this.type=e,this.usage=xe,this.byteLength=0,this.dimension=1,this.dtype=Ae,this.persistentData=null,n.profile&&(this.stats={size:0})}f.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},f.prototype.destroy=function(){l(this)};var u=[];function s(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function c(t,r,n,a,i,o){var f,u;if(t.usage=n,Array.isArray(r)){if(t.dtype=a||_e,r.length>0)if(Array.isArray(r[0])){f=ye(r);for(var c=1,l=1;l<f.length;++l)c*=f[l];t.dimension=c,s(t,u=ge(r,f,t.dtype),n),o?t.persistentData=u:ae.freeType(u)}else if(\"number\"==typeof r[0]){t.dimension=i;var d=ae.allocType(t.dtype,r.length);Oe(d,r),s(t,d,n),o?t.persistentData=d:ae.freeType(d)}else e(r[0])?(t.dimension=r[0].length,t.dtype=a||Se(r[0])||_e,s(t,u=ge(r,[r.length,r[0].length],t.dtype),n),o?t.persistentData=u:ae.freeType(u)):F.raise(\"invalid buffer data\")}else if(e(r))t.dtype=a||Se(r),t.dimension=i,s(t,r,n),o&&(t.persistentData=new Uint8Array(new Uint8Array(r.buffer)));else if(ce(r)){f=r.shape;var m=r.stride,p=r.offset,h=0,b=0,v=0,g=0;1===f.length?(h=f[0],b=1,v=m[0],g=0):2===f.length?(h=f[0],b=f[1],v=m[0],g=m[1]):F.raise(\"invalid shape\"),t.dtype=a||Se(r.data)||_e,t.dimension=b;var y=ae.allocType(t.dtype,h*b);Ee(y,r.data,h,b,v,g,p),s(t,y,n),o?t.persistentData=y:ae.freeType(y)}else r instanceof ArrayBuffer?(t.dtype=Ae,t.dimension=i,s(t,r,n),o&&(t.persistentData=new Uint8Array(new Uint8Array(r)))):F.raise(\"invalid buffer data\")}function l(e){r.bufferCount--,a(e);var n=e.buffer;F(n,\"buffer must not be deleted already\"),t.deleteBuffer(n),e.buffer=null,delete o[e.id]}return n.profile&&(r.getTotalBufferSize=function(){var e=0;return Object.keys(o).forEach((function(t){e+=o[t].stats.size})),e}),{create:function(a,i,u,s){r.bufferCount++;var d=new f(i);function m(r){var a=xe,i=null,o=0,f=0,u=1;return Array.isArray(r)||e(r)||ce(r)||r instanceof ArrayBuffer?i=r:\"number\"==typeof r?o=0|r:r&&(F.type(r,\"object\",\"buffer arguments must be an object, a number or an array\"),\"data\"in r&&(F(null===i||Array.isArray(i)||e(i)||ce(i),\"invalid data for buffer\"),i=r.data),\"usage\"in r&&(F.parameter(r.usage,ve,\"invalid buffer usage\"),a=ve[r.usage]),\"type\"in r&&(F.parameter(r.type,be,\"invalid buffer type\"),f=be[r.type]),\"dimension\"in r&&(F.type(r.dimension,\"number\",\"invalid dimension\"),u=0|r.dimension),\"length\"in r&&(F.nni(o,\"buffer length must be a nonnegative integer\"),o=0|r.length)),d.bind(),i?c(d,i,a,f,u,s):(o&&t.bufferData(d.type,o,a),d.dtype=f||Ae,d.usage=a,d.dimension=u,d.byteLength=o),n.profile&&(d.stats.size=d.byteLength*ke[d.dtype]),m}function p(e,r){F(r+e.byteLength<=d.byteLength,\"invalid buffer subdata call, buffer is too small. Can't write data of size \"+e.byteLength+\" starting from offset \"+r+\" to a buffer of size \"+d.byteLength),t.bufferSubData(d.type,r,e)}return o[d.id]=d,u||m(a),m._reglType=\"buffer\",m._buffer=d,m.subdata=function(t,r){var n,a=0|(r||0);if(d.bind(),e(t)||t instanceof ArrayBuffer)p(t,a);else if(Array.isArray(t)){if(t.length>0)if(\"number\"==typeof t[0]){var i=ae.allocType(d.dtype,t.length);Oe(i,t),p(i,a),ae.freeType(i)}else if(Array.isArray(t[0])||e(t[0])){n=ye(t);var o=ge(t,n,d.dtype);p(o,a),ae.freeType(o)}else F.raise(\"invalid buffer data\")}else if(ce(t)){n=t.shape;var f=t.stride,u=0,s=0,c=0,l=0;1===n.length?(u=n[0],s=1,c=f[0],l=0):2===n.length?(u=n[0],s=n[1],c=f[0],l=f[1]):F.raise(\"invalid shape\");var h=Array.isArray(t.data)?d.dtype:Se(t.data),b=ae.allocType(h,u*s);Ee(b,t.data,u,s,c,l,t.offset),p(b,a),ae.freeType(b)}else F.raise(\"invalid data for buffer subdata\");return m},n.profile&&(m.stats=d.stats),m.destroy=function(){l(d)},m},createStream:function(e,t){var r=u.pop();return r||(r=new f(e)),r.bind(),c(r,t,we,0,1,!1),r},destroyStream:function(e){u.push(e)},clear:function(){le(o).forEach(l),u.forEach(l)},getBuffer:function(e){return e&&e._buffer instanceof f?e._buffer:null},restore:function(){le(o).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:c}}(a,l,n,(function(e){return A.destroyBuffer(e)})),w=function(t,r,n,a){var i={},o=0,f={uint8:Fe,uint16:Be};function u(e){this.id=o++,i[this.id]=this,this.buffer=e,this.primType=Ce,this.vertCount=0,this.type=0}r.oes_element_index_uint&&(f.uint32=Pe),u.prototype.bind=function(){this.buffer.bind()};var s=[];function c(a,i,o,f,u,s,c){var l;if(a.buffer.bind(),i){var d=c;c||e(i)&&(!ce(i)||e(i.data))||(d=r.oes_element_index_uint?Pe:Be),n._initBuffer(a.buffer,i,o,d,3)}else t.bufferData(Le,s,o),a.buffer.dtype=l||Fe,a.buffer.usage=o,a.buffer.dimension=3,a.buffer.byteLength=s;if(l=c,!c){switch(a.buffer.dtype){case Fe:case ze:l=Fe;break;case Be:case Ve:l=Be;break;case Pe:case Ie:l=Pe;break;default:F.raise(\"unsupported type for element array\")}a.buffer.dtype=l}a.type=l,F(l!==Pe||!!r.oes_element_index_uint,\"32 bit element buffers not supported, enable oes_element_index_uint first\");var m=u;m<0&&(m=a.buffer.byteLength,l===Be?m>>=1:l===Pe&&(m>>=2)),a.vertCount=m;var p=f;if(f<0){p=Ce;var h=a.buffer.dimension;1===h&&(p=De),2===h&&(p=je),3===h&&(p=Ce)}a.primType=p}function l(e){a.elementsCount--,F(null!==e.buffer,\"must not double destroy elements\"),delete i[e.id],e.buffer.destroy(),e.buffer=null}return{create:function(t,r){var i=n.create(null,Le,!0),o=new u(i._buffer);function s(t){if(t)if(\"number\"==typeof t)i(t),o.primType=Ce,o.vertCount=0|t,o.type=Fe;else{var r=null,n=Me,a=-1,u=-1,l=0,d=0;Array.isArray(t)||e(t)||ce(t)?r=t:(F.type(t,\"object\",\"invalid arguments for elements\"),\"data\"in t&&(r=t.data,F(Array.isArray(r)||e(r)||ce(r),\"invalid data for element buffer\")),\"usage\"in t&&(F.parameter(t.usage,ve,\"invalid element buffer usage\"),n=ve[t.usage]),\"primitive\"in t&&(F.parameter(t.primitive,Te,\"invalid element buffer primitive\"),a=Te[t.primitive]),\"count\"in t&&(F(\"number\"==typeof t.count&&t.count>=0,\"invalid vertex count for elements\"),u=0|t.count),\"type\"in t&&(F.parameter(t.type,f,\"invalid buffer type\"),d=f[t.type]),\"length\"in t?l=0|t.length:(l=u,d===Be||d===Ve?l*=2:d!==Pe&&d!==Ie||(l*=4))),c(o,r,n,a,u,l,d)}else i(),o.primType=Ce,o.vertCount=0,o.type=Fe;return s}return a.elementsCount++,s(t),s._reglType=\"elements\",s._elements=o,s.subdata=function(e,t){return i.subdata(e,t),s},s.destroy=function(){l(o)},s},createStream:function(e){var t=s.pop();return t||(t=new u(n.create(null,Le,!0,!1)._buffer)),c(t,e,Re,-1,-1,0,0),t},destroyStream:function(e){s.push(e)},getElements:function(e){return\"function\"==typeof e&&e._elements instanceof u?e._elements:null},clear:function(){le(i).forEach(l)}}}(a,d,x,l),A=function(t,r,n,a,i,o,f){for(var u=n.maxAttributes,s=new Array(u),c=0;c<u;++c)s[c]=new Kr;var l=0,d={},m={Record:Kr,scope:{},state:s,currentVAO:null,targetVAO:null,restore:p()?function(){p()&&le(d).forEach((function(e){e.refresh()}))}:function(){},createVAO:function(t){var n=new b;function f(t){var a;if(Array.isArray(t))a=t,n.elements&&n.ownsElements&&n.elements.destroy(),n.elements=null,n.ownsElements=!1,n.offset=0,n.count=0,n.instances=-1,n.primitive=4;else{if(F(\"object\"==typeof t,\"invalid arguments for create vao\"),F(\"attributes\"in t,\"must specify attributes for vao\"),t.elements){var s=t.elements;n.ownsElements?\"function\"==typeof s&&\"elements\"===s._reglType?(n.elements.destroy(),n.ownsElements=!1):(n.elements(s),n.ownsElements=!1):o.getElements(t.elements)?(n.elements=t.elements,n.ownsElements=!1):(n.elements=o.create(t.elements),n.ownsElements=!0)}else n.elements=null,n.ownsElements=!1;a=t.attributes,n.offset=0,n.count=-1,n.instances=-1,n.primitive=4,n.elements&&(n.count=n.elements._elements.vertCount,n.primitive=n.elements._elements.primType),\"offset\"in t&&(n.offset=0|t.offset),\"count\"in t&&(n.count=0|t.count),\"instances\"in t&&(n.instances=0|t.instances),\"primitive\"in t&&(F(t.primitive in Te,\"bad primitive type: \"+t.primitive),n.primitive=Te[t.primitive]),F.optional((()=>{for(var e=Object.keys(t),r=0;r<e.length;++r)F($r.indexOf(e[r])>=0,'invalid option for vao: \"'+e[r]+'\" valid options are '+$r)})),F(Array.isArray(a),\"attributes must be an array\")}F(a.length<u,\"too many attributes\"),F(a.length>0,\"must specify at least one attribute\");var c={},l=n.attributes;l.length=a.length;for(var d=0;d<a.length;++d){var m,p=a[d],h=l[d]=new Kr,b=p.data||p;Array.isArray(b)||e(b)||ce(b)?(n.buffers[d]&&(m=n.buffers[d],e(b)&&m._buffer.byteLength>=b.byteLength?m.subdata(b):(m.destroy(),n.buffers[d]=null)),n.buffers[d]||(m=n.buffers[d]=i.create(p,Yr,!1,!0)),h.buffer=i.getBuffer(m),h.size=0|h.buffer.dimension,h.normalized=!1,h.type=h.buffer.dtype,h.offset=0,h.stride=0,h.divisor=0,h.state=1,c[d]=1):i.getBuffer(p)?(h.buffer=i.getBuffer(p),h.size=0|h.buffer.dimension,h.normalized=!1,h.type=h.buffer.dtype,h.offset=0,h.stride=0,h.divisor=0,h.state=1):i.getBuffer(p.buffer)?(h.buffer=i.getBuffer(p.buffer),h.size=0|(+p.size||h.buffer.dimension),h.normalized=!!p.normalized||!1,\"type\"in p?(F.parameter(p.type,be,\"invalid buffer type\"),h.type=be[p.type]):h.type=h.buffer.dtype,h.offset=0|(p.offset||0),h.stride=0|(p.stride||0),h.divisor=0|(p.divisor||0),h.state=1,F(h.size>=1&&h.size<=4,\"size must be between 1 and 4\"),F(h.offset>=0,\"invalid offset\"),F(h.stride>=0&&h.stride<=255,\"stride must be between 0 and 255\"),F(h.divisor>=0,\"divisor must be positive\"),F(!h.divisor||!!r.angle_instanced_arrays,\"ANGLE_instanced_arrays must be enabled to use divisor\")):\"x\"in p?(F(d>0,\"first attribute must not be a constant\"),h.x=+p.x||0,h.y=+p.y||0,h.z=+p.z||0,h.w=+p.w||0,h.state=2):F(!1,\"invalid attribute spec for location \"+d)}for(var v=0;v<n.buffers.length;++v)!c[v]&&n.buffers[v]&&(n.buffers[v].destroy(),n.buffers[v]=null);return n.refresh(),f}return a.vaoCount+=1,f.destroy=function(){for(var e=0;e<n.buffers.length;++e)n.buffers[e]&&n.buffers[e].destroy();n.buffers.length=0,n.ownsElements&&(n.elements.destroy(),n.elements=null,n.ownsElements=!1),n.destroy()},f._vao=n,f._reglType=\"vao\",f(t)},getVAO:function(e){return\"function\"==typeof e&&e._vao?e._vao:null},destroyBuffer:function(e){for(var r=0;r<s.length;++r){var n=s[r];n.buffer===e&&(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:p()?function(e){if(e!==m.currentVAO){var t=p();e?t.bindVertexArrayOES(e.vao):t.bindVertexArrayOES(null),m.currentVAO=e}}:function(e){if(e!==m.currentVAO){if(e)e.bindAttrs();else{for(var r=h(),n=0;n<s.length;++n){var a=s[n];a.buffer?(t.enableVertexAttribArray(n),a.buffer.bind(),t.vertexAttribPointer(n,a.size,a.type,a.normalized,a.stride,a.offfset),r&&a.divisor&&r.vertexAttribDivisorANGLE(n,a.divisor)):(t.disableVertexAttribArray(n),t.vertexAttrib4f(n,a.x,a.y,a.z,a.w))}f.elements?t.bindBuffer(Xr,f.elements.buffer.buffer):t.bindBuffer(Xr,null)}m.currentVAO=e}},clear:p()?function(){le(d).forEach((function(e){e.destroy()}))}:function(){}};function p(){return r.oes_vertex_array_object}function h(){return r.angle_instanced_arrays}function b(){this.id=++l,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var e=p();this.vao=e?e.createVertexArrayOES():null,d[this.id]=this,this.buffers=[]}return b.prototype.bindAttrs=function(){for(var e=h(),r=this.attributes,n=0;n<r.length;++n){var a=r[n];a.buffer?(t.enableVertexAttribArray(n),t.bindBuffer(Yr,a.buffer.buffer),t.vertexAttribPointer(n,a.size,a.type,a.normalized,a.stride,a.offset),e&&a.divisor&&e.vertexAttribDivisorANGLE(n,a.divisor)):(t.disableVertexAttribArray(n),t.vertexAttrib4f(n,a.x,a.y,a.z,a.w))}for(var i=r.length;i<u;++i)t.disableVertexAttribArray(i);var f=o.getElements(this.elements);f?t.bindBuffer(Xr,f.buffer.buffer):t.bindBuffer(Xr,null)},b.prototype.refresh=function(){var e=p();e&&(e.bindVertexArrayOES(this.vao),this.bindAttrs(),m.currentVAO=null,e.bindVertexArrayOES(null))},b.prototype.destroy=function(){if(this.vao){var e=p();this===m.currentVAO&&(m.currentVAO=null,e.bindVertexArrayOES(null)),e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),d[this.id]&&(delete d[this.id],a.vaoCount-=1)},m}(a,d,y,l,x,w,g),_=function(e,r,n,a){var i={},o={};function f(e,t,r,n){this.name=e,this.id=t,this.location=r,this.info=n}function u(e,t){for(var r=0;r<e.length;++r)if(e[r].id===t.id)return void(e[r].location=t.location);e.push(t)}function s(t,n,a){var f=t===Jr?i:o,u=f[n];if(!u){var s=r.str(n);u=e.createShader(t),e.shaderSource(u,s),e.compileShader(u),F.shaderError(e,u,s,t,a),f[n]=u}return u}var c={},l=[],d=0;function m(e,t){this.id=d++,this.fragId=e,this.vertId=t,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,a.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function p(t,n,i){var o,c,l=s(Jr,t.fragId),d=s(Zr,t.vertId),m=t.program=e.createProgram();if(e.attachShader(m,l),e.attachShader(m,d),i)for(o=0;o<i.length;++o){var p=i[o];e.bindAttribLocation(m,p[0],p[1])}e.linkProgram(m),F.linkError(e,m,r.str(t.fragId),r.str(t.vertId),n);var h=e.getProgramParameter(m,en);a.profile&&(t.stats.uniformsCount=h);var b=t.uniforms;for(o=0;o<h;++o)if(c=e.getActiveUniform(m,o)){if(c.size>1)for(var v=0;v<c.size;++v){var g=c.name.replace(\"[0]\",\"[\"+v+\"]\");u(b,new f(g,r.id(g),e.getUniformLocation(m,g),c))}var y=c.name;c.size>1&&(y=y.replace(\"[0]\",\"\")),u(b,new f(y,r.id(y),e.getUniformLocation(m,y),c))}var x=e.getProgramParameter(m,tn);a.profile&&(t.stats.attributesCount=x);var w=t.attributes;for(o=0;o<x;++o)(c=e.getActiveAttrib(m,o))&&u(w,new f(c.name,r.id(c.name),e.getAttribLocation(m,c.name),c))}return a.profile&&(n.getMaxUniformsCount=function(){var e=0;return l.forEach((function(t){t.stats.uniformsCount>e&&(e=t.stats.uniformsCount)})),e},n.getMaxAttributesCount=function(){var e=0;return l.forEach((function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)})),e}),{clear:function(){var t=e.deleteShader.bind(e);le(i).forEach(t),i={},le(o).forEach(t),o={},l.forEach((function(t){e.deleteProgram(t.program)})),l.length=0,c={},n.shaderCount=0},program:function(r,a,f,u){F.command(r>=0,\"missing vertex shader\",f),F.command(a>=0,\"missing fragment shader\",f);var s=c[a];s||(s=c[a]={});var d=s[r];if(d&&(d.refCount++,!u))return d;var h=new m(a,r);return n.shaderCount++,p(h,f,u),d||(s[r]=h),l.push(h),t(h,{destroy:function(){if(h.refCount--,h.refCount<=0){e.deleteProgram(h.program);var t=l.indexOf(h);l.splice(t,1),n.shaderCount--}s[h.vertId].refCount<=0&&(e.deleteShader(o[h.vertId]),delete o[h.vertId],delete c[h.fragId][h.vertId]),Object.keys(c[h.fragId]).length||(e.deleteShader(i[h.fragId]),delete i[h.fragId],delete c[h.fragId])}})},restore:function(){i={},o={};for(var e=0;e<l.length;++e)p(l[e],null,l[e].attributes.map((function(e){return[e.location,e.name]})))},shader:s,frag:-1,vert:-1}}(a,c,l,n),k=_r(a,d,y,(function(){E.procs.poll()}),v,l,n),S=Tr(a,d,y,l,n),O=function(e,r,n,a,i,o){var f={cur:null,next:null,dirty:!1,setFBO:null},u=[\"rgba\"],s=[\"rgba4\",\"rgb565\",\"rgb5 a1\"];r.ext_srgb&&s.push(\"srgba\"),r.ext_color_buffer_half_float&&s.push(\"rgba16f\",\"rgb16f\"),r.webgl_color_buffer_float&&s.push(\"rgba32f\");var c=[\"uint8\"];function l(e,t,r){this.target=e,this.texture=t,this.renderbuffer=r;var n=0,a=0;t?(n=t.width,a=t.height):r&&(n=r.width,a=r.height),this.width=n,this.height=a}function d(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function m(e,t,r){if(e)if(e.texture){var n=e.texture._texture,a=Math.max(1,n.width),i=Math.max(1,n.height);F(a===t&&i===r,\"inconsistent width/height for supplied texture\"),n.refCount+=1}else{var o=e.renderbuffer._renderbuffer;F(o.width===t&&o.height===r,\"inconsistent width/height for renderbuffer\"),o.refCount+=1}}function p(t,r){r&&(r.texture?e.framebufferTexture2D(Dr,t,r.target,r.texture._texture.texture,0):e.framebufferRenderbuffer(Dr,t,jr,r.renderbuffer._renderbuffer.renderbuffer))}function h(e){var t=Cr,r=null,n=null,a=e;\"object\"==typeof e&&(a=e.data,\"target\"in e&&(t=0|e.target)),F.type(a,\"function\",\"invalid attachment data\");var i=a._reglType;return\"texture2d\"===i?(r=a,F(t===Cr)):\"textureCube\"===i?(r=a,F(t>=zr&&t<zr+6,\"invalid cube map target\")):\"renderbuffer\"===i?(n=a,t=jr):F.raise(\"invalid regl object for attachment\"),new l(t,r,n)}function b(e,t,r,n,o){if(r){var f=a.create2D({width:e,height:t,format:n,type:o});return f._texture.refCount=0,new l(Cr,f,null)}var u=i.create({width:e,height:t,format:n});return u._renderbuffer.refCount=0,new l(jr,null,u)}function v(e){return e&&(e.texture||e.renderbuffer)}function g(e,t,r){e&&(e.texture?e.texture.resize(t,r):e.renderbuffer&&e.renderbuffer.resize(t,r),e.width=t,e.height=r)}r.oes_texture_half_float&&c.push(\"half float\",\"float16\"),r.oes_texture_float&&c.push(\"float\",\"float32\");var y=0,x={};function w(){this.id=y++,x[this.id]=this,this.framebuffer=e.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function A(e){e.colorAttachments.forEach(d),d(e.depthAttachment),d(e.stencilAttachment),d(e.depthStencilAttachment)}function _(t){var r=t.framebuffer;F(r,\"must not double destroy framebuffer\"),e.deleteFramebuffer(r),t.framebuffer=null,o.framebufferCount--,delete x[t.id]}function k(t){var r;e.bindFramebuffer(Dr,t.framebuffer);var a=t.colorAttachments;for(r=0;r<a.length;++r)p(Fr+r,a[r]);for(r=a.length;r<n.maxColorAttachments;++r)e.framebufferTexture2D(Dr,Fr+r,Cr,null,0);e.framebufferTexture2D(Dr,Ir,Cr,null,0),e.framebufferTexture2D(Dr,Vr,Cr,null,0),e.framebufferTexture2D(Dr,Br,Cr,null,0),p(Vr,t.depthAttachment),p(Br,t.stencilAttachment),p(Ir,t.depthStencilAttachment);var i=e.checkFramebufferStatus(Dr);e.isContextLost()||i===Pr||F.raise(\"framebuffer configuration not supported, status = \"+qr[i]),e.bindFramebuffer(Dr,f.next?f.next.framebuffer:null),f.cur=f.next,e.getError()}function S(e,a){var i=new w;function l(e,t){var a;F(f.next!==i,\"can not update framebuffer which is currently in use\");var o=0,d=0,p=!0,g=!0,y=null,x=!0,w=\"rgba\",_=\"uint8\",S=1,O=null,E=null,T=null,D=!1;if(\"number\"==typeof e)o=0|e,d=0|t||o;else if(e){F.type(e,\"object\",\"invalid arguments for framebuffer\");var j=e;if(\"shape\"in j){var C=j.shape;F(Array.isArray(C)&&C.length>=2,\"invalid shape for framebuffer\"),o=C[0],d=C[1]}else\"radius\"in j&&(o=d=j.radius),\"width\"in j&&(o=j.width),\"height\"in j&&(d=j.height);(\"color\"in j||\"colors\"in j)&&(y=j.color||j.colors,Array.isArray(y)&&F(1===y.length||r.webgl_draw_buffers,\"multiple render targets not supported\")),y||(\"colorCount\"in j&&(S=0|j.colorCount,F(S>0,\"invalid color buffer count\")),\"colorTexture\"in j&&(x=!!j.colorTexture,w=\"rgba4\"),\"colorType\"in j&&(_=j.colorType,x?(F(r.oes_texture_float||!(\"float\"===_||\"float32\"===_),\"you must enable OES_texture_float in order to use floating point framebuffer objects\"),F(r.oes_texture_half_float||!(\"half float\"===_||\"float16\"===_),\"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects\")):\"half float\"===_||\"float16\"===_?(F(r.ext_color_buffer_half_float,\"you must enable EXT_color_buffer_half_float to use 16-bit render buffers\"),w=\"rgba16f\"):\"float\"!==_&&\"float32\"!==_||(F(r.webgl_color_buffer_float,\"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers\"),w=\"rgba32f\"),F.oneOf(_,c,\"invalid color type\")),\"colorFormat\"in j&&(w=j.colorFormat,u.indexOf(w)>=0?x=!0:s.indexOf(w)>=0?x=!1:F.optional((function(){x?F.oneOf(j.colorFormat,u,\"invalid color format for texture\"):F.oneOf(j.colorFormat,s,\"invalid color format for renderbuffer\")})))),(\"depthTexture\"in j||\"depthStencilTexture\"in j)&&(D=!(!j.depthTexture&&!j.depthStencilTexture),F(!D||r.webgl_depth_texture,\"webgl_depth_texture extension not supported\")),\"depth\"in j&&(\"boolean\"==typeof j.depth?p=j.depth:(O=j.depth,g=!1)),\"stencil\"in j&&(\"boolean\"==typeof j.stencil?g=j.stencil:(E=j.stencil,p=!1)),\"depthStencil\"in j&&(\"boolean\"==typeof j.depthStencil?p=g=j.depthStencil:(T=j.depthStencil,p=!1,g=!1))}else o=d=1;var z=null,V=null,B=null,I=null;if(Array.isArray(y))z=y.map(h);else if(y)z=[h(y)];else for(z=new Array(S),a=0;a<S;++a)z[a]=b(o,d,x,w,_);F(r.webgl_draw_buffers||z.length<=1,\"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers.\"),F(z.length<=n.maxColorAttachments,\"too many color attachments, not supported\"),o=o||z[0].width,d=d||z[0].height,O?V=h(O):p&&!g&&(V=b(o,d,D,\"depth\",\"uint32\")),E?B=h(E):g&&!p&&(B=b(o,d,!1,\"stencil\",\"uint8\")),T?I=h(T):!O&&!E&&g&&p&&(I=b(o,d,D,\"depth stencil\",\"depth stencil\")),F(!!O+!!E+!!T<=1,\"invalid framebuffer configuration, can specify exactly one depth/stencil attachment\");var P=null;for(a=0;a<z.length;++a)if(m(z[a],o,d),F(!z[a]||z[a].texture&&Rr.indexOf(z[a].texture._texture.format)>=0||z[a].renderbuffer&&Nr.indexOf(z[a].renderbuffer._renderbuffer.format)>=0,\"framebuffer color attachment \"+a+\" is invalid\"),z[a]&&z[a].texture){var L=Mr[z[a].texture._texture.format]*Ur[z[a].texture._texture.type];null===P?P=L:F(P===L,\"all color attachments much have the same number of bits per pixel.\")}return m(V,o,d),F(!V||V.texture&&V.texture._texture.format===Lr||V.renderbuffer&&V.renderbuffer._renderbuffer.format===Wr,\"invalid depth attachment for framebuffer object\"),m(B,o,d),F(!B||B.renderbuffer&&B.renderbuffer._renderbuffer.format===Gr,\"invalid stencil attachment for framebuffer object\"),m(I,o,d),F(!I||I.texture&&I.texture._texture.format===Hr||I.renderbuffer&&I.renderbuffer._renderbuffer.format===Hr,\"invalid depth-stencil attachment for framebuffer object\"),A(i),i.width=o,i.height=d,i.colorAttachments=z,i.depthAttachment=V,i.stencilAttachment=B,i.depthStencilAttachment=I,l.color=z.map(v),l.depth=v(V),l.stencil=v(B),l.depthStencil=v(I),l.width=i.width,l.height=i.height,k(i),l}return o.framebufferCount++,l(e,a),t(l,{resize:function(e,t){F(f.next!==i,\"can not resize a framebuffer which is currently in use\");var r=Math.max(0|e,1),n=Math.max(0|t||r,1);if(r===i.width&&n===i.height)return l;for(var a=i.colorAttachments,o=0;o<a.length;++o)g(a[o],r,n);return g(i.depthAttachment,r,n),g(i.stencilAttachment,r,n),g(i.depthStencilAttachment,r,n),i.width=l.width=r,i.height=l.height=n,k(i),l},_reglType:\"framebuffer\",_framebuffer:i,destroy:function(){_(i),A(i)},use:function(e){f.setFBO({framebuffer:l},e)}})}return t(f,{getFramebuffer:function(e){if(\"function\"==typeof e&&\"framebuffer\"===e._reglType){var t=e._framebuffer;if(t instanceof w)return t}return null},create:S,createCube:function(e){var i=Array(6);function o(e){var n;F(i.indexOf(f.next)<0,\"can not update framebuffer which is currently in use\");var s,l={color:null},d=0,m=null,p=\"rgba\",h=\"uint8\",b=1;if(\"number\"==typeof e)d=0|e;else if(e){F.type(e,\"object\",\"invalid arguments for framebuffer\");var v=e;if(\"shape\"in v){var g=v.shape;F(Array.isArray(g)&&g.length>=2,\"invalid shape for framebuffer\"),F(g[0]===g[1],\"cube framebuffer must be square\"),d=g[0]}else\"radius\"in v&&(d=0|v.radius),\"width\"in v?(d=0|v.width,\"height\"in v&&F(v.height===d,\"must be square\")):\"height\"in v&&(d=0|v.height);(\"color\"in v||\"colors\"in v)&&(m=v.color||v.colors,Array.isArray(m)&&F(1===m.length||r.webgl_draw_buffers,\"multiple render targets not supported\")),m||(\"colorCount\"in v&&(b=0|v.colorCount,F(b>0,\"invalid color buffer count\")),\"colorType\"in v&&(F.oneOf(v.colorType,c,\"invalid color type\"),h=v.colorType),\"colorFormat\"in v&&(p=v.colorFormat,F.oneOf(v.colorFormat,u,\"invalid color format for texture\"))),\"depth\"in v&&(l.depth=v.depth),\"stencil\"in v&&(l.stencil=v.stencil),\"depthStencil\"in v&&(l.depthStencil=v.depthStencil)}else d=1;if(m)if(Array.isArray(m))for(s=[],n=0;n<m.length;++n)s[n]=m[n];else s=[m];else{s=Array(b);var y={radius:d,format:p,type:h};for(n=0;n<b;++n)s[n]=a.createCube(y)}for(l.color=Array(s.length),n=0;n<s.length;++n){var x=s[n];F(\"function\"==typeof x&&\"textureCube\"===x._reglType,\"invalid cube map\"),d=d||x.width,F(x.width===d&&x.height===d,\"invalid cube map shape\"),l.color[n]={target:zr,data:s[n]}}for(n=0;n<6;++n){for(var w=0;w<s.length;++w)l.color[w].target=zr+n;n>0&&(l.depth=i[0].depth,l.stencil=i[0].stencil,l.depthStencil=i[0].depthStencil),i[n]?i[n](l):i[n]=S(l)}return t(o,{width:d,height:d,color:s})}return o(e),t(o,{faces:i,resize:function(e){var t,r=0|e;if(F(r>0&&r<=n.maxCubeMapSize,\"invalid radius for cube fbo\"),r===o.width)return o;var a=o.color;for(t=0;t<a.length;++t)a[t].resize(r);for(t=0;t<6;++t)i[t].resize(r);return o.width=o.height=r,o},_reglType:\"framebufferCube\",destroy:function(){i.forEach((function(e){e.destroy()}))}})},clear:function(){le(x).forEach(_)},restore:function(){f.cur=null,f.next=null,f.dirty=!0,le(x).forEach((function(t){t.framebuffer=e.createFramebuffer(),k(t)}))}})}(a,d,y,k,S,l),E=gi(a,c,d,y,x,w,0,O,{},A,_,g,v,m,n),T=fn(a,O,E.procs.poll,v,i,d,y),D=E.next,j=a.canvas,C=[],z=[],V=[],B=[n.onDestroy],I=null;function P(){if(0===C.length)return m&&m.update(),void(I=null);I=G.next(P),K();for(var e=C.length-1;e>=0;--e){var t=C[e];t&&t(v,null,0)}a.flush(),m&&m.update()}function L(){!I&&C.length>0&&(I=G.next(P))}function R(){I&&(G.cancel(P),I=null)}function M(e){e.preventDefault(),o=!0,R(),z.forEach((function(e){e()}))}function U(e){a.getError(),o=!1,f.restore(),_.restore(),x.restore(),k.restore(),S.restore(),O.restore(),A.restore(),m&&m.restore(),E.procs.refresh(),L(),V.forEach((function(e){e()}))}function N(e){function r(e,t){var r={},n={};return Object.keys(e).forEach((function(a){var i=e[a];if(W.isDynamic(i))n[a]=W.unbox(i,a);else{if(t&&Array.isArray(i))for(var o=0;o<i.length;++o)if(W.isDynamic(i[o]))return void(n[a]=W.unbox(i,a));r[a]=i}})),{dynamic:n,static:r}}F(!!e,\"invalid args to regl({...})\"),F.type(e,\"object\",\"invalid args to regl({...})\");var n=r(e.context||{},!0),a=r(e.uniforms||{},!0),i=r(e.attributes||{},!1),f=r(function(e){var r=t({},e);function n(e){if(e in r){var t=r[e];delete r[e],Object.keys(t).forEach((function(n){r[e+\".\"+n]=t[n]}))}}return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,\"stencil\"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),n(\"blend\"),n(\"depth\"),n(\"cull\"),n(\"stencil\"),n(\"polygonOffset\"),n(\"scissor\"),n(\"sample\"),\"vao\"in e&&(r.vao=e.vao),r}(e),!1),u={gpuTime:0,cpuTime:0,count:0},s=E.compile(f,i,a,n,u),c=s.draw,l=s.batch,d=s.scope,m=[];return t((function(e,t){var r;if(o&&F.raise(\"context lost\"),\"function\"==typeof e)return d.call(this,null,e,0);if(\"function\"==typeof t)if(\"number\"==typeof e)for(r=0;r<e;++r)d.call(this,null,t,r);else{if(!Array.isArray(e))return d.call(this,e,t,0);for(r=0;r<e.length;++r)d.call(this,e[r],t,r)}else if(\"number\"==typeof e){if(e>0)return l.call(this,function(e){for(;m.length<e;)m.push(null);return m}(0|e),0|e)}else{if(!Array.isArray(e))return c.call(this,e);if(e.length)return l.call(this,e,e.length)}}),{stats:u,destroy:function(){s.destroy()}})}j&&(j.addEventListener(Ei,M,!1),j.addEventListener(Ti,U,!1));var q=O.setFBO=N({framebuffer:W.define.call(null,Di,\"framebuffer\")});function Y(e,t){var r=0;E.procs.poll();var n=t.color;n&&(a.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=_i),\"depth\"in t&&(a.clearDepth(+t.depth),r|=ki),\"stencil\"in t&&(a.clearStencil(0|t.stencil),r|=Si),F(!!r,\"called regl.clear with no buffer specified\"),a.clear(r)}function X(e){return F.type(e,\"function\",\"regl.frame() callback must be a function\"),C.push(e),L(),{cancel:function(){var t=zi(C,e);F(t>=0,\"cannot cancel a frame twice\"),C[t]=function e(){var t=zi(C,e);C[t]=C[C.length-1],C.length-=1,C.length<=0&&R()}}}}function $(){var e=D.viewport,t=D.scissor_box;e[0]=e[1]=t[0]=t[1]=0,v.viewportWidth=v.framebufferWidth=v.drawingBufferWidth=e[2]=t[2]=a.drawingBufferWidth,v.viewportHeight=v.framebufferHeight=v.drawingBufferHeight=e[3]=t[3]=a.drawingBufferHeight}function K(){v.tick+=1,v.time=Z(),$(),E.procs.poll()}function J(){k.refresh(),$(),E.procs.refresh(),m&&m.update()}function Z(){return(H()-p)/1e3}J();var ee=t(N,{clear:function(e){if(F(\"object\"==typeof e&&e,\"regl.clear() takes an object as input\"),\"framebuffer\"in e)if(e.framebuffer&&\"framebufferCube\"===e.framebuffer_reglType)for(var r=0;r<6;++r)q(t({framebuffer:e.framebuffer.faces[r]},e),Y);else q(e,Y);else Y(0,e)},prop:W.define.bind(null,Di),context:W.define.bind(null,ji),this:W.define.bind(null,Ci),draw:N({}),buffer:function(e){return x.create(e,Oi,!1,!1)},elements:function(e){return w.create(e,!1)},texture:k.create2D,cube:k.createCube,renderbuffer:S.create,framebuffer:O.create,framebufferCube:O.createCube,vao:A.createVAO,attributes:i,frame:X,on:function(e,t){var r;switch(F.type(t,\"function\",\"listener callback must be a function\"),e){case\"frame\":return X(t);case\"lost\":r=z;break;case\"restore\":r=V;break;case\"destroy\":r=B;break;default:F.raise(\"invalid event, must be one of frame,lost,restore,destroy\")}return r.push(t),{cancel:function(){for(var e=0;e<r.length;++e)if(r[e]===t)return r[e]=r[r.length-1],void r.pop()}}},limits:y,hasExtension:function(e){return y.extensions.indexOf(e.toLowerCase())>=0},read:T,destroy:function(){C.length=0,R(),j&&(j.removeEventListener(Ei,M),j.removeEventListener(Ti,U)),_.clear(),O.clear(),S.clear(),A.clear(),k.clear(),w.clear(),x.clear(),m&&m.clear(),B.forEach((function(e){e()}))},_gl:a,_refresh:J,poll:function(){K(),m&&m.update()},now:Z,stats:l});return n.onDone(null,ee),ee}},\"object\"==typeof r&&void 0!==t?t.exports=o():\"function\"==typeof define&&define.amd?define(o):i.createREGL=o()},\n 507: function _(t,e,a,s,r){s();const n=t(508),_=t(10),o=t(13);class c{constructor(t){this._regl=t,this._map=new Map}_create_texture(t){const e=t.length;let a=0;const s=[];let r=0,_=0;for(let n=0;n<e;n++)a+=t[n],s.push(t[n]+t[(n+1)%e]),n%2==0?_=Math.max(_,t[n]):r=Math.min(r,-t[n]);r*=.5,_*=.5;const o=(0,n.gcd)(s),c=[0];for(let a=0;a<e;a++)c.push(c[a]+t[a]);const h=2*a/o,i=(0,n.is_pow_2)(h),l=i?h:128,g=.5*o*h/l;let p;if(i){if(p=.5*t[0],g<p){p-=Math.floor(p/g)*g}}else p=0;const u=p-.5*g,m=new Uint8Array(l);let f=0;for(let e=0;e<l;e++){const a=p+e*g;a>c[f+1]&&f++;const s=t[f],n=c[f]+.5*s;let o=.5*s-Math.abs(a-n);f%2==1&&(o=-o),m[e]=Math.round(255*(o-r)/(_-r))}return[[a,u,r,_],this._regl.texture({shape:[l,1,1],data:m,wrapS:\"repeat\",format:\"alpha\",type:\"uint8\",mag:\"linear\",min:\"linear\"})]}_get_key(t){return t.join(\",\")}_get_or_create(t){const e=this._get_key(t);let a=this._map.get(e);if(null==a){const s=(0,n.gcd)(t);if(s>1){t=(0,o.map)(t,(t=>t/s)),a=this._get_or_create(t);const[r,n,_]=a;a=[r,n,s],this._map.set(e,a)}else{const[r,n]=this._create_texture(t);a=[r,n,s],this._map.set(e,a)}}return a}get(t){return t.length%2==1&&(t=(0,_.concat)([t,t])),this._get_or_create(t)}}a.DashCache=c,c.__name__=\"DashCache\"},\n 508: function _(n,t,e,r,o){function u(n,t){let e,r;n>t?(e=n,r=t):(e=t,r=n);let o=e%r;for(;0!=o;)e=r,r=o,o=e%r;return r}r(),e.gcd=function(n){let t=n[0];for(let e=1;e<n.length;e++)t=u(t,n[e]);return t},e.is_pow_2=function(n){return 0==(n&n-1)&&0!=n}},\n 509: function _(n,t,_,e,i){e();_.default=\"\\nprecision mediump float;\\n\\nconst int butt_cap = 0;\\nconst int round_cap = 1;\\nconst int square_cap = 2;\\n\\nconst int miter_join = 0;\\nconst int round_join = 1;\\nconst int bevel_join = 2;\\n\\nattribute vec2 a_position;\\nattribute vec2 a_point_prev;\\nattribute vec2 a_point_start;\\nattribute vec2 a_point_end;\\nattribute vec2 a_point_next;\\nattribute float a_show_prev;\\nattribute float a_show_curr;\\nattribute float a_show_next;\\n#ifdef DASHED\\nattribute float a_length_so_far;\\n#endif\\n\\nuniform float u_pixel_ratio;\\nuniform vec2 u_canvas_size;\\nuniform float u_linewidth;\\nuniform float u_antialias;\\nuniform float u_line_join;\\nuniform float u_line_cap;\\nuniform float u_miter_limit;\\n\\nvarying float v_segment_length;\\nvarying vec2 v_coords;\\nvarying float v_flags; // Boolean flags\\nvarying float v_cos_turn_angle_start;\\nvarying float v_cos_turn_angle_end;\\n#ifdef DASHED\\nvarying float v_length_so_far;\\n#endif\\n\\n#define SMALL 1e-6\\n\\nfloat cross_z(in vec2 v0, in vec2 v1)\\n{\\n return v0.x*v1.y - v0.y*v1.x;\\n}\\n\\nvec2 right_vector(in vec2 v)\\n{\\n return vec2(v.y, -v.x);\\n}\\n\\n// Calculate cos/sin turn angle with adjacent segment, and unit normal vector to right\\nfloat calc_turn_angle(in bool has_cap, in vec2 segment_right, in vec2 other_right, out vec2 point_right, out float sin_turn_angle)\\n{\\n float cos_turn_angle;\\n vec2 diff = segment_right + other_right;\\n float len = length(diff);\\n if (has_cap || len < SMALL) {\\n point_right = segment_right;\\n cos_turn_angle = -1.0; // Turns back on itself.\\n sin_turn_angle = 0.0;\\n }\\n else {\\n point_right = diff / len;\\n cos_turn_angle = dot(segment_right, other_right); // cos zero at +/-pi/2, +ve angle is turn right\\n sin_turn_angle = cross_z(segment_right, other_right);\\n }\\n return cos_turn_angle;\\n}\\n\\n// If miter too large use bevel join instead\\nbool miter_too_large(in int join_type, in float cos_turn_angle)\\n{\\n float cos_half_angle_sqr = 0.5*(1.0 + cos_turn_angle); // Trig identity\\n return join_type == miter_join && cos_half_angle_sqr < 1.0 / (u_miter_limit*u_miter_limit);\\n}\\n\\nvec2 normalize_check_len(in vec2 vec, in float len)\\n{\\n if (abs(len) < SMALL)\\n return vec2(1.0, 0.0);\\n else\\n return vec / len;\\n}\\n\\nvec2 normalize_check(in vec2 vec)\\n{\\n return normalize_check_len(vec, length(vec));\\n}\\n\\nvoid main()\\n{\\n if (a_show_curr < 0.5) {\\n // Line segment has non-finite value at one or both ends, do not render.\\n gl_Position = vec4(-2.0, -2.0, 0.0, 1.0);\\n return;\\n }\\n\\n int join_type = int(u_line_join + 0.5);\\n int cap_type = int(u_line_cap + 0.5);\\n float halfwidth = 0.5*(u_linewidth + u_antialias);\\n\\n vec2 segment_along = a_point_end - a_point_start;\\n v_segment_length = length(a_point_end - a_point_start);\\n segment_along = normalize_check_len(segment_along, v_segment_length); // unit vector.\\n vec2 segment_right = right_vector(segment_along); // unit vector.\\n vec2 xy;\\n\\n // in screen coords\\n vec2 prev_along = normalize_check(a_point_start - a_point_prev);\\n vec2 prev_right = right_vector(prev_along);\\n vec2 next_right = right_vector(normalize_check(a_point_next - a_point_end));\\n\\n v_coords.y = a_position.y*halfwidth; // Overwritten later for join points.\\n\\n // Start and end cap properties\\n bool has_start_cap = a_show_prev < 0.5;\\n bool has_end_cap = a_show_next < 0.5;\\n\\n // Start and end join properties\\n vec2 point_right_start, point_right_end;\\n float sin_turn_angle_start, sin_turn_angle_end;\\n v_cos_turn_angle_start = calc_turn_angle(has_start_cap, segment_right, prev_right, point_right_start, sin_turn_angle_start);\\n v_cos_turn_angle_end = calc_turn_angle(has_end_cap, segment_right, next_right, point_right_end, sin_turn_angle_end);\\n float sign_turn_right_start = sin_turn_angle_start >= 0.0 ? 1.0 : -1.0;\\n\\n bool miter_too_large_start = !has_start_cap && miter_too_large(join_type, v_cos_turn_angle_start);\\n bool miter_too_large_end = !has_end_cap && miter_too_large(join_type, v_cos_turn_angle_end);\\n\\n float sign_at_start = -sign(a_position.x); // +ve at segment start, -ve end.\\n vec2 point = sign_at_start > 0.0 ? a_point_start : a_point_end;\\n\\n if ( (has_start_cap && sign_at_start > 0.0) ||\\n (has_end_cap && sign_at_start < 0.0) ) {\\n // Cap.\\n xy = point - segment_right*(halfwidth*a_position.y);\\n if (cap_type == butt_cap)\\n xy -= sign_at_start*0.5*u_antialias*segment_along;\\n else\\n xy -= sign_at_start*halfwidth*segment_along;\\n }\\n else if (sign_at_start > 0.0) {\\n vec2 inside_point = a_point_start + segment_right*(sign_turn_right_start*halfwidth);\\n vec2 prev_outside_point = a_point_start - prev_right*(sign_turn_right_start*halfwidth);\\n\\n // join at start.\\n if (join_type == round_join || join_type == bevel_join || miter_too_large_start) {\\n if (v_cos_turn_angle_start <= 0.0) { // |turn_angle| > 90 degrees\\n xy = a_point_start - segment_right*(halfwidth*a_position.y) - halfwidth*segment_along;\\n }\\n else {\\n if (a_position.x < -1.5) {\\n xy = prev_outside_point;\\n v_coords.y = -dot(xy - a_point_start, segment_right);\\n }\\n else if (a_position.y*sign_turn_right_start > 0.0) { // outside corner of turn\\n float d = halfwidth*abs(sin_turn_angle_start);\\n xy = a_point_start - segment_right*(halfwidth*a_position.y) - d*segment_along;\\n }\\n else { // inside corner of turn\\n xy = inside_point;\\n }\\n }\\n }\\n else { // miter join\\n if (a_position.x < -1.5) {\\n xy = prev_outside_point;\\n v_coords.y = -dot(xy - a_point_start, segment_right);\\n }\\n else if (a_position.y*sign_turn_right_start > 0.0) { // outside corner of turn\\n float tan_half_turn_angle = (1.0-v_cos_turn_angle_start) / sin_turn_angle_start; // Trig identity\\n float d = sign_turn_right_start*halfwidth*tan_half_turn_angle;\\n xy = a_point_start - segment_right*(halfwidth*a_position.y) - d*segment_along;\\n }\\n else { // inside corner if turn\\n xy = inside_point;\\n }\\n }\\n }\\n else {\\n xy = point - segment_right*(halfwidth*a_position.y);\\n }\\n\\n vec2 pos = xy + 0.5; // Bokeh's offset.\\n pos /= u_canvas_size / u_pixel_ratio; // in 0..1\\n gl_Position = vec4(2.0*pos.x - 1.0, 1.0 - 2.0*pos.y, 0.0, 1.0);\\n\\n bool turn_right_start = sin_turn_angle_start >= 0.0;\\n bool turn_right_end = sin_turn_angle_end >= 0.0;\\n\\n v_coords.x = dot(xy - a_point_start, segment_along);\\n v_flags = float(int(has_start_cap) +\\n 2*int(has_end_cap) +\\n 4*int(miter_too_large_start) +\\n 8*int(miter_too_large_end) +\\n 16*int(turn_right_start) +\\n 32*int(turn_right_end));\\n\\n#ifdef DASHED\\n v_length_so_far = a_length_so_far;\\n#endif\\n}\\n\"},\n 510: function _(n,t,a,i,e){i();a.default=\"\\nprecision mediump float;\\n\\nconst int butt_cap = 0;\\nconst int round_cap = 1;\\nconst int square_cap = 2;\\n\\nconst int miter_join = 0;\\nconst int round_join = 1;\\nconst int bevel_join = 2;\\n\\nuniform float u_linewidth;\\nuniform float u_antialias;\\nuniform float u_line_join;\\nuniform float u_line_cap;\\nuniform vec4 u_line_color;\\n#ifdef DASHED\\nuniform sampler2D u_dash_tex;\\nuniform vec4 u_dash_tex_info;\\nuniform float u_dash_scale;\\nuniform float u_dash_offset;\\n#endif\\n\\nvarying float v_segment_length;\\nvarying vec2 v_coords;\\nvarying float v_flags;\\nvarying float v_cos_turn_angle_start;\\nvarying float v_cos_turn_angle_end;\\n#ifdef DASHED\\nvarying float v_length_so_far;\\n#endif\\n\\n#define ONE_MINUS_SMALL (1.0 - 1e-6)\\n\\nfloat cross_z(in vec2 v0, in vec2 v1)\\n{\\n return v0.x*v1.y - v0.y*v1.x;\\n}\\n\\nvec2 right_vector(in vec2 v)\\n{\\n return vec2(v.y, -v.x);\\n}\\n\\nfloat bevel_join_distance(in vec2 coords, in vec2 other_right, in float sign_turn_right)\\n{\\n // other_right is unit vector facing right of the other (previous or next) segment, in coord reference frame\\n float hw = 0.5*u_linewidth; // Not including antialiasing\\n if (other_right.y >= ONE_MINUS_SMALL) { // other_right.y is -cos(turn_angle)\\n // 180 degree turn.\\n return abs(hw - v_coords.x);\\n }\\n else {\\n const vec2 segment_right = vec2(0.0, -1.0);\\n // corner_right is unit vector bisecting corner facing right, in coord reference frame\\n vec2 corner_right = normalize(other_right + segment_right);\\n vec2 outside_point = (-hw*sign_turn_right)*segment_right;\\n return hw + sign_turn_right*dot(outside_point - coords, corner_right);\\n }\\n}\\n\\nfloat cap(in int cap_type, in float x, in float y)\\n{\\n // x is distance along segment in direction away from end of segment,\\n // y is distance across segment.\\n if (cap_type == butt_cap)\\n return max(0.5*u_linewidth - x, abs(y));\\n else if (cap_type == square_cap)\\n return max(-x, abs(y));\\n else // cap_type == round_cap\\n return distance(vec2(min(x, 0.0), y), vec2(0.0, 0.0));\\n}\\n\\nfloat distance_to_alpha(in float dist)\\n{\\n return 1.0 - smoothstep(0.5*(u_linewidth - u_antialias),\\n 0.5*(u_linewidth + u_antialias), dist);\\n}\\n\\nvec2 turn_angle_to_right_vector(in float cos_turn_angle, in float sign_turn_right)\\n{\\n float sin_turn_angle = sign_turn_right*sqrt(1.0 - cos_turn_angle*cos_turn_angle);\\n return vec2(sin_turn_angle, -cos_turn_angle);\\n}\\n\\n#ifdef DASHED\\nfloat dash_distance(in float x)\\n{\\n // x is in direction of v_coords.x, i.e. along segment.\\n float tex_length = u_dash_tex_info.x;\\n float tex_offset = u_dash_tex_info.y;\\n float tex_dist_min = u_dash_tex_info.z;\\n float tex_dist_max = u_dash_tex_info.w;\\n\\n // Apply offset.\\n x += v_length_so_far - u_dash_scale*tex_offset + u_dash_offset;\\n\\n // Interpolate within texture to obtain distance to dash.\\n float dist = texture2D(u_dash_tex,\\n vec2(x / (tex_length*u_dash_scale), 0.0)).a;\\n\\n // Scale distance within min and max limits.\\n dist = tex_dist_min + dist*(tex_dist_max - tex_dist_min);\\n\\n return u_dash_scale*dist;\\n}\\n\\nmat2 rotation_matrix(in vec2 other_right)\\n{\\n float sin_angle = other_right.x;\\n float cos_angle = -other_right.y;\\n return mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\\n}\\n#endif\\n\\nvoid main()\\n{\\n int join_type = int(u_line_join + 0.5);\\n int cap_type = int(u_line_cap + 0.5);\\n float halfwidth = 0.5*(u_linewidth + u_antialias);\\n float half_antialias = 0.5*u_antialias;\\n\\n // Extract flags.\\n int flags = int(v_flags + 0.5);\\n bool turn_right_end = (flags / 32 > 0);\\n float sign_turn_right_end = turn_right_end ? 1.0 : -1.0;\\n flags -= 32*int(turn_right_end);\\n bool turn_right_start = (flags / 16 > 0);\\n float sign_turn_right_start = turn_right_start ? 1.0 : -1.0;\\n flags -= 16*int(turn_right_start);\\n bool miter_too_large_end = (flags / 8 > 0);\\n flags -= 8*int(miter_too_large_end);\\n bool miter_too_large_start = (flags / 4 > 0);\\n flags -= 4*int(miter_too_large_start);\\n bool has_end_cap = (flags / 2 > 0);\\n flags -= 2*int(has_end_cap);\\n bool has_start_cap = flags > 0;\\n\\n // Unit vectors to right of previous and next segments in coord reference frame\\n vec2 prev_right = turn_angle_to_right_vector(v_cos_turn_angle_start, sign_turn_right_start);\\n vec2 next_right = turn_angle_to_right_vector(v_cos_turn_angle_end, sign_turn_right_end);\\n\\n float dist = v_coords.y; // For straight segment, and miter join.\\n\\n // Along-segment coords with respect to end of segment, facing inwards\\n vec2 end_coords = vec2(v_segment_length, 0.0) - v_coords;\\n\\n if (v_coords.x <= half_antialias) {\\n // At start of segment, either cap or join.\\n if (has_start_cap)\\n dist = cap(cap_type, v_coords.x, v_coords.y);\\n else if (join_type == round_join) {\\n if (v_coords.x <= 0.0)\\n dist = distance(v_coords, vec2(0.0, 0.0));\\n }\\n else { // bevel or miter join\\n if (join_type == bevel_join || miter_too_large_start)\\n dist = max(abs(dist), bevel_join_distance(v_coords, prev_right, sign_turn_right_start));\\n float prev_sideways_dist = -sign_turn_right_start*dot(v_coords, prev_right);\\n dist = max(abs(dist), prev_sideways_dist);\\n }\\n }\\n\\n if (end_coords.x <= half_antialias) {\\n if (has_end_cap) {\\n dist = max(abs(dist), cap(cap_type, end_coords.x, v_coords.y));\\n }\\n else if (join_type == bevel_join || miter_too_large_end) {\\n // Bevel join at end impacts half antialias distance\\n dist = max(abs(dist), bevel_join_distance(end_coords, next_right, sign_turn_right_end));\\n }\\n }\\n\\n float alpha = distance_to_alpha(abs(dist));\\n\\n#ifdef DASHED\\n if (u_dash_tex_info.x >= 0.0) {\\n // Dashes in straight segments (outside of joins) are easily calculated.\\n dist = dash_distance(v_coords.x);\\n\\n vec2 prev_coords = rotation_matrix(prev_right)*v_coords;\\n float start_dash_distance = dash_distance(0.0);\\n\\n if (!has_start_cap && cap_type == butt_cap) {\\n // Outer of start join rendered solid color or not at all depending on whether corner\\n // point is in dash or gap, with antialiased ends.\\n bool outer_solid = start_dash_distance >= 0.0 && v_coords.x < half_antialias && prev_coords.x > -half_antialias;\\n if (outer_solid) {\\n // Within solid outer region, antialiased at ends\\n float half_aa_dist = dash_distance(half_antialias);\\n if (half_aa_dist > 0.0) // Next dash near, do not want antialiased gap\\n dist = half_aa_dist - v_coords.x + half_antialias;\\n else\\n dist = start_dash_distance - v_coords.x;\\n\\n half_aa_dist = dash_distance(-half_antialias);\\n if (half_aa_dist > 0.0) // Prev dash nearm do not want antialiased gap\\n dist = min(dist, half_aa_dist + prev_coords.x + half_antialias);\\n else\\n dist = min(dist, start_dash_distance + prev_coords.x);\\n }\\n else {\\n // Outer not rendered, antialias ends.\\n if (v_coords.x < half_antialias)\\n dist = min(0.0, dash_distance(half_antialias) - half_antialias) + v_coords.x;\\n\\n if (prev_coords.x > -half_antialias && prev_coords.x <= half_antialias) {\\n // Antialias from end of previous segment into join\\n float prev_dist = min(0.0, dash_distance(-half_antialias) - half_antialias) - prev_coords.x;\\n // Consider width of previous segment\\n prev_dist = min(prev_dist, 0.5*u_linewidth - abs(prev_coords.y));\\n dist = max(dist, prev_dist);\\n }\\n }\\n }\\n\\n if (!has_end_cap && cap_type == butt_cap && end_coords.x < half_antialias) {\\n float end_dash_distance = dash_distance(v_segment_length);\\n bool increasing = end_dash_distance >= 0.0 && sign_turn_right_end*v_coords.y < 0.0;\\n if (!increasing) {\\n float half_aa_dist = dash_distance(v_segment_length - half_antialias);\\n dist = min(0.0, half_aa_dist - half_antialias) + end_coords.x;\\n }\\n }\\n\\n dist = cap(cap_type, dist, v_coords.y);\\n\\n float dash_alpha = distance_to_alpha(dist);\\n alpha = min(alpha, dash_alpha);\\n }\\n#endif\\n\\n alpha = u_line_color.a*alpha;\\n gl_FragColor = vec4(u_line_color.rgb*alpha, alpha); // Premultiplied alpha.\\n}\\n\"},\n 511: function _(n,i,e,a,t){a();e.default=\"\\nprecision mediump float;\\n\\nattribute vec2 a_position;\\nattribute vec2 a_center;\\nattribute float a_width;\\nattribute float a_height;\\nattribute float a_angle; // In radians\\nuniform vec4 u_border_radius;\\nattribute float a_linewidth;\\nattribute vec4 a_line_color;\\nattribute vec4 a_fill_color;\\nattribute float a_line_cap;\\nattribute float a_line_join;\\nattribute float a_show;\\n#ifdef HATCH\\nattribute float a_hatch_pattern;\\nattribute float a_hatch_scale;\\nattribute float a_hatch_weight;\\nattribute vec4 a_hatch_color;\\n#endif\\n\\nuniform float u_pixel_ratio;\\nuniform vec2 u_canvas_size;\\nuniform float u_antialias;\\nuniform float u_size_hint;\\n\\nvarying float v_linewidth;\\nvarying vec2 v_size; // 2D size for rects compared to 1D for markers.\\nvarying vec4 v_border_radius;\\nvarying vec4 v_line_color;\\nvarying vec4 v_fill_color;\\nvarying float v_line_cap;\\nvarying float v_line_join;\\nvarying vec2 v_coords;\\n#ifdef HATCH\\nvarying float v_hatch_pattern;\\nvarying float v_hatch_scale;\\nvarying float v_hatch_weight;\\nvarying vec4 v_hatch_color;\\nvarying vec2 v_hatch_coords;\\n#endif\\n\\nvoid main()\\n{\\n if (a_show < 0.5 || a_width <= 0.0 || a_height <= 0.0) {\\n // Do not show this rect.\\n gl_Position = vec4(-2.0, -2.0, 0.0, 1.0);\\n return;\\n }\\n\\n v_size = vec2(a_width, a_height);\\n v_border_radius = u_border_radius;\\n v_linewidth = a_linewidth;\\n v_line_color = a_line_color;\\n v_fill_color = a_fill_color;\\n v_line_cap = a_line_cap;\\n v_line_join = a_line_join;\\n\\n if (v_linewidth < 1.0) {\\n // Linewidth less than 1 is implemented as 1 but with reduced alpha.\\n v_line_color.a *= v_linewidth;\\n v_linewidth = 1.0;\\n }\\n\\n#ifdef HATCH\\n v_hatch_pattern = a_hatch_pattern;\\n v_hatch_scale = a_hatch_scale;\\n v_hatch_weight = a_hatch_weight;\\n v_hatch_color = a_hatch_color;\\n#endif\\n\\n vec2 enclosing_size;\\n // Need extra size of (v_linewidth+u_antialias) if edge of marker parallel to\\n // edge of bounding box. If symmetric spike towards edge then multiply by\\n // 1/cos(theta) where theta is angle between spike and bbox edges.\\n int size_hint = int(u_size_hint + 0.5);\\n if (size_hint == 1) // Dash\\n enclosing_size = vec2(v_size.x + v_linewidth + u_antialias,\\n v_linewidth + u_antialias);\\n else if (size_hint == 2) // Dot\\n enclosing_size = 0.25*v_size + u_antialias;\\n else if (size_hint == 3) // Diamond\\n enclosing_size = vec2(v_size.x*(2.0/3.0) + (v_linewidth + u_antialias)*1.20185,\\n v_size.y + (v_linewidth + u_antialias)*1.80278);\\n else if (size_hint == 4) // Hex\\n enclosing_size = v_size + (v_linewidth + u_antialias)*vec2(2.0/sqrt(3.0), 1.0);\\n else if (size_hint == 5) // Square pin\\n enclosing_size = v_size + (v_linewidth + u_antialias)*3.1;\\n else if (size_hint == 6) // Triangle\\n enclosing_size = vec2(v_size.x + (v_linewidth + u_antialias)*sqrt(3.0),\\n v_size.y*(2.0/sqrt(3.0)) + (v_linewidth + u_antialias)*2.0);\\n else if (size_hint == 7) // Triangle pin\\n enclosing_size = v_size + (v_linewidth + u_antialias)*vec2(4.8, 6.0);\\n else if (size_hint == 8) // Star\\n enclosing_size = vec2(v_size.x*0.95106 + (v_linewidth + u_antialias)*3.0,\\n v_size.y + (v_linewidth + u_antialias)*3.2);\\n else\\n enclosing_size = v_size + v_linewidth + u_antialias;\\n\\n // Coordinates in rotated frame with respect to center of marker, used for\\n // distance functions in fragment shader.\\n v_coords = a_position*enclosing_size;\\n\\n float c = cos(-a_angle);\\n float s = sin(-a_angle);\\n mat2 rotation = mat2(c, -s, s, c);\\n\\n vec2 pos = a_center + rotation*v_coords;\\n#ifdef HATCH\\n // Coordinates for hatching in unrotated frame of reference.\\n v_hatch_coords = pos - 0.5;\\n#endif\\n pos += 0.5; // Make up for Bokeh's offset.\\n pos /= u_canvas_size / u_pixel_ratio; // 0 to 1.\\n gl_Position = vec4(2.0*pos.x - 1.0, 1.0 - 2.0*pos.y, 0.0, 1.0);\\n}\\n\"},\n 512: function _(n,i,e,t,a){t();e.default=\"\\nprecision mediump float;\\n\\nconst float SQRT2 = sqrt(2.0);\\nconst float SQRT3 = sqrt(3.0);\\nconst float PI = 3.14159265358979323846;\\n\\nconst int butt_cap = 0;\\nconst int round_cap = 1;\\nconst int square_cap = 2;\\n\\nconst int miter_join = 0;\\nconst int round_join = 1;\\nconst int bevel_join = 2;\\n\\n#ifdef HATCH\\nconst int hatch_dot = 1;\\nconst int hatch_ring = 2;\\nconst int hatch_horizontal_line = 3;\\nconst int hatch_vertical_line = 4;\\nconst int hatch_cross = 5;\\nconst int hatch_horizontal_dash = 6;\\nconst int hatch_vertical_dash = 7;\\nconst int hatch_spiral = 8;\\nconst int hatch_right_diagonal_line = 9;\\nconst int hatch_left_diagonal_line = 10;\\nconst int hatch_diagonal_cross = 11;\\nconst int hatch_right_diagonal_dash = 12;\\nconst int hatch_left_diagonal_dash = 13;\\nconst int hatch_horizontal_wave = 14;\\nconst int hatch_vertical_wave = 15;\\nconst int hatch_criss_cross = 16;\\n#endif\\n\\nuniform float u_antialias;\\n\\nvarying float v_linewidth;\\nvarying vec2 v_size;\\nvarying vec4 v_border_radius;\\nvarying vec4 v_line_color;\\nvarying vec4 v_fill_color;\\nvarying float v_line_cap;\\nvarying float v_line_join;\\nvarying vec2 v_coords;\\n#ifdef HATCH\\nvarying float v_hatch_pattern;\\nvarying float v_hatch_scale;\\nvarying float v_hatch_weight;\\nvarying vec4 v_hatch_color;\\nvarying vec2 v_hatch_coords;\\n#endif\\n\\n// Lines within the marker (dot, cross, x and y) are added at the end as they are\\n// on top of the fill rather than astride it.\\n#if defined(USE_CIRCLE_DOT) || defined(USE_DIAMOND_DOT) || defined(USE_DOT) || defined(USE_HEX_DOT) || defined(USE_SQUARE_DOT) || defined(USE_STAR_DOT) || defined(USE_TRIANGLE_DOT)\\n #define APPEND_DOT\\n#endif\\n\\n#if defined(USE_CIRCLE_CROSS) || defined(USE_SQUARE_CROSS)\\n #define APPEND_CROSS\\n#endif\\n\\n#ifdef USE_DIAMOND_CROSS\\n #define APPEND_CROSS_2\\n#endif\\n\\n#ifdef USE_CIRCLE_X\\n #define APPEND_X\\n #define APPEND_X_LEN (0.5*v_size.x)\\n#endif\\n\\n#ifdef USE_SQUARE_X\\n #define APPEND_X\\n #define APPEND_X_LEN (v_size.x/SQRT2)\\n#endif\\n\\n#ifdef USE_CIRCLE_Y\\n #define APPEND_Y\\n#endif\\n\\n#if defined(USE_ASTERISK) || defined(USE_CROSS) || defined(USE_DASH) || defined(USE_DOT) || defined(USE_X) || defined(USE_Y)\\n // No fill.\\n #define LINE_ONLY\\n#endif\\n\\n#if defined(LINE_ONLY) || defined(APPEND_CROSS) || defined(APPEND_CROSS_2) || defined(APPEND_X) || defined(APPEND_Y)\\nfloat end_cap_distance(in vec2 p, in vec2 end_point, in vec2 unit_direction, in int line_cap)\\n{\\n vec2 offset = p - end_point;\\n if (line_cap == butt_cap)\\n return dot(offset, unit_direction) + 0.5*v_linewidth;\\n else if (line_cap == square_cap)\\n return dot(offset, unit_direction);\\n else if (line_cap == round_cap && dot(offset, unit_direction) > 0.0)\\n return length(offset);\\n else\\n // Default is outside of line and should be -0.5*(v_linewidth+u_antialias) or less,\\n // so here avoid the multiplication.\\n return -v_linewidth-u_antialias;\\n}\\n#endif\\n\\n#if !(defined(LINE_ONLY) || defined(USE_SQUARE_PIN) || defined(USE_TRIANGLE_PIN))\\n// For line join at a vec2 corner where 2 line segments meet, consider bevel points which are the 2\\n// points obtained by moving half a linewidth away from the corner point in the directions normal to\\n// the line segments. The line through these points is the bevel line, characterised by a vec2\\n// unit_normal and offset distance from the corner point. Edge of bevel join straddles this line,\\n// round join occurs outside of this line centred on the corner point. In general\\n// offset = (linewidth/2)*sin(alpha/2)\\n// where alpha is the angle between the 2 line segments at the corner.\\nfloat line_join_distance_no_miter(\\n in vec2 p, in vec2 corner, in vec2 unit_normal, in float offset, in int line_join)\\n{\\n // Simplified version of line_join_distance ignoring miter which most markers do implicitly\\n // as they are composed of straight line segments.\\n float dist_outside = dot((p - corner), unit_normal) - offset;\\n\\n if (line_join == bevel_join && dist_outside > -0.5*u_antialias)\\n return dist_outside + 0.5*v_linewidth;\\n else if (dist_outside > 0.0) // round_join\\n return distance(p, corner);\\n else\\n // Default is outside of line and should be -0.5*(v_linewidth+u_antialias) or less,\\n // so here avoid the multiplication.\\n return -v_linewidth-u_antialias;\\n}\\n#endif\\n\\n#if defined(USE_SQUARE_PIN) || defined(USE_TRIANGLE_PIN)\\n// Line join distance including miter but only one-sided check as assuming use of symmetry in\\n// calling function.\\nfloat line_join_distance_incl_miter(\\n in vec2 p, in vec2 corner, in vec2 unit_normal, in float offset, in int line_join,\\n vec2 miter_unit_normal)\\n{\\n float dist_outside = dot((p - corner), unit_normal) - offset;\\n\\n if (line_join == miter_join && dist_outside > 0.0)\\n return dot((p - corner), miter_unit_normal);\\n else if (line_join == bevel_join && dist_outside > -0.5*u_antialias)\\n return dist_outside + 0.5*v_linewidth;\\n else if (dist_outside > 0.0) // round_join\\n return distance(p, corner);\\n else\\n return -v_linewidth-u_antialias;\\n}\\n#endif\\n\\n#if defined(APPEND_CROSS) || defined(APPEND_X) || defined(USE_ASTERISK) || defined(USE_CROSS) || defined(USE_X)\\nfloat one_cross(in vec2 p, in int line_cap, in float len)\\n{\\n p = abs(p);\\n p = (p.y > p.x) ? p.yx : p.xy;\\n float dist = p.y;\\n float end_dist = end_cap_distance(p, vec2(len, 0.0), vec2(1.0, 0.0), line_cap);\\n return max(dist, end_dist);\\n}\\n#endif\\n\\n#ifdef APPEND_CROSS_2\\nfloat one_cross_2(in vec2 p, in int line_cap, in vec2 lengths)\\n{\\n // Cross with different length in x and y directions.\\n p = abs(p);\\n bool switch_xy = (p.y > p.x);\\n p = switch_xy ? p.yx : p.xy;\\n float len = switch_xy ? lengths.y : lengths.x;\\n float dist = p.y;\\n float end_dist = end_cap_distance(p, vec2(len, 0.0), vec2(1.0, 0.0), line_cap);\\n return max(dist, end_dist);\\n}\\n#endif\\n\\n#if defined(APPEND_Y) || defined(USE_Y)\\nfloat one_y(in vec2 p, in int line_cap, in float len)\\n{\\n p = vec2(abs(p.x), -p.y);\\n\\n // End point of line to right is (1/2, 1/3)*len*SQRT3.\\n // Unit vector along line is (1/2, 1/3)*k where k = 6/SQRT13.\\n const float k = 6.0/sqrt(13.0);\\n vec2 unit_along = vec2(0.5*k, k/3.0);\\n vec2 end_point = vec2(0.5*len*SQRT3, len*SQRT3/3.0);\\n float dist = max(abs(dot(p, vec2(-unit_along.y, unit_along.x))),\\n end_cap_distance(p, end_point, unit_along, line_cap));\\n\\n if (p.y < 0.0) {\\n // Vertical line.\\n float vert_dist = max(p.x,\\n end_cap_distance(p, vec2(0.0, -len), vec2(0.0, -1.0), line_cap));\\n dist = min(dist, vert_dist);\\n }\\n return dist;\\n}\\n#endif\\n\\n// One marker_distance function per marker type.\\n// Distance is zero on edge of marker, +ve outside and -ve inside.\\n\\n#ifdef USE_ASTERISK\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n vec2 p_diag = vec2((p.x + p.y)/SQRT2, (p.x - p.y)/SQRT2);\\n float len = 0.5*v_size.x;\\n return min(one_cross(p, line_cap, len), // cross\\n one_cross(p_diag, line_cap, len)); // x\\n}\\n#endif\\n\\n#if defined(USE_CIRCLE) || defined(USE_CIRCLE_CROSS) || defined(USE_CIRCLE_DOT) || defined(USE_CIRCLE_X) || defined(USE_CIRCLE_Y)\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n return length(p) - 0.5*v_size.x;\\n}\\n#endif\\n\\n#ifdef USE_CROSS\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n return one_cross(p, line_cap, 0.5*v_size.x);\\n}\\n#endif\\n\\n#ifdef USE_DASH\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n p = abs(p);\\n float dist = p.y;\\n float end_dist = end_cap_distance(p, vec2(0.5*v_size.x, 0.0), vec2(1.0, 0.0), line_cap);\\n return max(dist, end_dist);\\n}\\n#endif\\n\\n#if defined(USE_DIAMOND) || defined(USE_DIAMOND_CROSS) || defined(USE_DIAMOND_DOT)\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n // Only need to consider +ve quadrant, the 2 end points are (2r/3, 0) and (0, r)\\n // where r = radius = v_size.x/2.\\n // Line has outward-facing unit normal vec2(1, 2/3)/k where k = SQRT13/3\\n // hence vec2(3, 2)/SQRT13, and distance from origin of 2r/(3k) = 2r/SQRT13.\\n p = abs(p);\\n float r = 0.5*v_size.x;\\n const float SQRT13 = sqrt(13.0);\\n float dist = dot(p, vec2(3.0, 2.0))/SQRT13 - 2.0*r/SQRT13;\\n\\n if (line_join != miter_join) {\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(0.0, r), vec2(0.0, 1.0), v_linewidth/SQRT13, line_join));\\n\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(r*2.0/3.0, 0.0), vec2(1.0, 0.0), v_linewidth*(1.5/SQRT13), line_join));\\n }\\n\\n return dist;\\n}\\n#endif\\n\\n#ifdef USE_DOT\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Dot is always appended.\\n return v_linewidth+u_antialias;\\n}\\n#endif\\n\\n#if defined(USE_HEX) || defined(USE_HEX_DOT)\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // A regular hexagon has v_size.x == v.size_y = r where r is the length of\\n // each of the 3 sides of the 6 equilateral triangles that comprise the hex.\\n // Only consider +ve quadrant, the 3 corners are at (0, h), (rx/2, h), (rx, 0)\\n // where rx = 0.5*v_size.x, ry = 0.5*v_size.y and h = ry*SQRT3/2.\\n // Sloping line has outward normal vec2(h, rx/2). Length of this is\\n // len = sqrt(h**2 + rx**2/4) to give unit normal (h, rx/2)/len and distance\\n // from origin of this line is rx*h/len.\\n p = abs(p);\\n float rx = v_size.x/2.0;\\n float h = v_size.y*(SQRT3/4.0);\\n float len_normal = sqrt(h*h + 0.25*rx*rx);\\n vec2 unit_normal = vec2(h, 0.5*rx) / len_normal;\\n float dist = max(dot(p, unit_normal) - rx*h/len_normal, // Distance from sloping line.\\n p.y - h); // Distance from horizontal line.\\n\\n if (line_join != miter_join) {\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(rx, 0.0), vec2(1.0, 0.0), 0.5*v_linewidth*unit_normal.x, line_join));\\n\\n unit_normal = normalize(unit_normal + vec2(0.0, 1.0)); // At (rx/2, h) corner.\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(0.5*rx, h), unit_normal, 0.5*v_linewidth*unit_normal.y, line_join));\\n }\\n return dist;\\n}\\n#endif\\n\\n#ifdef USE_PLUS\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n // Only need to consider one octant, the +ve quadrant with x >= y.\\n p = abs(p);\\n p = (p.y > p.x) ? p.yx : p.xy;\\n\\n // 3 corners are (r, 0), (r, 3r/8) and (3r/8, 3r/8).\\n float r = 0.5*v_size.x;\\n p = p - vec2(r, 0.375*r); // Distance with respect to outside corner\\n float dist = max(p.x, p.y);\\n\\n if (line_join != miter_join) {\\n // Outside corner\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(0.0, 0.0), vec2(1.0/SQRT2, 1.0/SQRT2), v_linewidth/(2.0*SQRT2), line_join));\\n\\n // Inside corner\\n dist = min(dist, -line_join_distance_no_miter(\\n p, vec2(-5.0*r/8.0, 0.0), vec2(-1.0/SQRT2, -1.0/SQRT2), v_linewidth/(2.0*SQRT2), line_join));\\n }\\n\\n return dist;\\n}\\n#endif\\n\\n#if defined(USE_RECT)\\n// From https://www.shadertoy.com/view/4llXD7 (MIT licensed)\\nfloat rounded_box(in vec2 p, in vec2 size, in vec4 r)\\n{\\n float width = size.x;\\n float height = size.y;\\n\\n float top_left = r.x;\\n float top_right = r.y;\\n float bottom_right = r.z;\\n float bottom_left = r.w;\\n\\n float top = top_left + top_right;\\n float right = top_right + bottom_right;\\n float bottom = bottom_right + bottom_left;\\n float left = top_left + bottom_left;\\n\\n float top_scale = top == 0.0 ? 1.0 : width / top;\\n float right_scale = right == 0.0 ? 1.0 : height / right;\\n float bottom_scale = bottom == 0.0 ? 1.0 : width / bottom;\\n float left_scale = left == 0.0 ? 1.0 : height / left;\\n\\n float scale = min(min(min(top_scale, right_scale), bottom_scale), left_scale);\\n if (scale < 1.0) {\\n r *= scale;\\n }\\n\\n // tl r.x x=-1 y=-1\\n // tr r.y x=+1 y=-1\\n // br r.z x=+1 y=+1\\n // bl r.w x=-1 y=+1\\n vec2 rh = p.x > 0.0 ? r.yz : r.xw;\\n float rq = p.y > 0.0 ? rh.y : rh.x;\\n\\n // special case for corner miter joins\\n vec2 half_size = size/2.0;\\n if (rq == 0.0) {\\n vec2 q = abs(p) - half_size;\\n return max(q.x, q.y);\\n } else {\\n vec2 q = abs(p) - half_size + rq;\\n return min(max(q.x, q.y), 0.0) + length(max(q, 0.0)) - rq;\\n }\\n}\\n\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n float dist = rounded_box(p, v_size, v_border_radius);\\n\\n if (line_join != miter_join) {\\n vec2 p2 = abs(p) - v_size/2.0; // Offset from corner\\n dist = max(dist, line_join_distance_no_miter(\\n p2, vec2(0.0, 0.0), vec2(1.0/SQRT2, 1.0/SQRT2), v_linewidth/(2.0*SQRT2), line_join));\\n }\\n\\n return dist;\\n}\\n#endif\\n\\n#if defined(USE_SQUARE) || defined(USE_SQUARE_CROSS) || defined(USE_SQUARE_DOT) || defined(USE_SQUARE_X)\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n vec2 p2 = abs(p) - v_size/2.0; // Offset from corner\\n float dist = max(p2.x, p2.y);\\n\\n if (line_join != miter_join) {\\n dist = max(dist, line_join_distance_no_miter(\\n p2, vec2(0.0, 0.0), vec2(1.0/SQRT2, 1.0/SQRT2), v_linewidth/(2.0*SQRT2), line_join));\\n }\\n\\n return dist;\\n}\\n#endif\\n\\n#ifdef USE_SQUARE_PIN\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n p = abs(p);\\n p = (p.y > p.x) ? p.yx : p.xy;\\n // p is in octant between y=0 and y=x.\\n // Quadratic bezier curve passes through (r, r), (11r/16, 0) and (r, -r).\\n // Circular arc that passes through the same points has center at\\n // x = r + 231r/160 = 2.44275r and y = 0 and hence radius is\\n // x - 11r/16 = 1.75626 precisely.\\n float r = 0.5*v_size.x;\\n float center_x = r*2.44375;\\n float radius = r*1.75626;\\n float dist = radius - distance(p, vec2(center_x, 0.0));\\n\\n // Magic number is 0.5*sin(atan(8/5) - pi/4)\\n dist = max(dist, line_join_distance_incl_miter(\\n p, vec2(r, r), vec2(1.0/SQRT2, 1.0/SQRT2), v_linewidth*0.1124297533493792, line_join,\\n vec2(8.0/sqrt(89.0), -5.0/sqrt(89.0))));\\n\\n return dist;\\n}\\n#endif\\n\\n#if defined(USE_STAR) || defined(USE_STAR_DOT)\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n const float SQRT5 = sqrt(5.0);\\n const float COS72 = 0.25*(SQRT5 - 1.0);\\n const float SIN72 = sqrt((5.0+SQRT5) / 8.0);\\n\\n float angle = atan(p.x, p.y); // In range -pi to +pi clockwise from +y direction.\\n angle = mod(angle, 0.4*PI) - 0.2*PI; // In range -pi/5 to +pi/5 clockwise from +y direction.\\n p = length(p)*vec2(cos(angle), abs(sin(angle))); // (x,y) in pi/10 (36 degree) sector.\\n\\n // 2 corners are at (r, 0) and (r-a*SIN72, a*COS72) where a = r sqrt(5-2*sqrt(5)).\\n // Line has outward-facing unit normal vec2(COS72, SIN72) and distance from\\n // origin of dot(vec2(r, 0), vec2(COS72, SIN72)) = r*COS72\\n float r = 0.5*v_size.x;\\n float a = r*sqrt(5.0 - 2.0*SQRT5);\\n float dist = dot(p, vec2(COS72, SIN72)) - r*COS72;\\n\\n if (line_join != miter_join) {\\n // Outside corner\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(r, 0.0), vec2(1.0, 0.0), v_linewidth*(0.5*COS72), line_join));\\n\\n // Inside corner\\n const float COS36 = sqrt(0.5 + COS72/2.0);\\n const float SIN36 = sqrt(0.5 - COS72/2.0);\\n dist = min(dist, -line_join_distance_no_miter(\\n p, vec2(r-a*SIN72, a*COS72), vec2(-COS36, -SIN36), v_linewidth*(0.5*COS36), line_join));\\n }\\n\\n return dist;\\n}\\n#endif\\n\\n#if defined(USE_TRIANGLE) || defined(USE_TRIANGLE_DOT) || defined(USE_INVERTED_TRIANGLE)\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n // For normal triangle 3 corners are at (-r, a), (r, a), (0, a-h)=(0, -2h/3)\\n // given r = radius = v_size.x/2, h = SQRT3*r, a = h/3.\\n // Sloping line has outward-facing unit normal vec2(h, -r)/2r = vec2(SQRT3, -1)/2\\n // and distance from origin of a. Horizontal line has outward-facing unit normal\\n // vec2(0, 1) and distance from origin of a.\\n float r = 0.5*v_size.x;\\n float a = r*SQRT3/3.0;\\n\\n // Only need to consider +ve x.\\n#ifdef USE_INVERTED_TRIANGLE\\n p = vec2(abs(p.x), -p.y);\\n#else\\n p = vec2(abs(p.x), p.y);\\n#endif\\n\\n float dist = max(0.5*dot(p, vec2(SQRT3, -1.0)) - a, // Distance from sloping line.\\n p.y - a); // Distance from horizontal line.\\n\\n if (line_join != miter_join) {\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(0.0, -(2.0/SQRT3)*r), vec2(0.0, -1.0), v_linewidth*0.25, line_join));\\n\\n dist = max(dist, line_join_distance_no_miter(\\n p, vec2(r, a), vec2(SQRT3/2.0, 0.5), v_linewidth*0.25, line_join));\\n }\\n\\n return dist;\\n}\\n#endif\\n\\n#ifdef USE_TRIANGLE_PIN\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n float angle = atan(p.x, -p.y); // In range -pi to +pi.\\n angle = mod(angle, PI*2.0/3.0) - PI/3.0; // In range -pi/3 to pi/3.\\n p = length(p)*vec2(cos(angle), abs(sin(angle))); // (x,y) in range 0 to pi/3.\\n // Quadratic bezier curve passes through (a, r), ((a+b)/2, 0) and (a, -r) where\\n // a = r/SQRT3, b = 3a/8 = r SQRT3/8. Circular arc that passes through the same points has\\n // center at (a+x, 0) and radius x+c where c = (a-b)/2 and x = (r**2 - c**2) / (2c).\\n // Ignore r factor until the end so can use const.\\n const float a = 1.0/SQRT3;\\n const float b = SQRT3/8.0;\\n const float c = (a-b)/2.0;\\n const float x = (1.0 - c*c) / (2.0*c);\\n const float center_x = x + a;\\n const float radius = x + c;\\n float r = 0.5*v_size.x;\\n float dist = r*radius - distance(p, vec2(r*center_x, 0.0));\\n\\n // Magic number is 0.5*sin(atan(8*sqrt(3)/5) - pi/3)\\n dist = max(dist, line_join_distance_incl_miter(\\n p, vec2(a*r, r), vec2(0.5, 0.5*SQRT3), v_linewidth*0.0881844526878324, line_join,\\n vec2(8.0*SQRT3, -5.0)/sqrt(217.0)));\\n\\n return dist;\\n}\\n#endif\\n\\n#ifdef USE_X\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n p = vec2((p.x + p.y)/SQRT2, (p.x - p.y)/SQRT2);\\n return one_cross(p, line_cap, 0.5*v_size.x);\\n}\\n#endif\\n\\n#ifdef USE_Y\\nfloat marker_distance(in vec2 p, in int line_cap, in int line_join)\\n{\\n // Assuming v_size.x == v.size_y\\n return one_y(p, line_cap, 0.5*v_size.x);\\n}\\n#endif\\n\\n// Convert distance from edge of marker to fraction in range 0 to 1, depending\\n// on antialiasing width.\\nfloat distance_to_fraction(in float dist)\\n{\\n return 1.0 - smoothstep(-0.5*u_antialias, 0.5*u_antialias, dist);\\n}\\n\\n// Return fraction from 0 (no fill color) to 1 (full fill color).\\nfloat fill_fraction(in float dist)\\n{\\n return distance_to_fraction(dist);\\n}\\n\\n// Return fraction in range 0 (no line color) to 1 (full line color).\\nfloat line_fraction(in float dist)\\n{\\n return distance_to_fraction(abs(dist) - 0.5*v_linewidth);\\n}\\n\\n// Return fraction (in range 0 to 1) of a color, with premultiplied alpha.\\nvec4 fractional_color(in vec4 color, in float fraction)\\n{\\n color.a *= fraction;\\n color.rgb *= color.a;\\n return color;\\n}\\n\\n// Blend colors that have premultiplied alpha.\\nvec4 blend_colors(in vec4 src, in vec4 dest)\\n{\\n return (1.0 - src.a)*dest + src;\\n}\\n\\n#ifdef APPEND_DOT\\nfloat dot_fraction(in vec2 p)\\n{\\n // Assuming v_size.x == v_size.y\\n float radius = 0.125*v_size.x;\\n float dot_distance = max(length(p) - radius, -0.5*u_antialias);\\n return fill_fraction(dot_distance);\\n}\\n#endif\\n\\n#ifdef HATCH\\n// Wrap coordinate(s) by removing integer part to give distance from center of\\n// repeat, in the range -0.5 to +0.5.\\nfloat wrap(in float x)\\n{\\n return fract(x) - 0.5;\\n}\\n\\nvec2 wrap(in vec2 xy)\\n{\\n return fract(xy) - 0.5;\\n}\\n\\n// Return fraction from 0 (no hatch color) to 1 (full hatch color).\\nfloat hatch_fraction(in vec2 coords, in int hatch_pattern)\\n{\\n float scale = v_hatch_scale; // Hatch repeat distance.\\n\\n // Coordinates and linewidth/halfwidth are scaled to hatch repeat distance.\\n coords = coords / scale;\\n float halfwidth = 0.5*v_hatch_weight / scale; // Half the hatch linewidth.\\n\\n // Default is to return fraction of zero, i.e. no pattern.\\n float dist = u_antialias;\\n\\n if (hatch_pattern == hatch_dot) {\\n const float dot_radius = 0.25;\\n dist = length(wrap(coords)) - dot_radius;\\n }\\n else if (hatch_pattern == hatch_ring) {\\n const float ring_radius = 0.25;\\n dist = abs(length(wrap(coords)) - ring_radius) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_horizontal_line) {\\n dist = abs(wrap(coords.y)) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_vertical_line) {\\n dist = abs(wrap(coords.x)) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_cross) {\\n dist = min(abs(wrap(coords.x)), abs(wrap(coords.y))) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_horizontal_dash) {\\n // Dashes have square caps.\\n const float halflength = 0.25;\\n dist = max(abs(wrap(coords.y)),\\n abs(wrap(coords.x) + 0.25) - halflength) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_vertical_dash) {\\n const float halflength = 0.25;\\n dist = max(abs(wrap(coords.x)),\\n abs(wrap(coords.y) + 0.25) - halflength) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_spiral) {\\n vec2 wrap2 = wrap(coords);\\n float angle = wrap(atan(wrap2.y, wrap2.x) / (2.0*PI));\\n // Canvas spiral radius increases by scale*pi/15 each rotation.\\n const float dr = PI/15.0;\\n float radius = length(wrap2);\\n // At any angle, spiral lines are equally spaced dr apart.\\n // Find distance to nearest of these lines.\\n float frac = fract((radius - dr*angle) / dr); // 0 to 1.\\n dist = dr*(abs(frac - 0.5));\\n dist = min(dist, radius) - halfwidth; // Consider center point also.\\n }\\n else if (hatch_pattern == hatch_right_diagonal_line) {\\n dist = abs(wrap(2.0*coords.x + coords.y))/sqrt(5.0) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_left_diagonal_line) {\\n dist = abs(wrap(2.0*coords.x - coords.y))/sqrt(5.0) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_diagonal_cross) {\\n coords = vec2(coords.x + coords.y + 0.5, coords.x - coords.y + 0.5);\\n dist = min(abs(wrap(coords.x)), abs(wrap(coords.y))) / SQRT2 - halfwidth;\\n }\\n else if (hatch_pattern == hatch_right_diagonal_dash) {\\n float across = coords.x + coords.y + 0.5;\\n dist = abs(wrap(across)) / SQRT2; // Distance to nearest solid line.\\n\\n across = floor(across); // Offset for dash.\\n float along = wrap(0.5*(coords.x - coords.y + across));\\n const float halflength = 0.25;\\n along = abs(along) - halflength; // Distance along line.\\n\\n dist = max(dist, along) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_left_diagonal_dash) {\\n float across = coords.x - coords.y + 0.5;\\n dist = abs(wrap(across)) / SQRT2; // Distance to nearest solid line.\\n\\n across = floor(across); // Offset for dash.\\n float along = wrap(0.5*(coords.x + coords.y + across));\\n const float halflength = 0.25;\\n along = abs(along) - halflength; // Distance along line.\\n\\n dist = max(dist, along) - halfwidth;\\n }\\n else if (hatch_pattern == hatch_horizontal_wave) {\\n float wrapx = wrap(coords.x);\\n float wrapy = wrap(coords.y - 0.25 + abs(wrapx));\\n dist = abs(wrapy) / SQRT2 - halfwidth;\\n }\\n else if (hatch_pattern == hatch_vertical_wave) {\\n float wrapy = wrap(coords.y);\\n float wrapx = wrap(coords.x - 0.25 + abs(wrapy));\\n dist = abs(wrapx) / SQRT2 - halfwidth;\\n }\\n else if (hatch_pattern == hatch_criss_cross) {\\n float plus = min(abs(wrap(coords.x)), abs(wrap(coords.y)));\\n\\n coords = vec2(coords.x + coords.y + 0.5, coords.x - coords.y + 0.5);\\n float X = min(abs(wrap(coords.x)), abs(wrap(coords.y))) / SQRT2;\\n\\n dist = min(plus, X) - halfwidth;\\n }\\n\\n return distance_to_fraction(dist*scale);\\n}\\n#endif\\n\\nvoid main()\\n{\\n int line_cap = int(v_line_cap + 0.5);\\n int line_join = int(v_line_join + 0.5);\\n#ifdef HATCH\\n int hatch_pattern = int(v_hatch_pattern + 0.5);\\n#endif\\n\\n float dist = marker_distance(v_coords, line_cap, line_join);\\n\\n#ifdef LINE_ONLY\\n vec4 color = vec4(0.0, 0.0, 0.0, 0.0);\\n#else\\n float fill_frac = fill_fraction(dist);\\n vec4 color = fractional_color(v_fill_color, fill_frac);\\n#endif\\n\\n#if defined(HATCH) && !defined(LINE_ONLY)\\n if (hatch_pattern > 0 && fill_frac > 0.0) {\\n float hatch_frac = hatch_fraction(v_hatch_coords, hatch_pattern);\\n vec4 hatch_color = fractional_color(v_hatch_color, hatch_frac*fill_frac);\\n color = blend_colors(hatch_color, color);\\n }\\n#endif\\n\\n float line_frac = line_fraction(dist);\\n\\n#ifdef APPEND_DOT\\n line_frac = max(line_frac, dot_fraction(v_coords));\\n#endif\\n#ifdef APPEND_CROSS\\n line_frac = max(line_frac, line_fraction(one_cross(v_coords, line_cap, 0.5*v_size.x)));\\n#endif\\n#ifdef APPEND_CROSS_2\\n vec2 lengths = vec2(v_size.x/3.0, v_size.x/2.0);\\n line_frac = max(line_frac, line_fraction(one_cross_2(v_coords, line_cap, lengths)));\\n#endif\\n#ifdef APPEND_X\\n vec2 p = vec2((v_coords.x + v_coords.y)/SQRT2, (v_coords.x - v_coords.y)/SQRT2);\\n line_frac = max(line_frac, line_fraction(one_cross(p, line_cap, APPEND_X_LEN)));\\n#endif\\n#ifdef APPEND_Y\\n line_frac = max(line_frac, line_fraction(one_y(v_coords, line_cap, 0.5*v_size.x)));\\n#endif\\n\\n if (line_frac > 0.0) {\\n vec4 line_color = fractional_color(v_line_color, line_frac);\\n color = blend_colors(line_color, color);\\n }\\n\\n gl_FragColor = color;\\n}\\n\"},\n 513: function _(s,i,t,_,e){_();const h=s(514),a=s(515),l=s(516),n=s(21),o=s(76);class r extends h.BaseGLGlyph{constructor(s,i){super(s,i),this.glyph=i,this._antialias=1.5,this._miter_limit=10}_draw_impl(s,i,t){this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1),t.data_changed&&(t._set_data(),t.data_changed=!1);const _=this._get_visuals().line,e=l.cap_lookup[_.line_cap.value],h=l.join_lookup[_.line_join.value],a=t._points,n=a.length/2-3,o=this._get_show_buffer(s,t),r={scissor:this.regl_wrapper.scissor,viewport:this.regl_wrapper.viewport,canvas_size:[i.width,i.height],pixel_ratio:i.pixel_ratio,line_color:this._color,linewidth:this._linewidth,antialias:this._antialias,miter_limit:this._miter_limit,points:a,show:o,nsegments:n,line_join:h,line_cap:e};if(this._is_dashed()){const s=Object.assign(Object.assign({},r),{length_so_far:this._length_so_far,dash_tex:this._dash_tex,dash_tex_info:this._dash_tex_info,dash_scale:this._dash_scale,dash_offset:this._dash_offset});this.regl_wrapper.dashed_line()(s)}else this.regl_wrapper.solid_line()(r)}_is_dashed(){return null!=this._line_dash&&this._line_dash.length>0}_set_data(){const s=this._set_data_points(),i=s.length/2-2;null==this._show&&(this._show=new a.Uint8Buffer(this.regl_wrapper));const t=this._show.get_sized_array(i+1);let _=isFinite(s[2])&&isFinite(s[3]);for(let e=1;e<i;e++){const i=isFinite(s[2*e+2])&&isFinite(s[2*e+3]);t[e]=_&&i?1:0,_=i}if(this._is_closed?(t[0]=t[i-1],t[i]=t[1]):(t[0]=0,t[i]=0),this._show.update(),this._is_dashed()){const _=i-1;null==this._length_so_far&&(this._length_so_far=new a.Float32Buffer(this.regl_wrapper));const e=this._length_so_far.get_sized_array(_);let h=0;for(let i=0;i<_;i++)e[i]=h,1==t[i+1]&&(h+=Math.sqrt((s[2*i+4]-s[2*i+2])**2+(s[2*i+5]-s[2*i+3])**2));this._length_so_far.update()}}_set_visuals(){const s=this._get_visuals().line,i=(0,n.color2rgba)(s.line_color.value,s.line_alpha.value);this._color=i.map((s=>s/255)),this._linewidth=s.line_width.value,this._linewidth<1&&(this._color[3]*=this._linewidth,this._linewidth=1),this._line_dash=(0,o.resolve_line_dash)(s.line_dash.value),this._is_dashed()&&([this._dash_tex_info,this._dash_tex,this._dash_scale]=this.regl_wrapper.get_dash(this._line_dash),this._dash_offset=s.line_dash_offset.value)}}t.BaseLineGL=r,r.__name__=\"BaseLineGL\"},\n 514: function _(e,t,s,i,h){i();class a{constructor(e,t){this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.glyph=t,this.regl_wrapper=e}set_data_changed(){const{data_size:e}=this.glyph;e!=this.nvertices&&(this.nvertices=e,this.size_changed=!0),this.data_changed=!0}set_visuals_changed(){this.visuals_changed=!0}render(e,t,s){if(0==t.length)return!0;const{width:i,height:h}=this.glyph.renderer.plot_view.canvas_view.webgl.canvas,a={pixel_ratio:this.glyph.renderer.plot_view.canvas_view.pixel_ratio,width:i,height:h};return this.draw(t,s,a),!0}}s.BaseGLGlyph=a,a.__name__=\"BaseGLGlyph\"},\n 515: function _(r,t,a,e,s){e();const i=r(516),_=r(21);class n{constructor(r){this.regl_wrapper=r,this.is_scalar=!0}get_sized_array(r){return null!=this.array&&this.array.length==r||(this.array=this.new_array(r)),this.array}is_normalized(){return!1}get length(){return null!=this.array?this.array.length:0}set_from_array(r){const t=r.length,a=this.get_sized_array(t);for(let e=0;e<t;e++)a[e]=r[e];this.update()}set_from_prop(r,t=4){const a=r.is_Scalar()?t:r.length,e=this.get_sized_array(a);for(let t=0;t<a;t++)e[t]=r.get(t);this.update(r.is_Scalar())}set_from_scalar(r,t=4){this.get_sized_array(t).fill(r),this.update(!0)}to_attribute_config(r=0){return{buffer:this.buffer,divisor:this.is_scalar?0:1,normalized:this.is_normalized(),offset:r}}update(r=!1){null==this.buffer?this.buffer=this.regl_wrapper.buffer({usage:\"dynamic\",data:this.array}):this.buffer({data:this.array}),this.is_scalar=r}}n.__name__=\"WrappedBuffer\";class l extends n{new_array(r){return new Float32Array(r)}}a.Float32Buffer=l,l.__name__=\"Float32Buffer\";class o extends n{new_array(r){return new Uint8Array(r)}set_from_color(r,t,a=4){const e=r.is_Scalar()&&t.is_Scalar(),s=e?a:r.length,i=this.get_sized_array(4*s);for(let a=0;a<s;a++){const[e,s,n,l]=(0,_.color2rgba)(r.get(a),t.get(a));i[4*a]=e,i[4*a+1]=s,i[4*a+2]=n,i[4*a+3]=l}this.update(e)}set_from_hatch_pattern(r,t=4){const a=r.is_Scalar()?t:r.length,e=this.get_sized_array(a);for(let t=0;t<a;t++)e[t]=(0,i.hatch_pattern_to_index)(r.get(t));this.update(r.is_Scalar())}set_from_line_cap(r,t=4){const a=r.is_Scalar()?t:r.length,e=this.get_sized_array(a);for(let t=0;t<a;t++)e[t]=i.cap_lookup[r.get(t)];this.update(r.is_Scalar())}set_from_line_join(r,t=4){const a=r.is_Scalar()?t:r.length,e=this.get_sized_array(a);for(let t=0;t<a;t++)e[t]=i.join_lookup[r.get(t)];this.update(r.is_Scalar())}}a.Uint8Buffer=o,o.__name__=\"Uint8Buffer\";class h extends o{is_normalized(){return!0}}a.NormalizedUint8Buffer=h,h.__name__=\"NormalizedUint8Buffer\"},\n 516: function _(a,e,r,n,t){n();const i=a(82);r.cap_lookup={butt:0,round:1,square:2},r.join_lookup={miter:0,round:1,bevel:2};const o={blank:0,dot:1,ring:2,horizontal_line:3,vertical_line:4,cross:5,horizontal_dash:6,vertical_dash:7,spiral:8,right_diagonal_line:9,left_diagonal_line:10,diagonal_cross:11,right_diagonal_dash:12,left_diagonal_dash:13,horizontal_wave:14,vertical_wave:15,criss_cross:16};r.hatch_pattern_to_index=function(a){var e,r;return null!==(r=o[null!==(e=i.hatch_aliases[a])&&void 0!==e?e:a])&&void 0!==r?r:0},r.marker_type_to_size_hint=function(a){switch(a){case\"dash\":return 1;case\"dot\":return 2;case\"diamond\":case\"diamond_cross\":case\"diamond_dot\":return 3;case\"hex\":return 4;case\"square_pin\":return 5;case\"inverted_triangle\":case\"triangle\":case\"triangle_dot\":return 6;case\"triangle_pin\":return 7;case\"star\":case\"star_dot\":return 8;default:return 0}}},\n 517: function _(t,_,i,e,h){e();const s=t(514),r=t(515),a=t(516);class l extends s.BaseGLGlyph{constructor(t,_){super(t,_),this._border_radius=[0,0,0,0],this.glyph=_,this._antialias=1.5,this._show_all=!1}_draw_one_marker_type(t,_,i){const e={scissor:this.regl_wrapper.scissor,viewport:this.regl_wrapper.viewport,canvas_size:[_.width,_.height],pixel_ratio:_.pixel_ratio,center:i._centers,width:i._widths,height:i._heights,angle:i._angles,border_radius:i._border_radius,size_hint:(0,a.marker_type_to_size_hint)(t),nmarkers:i.nvertices,antialias:this._antialias,linewidth:this._linewidths,line_color:this._line_rgba,fill_color:this._fill_rgba,line_cap:this._line_caps,line_join:this._line_joins,show:this._show};if(this._have_hatch){const _=Object.assign(Object.assign({},e),{hatch_pattern:this._hatch_patterns,hatch_scale:this._hatch_scales,hatch_weight:this._hatch_weights,hatch_color:this._hatch_rgba});this.regl_wrapper.marker_hatch(t)(_)}else this.regl_wrapper.marker_no_hatch(t)(e)}_set_visuals(){const t=this._get_visuals(),_=t.fill,i=t.line;if(null==this._linewidths&&(this._linewidths=new r.Float32Buffer(this.regl_wrapper),this._line_caps=new r.Uint8Buffer(this.regl_wrapper),this._line_joins=new r.Uint8Buffer(this.regl_wrapper),this._line_rgba=new r.NormalizedUint8Buffer(this.regl_wrapper),this._fill_rgba=new r.NormalizedUint8Buffer(this.regl_wrapper)),this._linewidths.set_from_prop(i.line_width),this._line_caps.set_from_line_cap(i.line_cap),this._line_joins.set_from_line_join(i.line_join),this._line_rgba.set_from_color(i.line_color,i.line_alpha),this._fill_rgba.set_from_color(_.fill_color,_.fill_alpha),this._have_hatch=t.hatch.doit,this._have_hatch){const _=t.hatch;null==this._hatch_patterns&&(this._hatch_patterns=new r.Uint8Buffer(this.regl_wrapper),this._hatch_scales=new r.Float32Buffer(this.regl_wrapper),this._hatch_weights=new r.Float32Buffer(this.regl_wrapper),this._hatch_rgba=new r.NormalizedUint8Buffer(this.regl_wrapper)),this._hatch_patterns.set_from_hatch_pattern(_.hatch_pattern),this._hatch_scales.set_from_prop(_.hatch_scale),this._hatch_weights.set_from_prop(_.hatch_weight),this._hatch_rgba.set_from_color(_.hatch_color,_.hatch_alpha)}}}i.BaseMarkerGL=l,l.__name__=\"BaseMarkerGL\",l.missing_point=-1e4},\n 518: function _(s,t,i,e,r){e();const h=s(515),_=s(519);class l extends _.SingleMarkerGL{constructor(s,t){super(s,t),this.glyph=t}draw(s,t,i){this._draw_impl(s,i,t.glglyph,\"circle\")}_get_visuals(){return this.glyph.visuals}_set_data(){const s=this.nvertices;null==this._centers&&(this._centers=new h.Float32Buffer(this.regl_wrapper),this._widths=new h.Float32Buffer(this.regl_wrapper),this._heights=this._widths,this._angles=new h.Float32Buffer(this.regl_wrapper));const t=this._centers.get_sized_array(2*s),i=this._widths.get_sized_array(s);for(let e=0;e<s;e++)isFinite(this.glyph.sx[e])&&isFinite(this.glyph.sy[e])?(t[2*e]=this.glyph.sx[e],t[2*e+1]=this.glyph.sy[e]):(t[2*e]=_.SingleMarkerGL.missing_point,t[2*e+1]=_.SingleMarkerGL.missing_point),i[e]=2*this.glyph.sradius[e];this._centers.update(),this._widths.update(),this._angles.set_from_prop(this.glyph.angle)}}i.CircleGL=l,l.__name__=\"CircleGL\"},\n 519: function _(s,t,e,_,h){_();const a=s(517),i=s(515);class l extends a.BaseMarkerGL{constructor(s,t){super(s,t),this.glyph=t}_draw_impl(s,t,e,_){e.data_changed&&(e._set_data(),e.data_changed=!1),this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1);const h=e.nvertices;null==this._show&&(this._show=new i.Uint8Buffer(this.regl_wrapper));const a=this._show.length,l=this._show.get_sized_array(h);if(s.length<h){this._show_all=!1;for(let s=0;s<h;s++)l[s]=0;for(let t=0;t<s.length;t++)l[s[t]]=255}else if(!this._show_all||a!=h){this._show_all=!0;for(let s=0;s<h;s++)l[s]=255}this._show.update(),this._draw_one_marker_type(_,t,e)}}e.SingleMarkerGL=l,l.__name__=\"SingleMarkerGL\"},\n 520: function _(s,t,e,i,h){i();const r=s(515),_=s(519);class l extends _.SingleMarkerGL{constructor(s,t){super(s,t),this.glyph=t}draw(s,t,e){this._draw_impl(s,e,t.glglyph,\"hex\")}_get_visuals(){return this.glyph.visuals}_set_data(){const s=this.nvertices;null==this._centers&&(this._centers=new r.Float32Buffer(this.regl_wrapper),this._widths=new r.Float32Buffer(this.regl_wrapper),this._heights=new r.Float32Buffer(this.regl_wrapper),this._angles=new r.Float32Buffer(this.regl_wrapper));const t=this._centers.get_sized_array(2*s);for(let e=0;e<s;e++)isFinite(this.glyph.sx[e])&&isFinite(this.glyph.sy[e])?(t[2*e]=this.glyph.sx[e],t[2*e+1]=this.glyph.sy[e]):(t[2*e]=_.SingleMarkerGL.missing_point,t[2*e+1]=_.SingleMarkerGL.missing_point);this._centers.update(),\"pointytop\"==this.glyph.model.orientation?(this._angles.set_from_scalar(.5*Math.PI),this._widths.set_from_scalar(2*this.glyph.svy[0]),this._heights.set_from_scalar(4*this.glyph.svx[4]/Math.sqrt(3))):(this._angles.set_from_scalar(0),this._widths.set_from_scalar(2*this.glyph.svx[0]),this._heights.set_from_scalar(4*this.glyph.svy[4]/Math.sqrt(3)))}}e.HexTileGL=l,l.__name__=\"HexTileGL\"},\n 521: function _(t,s,e,i,h){i();const n=t(513),_=t(515);class l extends n.BaseLineGL{constructor(t,s){super(t,s),this.glyph=s}draw(t,s,e){this._draw_impl(t,e,s.glglyph)}_get_show_buffer(t,s){const e=s._show;let i=e;if(t.length!=e.length-1){const s=this.glyph.parent.nonselection_glyph==this.glyph,h=e.length,n=e.get_sized_array(h);null==this._show&&(this._show=new _.Uint8Buffer(this.regl_wrapper));const l=this._show.get_sized_array(h);l.fill(0);let o=t[0];s&&o>0&&(l[o]=n[o]);for(let e=1;e<t.length;e++){const i=t[e];i==o+1?l[i]=n[i]:s&&(l[o+1]=n[o+1],l[i]=n[i]),o=i}s&&o!=h-2&&(l[o+1]=n[o+1]),this._show.update(),i=this._show}return i}_get_visuals(){return this.glyph.visuals}_set_data_points(){const t=this.glyph.sx,s=this.glyph.sy,e=t.length;this._is_closed=e>2&&t[0]==t[e-1]&&s[0]==s[e-1]&&isFinite(t[0])&&isFinite(s[0]),null==this._points&&(this._points=new _.Float32Buffer(this.regl_wrapper));const i=this._points.get_sized_array(2*(e+2));for(let h=1;h<e+1;h++)i[2*h]=t[h-1],i[2*h+1]=s[h-1];return this._is_closed?(i[0]=i[2*e-2],i[1]=i[2*e-1],i[2*e+2]=i[4],i[2*e+3]=i[5]):(i[0]=0,i[1]=0,i[2*e+2]=0,i[2*e+3]=0),this._points.update(),i}}e.LineGL=l,l.__name__=\"LineGL\"},\n 522: function _(t,s,i,e,r){e();const h=t(515),_=t(519);class a extends _.SingleMarkerGL{constructor(t,s){super(t,s),this.glyph=s}draw(t,s,i){this._draw_impl(t,i,s.glglyph,\"rect\")}_get_visuals(){return this.glyph.visuals}_set_data(){const t=this.nvertices;null==this._centers&&(this._centers=new h.Float32Buffer(this.regl_wrapper),this._widths=new h.Float32Buffer(this.regl_wrapper),this._heights=new h.Float32Buffer(this.regl_wrapper),this._angles=new h.Float32Buffer(this.regl_wrapper),this._angles.set_from_scalar(0));const s=this._centers.get_sized_array(2*t),i=this._heights.get_sized_array(t),e=this._widths.get_sized_array(t);for(let r=0;r<t;r++){const t=this.glyph.sleft[r],h=this.glyph.sright[r],a=this.glyph.stop[r],n=this.glyph.sbottom[r];isFinite(t)&&isFinite(h)&&isFinite(a)&&isFinite(n)?(s[2*r]=(t+h)/2,s[2*r+1]=(a+n)/2,i[r]=Math.abs(a-n),e[r]=Math.abs(h-t)):(s[2*r]=_.SingleMarkerGL.missing_point,s[2*r+1]=_.SingleMarkerGL.missing_point,i[r]=_.SingleMarkerGL.missing_point,e[r]=_.SingleMarkerGL.missing_point)}this._centers.update(),this._heights.update(),this._widths.update();const{top_left:r,top_right:a,bottom_right:n,bottom_left:l}=this.glyph.border_radius;this._border_radius=[r,a,n,l]}}i.LRTBGL=a,a.__name__=\"LRTBGL\"},\n 523: function _(s,t,e,i,_){i();const h=s(517),r=s(515);class a extends h.BaseMarkerGL{constructor(s,t){super(s,t),this.glyph=t}draw(s,t,e){const i=t.glglyph;i.data_changed&&(i._set_data(),i.data_changed=!1),this.visuals_changed&&(this._set_visuals(),this.visuals_changed=!1);const _=i.nvertices;null==this._show&&(this._show=new r.Uint8Buffer(this.regl_wrapper));const h=i._unique_marker_types.length;for(const t of i._unique_marker_types){if(null==t)continue;let r=_;const a=this._show.length,n=this._show.get_sized_array(_);if(h>1||s.length<_){this._show_all=!1,n.fill(0),r=0;for(const e of s)1!=h&&i._marker_types.get(e)!=t||(n[e]=255,r++)}else this._show_all&&a==_||(this._show_all=!0,n.fill(255));this._show.update(),0!=r&&this._draw_one_marker_type(t,e,i)}}_get_visuals(){return this.glyph.visuals}_set_data(){const s=this.nvertices;null==this._centers&&(this._centers=new r.Float32Buffer(this.regl_wrapper),this._widths=new r.Float32Buffer(this.regl_wrapper),this._heights=this._widths,this._angles=new r.Float32Buffer(this.regl_wrapper));const t=this._centers.get_sized_array(2*s);for(let e=0;e<s;e++)isFinite(this.glyph.sx[e])&&isFinite(this.glyph.sy[e])?(t[2*e]=this.glyph.sx[e],t[2*e+1]=this.glyph.sy[e]):(t[2*e]=h.BaseMarkerGL.missing_point,t[2*e+1]=h.BaseMarkerGL.missing_point);this._centers.update(),this._widths.set_from_prop(this.glyph.size),this._angles.set_from_prop(this.glyph.angle),this._marker_types=this.glyph.marker,this._unique_marker_types=[...new Set(this._marker_types)]}}e.MultiMarkerGL=a,a.__name__=\"MultiMarkerGL\"},\n 524: function _(t,s,e,i,r){i();const h=t(515),_=t(519);class l extends _.SingleMarkerGL{constructor(t,s){super(t,s),this.glyph=s}draw(t,s,e){this._draw_impl(t,e,s.glglyph,\"rect\")}_get_visuals(){return this.glyph.visuals}_set_data(){const t=this.nvertices;null==this._centers&&(this._centers=new h.Float32Buffer(this.regl_wrapper),this._widths=new h.Float32Buffer(this.regl_wrapper),this._heights=new h.Float32Buffer(this.regl_wrapper),this._angles=new h.Float32Buffer(this.regl_wrapper));const s=this._centers.get_sized_array(2*t);for(let e=0;e<t;e++)isFinite(this.glyph.sx[e])&&isFinite(this.glyph.sy[e])?(s[2*e]=this.glyph.sx[e],s[2*e+1]=this.glyph.sy[e]):(s[2*e]=_.SingleMarkerGL.missing_point,s[2*e+1]=_.SingleMarkerGL.missing_point);this._centers.update(),this._widths.set_from_array(this.glyph.sw),this._heights.set_from_array(this.glyph.sh),this._angles.set_from_prop(this.glyph.angle);const{top_left:e,top_right:i,bottom_right:r,bottom_left:l}=this.glyph.border_radius;this._border_radius=[e,i,r,l]}}e.RectGL=l,l.__name__=\"RectGL\"},\n 525: function _(e,s,t,i,a){i();const n=e(513),r=e(515),_=e(12);class l extends n.BaseLineGL{constructor(e,s){super(e,s),this.glyph=s}draw(e,s,t){this._draw_impl(e,t,s.glglyph)}_get_show_buffer(e,s){return s._show}_get_visuals(){return this.glyph.visuals}_set_data_points(){const e=this.glyph.sx,s=this.glyph.sy,t=this.glyph.model.mode;let i=e.length;this._is_closed=i>2&&e[0]==e[i-1]&&s[0]==s[i-1]&&isFinite(e[0])&&isFinite(s[0]);const a=\"center\"==t?2*i:2*i-1;null==this._points&&(this._points=new r.Float32Buffer(this.regl_wrapper));const n=this._points.get_sized_array(2*(a+2));let l=isFinite(e[0]+s[0]),h=2;\"center\"==t&&(n[h++]=l?e[0]:NaN,n[h++]=s[0]);for(let a=0;a<i-1;a++){const r=isFinite(e[a+1]+s[a+1]);switch(t){case\"before\":n[h++]=l?e[a]:NaN,n[h++]=s[a],a<i-1&&(n[h++]=l&&r?e[a]:NaN,n[h++]=s[a+1]);break;case\"after\":n[h++]=l?e[a]:NaN,n[h++]=s[a],a<i-1&&(n[h++]=l&&r?e[a+1]:NaN,n[h++]=s[a]);break;case\"center\":if(l&&r){const t=(e[a]+e[a+1])/2;n[h++]=t,n[h++]=s[a],n[h++]=t,n[h++]=s[a+1]}else n[h++]=l?e[a]:NaN,n[h++]=s[a],n[h++]=r?e[a+1]:NaN,n[h++]=s[a+1];break;default:(0,_.unreachable)()}l=r}return n[h++]=l?e[i-1]:NaN,n[h++]=l?s[i-1]:NaN,(0,_.assert)(h==2*a+2),i=a,this._is_closed?(n[0]=n[2*i-2],n[1]=n[2*i-1],n[2*i+2]=n[4],n[2*i+3]=n[5]):(n[0]=0,n[1]=0,n[2*i+2]=0,n[2*i+3]=0),this._points.update(),n}}t.StepGL=l,l.__name__=\"StepGL\"},\n }, 503, {\"models/glyphs/webgl/main\":503,\"models/glyphs/webgl/index\":504,\"models/glyphs/webgl/regl_wrap\":505,\"models/glyphs/webgl/dash_cache\":507,\"models/glyphs/webgl/utils/math\":508,\"models/glyphs/webgl/regl_line.vert\":509,\"models/glyphs/webgl/regl_line.frag\":510,\"models/glyphs/webgl/marker.vert\":511,\"models/glyphs/webgl/marker.frag\":512,\"models/glyphs/webgl/base_line\":513,\"models/glyphs/webgl/base\":514,\"models/glyphs/webgl/buffer\":515,\"models/glyphs/webgl/webgl_utils\":516,\"models/glyphs/webgl/base_marker\":517,\"models/glyphs/webgl/circle\":518,\"models/glyphs/webgl/single_marker\":519,\"models/glyphs/webgl/hex_tile\":520,\"models/glyphs/webgl/line_gl\":521,\"models/glyphs/webgl/lrtb\":522,\"models/glyphs/webgl/multi_marker\":523,\"models/glyphs/webgl/rect\":524,\"models/glyphs/webgl/step\":525}, {});});\n\n /* END bokeh-gl.min.js */\n },\n function(Bokeh) {\n /* BEGIN bokeh-widgets.min.js */\n /*!\n * Copyright (c) 2012 - 2023, 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(root, factory) {\n factory(root[\"Bokeh\"], \"3.1.1\");\n })(this, function(Bokeh, version) {\n let define;\n return (function(modules, entry, aliases, externals) {\n const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n if (bokeh != null) {\n return bokeh.register_plugin(modules, entry, aliases);\n } else {\n throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n }\n })\n ({\n 542: function _(t,e,i,o,r){o();const s=t(1).__importStar(t(543));i.Widgets=s;(0,t(7).register_models)(s)},\n 543: function _(e,t,i,r,o){r(),o(\"AbstractButton\",e(544).AbstractButton),o(\"AutocompleteInput\",e(548).AutocompleteInput),o(\"Button\",e(554).Button),o(\"CheckboxButtonGroup\",e(555).CheckboxButtonGroup),o(\"CheckboxGroup\",e(558).CheckboxGroup),o(\"Checkbox\",e(561).Checkbox),o(\"ColorPicker\",e(563).ColorPicker),o(\"DatePicker\",e(564).DatePicker),o(\"DateRangePicker\",e(576).DateRangePicker),o(\"MultipleDatePicker\",e(577).MultipleDatePicker),o(\"DatetimePicker\",e(578).DatetimePicker),o(\"DatetimeRangePicker\",e(580).DatetimeRangePicker),o(\"MultipleDatetimePicker\",e(581).MultipleDatetimePicker),o(\"TimePicker\",e(582).TimePicker),o(\"DateRangeSlider\",e(583).DateRangeSlider),o(\"DateSlider\",e(588).DateSlider),o(\"DatetimeRangeSlider\",e(589).DatetimeRangeSlider),o(\"Div\",e(590).Div),o(\"Dropdown\",e(593).Dropdown),o(\"FileInput\",e(595).FileInput),o(\"HelpButton\",e(596).HelpButton),o(\"InputWidget\",e(551).InputWidget),o(\"Markup\",e(591).Markup),o(\"MultiSelect\",e(597).MultiSelect),o(\"Paragraph\",e(598).Paragraph),o(\"PasswordInput\",e(599).PasswordInput),o(\"MultiChoice\",e(601).MultiChoice),o(\"NumericInput\",e(604).NumericInput),o(\"PreText\",e(605).PreText),o(\"RadioButtonGroup\",e(606).RadioButtonGroup),o(\"RadioGroup\",e(607).RadioGroup),o(\"RangeSlider\",e(608).RangeSlider),o(\"Select\",e(609).Select),o(\"Slider\",e(610).Slider),o(\"Spinner\",e(611).Spinner),o(\"Switch\",e(612).Switch),o(\"TextInput\",e(549).TextInput),o(\"TextAreaInput\",e(614).TextAreaInput),o(\"Toggle\",e(615).Toggle),o(\"Widget\",e(640).Widget)},\n 544: function _(t,e,i,n,s){var l;n();const o=t(1),r=t(19),c=t(56),u=t(59),_=t(545),a=t(378),d=o.__importStar(t(547)),h=d;class b extends _.ControlView{*controls(){yield this.button_el}*children(){yield*super.children(),null!=this.icon_view&&(yield this.icon_view)}async lazy_initialize(){await super.lazy_initialize();const{icon:t}=this.model;null!=t&&(this.icon_view=await(0,u.build_view)(t,{parent:this}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.render()))}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),d.default]}_render_button(...t){return(0,c.button)({type:\"button\",disabled:this.model.disabled,class:[h.btn,h[`btn_${this.model.button_type}`]]},...t)}render(){if(super.render(),this.button_el=this._render_button(this.model.label),this.button_el.addEventListener(\"click\",(()=>this.click())),null!=this.icon_view){const t=\"\"!=this.model.label?(0,c.nbsp)():(0,c.text)(\"\");(0,c.prepend)(this.button_el,this.icon_view.el,t),this.icon_view.render()}this.group_el=(0,c.div)({class:h.btn_group},this.button_el),this.shadow_el.appendChild(this.group_el)}click(){}}i.AbstractButtonView=b,b.__name__=\"AbstractButtonView\";class p extends _.Control{constructor(t){super(t)}}i.AbstractButton=p,l=p,p.__name__=\"AbstractButton\",l.define((({String:t,Ref:e,Nullable:i})=>({label:[t,\"Button\"],icon:[i(e(a.Icon)),null],button_type:[r.ButtonType,\"default\"]})))},\n 545: function _(t,n,o,s,e){s();const c=t(640),i=t(56);class l extends c.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.disabled,(t=>{for(const n of this.controls())(0,i.toggle_attribute)(n,\"disabled\",t)}))}}o.ControlView=l,l.__name__=\"ControlView\";class _ extends c.Widget{constructor(t){super(t)}}o.Control=_,_.__name__=\"Control\"},\n 640: function _(t,e,i,s,r){s();const a=t(360),n=t(154);class d extends a.LayoutDOMView{update_style(){super.update_style(),this.style.append(\":host\",{margin:\"5px\"})}get child_models(){return[]}get provider(){return n.default_provider}async lazy_initialize(){await super.lazy_initialize(),\"not_started\"==this.provider.status&&await this.provider.fetch()}_after_layout(){super._after_layout(),\"loading\"==this.provider.status&&(this._has_finished=!1)}process_tex(t){if(null==this.provider.MathJax)return t;const e=this.provider.MathJax.find_tex(t),i=[];let s=0;for(const r of e)i.push(t.slice(s,r.start.n)),i.push(this.provider.MathJax.tex2svg(r.math,{display:r.display}).outerHTML),s=r.end.n;return s<t.length&&i.push(t.slice(s)),i.join(\"\")}contains_tex_string(t){return null!=this.provider.MathJax&&this.provider.MathJax.find_tex(t).length>0}}i.WidgetView=d,d.__name__=\"WidgetView\";class o extends a.LayoutDOM{constructor(t){super(t)}}i.Widget=o,o.__name__=\"Widget\"},\n 547: function _(b,o,r,e,t){e(),r.btn=\"bk-btn\",r.active=\"bk-active\",r.btn_default=\"bk-btn-default\",r.btn_primary=\"bk-btn-primary\",r.btn_success=\"bk-btn-success\",r.btn_warning=\"bk-btn-warning\",r.btn_danger=\"bk-btn-danger\",r.btn_light=\"bk-btn-light\",r.btn_group=\"bk-btn-group\",r.vertical=\"bk-vertical\",r.horizontal=\"bk-horizontal\",r.dropdown_toggle=\"bk-dropdown-toggle\",r.default=\".bk-btn,::file-selector-button{height:100%;display:inline-block;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;padding:var(--padding-vertical) var(--padding-horizontal);font-size:var(--font-size);border:1px solid transparent;border-radius:var(--border-radius);outline:0;outline-offset:-5px;user-select:none;-webkit-user-select:none;}.bk-btn:hover,::file-selector-button:hover,.bk-btn:focus,::file-selector-button:focus{text-decoration:none;}.bk-btn:active,::file-selector-button:active,.bk-active.bk-btn,.bk-active::file-selector-button{background-image:none;box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);}.bk-btn[disabled]{cursor:not-allowed;pointer-events:none;opacity:0.65;box-shadow:none;}::file-selector-button{color:#333;background-color:#fff;border-color:#ccc;}::file-selector-button:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active::file-selector-button{background-color:#ebebeb;border-color:#adadad;}::file-selector-button[disabled],::file-selector-button[disabled]:hover,::file-selector-button[disabled]:focus,::file-selector-button[disabled]:active,.bk-active::file-selector-button[disabled]{background-color:#e6e6e6;border-color:#ccc;}::file-selector-button:focus,::file-selector-button:active{outline:1px dotted #ccc;}.bk-btn-default{color:#333;background-color:#fff;border-color:#ccc;}.bk-btn-default:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active.bk-btn-default{background-color:#ebebeb;border-color:#adadad;}.bk-btn-default[disabled],.bk-btn-default[disabled]:hover,.bk-btn-default[disabled]:focus,.bk-btn-default[disabled]:active,.bk-active.bk-btn-default[disabled]{background-color:#e6e6e6;border-color:#ccc;}.bk-btn-default:focus,.bk-btn-default:active{outline:1px dotted #ccc;}.bk-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd;}.bk-btn-primary:hover{background-color:#3681c1;border-color:#2c699e;}.bk-active.bk-btn-primary{background-color:#3276b1;border-color:#285e8e;}.bk-btn-primary[disabled],.bk-btn-primary[disabled]:hover,.bk-btn-primary[disabled]:focus,.bk-btn-primary[disabled]:active,.bk-active.bk-btn-primary[disabled]{background-color:#506f89;border-color:#357ebd;}.bk-btn-primary:focus,.bk-btn-primary:active{outline:1px dotted #ccc;}.bk-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c;}.bk-btn-success:hover{background-color:#4eb24e;border-color:#409240;}.bk-active.bk-btn-success{background-color:#47a447;border-color:#398439;}.bk-btn-success[disabled],.bk-btn-success[disabled]:hover,.bk-btn-success[disabled]:focus,.bk-btn-success[disabled]:active,.bk-active.bk-btn-success[disabled]{background-color:#667b66;border-color:#4cae4c;}.bk-btn-success:focus,.bk-btn-success:active{outline:1px dotted #ccc;}.bk-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236;}.bk-btn-warning:hover{background-color:#eea43b;border-color:#e89014;}.bk-active.bk-btn-warning{background-color:#ed9c28;border-color:#d58512;}.bk-btn-warning[disabled],.bk-btn-warning[disabled]:hover,.bk-btn-warning[disabled]:focus,.bk-btn-warning[disabled]:active,.bk-active.bk-btn-warning[disabled]{background-color:#c89143;border-color:#eea236;}.bk-btn-warning:focus,.bk-btn-warning:active{outline:1px dotted #ccc;}.bk-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a;}.bk-btn-danger:hover{background-color:#d5433e;border-color:#bd2d29;}.bk-active.bk-btn-danger{background-color:#d2322d;border-color:#ac2925;}.bk-btn-danger[disabled],.bk-btn-danger[disabled]:hover,.bk-btn-danger[disabled]:focus,.bk-btn-danger[disabled]:active,.bk-active.bk-btn-danger[disabled]{background-color:#a55350;border-color:#d43f3a;}.bk-btn-danger:focus,.bk-btn-danger:active{outline:1px dotted #ccc;}.bk-btn-light{color:#333;background-color:#fff;border-color:#ccc;border-color:transparent;}.bk-btn-light:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active.bk-btn-light{background-color:#ebebeb;border-color:#adadad;}.bk-btn-light[disabled],.bk-btn-light[disabled]:hover,.bk-btn-light[disabled]:focus,.bk-btn-light[disabled]:active,.bk-active.bk-btn-light[disabled]{background-color:#e6e6e6;border-color:#ccc;}.bk-btn-light:focus,.bk-btn-light:active{outline:1px dotted #ccc;}.bk-btn-group{height:100%;display:flex;flex-wrap:nowrap;align-items:center;}.bk-btn-group:not(.bk-vertical),.bk-btn-group.bk-horizontal{flex-direction:row;}.bk-btn-group.bk-vertical{flex-direction:column;}.bk-btn-group > .bk-btn{flex-grow:1;}.bk-btn-group:not(.bk-vertical) > .bk-btn + .bk-btn{margin-left:-1px;}.bk-btn-group.bk-vertical > .bk-btn + .bk-btn{margin-top:-1px;}.bk-btn-group:not(.bk-vertical) > .bk-btn:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;}.bk-btn-group.bk-vertical > .bk-btn:first-child:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0;}.bk-btn-group:not(.bk-vertical) > .bk-btn:not(:first-child):last-child{border-bottom-left-radius:0;border-top-left-radius:0;}.bk-btn-group.bk-vertical > .bk-btn:not(:first-child):last-child{border-top-left-radius:0;border-top-right-radius:0;}.bk-btn-group > .bk-btn:not(:first-child):not(:last-child){border-radius:0;}.bk-btn-group.bk-vertical > .bk-btn{width:100%;}.bk-btn-group .bk-dropdown-toggle{flex:0 0 0;padding:var(--padding-vertical) calc(var(--padding-horizontal)/2);}\"},\n 548: function _(e,t,n,i,s){var h;i();const o=e(1),_=e(549),u=e(56),r=e(32),l=e(11),a=o.__importStar(e(553)),c=a;class d extends _.TextInputView{constructor(){super(...arguments),this._open=!1,this._last_value=\"\",this._hover_index=0}stylesheets(){return[...super.stylesheets(),a.default]}render(){super.render(),this.input_el.addEventListener(\"keydown\",(e=>this._keydown(e))),this.input_el.addEventListener(\"keyup\",(e=>this._keyup(e))),this.input_el.addEventListener(\"focusin\",(()=>this._toggle_menu())),this.menu=(0,u.div)({class:[c.menu,c.below]}),this.menu.addEventListener(\"click\",(e=>this._menu_click(e))),this.menu.addEventListener(\"mouseover\",(e=>this._menu_hover(e))),this.shadow_el.appendChild(this.menu),(0,u.undisplay)(this.menu)}change_input(){this._open&&this.menu.children.length>0?(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu()):this.model.restrict||super.change_input()}_update_completions(e){var t;(0,u.empty)(this.menu);const{max_completions:n}=this.model,i=null!=n?(0,r.take)(e,n):e;for(const e of i){const t=(0,u.div)(e);this.menu.append(t)}null===(t=this.menu.firstElementChild)||void 0===t||t.classList.add(c.active)}_toggle_menu(){const{value:e}=this.input_el;if(e.length<this.model.min_characters)return void this._hide_menu();const t=(()=>{const{case_sensitive:e}=this.model;return e?e=>e:e=>e.toLowerCase()})(),n=[];for(const i of this.model.completions)t(i).startsWith(t(e))&&n.push(i);this._update_completions(n),0==n.length?this._hide_menu():this._show_menu()}_show_menu(){if(!this._open){this._open=!0,this._hover_index=0,this._last_value=this.model.value,(0,u.display)(this.menu);const e=t=>{t.composedPath().includes(this.el)||(document.removeEventListener(\"click\",e),this._hide_menu())};document.addEventListener(\"click\",e)}}_hide_menu(){this._open&&(this._open=!1,(0,u.undisplay)(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element)for(let t=0;t<this.menu.children.length;t++)if(this.menu.children[t].textContent==e.target.textContent){this._bump_hover(t);break}}_bump_hover(e){const t=this.menu.children.length;this._open&&t>0&&(this.menu.children[this._hover_index].classList.remove(c.active),this._hover_index=(0,l.clamp)(e,0,t-1),this.menu.children[this._hover_index].classList.add(c.active))}_keydown(e){}_keyup(e){switch(super._keyup(e),e.key){case\"Enter\":this.change_input();break;case\"Escape\":this._hide_menu();break;case\"ArrowUp\":this._bump_hover(this._hover_index-1);break;case\"ArrowDown\":this._bump_hover(this._hover_index+1);break;default:this._toggle_menu()}}}n.AutocompleteInputView=d,d.__name__=\"AutocompleteInputView\";class m extends _.TextInput{constructor(e){super(e)}}n.AutocompleteInput=m,h=m,m.__name__=\"AutocompleteInput\",h.prototype.default_view=d,h.define((({Boolean:e,Int:t,String:n,Array:i,NonNegative:s,Positive:h,Nullable:o})=>({completions:[i(n),[]],min_characters:[s(t),2],max_completions:[o(h(t)),null],case_sensitive:[e,!0],restrict:[e,!0]})))},\n 549: function _(e,t,n,i,s){var u;i();const l=e(1),p=e(550),r=e(56),_=e(52),a=l.__importStar(e(552));class c extends p.TextLikeInputView{connect_signals(){super.connect_signals();const{prefix:e,suffix:t}=this.model.properties;this.on_change([e,t],(()=>this.render()))}_render_input(){this.input_el=(0,r.input)({type:\"text\",class:a.input});const{prefix:e,suffix:t}=this.model,n=null!=e?(0,r.div)({class:\"bk-input-prefix\"},e):null,i=null!=t?(0,r.div)({class:\"bk-input-suffix\"},t):null;return(0,r.div)({class:\"bk-input-container\"},n,this.input_el,i)}render(){super.render(),this.input_el.addEventListener(\"keyup\",(e=>this._keyup(e)))}_keyup(e){\"Enter\"!=e.key||e.shiftKey||e.ctrlKey||e.altKey||this.model.trigger_event(new _.ValueSubmit(this.input_el.value))}}n.TextInputView=c,c.__name__=\"TextInputView\";class o extends p.TextLikeInput{constructor(e){super(e)}}n.TextInput=o,u=o,o.__name__=\"TextInput\",u.prototype.default_view=c,u.define((({String:e,Nullable:t})=>({prefix:[t(e),null],suffix:[t(e),null]})))},\n 550: function _(e,t,n,i,l){var s;i();const h=e(551);class a extends h.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,(()=>this.input_el.value=this.model.value)),this.connect(this.model.properties.value_input.change,(()=>this.input_el.value=this.model.value_input)),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled)),this.connect(this.model.properties.placeholder.change,(()=>this.input_el.placeholder=this.model.placeholder)),this.connect(this.model.properties.max_length.change,(()=>{const{max_length:e}=this.model;null!=e?this.input_el.maxLength=e:this.input_el.removeAttribute(\"maxLength\")}))}render(){super.render();const e=this._render_input();this.group_el.appendChild(e);const{input_el:t}=this;t.value=this.model.value,t.disabled=this.model.disabled,t.placeholder=this.model.placeholder,null!=this.model.max_length&&(t.maxLength=this.model.max_length),t.addEventListener(\"change\",(()=>this.change_input())),t.addEventListener(\"input\",(()=>this.change_input_value()))}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_value(){this.model.value_input=this.input_el.value,super.change_input()}}n.TextLikeInputView=a,a.__name__=\"TextLikeInputView\";class u extends h.InputWidget{constructor(e){super(e)}}n.TextLikeInput=u,s=u,u.__name__=\"TextLikeInput\",s.define((({Int:e,String:t,Nullable:n})=>({value:[t,\"\"],value_input:[t,\"\"],placeholder:[t,\"\"],max_length:[n(e),null]})))},\n 551: function _(e,t,i,s,l){var n;s();const o=e(1),d=e(545),r=e(448),c=e(12),a=e(8),u=e(59),p=e(56),h=o.__importStar(e(552)),_=h,m=o.__importDefault(e(269));class v extends d.ControlView{constructor(){super(...arguments),this.description=null,this.desc_el=null}*controls(){yield this.input_el}*children(){yield*super.children(),null!=this.description&&(yield this.description)}async lazy_initialize(){await super.lazy_initialize();const{description:e}=this.model;e instanceof r.Tooltip&&(this.description=await(0,u.build_view)(e,{parent:this}))}remove(){var e;null===(e=this.description)||void 0===e||e.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.title.change,(()=>{this.label_el.textContent=this.model.title}))}stylesheets(){return[...super.stylesheets(),h.default,m.default]}render(){super.render();const{title:e,description:t}=this.model;if(null==t)this.desc_el=null;else{const e=(0,p.div)({class:_.icon});if(this.desc_el=(0,p.div)({class:_.description},e),(0,a.isString)(t))this.desc_el.title=t;else{const{description:t}=this;(0,c.assert)(null!=t);const{desc_el:i}=this;t.model.target=i;let s=!1;const l=i=>{t.model.setv({visible:i,closable:s}),e.classList.toggle(_.opaque,i&&s)};this.on_change(t.model.properties.visible,(()=>{const{visible:e}=t.model;e||(s=!1),l(e)})),i.addEventListener(\"mouseenter\",(()=>{l(!0)})),i.addEventListener(\"mouseleave\",(()=>{s||l(!1)})),document.addEventListener(\"mousedown\",(e=>{const n=e.composedPath();n.includes(t.el)||(n.includes(i)?(s=!s,l(s)):(s=!1,l(!1)))})),window.addEventListener(\"blur\",(()=>{s=!1,l(!1)}))}}this.label_el=(0,p.label)({style:{display:0==e.length?\"none\":\"\"}},e,this.desc_el),this.group_el=(0,p.div)({class:_.input_group},this.label_el),this.shadow_el.appendChild(this.group_el)}change_input(){}}i.InputWidgetView=v,v.__name__=\"InputWidgetView\";class g extends d.Control{constructor(e){super(e)}}i.InputWidget=g,n=g,g.__name__=\"InputWidget\",n.define((({String:e,Nullable:t,Or:i,Ref:s})=>({title:[e,\"\"],description:[t(i(e,s(r.Tooltip))),null]})))},\n 552: function _(i,n,t,e,p){e(),t.input=\"bk-input\",t.input_container=\"bk-input-container\",t.input_prefix=\"bk-input-prefix\",t.input_suffix=\"bk-input-suffix\",t.input_group=\"bk-input-group\",t.inline=\"bk-inline\",t.spin_wrapper=\"bk-spin-wrapper\",t.spin_btn=\"bk-spin-btn\",t.spin_btn_up=\"bk-spin-btn-up\",t.spin_btn_down=\"bk-spin-btn-down\",t.description=\"bk-description\",t.icon=\"bk-icon\",t.opaque=\"bk-opaque\",t.default=':host{--input-min-height:calc(var(--line-height-computed) + 2*var(--padding-vertical) + 2px);}.bk-input{display:inline-block;width:100%;flex-grow:1;min-height:var(--input-min-height);padding:0 var(--padding-horizontal);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);}.bk-input:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);}.bk-input::placeholder,.bk-input:-ms-input-placeholder,.bk-input::-moz-placeholder,.bk-input::-webkit-input-placeholder{color:#999;opacity:1;}.bk-input[disabled]{cursor:not-allowed;background-color:#eee;opacity:1;}.bk-input-container{width:100%;height:100%;display:flex;flex-direction:row;flex-wrap:nowrap;}.bk-input-container .bk-input-prefix,.bk-input-container .bk-input-suffix{display:flex;align-items:center;flex:0 1 0;border:1px solid #ccc;border-radius:var(--border-radius);padding:0 var(--padding-horizontal);background-color:#e6e6e6;}.bk-input-container .bk-input-prefix{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;}.bk-input-container .bk-input-suffix{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;}.bk-input-container .bk-input{flex:1 0 0;}.bk-input-container .bk-input:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;}.bk-input-container .bk-input:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;}input[type=file].bk-input{padding-left:0;}input[type=file]::file-selector-button{box-sizing:inherit;font-family:inherit;font-size:inherit;line-height:inherit;}select:not([multiple]).bk-input,select:not([size]).bk-input{height:auto;appearance:none;-webkit-appearance:none;background-image:url(\\'data:image/svg+xml;utf8,<svg version=\"1.1\" viewBox=\"0 0 25 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0,0 25,0 12.5,20 Z\" fill=\"black\" /></svg>\\');background-position:right 0.5em center;background-size:8px 6px;background-repeat:no-repeat;padding-right:calc(var(--padding-horizontal) + 8px);}option{padding:0;}select[multiple].bk-input,select[size].bk-input,textarea.bk-input{height:auto;}.bk-input-group{width:100%;height:100%;display:inline-flex;flex-wrap:nowrap;align-items:start;flex-direction:column;white-space:nowrap;}.bk-input-group.bk-inline{flex-direction:row;}.bk-input-group.bk-inline > *:not(:first-child){margin-left:5px;}.bk-input-group > .bk-spin-wrapper{display:inherit;width:inherit;height:inherit;position:relative;overflow:hidden;padding:0;vertical-align:middle;}.bk-input-group > .bk-spin-wrapper input{padding-right:20px;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn{position:absolute;display:block;height:50%;min-height:0;min-width:0;width:30px;padding:0;margin:0;right:0;border:none;background:none;cursor:pointer;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn:before{content:\"\";display:inline-block;transform:translateY(-50%);border-left:5px solid transparent;border-right:5px solid transparent;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up{top:0;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up:before{border-bottom:5px solid black;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up:disabled:before{border-bottom-color:grey;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down{bottom:0;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down:before{border-top:5px solid black;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down:disabled:before{border-top-color:grey;}.bk-description{position:relative;display:inline-block;margin-left:0.25em;vertical-align:middle;margin-top:-2px;cursor:pointer;}.bk-description > .bk-icon{opacity:0.5;width:18px;height:18px;background-color:gray;mask-image:var(--bokeh-icon-help);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-help);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}label:hover > .bk-description > .bk-icon,.bk-icon.bk-opaque{opacity:1;}'},\n 553: function _(e,o,i,b,r){b(),i.menu=\"bk-menu\",i.above=\"bk-above\",i.below=\"bk-below\",i.divider=\"bk-divider\",i.active=\"bk-active\",i.default=\":host{position:relative;}.bk-menu{position:absolute;left:0;width:100%;z-index:100;cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);}.bk-menu.bk-above{bottom:100%;}.bk-menu.bk-below{top:100%;}.bk-menu > .bk-divider{height:1px;margin:calc(var(--line-height-computed)/2 - 1px) 0;overflow:hidden;background-color:#e5e5e5;}.bk-menu > :not(.bk-divider){padding:var(--padding-vertical) var(--padding-horizontal);}.bk-menu > :not(.bk-divider):hover,.bk-menu > :not(.bk-divider).bk-active{background-color:#e6e6e6;}\"},\n 554: function _(t,e,n,o,c){var i;o();const s=t(544),u=t(52);class _ extends s.AbstractButtonView{click(){this.model.trigger_event(new u.ButtonClick),super.click()}}n.ButtonView=_,_.__name__=\"ButtonView\";class r extends s.AbstractButton{constructor(t){super(t)}on_click(t){this.on_event(u.ButtonClick,t)}}n.Button=r,i=r,r.__name__=\"Button\",i.prototype.default_view=_,i.override({label:\"Button\"})},\n 555: function _(t,e,o,a,c){var s;a();const i=t(1),n=t(556),r=i.__importStar(t(547));class u extends n.ToggleButtonGroupView{get active(){return new Set(this.model.active)}change_active(t){const{active:e}=this;e.has(t)?e.delete(t):e.add(t),this.model.active=[...e].sort()}_update_active(){const{active:t}=this;this._buttons.forEach(((e,o)=>{e.classList.toggle(r.active,t.has(o))}))}}o.CheckboxButtonGroupView=u,u.__name__=\"CheckboxButtonGroupView\";class _ extends n.ToggleButtonGroup{constructor(t){super(t)}}o.CheckboxButtonGroup=_,s=_,_.__name__=\"CheckboxButtonGroup\",s.prototype.default_view=u,s.define((({Int:t,Array:e})=>({active:[e(t),[]]})))},\n 556: function _(t,e,n,s,o){var i;s();const r=t(1),l=t(557),a=t(52),_=t(19),d=t(56),u=r.__importStar(t(547)),c=u;class h extends l.OrientedControlView{*controls(){yield*this._buttons}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,(()=>this.render())),this.on_change(t.labels,(()=>this.render())),this.on_change(t.active,(()=>this._update_active()))}stylesheets(){return[...super.stylesheets(),u.default]}render(){super.render(),this._buttons=this.model.labels.map(((t,e)=>{const n=(0,d.button)({class:[c.btn,c[`btn_${this.model.button_type}`]],disabled:this.model.disabled},t);return n.addEventListener(\"click\",(()=>{this.change_active(e),this.model.trigger_event(new a.ButtonClick)})),n})),this._update_active();const t=\"horizontal\"==this.model.orientation?c.horizontal:c.vertical,e=(0,d.div)({class:[c.btn_group,t]},this._buttons);this.shadow_el.appendChild(e)}}n.ToggleButtonGroupView=h,h.__name__=\"ToggleButtonGroupView\";class p extends l.OrientedControl{constructor(t){super(t)}}n.ToggleButtonGroup=p,i=p,p.__name__=\"ToggleButtonGroup\",i.define((({String:t,Array:e})=>({labels:[e(t),[]],button_type:[_.ButtonType,\"default\"]})))},\n 557: function _(n,e,o,t,r){var i;t();const l=n(545),s=n(19);class _ extends l.ControlView{}o.OrientedControlView=_,_.__name__=\"OrientedControlView\";class a extends l.Control{constructor(n){super(n)}}o.OrientedControl=a,i=a,a.__name__=\"OrientedControl\",i.define((()=>({orientation:[s.Orientation,\"horizontal\"]})))},\n 558: function _(e,t,s,n,i){var c;n();const o=e(1),a=e(559),h=e(56),l=e(10),r=e(32),d=o.__importStar(e(552));class p extends a.ToggleInputGroupView{get active(){return new Set(this.model.active)}connect_signals(){super.connect_signals();const{active:e}=this.model.properties;this.on_change(e,(()=>{const{active:e}=this;for(const[t,s]of(0,r.enumerate)(this._inputs))t.checked=e.has(s)}))}render(){super.render();const e=(0,h.div)({class:[d.input_group,this.model.inline?d.inline:null]});this.shadow_el.appendChild(e);const{active:t,labels:s}=this.model;this._inputs=[];for(let n=0;n<s.length;n++){const i=(0,h.input)({type:\"checkbox\",value:`${n}`});i.addEventListener(\"change\",(()=>this.change_active(n))),this._inputs.push(i),this.model.disabled&&(i.disabled=!0),(0,l.includes)(t,n)&&(i.checked=!0);const c=(0,h.label)(i,(0,h.span)(s[n]));e.appendChild(c)}}change_active(e){const{active:t}=this;t.has(e)?t.delete(e):t.add(e),this.model.active=[...t].sort()}}s.CheckboxGroupView=p,p.__name__=\"CheckboxGroupView\";class u extends a.ToggleInputGroup{constructor(e){super(e)}}s.CheckboxGroup=u,c=u,u.__name__=\"CheckboxGroup\",c.prototype.default_view=p,c.define((({Int:e,Array:t})=>({active:[t(e),[]]})))},\n 559: function _(e,n,t,s,o){var l;s();const r=e(1),i=e(545),u=r.__importDefault(e(552)),_=r.__importDefault(e(560));class a extends i.ControlView{*controls(){yield*this._inputs}connect_signals(){super.connect_signals();const{labels:e,inline:n}=this.model.properties;this.on_change([e,n],(()=>this.render()))}stylesheets(){return[...super.stylesheets(),u.default,_.default]}}t.ToggleInputGroupView=a,a.__name__=\"ToggleInputGroupView\";class p extends i.Control{constructor(e){super(e)}}t.ToggleInputGroup=p,l=p,p.__name__=\"ToggleInputGroup\",l.define((({Boolean:e,String:n,Array:t})=>({labels:[t(n),[]],inline:[e,!1]})))},\n 560: function _(t,i,p,e,n){e(),p.default='input[type=\"checkbox\"],input[type=\"radio\"]{margin:0;}input[type=\"checkbox\"] + *,input[type=\"radio\"] + *{position:relative;top:-2px;margin-left:3px;}'},\n 561: function _(e,t,s,l,i){var a;l();const _=e(1),c=e(562),h=e(56),o=_.__importDefault(e(560));class n extends c.ToggleInputView{stylesheets(){return[...super.stylesheets(),o.default]}connect_signals(){super.connect_signals();const{label:e}=this.model.properties;this.on_change(e,(()=>this._update_label()))}render(){super.render(),this.checkbox_el=(0,h.input)({type:\"checkbox\"}),this.label_el=(0,h.span)(this.model.label),this.checkbox_el.addEventListener(\"change\",(()=>this._toggle_active())),this._update_active(),this._update_disabled(),this.shadow_el.append(this.checkbox_el,this.label_el)}_update_active(){this.checkbox_el.checked=this.model.active}_update_disabled(){this.checkbox_el.toggleAttribute(\"disabled\",this.model.disabled)}_update_label(){this.label_el.textContent=this.model.label}}s.CheckboxView=n,n.__name__=\"CheckboxView\";class d extends c.ToggleInput{constructor(e){super(e)}}s.Checkbox=d,a=d,d.__name__=\"Checkbox\",a.prototype.default_view=n,a.define((({String:e})=>({label:[e,\"\"]})))},\n 562: function _(e,t,i,s,n){var a;s();const o=e(640);class c extends o.WidgetView{connect_signals(){super.connect_signals();const{active:e,disabled:t}=this.model.properties;this.on_change(e,(()=>this._update_active())),this.on_change(t,(()=>this._update_disabled()))}_toggle_active(){this.model.disabled||(this.model.active=!this.model.active)}}i.ToggleInputView=c,c.__name__=\"ToggleInputView\";class _ extends o.Widget{constructor(e){super(e)}}i.ToggleInput=_,a=_,_.__name__=\"ToggleInput\",a.define((({Boolean:e})=>({active:[e,!1]})))},\n 563: function _(e,t,i,n,o){var s;n();const l=e(1),r=e(551),c=e(56),a=e(21),d=l.__importStar(e(552));class h extends r.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,(()=>{var e;return this.input_el.name=null!==(e=this.model.name)&&void 0!==e?e:\"\"})),this.connect(this.model.properties.color.change,(()=>this.input_el.value=(0,a.color2hexrgb)(this.model.color))),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled))}render(){super.render(),this.input_el=(0,c.input)({type:\"color\",class:d.input,name:this.model.name,value:this.model.color,disabled:this.model.disabled}),this.input_el.addEventListener(\"change\",(()=>this.change_input())),this.group_el.appendChild(this.input_el)}change_input(){this.model.color=this.input_el.value,super.change_input()}}i.ColorPickerView=h,h.__name__=\"ColorPickerView\";class p extends r.InputWidget{constructor(e){super(e)}}i.ColorPicker=p,s=p,p.__name__=\"ColorPicker\",s.prototype.default_view=h,s.define((({Color:e})=>({color:[e,\"#000000\"]})))},\n 564: function _(e,t,a,s,i){var n;s();const l=e(565),c=e(12);class r extends l.BaseDatePickerView{get flatpickr_options(){return Object.assign(Object.assign({},super.flatpickr_options),{mode:\"single\"})}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:{const[t]=e,a=this._format_date(t);this.model.value=a;break}default:(0,c.assert)(!1,\"invalid length\")}}}a.DatePickerView=r,r.__name__=\"DatePickerView\";class o extends l.BaseDatePicker{constructor(e){super(e)}}a.DatePicker=o,n=o,o.__name__=\"DatePicker\",n.prototype.default_view=r,n.define((({Nullable:e})=>({value:[e(l.DateLike),null]})))},\n 565: function _(e,t,a,s,i){var n;s();const l=e(566),c=e(8),r=e(20);a.DateLike=(0,r.Or)((0,r.Ref)(Date),r.String,r.Number),a.DateLikeList=(0,r.Array)((0,r.Or)(a.DateLike,(0,r.Tuple)(a.DateLike,a.DateLike),(0,r.Struct)({from:a.DateLike,to:a.DateLike})));class d extends l.PickerBaseView{_format_date(e){const{picker:t}=this;return t.formatDate(e,t.config.dateFormat)}connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:a,disabled_dates:s,enabled_dates:i,date_format:n}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set(\"minDate\",this.model.min_date))),this.connect(a.change,(()=>this.picker.set(\"maxDate\",this.model.max_date))),this.connect(s.change,(()=>{const{disabled_dates:e}=this.model;this.picker.set(\"disable\",null!=e?this._convert_date_list(e):void 0)})),this.connect(i.change,(()=>{const{enabled_dates:e}=this.model;this.picker.set(\"enable\",null!=e?this._convert_date_list(e):void 0)})),this.connect(n.change,(()=>this.picker.set(\"altFormat\",this.model.date_format)))}get flatpickr_options(){const{value:e,min_date:t,max_date:a,disabled_dates:s,enabled_dates:i,date_format:n}=this.model,l=super.flatpickr_options;return l.altInput=!0,l.altFormat=n,l.dateFormat=\"Y-m-d\",null!=e&&(l.defaultDate=e),null!=t&&(l.minDate=t),null!=a&&(l.maxDate=a),null!=s&&(l.disable=this._convert_date_list(s)),null!=i&&(l.enable=this._convert_date_list(i)),l}_convert_date_list(e){const t=[];for(const a of e)if((0,c.isArray)(a)){const[e,s]=a;t.push({from:e,to:s})}else t.push(a);return t}}a.BaseDatePickerView=d,d.__name__=\"BaseDatePickerView\";class o extends l.PickerBase{constructor(e){super(e)}}a.BaseDatePicker=o,n=o,o.__name__=\"BaseDatePicker\",n.define((({Nullable:e})=>({min_date:[e(a.DateLike),null],max_date:[e(a.DateLike),null],disabled_dates:[e(a.DateLikeList),null],enabled_dates:[e(a.DateLikeList),null],date_format:[r.String,\"Y-m-d\"]})))},\n 566: function _(e,t,i,n,o){var s;n();const r=e(1),a=r.__importDefault(e(567)),l=e(551),c=e(56),d=e(19),h=e(56),p=e(12),f=r.__importDefault(e(575)),g=r.__importStar(e(552));class u extends l.InputWidgetView{get picker(){return(0,p.assert)(null!=this._picker),this._picker}remove(){var e;null===(e=this._picker)||void 0===e||e.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),f.default]}connect_signals(){super.connect_signals();const{inline:e}=this.model.properties;this.connect(e.change,(()=>this.picker.set(\"inline\",this.model.inline)))}get flatpickr_options(){return{appendTo:this.group_el,inline:this.model.inline,position:this._position.bind(this),onChange:e=>{this._on_change(e),this.change_input()}}}render(){var e;super.render(),null===(e=this._picker)||void 0===e||e.destroy(),this.input_el=(0,c.input)({type:\"text\",class:g.input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el);const t=this.flatpickr_options;this._picker=(0,a.default)(this.input_el,t)}_position(e,t){const i=null!=t?t:e._positionElement,n=[...e.calendarContainer.children].reduce(((e,t)=>e+(0,h.bounding_box)(t).height),0),o=e.calendarContainer.offsetWidth,s=this.model.position.split(\" \"),r=s[0],a=s.length>1?s[1]:null,l=i.offsetTop,c=i.offsetTop+i.offsetHeight,d=i.offsetLeft,p=i.offsetLeft+i.offsetWidth,f=i.offsetWidth,g=window.innerHeight-c,u=\"above\"===r||\"below\"!==r&&g<n&&l>n,_=null!=e.config.appendTo?l+(u?-n-2:i.offsetHeight+2):window.scrollY+l+(u?-n-2:i.offsetHeight+2);if(e.calendarContainer.classList.toggle(\"arrowTop\",!u),e.calendarContainer.classList.toggle(\"arrowBottom\",u),e.config.inline)return;let w=window.scrollX+d,C=!1,m=!1;\"center\"===a?(w-=(o-f)/2,C=!0):\"right\"===a&&(w-=o-f,m=!0),e.calendarContainer.classList.toggle(\"arrowLeft\",!C&&!m),e.calendarContainer.classList.toggle(\"arrowCenter\",C),e.calendarContainer.classList.toggle(\"arrowRight\",m);const y=window.document.body.offsetWidth-(window.scrollX+p),k=w+o>window.document.body.offsetWidth,b=y+o>window.document.body.offsetWidth;if(e.calendarContainer.classList.toggle(\"rightMost\",k),!e.config.static)if(e.calendarContainer.style.top=`${_}px`,k)if(b){const t=this.shadow_el.styleSheets[0],i=window.document.body.offsetWidth,n=Math.max(0,i/2-o/2),s=\".flatpickr-calendar.centerMost:before\",r=\".flatpickr-calendar.centerMost:after\",a=t.cssRules.length,l=`{left:${d}px;right:auto;}`;e.calendarContainer.classList.toggle(\"rightMost\",!1),e.calendarContainer.classList.toggle(\"centerMost\",!0),t.insertRule(`${s},${r}${l}`,a),e.calendarContainer.style.left=`${n}px`,e.calendarContainer.style.right=\"auto\"}else e.calendarContainer.style.left=\"auto\",e.calendarContainer.style.right=`${y}px`;else e.calendarContainer.style.left=`${w}px`,e.calendarContainer.style.right=\"auto\"}}i.PickerBaseView=u,u.__name__=\"PickerBaseView\";class _ extends l.InputWidget{constructor(e){super(e)}}i.PickerBase=_,s=_,_.__name__=\"PickerBase\",s.define((({Boolean:e})=>({position:[d.CalendarPosition,\"auto\"],inline:[e,!1]})))},\n 567: function _(e,t,n,a,i){a();const o=e(1);var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},l=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a};const c=e(568),s=o.__importDefault(e(569)),d=e(570),u=e(571),f=e(572),m=e(573);e(574);var g=300;function p(e,t){var n={config:r(r({},c.defaults),v.defaultConfig),l10n:s.default};function a(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function i(e){return e.bind(n)}function o(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility=\"hidden\",n.calendarContainer.style.display=\"block\"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+\"px\",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+\"px\",n.calendarContainer.style.removeProperty(\"visibility\"),n.calendarContainer.style.removeProperty(\"display\")}}))}function p(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||(0,f.compareDates)(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),a=(0,f.getDefaultHours)(n.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&\"blur\"!==e.type&&function(e){e.preventDefault();var t=\"keydown\"===e.type,a=(0,u.getEventTarget)(e),i=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(i.getAttribute(\"min\")),r=parseFloat(i.getAttribute(\"max\")),l=parseFloat(i.getAttribute(\"step\")),c=parseInt(i.value,10),s=e.delta||(t?38===e.which?1:-1:0),f=c+l*s;if(void 0!==i.value&&2===i.value.length){var m=i===n.hourElement,g=i===n.minuteElement;f<o?(f=r+f+(0,d.int)(!m)+((0,d.int)(m)&&(0,d.int)(!n.amPM)),g&&x(void 0,-1,n.hourElement)):f>r&&(f=i===n.hourElement?f-r-(0,d.int)(!n.amPM):o,g&&x(void 0,1,n.hourElement)),n.amPM&&m&&(1===l?f+c===23:Math.abs(f-c)>l)&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]),i.value=(0,d.pad)(f)}}(e);var i=n._input.value;h(),se(),n._input.value!==i&&n._debouncedChange()}function h(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,a=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=a,t=n.amPM.textContent,a=e%12+12*(0,d.int)(t===n.l10n.amPM[1]));var r=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.minDate,!0),l=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var c=(0,f.calculateSecondsSinceMidnight)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),s=(0,f.calculateSecondsSinceMidnight)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),u=(0,f.calculateSecondsSinceMidnight)(a,i,o);if(u>s&&u<c){var m=(0,f.parseSeconds)(c);a=m[0],i=m[1],o=m[2]}}else{if(l){var g=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(a=Math.min(a,g.getHours()))===g.getHours()&&(i=Math.min(i,g.getMinutes())),i===g.getMinutes()&&(o=Math.min(o,g.getSeconds()))}if(r){var p=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(a=Math.max(a,p.getHours()))===p.getHours()&&i<p.getMinutes()&&(i=p.getMinutes()),i===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}C(a,i,o)}}function D(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&C(t.getHours(),t.getMinutes(),t.getSeconds())}function C(e,t,a){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,a||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=(0,d.pad)(n.config.time_24hr?e:(12+e)%12+12*(0,d.int)(e%12==0)),n.minuteElement.value=(0,d.pad)(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=(0,d.pad)(a)))}function b(e){var t=(0,u.getEventTarget)(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||\"Enter\"===e.key&&!/[^\\d]/.test(n.toString()))&&R(n)}function M(e,t,a,i){return t instanceof Array?t.forEach((function(t){return M(e,t,a,i)})):e instanceof Array?e.forEach((function(e){return M(e,t,a,i)})):(e.addEventListener(t,a,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,a,i)}}))}function y(){ie(\"onChange\")}function w(e,t){var a=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,o=n.currentMonth;try{void 0!==a&&(n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth())}catch(e){e.message=\"Invalid date supplied: \"+a,n.config.errorHandler(e)}t&&n.currentYear!==i&&(ie(\"onYearChange\"),N()),!t||n.currentYear===i&&n.currentMonth===o||ie(\"onMonthChange\"),n.redraw()}function E(e){var t=(0,u.getEventTarget)(e);~t.className.indexOf(\"arrow\")&&x(e,t.classList.contains(\"arrowUp\")?1:-1)}function x(e,t,n){var a=e&&(0,u.getEventTarget)(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=oe(\"increment\");o.delta=t,i&&i.dispatchEvent(o)}function k(e,t,a,i){var o=W(t,!0),r=(0,u.createElement)(\"span\",e,t.getDate().toString());return r.dateObj=t,r.$i=i,r.setAttribute(\"aria-label\",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf(\"hidden\")&&0===(0,f.compareDates)(t,n.now)&&(n.todayDateElem=r,r.classList.add(\"today\"),r.setAttribute(\"aria-current\",\"date\")),o?(r.tabIndex=-1,re(t)&&(r.classList.add(\"selected\"),n.selectedDateElem=r,\"range\"===n.config.mode&&((0,u.toggleClass)(r,\"startRange\",n.selectedDates[0]&&0===(0,f.compareDates)(t,n.selectedDates[0],!0)),(0,u.toggleClass)(r,\"endRange\",n.selectedDates[1]&&0===(0,f.compareDates)(t,n.selectedDates[1],!0)),\"nextMonthDay\"===e&&r.classList.add(\"inRange\")))):r.classList.add(\"flatpickr-disabled\"),\"range\"===n.config.mode&&function(e){return!(\"range\"!==n.config.mode||n.selectedDates.length<2)&&((0,f.compareDates)(e,n.selectedDates[0])>=0&&(0,f.compareDates)(e,n.selectedDates[1])<=0)}(t)&&!re(t)&&r.classList.add(\"inRange\"),n.weekNumbers&&1===n.config.showMonths&&\"prevMonthDay\"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML(\"beforeend\",\"<span class='flatpickr-day'>\"+n.config.getWeek(t)+\"</span>\"),ie(\"onDayCreate\",r),r}function T(e){e.focus(),\"range\"===n.config.mode&&J(e)}function _(e){for(var t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1,i=t;i!=a;i+=e)for(var o=n.daysContainer.children[i],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf(\"hidden\")&&W(s.dateObj))return s}}function I(e,t){var i=a(),o=B(i||document.body),r=void 0!==e?e:o?i:void 0!==n.selectedDateElem&&B(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&B(n.todayDateElem)?n.todayDateElem:_(t>0?1:-1);void 0===r?n._input.focus():o?function(e,t){for(var a=-1===e.className.indexOf(\"Month\")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,o=t>0?1:-1,r=a-n.currentMonth;r!=i;r+=o)for(var l=n.daysContainer.children[r],c=a-n.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d<s&&d!=(t>0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf(\"hidden\")&&W(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return T(u)}n.changeMonth(o),I(_(o),0)}(r,t):T(r)}function S(e,t){for(var a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=n.config.showMonths>1,c=l?\"prevMonthDay hidden\":\"prevMonthDay\",s=l?\"nextMonthDay hidden\":\"nextMonthDay\",d=i+1-a,f=0;d<=i;d++,f++)r.appendChild(k(\"flatpickr-day \"+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(k(\"flatpickr-day\",new Date(e,t,d),0,f));for(var m=o+1;m<=42-a&&(1===n.config.showMonths||f%7!=0);m++,f++)r.appendChild(k(\"flatpickr-day \"+s,new Date(e,t+1,m%o),0,f));var g=(0,u.createElement)(\"div\",\"dayContainer\");return g.appendChild(r),g}function O(){if(void 0!==n.daysContainer){(0,u.clearNode)(n.daysContainer),n.weekNumbers&&(0,u.clearNode)(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),e.appendChild(S(a.getFullYear(),a.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,\"range\"===n.config.mode&&1===n.selectedDates.length&&J()}}function N(){if(!(n.config.showMonths>1||\"dropdown\"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML=\"\";for(var t=0;t<12;t++)if(e(t)){var a=(0,u.createElement)(\"option\",\"flatpickr-monthDropdown-month\");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=(0,m.monthToStr)(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}}function A(){var e,t=(0,u.createElement)(\"div\",\"flatpickr-month\"),a=window.document.createDocumentFragment();n.config.showMonths>1||\"static\"===n.config.monthSelectorType?e=(0,u.createElement)(\"span\",\"cur-month\"):(n.monthsDropdownContainer=(0,u.createElement)(\"select\",\"flatpickr-monthDropdown-months\"),n.monthsDropdownContainer.setAttribute(\"aria-label\",n.l10n.monthAriaLabel),M(n.monthsDropdownContainer,\"change\",(function(e){var t=(0,u.getEventTarget)(e),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),ie(\"onMonthChange\")})),N(),e=n.monthsDropdownContainer);var i=(0,u.createNumberInput)(\"cur-year\",{tabindex:\"-1\"}),o=i.getElementsByTagName(\"input\")[0];o.setAttribute(\"aria-label\",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute(\"min\",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute(\"max\",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var r=(0,u.createElement)(\"div\",\"flatpickr-current-month\");return r.appendChild(e),r.appendChild(i),a.appendChild(r),t.appendChild(a),{container:t,yearElement:o,monthElement:e}}function P(){(0,u.clearNode)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=A();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?(0,u.clearNode)(n.weekdayContainer):n.weekdayContainer=(0,u.createElement)(\"div\",\"flatpickr-weekdays\");for(var e=n.config.showMonths;e--;){var t=(0,u.createElement)(\"div\",\"flatpickr-weekdaycontainer\");n.weekdayContainer.appendChild(t)}return F(),n.weekdayContainer}function F(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=l(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=l(t.splice(e,t.length),t.splice(0,e)));for(var a=n.config.showMonths;a--;)n.weekdayContainer.children[a].innerHTML=\"\\n <span class='flatpickr-weekday'>\\n \"+t.join(\"</span><span class='flatpickr-weekday'>\")+\"\\n </span>\\n \"}}function j(e,t){void 0===t&&(t=!0);var a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ie(\"onYearChange\"),N()),O(),ie(\"onMonthChange\"),le())}function L(e){return n.calendarContainer.contains(e)}function H(e){if(n.isOpen&&!n.config.inline){var t=(0,u.getEventTarget)(e),a=L(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!a&&!L(e.relatedTarget),o=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&\"\"!==n.input.value&&void 0!==n.input.value&&p(),n.close(),n.config&&\"range\"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function R(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,a=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),a&&(n.redraw(),ie(\"onYearChange\"),N())}}function W(e,t){var a;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&(0,f.compareDates)(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&(0,f.compareDates)(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,r=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable,l=0,c=void 0;l<r.length;l++){if(\"function\"==typeof(c=r[l])&&c(i))return o;if(c instanceof Date&&void 0!==i&&c.getTime()===i.getTime())return o;if(\"string\"==typeof c){var s=n.parseDate(c,void 0,!0);return s&&s.getTime()===i.getTime()?o:!o}if(\"object\"==typeof c&&void 0!==i&&c.from&&c.to&&i.getTime()>=c.from.getTime()&&i.getTime()<=c.to.getTime())return o}return!o}function B(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf(\"hidden\")&&-1===e.className.indexOf(\"flatpickr-disabled\")&&n.daysContainer.contains(e))}function K(e){var t=e.target===n._input,a=n._input.value.trimEnd()!==ce();!t||!a||e.relatedTarget&&L(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function q(t){var i=(0,u.getEventTarget)(t),o=n.config.wrap?e.contains(i):i===n._input,r=n.config.allowInput,l=n.isOpen&&(!r||!o),c=n.config.inline&&o&&!r;if(13===t.keyCode&&o){if(r)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(L(i)||l||c){var s=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:s?(t.preventDefault(),p(),G()):Z(t);break;case 27:t.preventDefault(),G();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var d=a();if(void 0!==n.daysContainer&&(!1===r||d&&B(d))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),j(f),I(_(1),0)):I(void 0,f)}}break;case 38:case 40:t.preventDefault();var m=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),R(n.currentYear-m),I(_(1),0)):s||I(void 0,7*m):i===n.currentYearElement?R(n.currentYear-m):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),p(t),n._debouncedChange());break;case 9:if(s){var g=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),v=g.indexOf(i);if(-1!==v){var D=g[v+(t.shiftKey?-1:1)];t.preventDefault(),(D||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],h(),se();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],h(),se()}(o||L(i))&&ie(\"onKeyDown\",t)}function J(e,t){if(void 0===t&&(t=\"flatpickr-day\"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains(\"flatpickr-disabled\"))){for(var a=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(a,n.selectedDates[0].getTime()),r=Math.max(a,n.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;d<r;d+=f.duration.DAY)W(new Date(d),!0)||(l=l||d>o&&d<r,d<i&&(!c||d>c)?c=d:d>i&&(!s||d<s)&&(s=d));Array.from(n.rContainer.querySelectorAll(\"*:nth-child(-n+\"+n.config.showMonths+\") > .\"+t)).forEach((function(t){var o=t.dateObj.getTime(),r=c>0&&o<c||s>0&&o>s;if(r)return t.classList.add(\"notAllowed\"),void[\"inRange\",\"startRange\",\"endRange\"].forEach((function(e){t.classList.remove(e)}));l&&!r||([\"startRange\",\"inRange\",\"endRange\",\"notAllowed\"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(a<=n.selectedDates[0].getTime()?\"startRange\":\"endRange\"),i<a&&o===i?t.classList.add(\"startRange\"):i>a&&o===i&&t.classList.add(\"endRange\"),o>=c&&(0===s||o<=s)&&(0,f.isBetween)(o,i,a)&&t.classList.add(\"inRange\")))}))}}function U(){!n.isOpen||n.config.static||n.config.inline||X()}function $(e){return function(t){var a=n.config[\"_\"+e+\"Date\"]=n.parseDate(t,n.config.dateFormat),i=n.config[\"_\"+(\"min\"===e?\"max\":\"min\")+\"Date\"];void 0!==a&&(n[\"min\"===e?\"minDateHasTime\":\"maxDateHasTime\"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return W(e)})),n.selectedDates.length||\"min\"!==e||D(a),se()),n.daysContainer&&(z(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==a&&i.getFullYear()===a.getFullYear())}}function Q(){return n.config.wrap?e.querySelector(\"[data-input]\"):e}function V(){\"object\"!=typeof n.config.locale&&void 0===v.l10ns[n.config.locale]&&n.config.errorHandler(new Error(\"flatpickr: invalid locale \"+n.config.locale)),n.l10n=r(r({},v.l10ns.default),\"object\"==typeof n.config.locale?n.config.locale:\"default\"!==n.config.locale?v.l10ns[n.config.locale]:void 0),m.tokenRegex.D=\"(\"+n.l10n.weekdays.shorthand.join(\"|\")+\")\",m.tokenRegex.l=\"(\"+n.l10n.weekdays.longhand.join(\"|\")+\")\",m.tokenRegex.M=\"(\"+n.l10n.months.shorthand.join(\"|\")+\")\",m.tokenRegex.F=\"(\"+n.l10n.months.longhand.join(\"|\")+\")\",m.tokenRegex.K=\"(\"+n.l10n.amPM[0]+\"|\"+n.l10n.amPM[1]+\"|\"+n.l10n.amPM[0].toLowerCase()+\"|\"+n.l10n.amPM[1].toLowerCase()+\")\",void 0===r(r({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===v.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=(0,f.createDateFormatter)(n),n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n})}function X(e){if(\"function\"!=typeof n.config.position){if(void 0!==n.calendarContainer){ie(\"onPreCalendarPosition\");var t=e||n._positionElement,a=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(\" \"),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,d=\"above\"===r||\"below\"!==r&&s<a&&c.top>a,f=window.pageYOffset+c.top+(d?-a-2:t.offsetHeight+2);if((0,u.toggleClass)(n.calendarContainer,\"arrowTop\",!d),(0,u.toggleClass)(n.calendarContainer,\"arrowBottom\",d),!n.config.inline){var m=window.pageXOffset+c.left,g=!1,p=!1;\"center\"===l?(m-=(i-c.width)/2,g=!0):\"right\"===l&&(m-=i-c.width,p=!0),(0,u.toggleClass)(n.calendarContainer,\"arrowLeft\",!g&&!p),(0,u.toggleClass)(n.calendarContainer,\"arrowCenter\",g),(0,u.toggleClass)(n.calendarContainer,\"arrowRight\",p);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+i>window.document.body.offsetWidth,D=h+i>window.document.body.offsetWidth;if((0,u.toggleClass)(n.calendarContainer,\"rightMost\",v),!n.config.static)if(n.calendarContainer.style.top=f+\"px\",v)if(D){var C=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(a=document.createElement(\"style\"),document.head.appendChild(a),a.sheet);var a}();if(void 0===C)return;var b=window.document.body.offsetWidth,M=Math.max(0,b/2-i/2),y=C.cssRules.length,w=\"{left:\"+c.left+\"px;right:auto;}\";(0,u.toggleClass)(n.calendarContainer,\"rightMost\",!1),(0,u.toggleClass)(n.calendarContainer,\"centerMost\",!0),C.insertRule(\".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after\"+w,y),n.calendarContainer.style.left=M+\"px\",n.calendarContainer.style.right=\"auto\"}else n.calendarContainer.style.left=\"auto\",n.calendarContainer.style.right=h+\"px\";else n.calendarContainer.style.left=m+\"px\",n.calendarContainer.style.right=\"auto\"}}}else n.config.position(n,e)}function z(){n.config.noCalendar||n.isMobile||(N(),le(),O())}function G(){n._input.focus(),-1!==window.navigator.userAgent.indexOf(\"MSIE\")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function Z(e){e.preventDefault(),e.stopPropagation();var t=(0,u.findParent)((0,u.getEventTarget)(e),(function(e){return e.classList&&e.classList.contains(\"flatpickr-day\")&&!e.classList.contains(\"flatpickr-disabled\")&&!e.classList.contains(\"notAllowed\")}));if(void 0!==t){var a=t,i=n.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&\"range\"!==n.config.mode;if(n.selectedDateElem=a,\"single\"===n.config.mode)n.selectedDates=[i];else if(\"multiple\"===n.config.mode){var r=re(i);r?n.selectedDates.splice(parseInt(r),1):n.selectedDates.push(i)}else\"range\"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==(0,f.compareDates)(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(h(),o){var l=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),l&&(ie(\"onYearChange\"),N()),ie(\"onMonthChange\")}if(le(),O(),se(),o||\"range\"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():T(a),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c=\"single\"===n.config.mode&&!n.config.enableTime,s=\"range\"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||s)&&G()}y()}}n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=M,n._setHoursFromDate=D,n._positionCalendar=X,n.changeMonth=j,n.changeYear=R,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value=\"\",void 0!==n.altInput&&(n.altInput.value=\"\");void 0!==n.mobileInput&&(n.mobileInput.value=\"\");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var a=(0,f.getDefaultHours)(n.config);C(a.hours,a.minutes,a.seconds)}n.redraw(),e&&ie(\"onChange\")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove(\"open\"),void 0!==n._input&&n._input.classList.remove(\"active\"));ie(\"onClose\")},n.onMouseOver=J,n._createElement=u.createElement,n.createDay=k,n.destroy=function(){void 0!==n.config&&ie(\"onDestroy\");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type=\"text\",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove(\"flatpickr-input\"),n.input.removeAttribute(\"readonly\"));[\"_showTimeInput\",\"latestSelectedDateObj\",\"_hideNextMonthArrow\",\"_hidePrevMonthArrow\",\"__hideNextMonthArrow\",\"__hidePrevMonthArrow\",\"isMobile\",\"isOpen\",\"selectedDateElem\",\"minDateHasTime\",\"maxDateHasTime\",\"days\",\"daysContainer\",\"_input\",\"_positionElement\",\"innerContainer\",\"rContainer\",\"monthNav\",\"todayDateElem\",\"calendarContainer\",\"weekdayContainer\",\"prevMonthNav\",\"nextMonthNav\",\"monthsDropdownContainer\",\"currentMonthElement\",\"currentYearElement\",\"navigationCurrentMonth\",\"selectedDateElem\",\"config\"].forEach((function(e){try{delete n[e]}catch(e){}}))},n.isEnabled=W,n.jumpToDate=w,n.updateValue=se,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var a=(0,u.getEventTarget)(e);a&&a.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ie(\"onOpen\")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add(\"open\"),n._input.classList.add(\"active\"),ie(\"onOpen\"),X(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=z,n.set=function(e,t){if(null!==e&&\"object\"==typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ee[a]&&ee[a].forEach((function(e){return e()}));else n.config[e]=t,void 0!==ee[e]?ee[e].forEach((function(e){return e()})):c.HOOKS.indexOf(e)>-1&&(n.config[e]=(0,d.arrayify)(t));n.redraw(),se(!0)},n.setDate=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);te(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),w(void 0,t),D(),0===n.selectedDates.length&&n.clear(!1);se(t),t&&ie(\"onChange\")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ee={locale:[V,F],showMonths:[P,o,Y],minDate:[w],maxDate:[w],positionElement:[ae],clickOpens:[function(){!0===n.config.clickOpens?(M(n._input,\"focus\",n.open),M(n._input,\"click\",n.open)):(n._input.removeEventListener(\"focus\",n.open),n._input.removeEventListener(\"click\",n.open))}]};function te(e,t){var a=[];if(e instanceof Array)a=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||\"number\"==typeof e)a=[n.parseDate(e,t)];else if(\"string\"==typeof e)switch(n.config.mode){case\"single\":case\"time\":a=[n.parseDate(e,t)];break;case\"multiple\":a=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case\"range\":a=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error(\"Invalid date supplied: \"+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?a:a.filter((function(e){return e instanceof Date&&W(e,!1)})),\"range\"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ne(e){return e.slice().map((function(e){return\"string\"==typeof e||\"number\"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&\"object\"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ae(){n._positionElement=n.config.positionElement||n._input}function ie(e,t){if(void 0!==n.config){var a=n.config[e];if(void 0!==a&&a.length>0)for(var i=0;a[i]&&i<a.length;i++)a[i](n.selectedDates,n.input.value,n,t);\"onChange\"===e&&(n.input.dispatchEvent(oe(\"change\")),n.input.dispatchEvent(oe(\"input\")))}}function oe(e){var t=document.createEvent(\"Event\");return t.initEvent(e,!0,!0),t}function re(e){for(var t=0;t<n.selectedDates.length;t++){var a=n.selectedDates[t];if(a instanceof Date&&0===(0,f.compareDates)(a,e))return\"\"+t}return!1}function le(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((function(e,t){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),n.config.showMonths>1||\"static\"===n.config.monthSelectorType?n.monthElements[t].textContent=(0,m.monthToStr)(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+\" \":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ce(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,a){return\"range\"!==n.config.mode||n.config.enableTime||a.indexOf(e)===t})).join(\"range\"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function se(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):\"\"),n.input.value=ce(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=ce(n.config.altFormat)),!1!==e&&ie(\"onValueUpdate\")}function de(e){var t=(0,u.getEventTarget)(e),a=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);a||i?j(a?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains(\"arrowUp\")?n.changeYear(n.currentYear+1):t.classList.contains(\"arrowDown\")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=[\"wrap\",\"weekNumbers\",\"allowInput\",\"allowInvalidPreload\",\"clickOpens\",\"time_24hr\",\"enableTime\",\"noCalendar\",\"altInput\",\"shorthandCurrentMonth\",\"inline\",\"static\",\"enableSeconds\",\"disableMobile\"],o=r(r({},JSON.parse(JSON.stringify(e.dataset||{}))),t),l={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,\"enable\",{get:function(){return n.config._enable},set:function(e){n.config._enable=ne(e)}}),Object.defineProperty(n.config,\"disable\",{get:function(){return n.config._disable},set:function(e){n.config._disable=ne(e)}});var s=\"time\"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var u=v.defaultConfig.dateFormat||c.defaults.dateFormat;l.dateFormat=o.noCalendar||s?\"H:i\"+(o.enableSeconds?\":S\":\"\"):u+\" H:i\"+(o.enableSeconds?\":S\":\"\")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var f=v.defaultConfig.altFormat||c.defaults.altFormat;l.altFormat=o.noCalendar||s?\"h:i\"+(o.enableSeconds?\":S K\":\" K\"):f+\" h:i\"+(o.enableSeconds?\":S\":\"\")+\" K\"}Object.defineProperty(n.config,\"minDate\",{get:function(){return n.config._minDate},set:$(\"min\")}),Object.defineProperty(n.config,\"maxDate\",{get:function(){return n.config._maxDate},set:$(\"max\")});var m=function(e){return function(t){n.config[\"min\"===e?\"_minTime\":\"_maxTime\"]=n.parseDate(t,\"H:i:S\")}};Object.defineProperty(n.config,\"minTime\",{get:function(){return n.config._minTime},set:m(\"min\")}),Object.defineProperty(n.config,\"maxTime\",{get:function(){return n.config._maxTime},set:m(\"max\")}),\"time\"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,o);for(var g=0;g<a.length;g++)n.config[a[g]]=!0===n.config[a[g]]||\"true\"===n.config[a[g]];c.HOOKS.filter((function(e){return void 0!==n.config[e]})).forEach((function(e){n.config[e]=(0,d.arrayify)(n.config[e]||[]).map(i)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&\"single\"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(g=0;g<n.config.plugins.length;g++){var p=n.config.plugins[g](n)||{};for(var h in p)c.HOOKS.indexOf(h)>-1?n.config[h]=(0,d.arrayify)(p[h]).map(i).concat(n.config[h]):void 0===o[h]&&(n.config[h]=p[h])}o.altInputClass||(n.config.altInputClass=Q().className+\" \"+n.config.altInputClass);ie(\"onParseConfig\")}(),V(),function(){if(n.input=Q(),!n.input)return void n.config.errorHandler(new Error(\"Invalid input element specified\"));n.input._type=n.input.type,n.input.type=\"text\",n.input.classList.add(\"flatpickr-input\"),n._input=n.input,n.config.altInput&&(n.altInput=(0,u.createElement)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type=\"text\",n.input.setAttribute(\"type\",\"hidden\"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute(\"readonly\",\"readonly\");ae()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||(\"INPUT\"!==n.input.nodeName&&\"TEXTAREA\"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&te(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,\"H:i\"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,\"H:i\"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=(0,u.createElement)(\"div\",\"flatpickr-calendar\"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=(0,u.createElement)(\"div\",\"flatpickr-months\"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=(0,u.createElement)(\"span\",\"flatpickr-prev-month\"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=(0,u.createElement)(\"span\",\"flatpickr-next-month\"),n.nextMonthNav.innerHTML=n.config.nextArrow,P(),Object.defineProperty(n,\"_hidePrevMonthArrow\",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&((0,u.toggleClass)(n.prevMonthNav,\"flatpickr-disabled\",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,\"_hideNextMonthArrow\",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&((0,u.toggleClass)(n.nextMonthNav,\"flatpickr-disabled\",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],le(),n.monthNav)),n.innerContainer=(0,u.createElement)(\"div\",\"flatpickr-innerContainer\"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add(\"hasWeeks\");var e=(0,u.createElement)(\"div\",\"flatpickr-weekwrapper\");e.appendChild((0,u.createElement)(\"span\",\"flatpickr-weekday\",n.l10n.weekAbbreviation));var t=(0,u.createElement)(\"div\",\"flatpickr-weeks\");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(a),n.weekNumbers=i,n.weekWrapper=a}n.rContainer=(0,u.createElement)(\"div\",\"flatpickr-rContainer\"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=(0,u.createElement)(\"div\",\"flatpickr-days\"),n.daysContainer.tabIndex=-1),O(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add(\"hasTime\"),n.config.noCalendar&&n.calendarContainer.classList.add(\"noCalendar\");var e=(0,f.getDefaultHours)(n.config);n.timeContainer=(0,u.createElement)(\"div\",\"flatpickr-time\"),n.timeContainer.tabIndex=-1;var t=(0,u.createElement)(\"span\",\"flatpickr-time-separator\",\":\"),a=(0,u.createNumberInput)(\"flatpickr-hour\",{\"aria-label\":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName(\"input\")[0];var i=(0,u.createNumberInput)(\"flatpickr-minute\",{\"aria-label\":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName(\"input\")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute(\"step\",n.config.hourIncrement.toString()),n.minuteElement.setAttribute(\"step\",n.config.minuteIncrement.toString()),n.hourElement.setAttribute(\"min\",n.config.time_24hr?\"0\":\"1\"),n.hourElement.setAttribute(\"max\",n.config.time_24hr?\"23\":\"12\"),n.hourElement.setAttribute(\"maxlength\",\"2\"),n.minuteElement.setAttribute(\"min\",\"0\"),n.minuteElement.setAttribute(\"max\",\"59\"),n.minuteElement.setAttribute(\"maxlength\",\"2\"),n.timeContainer.appendChild(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add(\"time24hr\");if(n.config.enableSeconds){n.timeContainer.classList.add(\"hasSeconds\");var o=(0,u.createNumberInput)(\"flatpickr-second\");n.secondElement=o.getElementsByTagName(\"input\")[0],n.secondElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute(\"step\",n.minuteElement.getAttribute(\"step\")),n.secondElement.setAttribute(\"min\",\"0\"),n.secondElement.setAttribute(\"max\",\"59\"),n.secondElement.setAttribute(\"maxlength\",\"2\"),n.timeContainer.appendChild((0,u.createElement)(\"span\",\"flatpickr-time-separator\",\":\")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=(0,u.createElement)(\"span\",\"flatpickr-am-pm\",n.l10n.amPM[(0,d.int)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());(0,u.toggleClass)(n.calendarContainer,\"rangeMode\",\"range\"===n.config.mode),(0,u.toggleClass)(n.calendarContainer,\"animate\",!0===n.config.animate),(0,u.toggleClass)(n.calendarContainer,\"multiMonth\",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?\"inline\":\"static\"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var r=(0,u.createElement)(\"div\",\"flatpickr-wrapper\");n.element.parentNode&&n.element.parentNode.insertBefore(r,n.element),r.appendChild(n.element),n.altInput&&r.appendChild(n.altInput),r.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&[\"open\",\"close\",\"toggle\",\"clear\"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll(\"[data-\"+e+\"]\"),(function(t){return M(t,\"click\",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?\"time\":\"datetime-local\":\"date\";n.mobileInput=(0,u.createElement)(\"input\",n.input.className+\" flatpickr-mobile\"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr=\"datetime-local\"===e?\"Y-m-d\\\\TH:i:S\":\"date\"===e?\"Y-m-d\":\"H:i:S\",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,\"Y-m-d\"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,\"Y-m-d\"));n.input.getAttribute(\"step\")&&(n.mobileInput.step=String(n.input.getAttribute(\"step\")));n.input.type=\"hidden\",void 0!==n.altInput&&(n.altInput.type=\"hidden\");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}M(n.mobileInput,\"change\",(function(e){n.setDate((0,u.getEventTarget)(e).value,!1,n.mobileFormatStr),ie(\"onChange\"),ie(\"onClose\")}))}();var e=(0,d.debounce)(U,50);n._debouncedChange=(0,d.debounce)(y,g),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(n.daysContainer,\"mouseover\",(function(e){\"range\"===n.config.mode&&J((0,u.getEventTarget)(e))}));M(n._input,\"keydown\",q),void 0!==n.calendarContainer&&M(n.calendarContainer,\"keydown\",q);n.config.inline||n.config.static||M(window,\"resize\",e);void 0!==window.ontouchstart?M(window.document,\"touchstart\",H):M(window.document,\"mousedown\",H);M(window.document,\"focus\",H,{capture:!0}),!0===n.config.clickOpens&&(M(n._input,\"focus\",n.open),M(n._input,\"click\",n.open));void 0!==n.daysContainer&&(M(n.monthNav,\"click\",de),M(n.monthNav,[\"keyup\",\"increment\"],b),M(n.daysContainer,\"click\",Z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return(0,u.getEventTarget)(e).select()};M(n.timeContainer,[\"increment\"],p),M(n.timeContainer,\"blur\",p,{capture:!0}),M(n.timeContainer,\"click\",E),M([n.hourElement,n.minuteElement],[\"focus\",\"click\"],t),void 0!==n.secondElement&&M(n.secondElement,\"focus\",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&M(n.amPM,\"click\",(function(e){p(e)}))}n.config.allowInput&&M(n._input,\"blur\",K)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&D(n.config.noCalendar?n.latestSelectedDateObj:void 0),se(!1)),o();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&X(),ie(\"onReady\")}(),n}function h(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute(\"data-fp-omit\"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=p(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}\"undefined\"!=typeof HTMLElement&&\"undefined\"!=typeof HTMLCollection&&\"undefined\"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return h(this,e)},HTMLElement.prototype.flatpickr=function(e){return h([this],e)});var v=function(e,t){return\"string\"==typeof e?h(window.document.querySelectorAll(e),t):e instanceof Node?h([e],t):h(e,t)};v.defaultConfig={},v.l10ns={en:r({},s.default),default:r({},s.default)},v.localize=function(e){v.l10ns.default=r(r({},v.l10ns.default),e)},v.setDefaults=function(e){v.defaultConfig=r(r({},v.defaultConfig),e)},v.parseDate=(0,f.createDateParser)({}),v.formatDate=(0,f.createDateFormatter)({}),v.compareDates=f.compareDates,\"undefined\"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return h(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(\"string\"==typeof e?parseInt(e,10):e))},\"undefined\"!=typeof window&&(window.flatpickr=v),n.default=v},\n 568: function _(e,n,o,t,a){t(),o.HOOKS=[\"onChange\",\"onClose\",\"onDayCreate\",\"onDestroy\",\"onKeyDown\",\"onMonthChange\",\"onOpen\",\"onParseConfig\",\"onReady\",\"onValueUpdate\",\"onYearChange\",\"onPreCalendarPosition\"],o.defaults={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:\"F j, Y\",altInput:!1,altInputClass:\"form-control input\",animate:\"object\"==typeof window&&-1===window.navigator.userAgent.indexOf(\"MSIE\"),ariaDateFormat:\"F j, Y\",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:\", \",dateFormat:\"Y-m-d\",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return\"undefined\"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var o=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:\"default\",minuteIncrement:5,mode:\"single\",monthSelectorType:\"dropdown\",nextArrow:\"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>\",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:\"auto\",positionElement:void 0,prevArrow:\"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>\",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}},\n 569: function _(e,r,a,n,t){n(),a.english={weekdays:{shorthand:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],longhand:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},months:{shorthand:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],longhand:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return\"th\";switch(r%10){case 1:return\"st\";case 2:return\"nd\";case 3:return\"rd\";default:return\"th\"}},rangeSeparator:\" to \",weekAbbreviation:\"Wk\",scrollTitle:\"Scroll to increment\",toggleTitle:\"Click to toggle\",amPM:[\"AM\",\"PM\"],yearAriaLabel:\"Year\",monthAriaLabel:\"Month\",hourAriaLabel:\"Hour\",minuteAriaLabel:\"Minute\",time_24hr:!1},a.default=a.english},\n 570: function _(n,t,r,i,u){i();r.pad=function(n,t){return void 0===t&&(t=2),(\"000\"+n).slice(-1*t)};r.int=function(n){return!0===n?1:0},r.debounce=function(n,t){var r;return function(){var i=this,u=arguments;clearTimeout(r),r=setTimeout((function(){return n.apply(i,u)}),t)}};r.arrayify=function(n){return n instanceof Array?n:[n]}},\n 571: function _(t,e,n,r,a){function i(t,e,n){var r=window.document.createElement(t);return e=e||\"\",n=n||\"\",r.className=e,void 0!==n&&(r.textContent=n),r}r(),n.toggleClass=function(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)},n.createElement=i,n.clearNode=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.findParent=function t(e,n){return n(e)?e:e.parentNode?t(e.parentNode,n):void 0},n.createNumberInput=function(t,e){var n=i(\"div\",\"numInputWrapper\"),r=i(\"input\",\"numInput \"+t),a=i(\"span\",\"arrowUp\"),o=i(\"span\",\"arrowDown\");if(-1===navigator.userAgent.indexOf(\"MSIE 9.0\")?r.type=\"number\":(r.type=\"text\",r.pattern=\"\\\\d*\"),void 0!==e)for(var d in e)r.setAttribute(d,e[d]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n},n.getEventTarget=function(t){try{return\"function\"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}},\n 572: function _(e,t,n,a,r){a();const i=e(573),o=e(568),s=e(569);n.createDateFormatter=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a,u=e.isMobile,f=void 0!==u&&u;return function(e,t,a){var o=a||r;return void 0===n.formatDate||f?t.split(\"\").map((function(t,a,r){return i.formats[t]&&\"\\\\\"!==r[a-1]?i.formats[t](e,o,n):\"\\\\\"!==t?t:\"\"})).join(\"\"):n.formatDate(e,t,o)}};n.createDateParser=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a;return function(e,t,a,s){if(0===e||e){var u,f=s||r,d=e;if(e instanceof Date)u=new Date(e.getTime());else if(\"string\"!=typeof e&&void 0!==e.toFixed)u=new Date(e);else if(\"string\"==typeof e){var c=t||(n||o.defaults).dateFormat,g=String(e).trim();if(\"today\"===g)u=new Date,a=!0;else if(n&&n.parseDate)u=n.parseDate(e,c);else if(/Z$/.test(g)||/GMT$/.test(g))u=new Date(e);else{for(var m=void 0,l=[],v=0,D=0,h=\"\";v<c.length;v++){var w=c[v],M=\"\\\\\"===w,p=\"\\\\\"===c[v-1]||M;if(i.tokenRegex[w]&&!p){h+=i.tokenRegex[w];var H=new RegExp(h).exec(e);H&&(m=!0)&&l[\"Y\"!==w?\"push\":\"unshift\"]({fn:i.revFormat[w],val:H[++D]})}else M||(h+=\".\")}u=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),l.forEach((function(e){var t=e.fn,n=e.val;return u=t(u,n,f)||u})),u=m?u:void 0}}if(u instanceof Date&&!isNaN(u.getTime()))return!0===a&&u.setHours(0,0,0,0),u;n.errorHandler(new Error(\"Invalid date provided: \"+d))}}},n.compareDates=function(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()},n.compareTimes=function(e,t){return 3600*(e.getHours()-t.getHours())+60*(e.getMinutes()-t.getMinutes())+e.getSeconds()-t.getSeconds()};n.isBetween=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)};n.calculateSecondsSinceMidnight=function(e,t,n){return 3600*e+60*t+n};n.parseSeconds=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},n.duration={DAY:864e5},n.getDefaultHours=function(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<i&&(n=i),t===r&&n===i&&a<o&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),u=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(u,n)),t===s&&n===u&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}},\n 573: function _(t,n,e,o,r){o();const u=t(570);var a=function(){};e.monthToStr=function(t,n,e){return e.months[n?\"shorthand\":\"longhand\"][t]},e.revFormat={D:a,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*(0,u.int)(new RegExp(e.amPM[1],\"i\").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(1e3*parseFloat(n))},W:function(t,n,e){var o=parseInt(n),r=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+e.firstDayOfWeek),r},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:a,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:a,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},e.tokenRegex={D:\"\",F:\"\",G:\"(\\\\d\\\\d|\\\\d)\",H:\"(\\\\d\\\\d|\\\\d)\",J:\"(\\\\d\\\\d|\\\\d)\\\\w+\",K:\"\",M:\"\",S:\"(\\\\d\\\\d|\\\\d)\",U:\"(.+)\",W:\"(\\\\d\\\\d|\\\\d)\",Y:\"(\\\\d{4})\",Z:\"(.+)\",d:\"(\\\\d\\\\d|\\\\d)\",h:\"(\\\\d\\\\d|\\\\d)\",i:\"(\\\\d\\\\d|\\\\d)\",j:\"(\\\\d\\\\d|\\\\d)\",l:\"\",m:\"(\\\\d\\\\d|\\\\d)\",n:\"(\\\\d\\\\d|\\\\d)\",s:\"(\\\\d\\\\d|\\\\d)\",u:\"(.+)\",w:\"(\\\\d\\\\d|\\\\d)\",y:\"(\\\\d{2})\"},e.formats={Z:function(t){return t.toISOString()},D:function(t,n,o){return n.weekdays.shorthand[e.formats.w(t,n,o)]},F:function(t,n,o){return(0,e.monthToStr)(e.formats.n(t,n,o)-1,!1,n)},G:function(t,n,o){return(0,u.pad)(e.formats.h(t,n,o))},H:function(t){return(0,u.pad)(t.getHours())},J:function(t,n){return void 0!==n.ordinal?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[(0,u.int)(t.getHours()>11)]},M:function(t,n){return(0,e.monthToStr)(t.getMonth(),!0,n)},S:function(t){return(0,u.pad)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return(0,u.pad)(t.getFullYear(),4)},d:function(t){return(0,u.pad)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return(0,u.pad)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return(0,u.pad)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}},\n 574: function _(n,t,o,r,e){\"function\"!=typeof Object.assign&&(Object.assign=function(n){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(!n)throw TypeError(\"Cannot convert undefined or null to object\");for(var r=function(t){t&&Object.keys(t).forEach((function(o){return n[o]=t[o]}))},e=0,c=t;e<c.length;e++){r(c[e])}return n})},\n 575: function _(e,t,a,r,i){r(),a.default='.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible;}.flatpickr-calendar.open{display:inline-block;z-index:99999;}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);}.flatpickr-calendar.inline{display:block;position:relative;top:2px;}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px);}.flatpickr-calendar.static.open{z-index:999;display:block;}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important;}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0;}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6;}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto;}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:\\'\\';height:0;width:0;left:22px;}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px;}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%;}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%;}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6;}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff;}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%;}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6;}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff;}.flatpickr-calendar:focus{outline:0;}.flatpickr-wrapper{position:relative;display:inline-block;}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0, 0, 0, 0.9);fill:rgba(0, 0, 0, 0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0, 0, 0, 0.9);fill:rgba(0, 0, 0, 0.9);}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none;}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative;}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0;}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0;}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9;}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747;}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px;}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill 0.1s;transition:fill 0.1s;fill:inherit;}.numInputWrapper{position:relative;height:auto;}.numInputWrapper input,.numInputWrapper span{display:inline-block;}.numInputWrapper input{width:100%;}.numInputWrapper input::-ms-clear{display:none;}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57, 57, 57, 0.15);-webkit-box-sizing:border-box;box-sizing:border-box;}.numInputWrapper span:hover{background:rgba(0, 0, 0, 0.1);}.numInputWrapper span:active{background:rgba(0, 0, 0, 0.2);}.numInputWrapper span:after{display:block;content:\"\";position:absolute;}.numInputWrapper span.arrowUp{top:0;border-bottom:0;}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57, 57, 57, 0.6);top:26%;}.numInputWrapper span.arrowDown{top:50%;}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57, 57, 57, 0.6);top:40%;}.numInputWrapper span svg{width:inherit;height:auto;}.numInputWrapper span svg path{fill:rgba(0, 0, 0, 0.5);}.numInputWrapper:hover{background:rgba(0, 0, 0, 0.05);}.numInputWrapper:hover span{opacity:1;}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:0.5ch;padding:0;}.flatpickr-current-month span.cur-month:hover{background:rgba(0, 0, 0, 0.05);}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block;}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0, 0, 0, 0.9);}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0, 0, 0, 0.9);}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 0.5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}.flatpickr-current-month input.cur-year:focus{outline:0;}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0, 0, 0, 0.5);background:transparent;pointer-events:none;}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto;}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none;}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0, 0, 0, 0.05);}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0;}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px;}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0, 0, 0, 0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder;}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0;}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px;}.flatpickr-days:focus{outline:0;}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);opacity:1;}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6;}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6;}.flatpickr-day.today{border-color:#959ea9;}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff;}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7;}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px;}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0;}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7;}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px;}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57, 57, 57, 0.3);background:transparent;border-color:transparent;cursor:default;}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57, 57, 57, 0.1);}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7;}.flatpickr-day.hidden{visibility:hidden;}.rangeMode .flatpickr-day{margin-top:1px;}.flatpickr-weekwrapper{float:left;}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6;}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px;}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57, 57, 57, 0.3);background:transparent;cursor:default;border:none;}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.flatpickr-time:after{content:\"\";display:table;clear:both;}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left;}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939;}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939;}.flatpickr-time.hasSeconds .numInputWrapper{width:26%;}.flatpickr-time.time24hr .numInputWrapper{width:49%;}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}.flatpickr-time input.flatpickr-hour{font-weight:bold;}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400;}.flatpickr-time input:focus{outline:0;border:0;}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400;}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee;}.flatpickr-input[readonly]{cursor:pointer;}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-box-shadow:0 3px 13px rgba(0, 0, 0, 0.08);box-shadow:0 3px 13px rgba(0, 0, 0, 0.08);}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible;}.flatpickr-calendar.open{display:inline-block;z-index:99999;}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);}.flatpickr-calendar.inline{display:block;position:relative;top:2px;}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px);}.flatpickr-calendar.static.open{z-index:999;display:block;}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important;}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0;}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #eceef1;}.flatpickr-calendar.hasTime .flatpickr-innerContainer{border-bottom:0;}.flatpickr-calendar.hasTime .flatpickr-time{border:1px solid #eceef1;}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto;}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:\\'\\';height:0;width:0;left:22px;}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px;}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%;}.flatpickr-calendar:before{border-width:5px;margin:0 -5px;}.flatpickr-calendar:after{border-width:4px;margin:0 -4px;}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%;}.flatpickr-calendar.arrowTop:before{border-bottom-color:#eceef1;}.flatpickr-calendar.arrowTop:after{border-bottom-color:#eceef1;}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%;}.flatpickr-calendar.arrowBottom:before{border-top-color:#eceef1;}.flatpickr-calendar.arrowBottom:after{border-top-color:#eceef1;}.flatpickr-calendar:focus{outline:0;}.flatpickr-wrapper{position:relative;display:inline-block;}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.flatpickr-months .flatpickr-month{border-radius:5px 5px 0 0;background:#eceef1;color:#5a6171;fill:#5a6171;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#5a6171;fill:#5a6171;}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none;}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative;}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0;}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0;}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#bbb;}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747;}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px;}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill 0.1s;transition:fill 0.1s;fill:inherit;}.numInputWrapper{position:relative;height:auto;}.numInputWrapper input,.numInputWrapper span{display:inline-block;}.numInputWrapper input{width:100%;}.numInputWrapper input::-ms-clear{display:none;}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(72, 72, 72, 0.15);-webkit-box-sizing:border-box;box-sizing:border-box;}.numInputWrapper span:hover{background:rgba(0, 0, 0, 0.1);}.numInputWrapper span:active{background:rgba(0, 0, 0, 0.2);}.numInputWrapper span:after{display:block;content:\"\";position:absolute;}.numInputWrapper span.arrowUp{top:0;border-bottom:0;}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(72, 72, 72, 0.6);top:26%;}.numInputWrapper span.arrowDown{top:50%;}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(72, 72, 72, 0.6);top:40%;}.numInputWrapper span svg{width:inherit;height:auto;}.numInputWrapper span svg path{fill:rgba(90, 97, 113, 0.5);}.numInputWrapper:hover{background:rgba(0, 0, 0, 0.05);}.numInputWrapper:hover span{opacity:1;}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:0.5ch;padding:0;}.flatpickr-current-month span.cur-month:hover{background:rgba(0, 0, 0, 0.05);}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block;}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:#5a6171;}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:#5a6171;}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 0.5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}.flatpickr-current-month input.cur-year:focus{outline:0;}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(90, 97, 113, 0.5);background:transparent;pointer-events:none;}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:#eceef1;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto;}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none;}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0, 0, 0, 0.05);}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:#eceef1;outline:none;padding:0;}.flatpickr-weekdays{background:#eceef1;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px;}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}span.flatpickr-weekday{cursor:default;font-size:90%;background:#eceef1;color:#5a6171;line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder;}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0;}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px;border-left:1px solid #eceef1;border-right:1px solid #eceef1;}.flatpickr-days:focus{outline:0;}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);opacity:1;}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #eceef1;box-shadow:-1px 0 0 #eceef1;}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#484848;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e2e2e2;border-color:#e2e2e2;}.flatpickr-day.today{border-color:#bbb;}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#bbb;background:#bbb;color:#fff;}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#ff5a5f;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#ff5a5f;}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px;}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0;}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #ff5a5f;box-shadow:-10px 0 0 #ff5a5f;}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px;}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;box-shadow:-5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(72, 72, 72, 0.3);background:transparent;border-color:transparent;cursor:default;}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(72, 72, 72, 0.1);}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;box-shadow:-5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;}.flatpickr-day.hidden{visibility:hidden;}.rangeMode .flatpickr-day{margin-top:1px;}.flatpickr-weekwrapper{float:left;}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;border-left:1px solid #eceef1;}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px;}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(72, 72, 72, 0.3);background:transparent;cursor:default;border:none;}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;background:#fff;border-bottom:1px solid #eceef1;}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:#fff;border-radius:0 0 5px 5px;}.flatpickr-time:after{content:\"\";display:table;clear:both;}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left;}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#484848;}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#484848;}.flatpickr-time.hasSeconds .numInputWrapper{width:26%;}.flatpickr-time.time24hr .numInputWrapper{width:49%;}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#484848;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}.flatpickr-time input.flatpickr-hour{font-weight:bold;}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400;}.flatpickr-time input:focus{outline:0;border:0;}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#484848;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400;}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eaeaea;}.flatpickr-input[readonly]{cursor:pointer;}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}span.flatpickr-day.selected{font-weight:bold;}'},\n 576: function _(e,a,t,s,i){var n;s();const l=e(565),r=e(12);class c extends l.BaseDatePickerView{get flatpickr_options(){return Object.assign(Object.assign({},super.flatpickr_options),{mode:\"range\"})}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:{const[a]=e,t=this._format_date(a);this.model.value=[t,t];break}case 2:{const[a,t]=e,s=this._format_date(a),i=this._format_date(t);this.model.value=[s,i];break}default:(0,r.assert)(!1,\"invalid length\")}}}t.DateRangePickerView=c,c.__name__=\"DateRangePickerView\";class o extends l.BaseDatePicker{constructor(e){super(e)}}t.DateRangePicker=o,n=o,o.__name__=\"DateRangePicker\",n.prototype.default_view=c,n.define((({Tuple:e,Nullable:a})=>({value:[a(e(l.DateLike,l.DateLike)),null]})))},\n 577: function _(e,t,a,i,r){var s;i();const n=e(565);class c extends n.BaseDatePickerView{get flatpickr_options(){return Object.assign(Object.assign({},super.flatpickr_options),{mode:\"multiple\",conjunction:this.model.separator})}_on_change(e){this.model.value=e.map((e=>this._format_date(e)))}}a.MultipleDatePickerView=c,c.__name__=\"MultipleDatePickerView\";class l extends n.BaseDatePicker{constructor(e){super(e)}}a.MultipleDatePicker=l,s=l,l.__name__=\"MultipleDatePicker\",s.prototype.default_view=c,s.define((({String:e,Array:t})=>({value:[t(n.DateLike),[]],separator:[e,\", \"]})))},\n 578: function _(e,t,a,i,s){var n;i();const l=e(579),c=e(565),r=e(12);class o extends l.BaseDatetimePickerView{get flatpickr_options(){return Object.assign(Object.assign({},super.flatpickr_options),{mode:\"single\"})}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:{const[t]=e,a=this._format_date(t);this.model.value=a;break}default:(0,r.assert)(!1,\"invalid length\")}}}a.DatetimePickerView=o,o.__name__=\"DatetimePickerView\";class _ extends l.BaseDatetimePicker{constructor(e){super(e)}}a.DatetimePicker=_,n=_,_.__name__=\"DatetimePicker\",n.prototype.default_view=o,n.define((({Nullable:e})=>({value:[e(c.DateLike),null]})))},\n 579: function _(e,t,n,c,i){var s;c();const r=e(565),o=e(19);class m extends r.BaseDatePickerView{connect_signals(){super.connect_signals();const{value:e,hour_increment:t,minute_increment:n,second_increment:c,seconds:i,clock:s}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set(\"hourIncrement\",this.model.hour_increment))),this.connect(n.change,(()=>this.picker.set(\"minuteIncrement\",this.model.minute_increment))),this.connect(c.change,(()=>this._update_second_increment())),this.connect(i.change,(()=>this.picker.set(\"enableSeconds\",this.model.seconds))),this.connect(s.change,(()=>this.picker.set(\"time_24hr\",\"24h\"==this.model.clock)))}get flatpickr_options(){const{hour_increment:e,minute_increment:t,seconds:n,clock:c}=this.model,i=super.flatpickr_options;return i.enableTime=!0,i.dateFormat=\"Y-m-dTH:i:S\",i.hourIncrement=e,i.minuteIncrement=t,i.enableSeconds=n,i.time_24hr=\"24h\"==c,i}render(){super.render(),this._update_second_increment()}_update_second_increment(){var e;const{second_increment:t}=this.model;null===(e=this.picker.secondElement)||void 0===e||e.setAttribute(\"step\",t.toString())}}n.BaseDatetimePickerView=m,m.__name__=\"BaseDatetimePickerView\";class a extends r.BaseDatePicker{constructor(e){super(e)}}n.BaseDatetimePicker=a,s=a,a.__name__=\"BaseDatetimePicker\",s.define((({Boolean:e,Positive:t,Int:n})=>({hour_increment:[t(n),1],minute_increment:[t(n),1],second_increment:[t(n),1],seconds:[e,!1],clock:[o.Clock,\"24h\"]}))),s.override({date_format:\"Y-m-d H:i\"})},\n 580: function _(e,t,a,i,s){var n;i();const l=e(579),r=e(565),c=e(12);class o extends l.BaseDatetimePickerView{get flatpickr_options(){return Object.assign(Object.assign({},super.flatpickr_options),{mode:\"range\"})}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:{const[t]=e,a=this._format_date(t);this.model.value=[a,a];break}case 2:{const[t,a]=e,i=this._format_date(t),s=this._format_date(a);this.model.value=[i,s];break}default:(0,c.assert)(!1,\"invalid length\")}}}a.DatetimeRangePickerView=o,o.__name__=\"DatetimeRangePickerView\";class _ extends l.BaseDatetimePicker{constructor(e){super(e)}}a.DatetimeRangePicker=_,n=_,_.__name__=\"DatetimeRangePicker\",n.prototype.default_view=o,n.define((({Nullable:e,Tuple:t})=>({value:[e(t(r.DateLike,r.DateLike)),null]})))},\n 581: function _(e,t,i,a,r){var s;a();const n=e(579),c=e(565);class l extends n.BaseDatetimePickerView{get flatpickr_options(){return Object.assign(Object.assign({},super.flatpickr_options),{mode:\"multiple\",conjunction:this.model.separator})}_on_change(e){this.model.value=e.map((e=>this._format_date(e)))}}i.MultipleDatetimePickerView=l,l.__name__=\"MultipleDatetimePickerView\";class o extends n.BaseDatetimePicker{constructor(e){super(e)}}i.MultipleDatetimePicker=o,s=o,o.__name__=\"MultipleDatetimePicker\",s.prototype.default_view=l,s.define((({String:e,Array:t})=>({value:[t(c.DateLike),[]],separator:[e,\", \"]})))},\n 582: function _(e,t,n,i,c){var s;i();const m=e(566),r=e(20),o=e(19),a=e(12);n.TimeLike=(0,r.Or)(r.String,r.Number);class l extends m.PickerBaseView{_format_time(e){const{picker:t}=this;return t.formatDate(e,t.config.dateFormat)}connect_signals(){super.connect_signals();const{value:e,min_time:t,max_time:n,time_format:i,hour_increment:c,minute_increment:s,second_increment:m,seconds:r,clock:o}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set(\"minTime\",this.model.min_time))),this.connect(n.change,(()=>this.picker.set(\"maxTime\",this.model.max_time))),this.connect(i.change,(()=>this.picker.set(\"altFormat\",this.model.time_format))),this.connect(c.change,(()=>this.picker.set(\"hourIncrement\",this.model.hour_increment))),this.connect(s.change,(()=>this.picker.set(\"minuteIncrement\",this.model.minute_increment))),this.connect(m.change,(()=>this._update_second_increment())),this.connect(r.change,(()=>this.picker.set(\"enableSeconds\",this.model.seconds))),this.connect(o.change,(()=>this.picker.set(\"time_24hr\",\"24h\"==this.model.clock)))}get flatpickr_options(){const{value:e,min_time:t,max_time:n,time_format:i,hour_increment:c,minute_increment:s,seconds:m,clock:r}=this.model,o=super.flatpickr_options;return o.enableTime=!0,o.noCalendar=!0,o.altInput=!0,o.altFormat=i,o.dateFormat=\"H:i:S\",o.hourIncrement=c,o.minuteIncrement=s,o.enableSeconds=m,o.time_24hr=\"24h\"==r,null!=e&&(o.defaultDate=e),null!=t&&(o.minTime=t),null!=n&&(o.maxTime=n),o}render(){super.render(),this._update_second_increment()}_update_second_increment(){var e;const{second_increment:t}=this.model;null===(e=this.picker.secondElement)||void 0===e||e.setAttribute(\"step\",t.toString())}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:{const[t]=e,n=this._format_time(t);this.model.value=n;break}default:(0,a.assert)(!1,\"invalid length\")}}}n.TimePickerView=l,l.__name__=\"TimePickerView\";class h extends m.PickerBase{constructor(e){super(e)}}n.TimePicker=h,s=h,h.__name__=\"TimePicker\",s.prototype.default_view=l,s.define((({Boolean:e,String:t,Nullable:i,Positive:c,Int:s})=>({value:[i(n.TimeLike),null],min_time:[i(n.TimeLike),null],max_time:[i(n.TimeLike),null],time_format:[t,\"H:i\"],hour_increment:[c(s),1],minute_increment:[c(s),1],second_increment:[c(s),1],seconds:[e,!1],clock:[o.Clock,\"24h\"]})))},\n 583: function _(e,t,a,r,n){var s;r();const i=e(1).__importDefault(e(173)),d=e(584),o=e(8);class l extends d.AbstractRangeSliderView{_calc_to(){const{start:e,end:t,value:a,step:r}=this.model;return{start:e,end:t,value:a,step:864e5*r}}}a.DateRangeSliderView=l,l.__name__=\"DateRangeSliderView\";class _ extends d.AbstractSlider{constructor(e){super(e),this.behaviour=\"drag\",this.connected=[!1,!0,!1]}_formatter(e,t){return(0,o.isString)(t)?(0,i.default)(e,t):t.compute(e)}}a.DateRangeSlider=_,s=_,_.__name__=\"DateRangeSlider\",s.prototype.default_view=l,s.override({format:\"%d %b %Y\"})},\n 584: function _(t,e,s,i,l){var o;i();const r=t(1),n=r.__importDefault(t(585)),_=r.__importStar(t(17)),a=t(56),d=t(10),h=t(21),c=t(557),u=t(162),m=r.__importStar(t(586)),p=m,g=r.__importDefault(t(587)),b=r.__importStar(t(552));class v extends c.OrientedControlView{constructor(){super(...arguments),this._auto_width=\"auto\",this._auto_height=\"auto\"}*controls(){yield this.slider_el}get _steps(){return this._noUiSlider.steps}connect_signals(){super.connect_signals();const{direction:t,orientation:e,tooltips:s}=this.model.properties;this.on_change([t,e,s],(()=>this.render()));const{start:i,end:l,value:o,step:r,title:n}=this.model.properties;this.on_change([i,l,o,r],(()=>{const{start:t,end:e,value:s,step:i}=this._calc_to();this._noUiSlider.updateOptions({range:{min:t,max:e},start:s,step:i},!0)}));const{bar_color:_}=this.model.properties;this.on_change(_,(()=>{this._set_bar_color()}));const{show_value:a}=this.model.properties;this.on_change([o,n,a],(()=>this._update_title()))}stylesheets(){return[...super.stylesheets(),g.default,m.default]}_update_title(){(0,a.empty)(this.title_el);const t=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=t?\"none\":\"\",!t){const{title:t}=this.model;if(null!=t&&t.length>0&&(this.contains_tex_string(t)?this.title_el.innerHTML=`${this.process_tex(t)}: `:this.title_el.textContent=`${t}: `),this.model.show_value){const{value:t}=this._calc_to(),e=t.map((t=>this.model.pretty(t))).join(\" .. \");this.title_el.appendChild((0,a.span)({class:p.slider_value},e))}}}_set_bar_color(){if(!this.model.disabled&&null!=this.slider_el){this.slider_el.querySelector(\".noUi-connect\").style.backgroundColor=(0,h.color2css)(this.model.bar_color)}}render(){super.render();const{start:t,end:e,value:s,step:i}=this._calc_to();let l;if(this.model.tooltips){const t={to:t=>this.model.pretty(t)};l=(0,d.repeat)(t,s.length)}else l=null;if(null==this.slider_el){this.slider_el=(0,a.div)(),this._noUiSlider=n.default.create(this.slider_el,{range:{min:t,max:e},start:s,step:i,behaviour:this.model.behaviour,connect:this.model.connected,tooltips:null!=l&&l,orientation:this.model.orientation,direction:this.model.direction}),this._noUiSlider.on(\"slide\",((t,e,s)=>this._slide(s))),this._noUiSlider.on(\"change\",((t,e,s)=>this._change(s)));const o=(t,e)=>{if(null==l||null==this.slider_el)return;this.slider_el.querySelectorAll(\".noUi-handle\")[t].querySelector(\".noUi-tooltip\").style.display=e?\"block\":\"\"};this._noUiSlider.on(\"start\",(()=>this._toggle_user_select(!1))),this._noUiSlider.on(\"end\",(()=>this._toggle_user_select(!0))),this._noUiSlider.on(\"start\",((t,e)=>o(e,!0))),this._noUiSlider.on(\"end\",((t,e)=>o(e,!1)))}else this._noUiSlider.updateOptions({range:{min:t,max:e},start:s,step:i},!0);this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute(\"disabled\",\"true\"):this.slider_el.removeAttribute(\"disabled\"),this.title_el=(0,a.div)({class:p.slider_title}),this._update_title(),this.group_el=(0,a.div)({class:b.input_group},this.title_el,this.slider_el),this.shadow_el.appendChild(this.group_el),this._has_finished=!0}_toggle_user_select(t){const{style:e}=document.body,s=t?\"\":\"none\";e.userSelect=s,e.webkitUserSelect=s}_slide(t){this.model.value=this._calc_from(t)}_change(t){const e=this._calc_from(t);this.model.setv({value:e,value_throttled:e})}}v.__name__=\"AbstractBaseSliderView\";class S extends v{_calc_to(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}}_calc_from([t]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(t):t}}s.AbstractSliderView=S,S.__name__=\"AbstractSliderView\";class f extends v{_calc_to(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}}_calc_from(t){return t}}s.AbstractRangeSliderView=f,f.__name__=\"AbstractRangeSliderView\";class y extends c.OrientedControl{constructor(t){super(t),this.connected=!1}pretty(t){return this._formatter(t,this.format)}}s.AbstractSlider=y,o=y,y.__name__=\"AbstractSlider\",o.define((({Any:t,Boolean:e,Number:s,String:i,Color:l,Or:o,Enum:r,Ref:n,Nullable:a})=>({title:[a(i),\"\"],show_value:[e,!0],start:[t],end:[t],value:[t],value_throttled:[t,_.unset,{readonly:!0}],step:[s,1],format:[o(i,n(u.TickFormatter))],direction:[r(\"ltr\",\"rtl\"),\"ltr\"],tooltips:[e,!0],bar_color:[l,\"#e6e6e6\"]}))),o.override({width:300})},\n 585: function _(t,e,r,n,i){var o,s;o=this,s=function(t){\"use strict\";var e,r;function n(t){return\"object\"==typeof t&&\"function\"==typeof t.to}function i(t){t.parentElement.removeChild(t)}function o(t){return null!=t}function s(t){t.preventDefault()}function a(t){return\"number\"==typeof t&&!isNaN(t)&&isFinite(t)}function l(t,e,r){r>0&&(f(t,e),setTimeout((function(){d(t,e)}),r))}function u(t){return Math.max(Math.min(t,100),0)}function c(t){return Array.isArray(t)?t:[t]}function p(t){var e=(t=String(t)).split(\".\");return e.length>1?e[1].length:0}function f(t,e){t.classList&&!/\\s/.test(e)?t.classList.add(e):t.className+=\" \"+e}function d(t,e){t.classList&&!/\\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp(\"(^|\\\\b)\"+e.split(\" \").join(\"|\")+\"(\\\\b|$)\",\"gi\"),\" \")}function h(t){var e=void 0!==window.pageXOffset,r=\"CSS1Compat\"===(t.compatMode||\"\");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function m(t,e){return 100/(e-t)}function g(t,e,r){return 100*e/(t[r+1]-t[r])}function v(t,e){for(var r=1;t>=e[r];)r+=1;return r}function b(t,e,r){if(r>=t.slice(-1)[0])return 100;var n=v(r,t),i=t[n-1],o=t[n],s=e[n-1],a=e[n];return s+function(t,e){return g(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}([i,o],r)/m(s,a)}function S(t,e,r,n){if(100===n)return n;var i=v(n,t),o=t[i-1],s=t[i];return r?n-o>(s-o)/2?s:o:e[i-1]?t[i-1]+function(t,e){return Math.round(t/e)*e}(n-t[i-1],e[i-1]):n}t.PipsMode=void 0,(e=t.PipsMode||(t.PipsMode={})).Range=\"range\",e.Steps=\"steps\",e.Positions=\"positions\",e.Count=\"count\",e.Values=\"values\",t.PipsType=void 0,(r=t.PipsType||(t.PipsType={}))[r.None=-1]=\"None\",r[r.NoValue=0]=\"NoValue\",r[r.LargeValue=1]=\"LargeValue\",r[r.SmallValue=2]=\"SmallValue\";var x=function(){function t(t,e,r){var n;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=e;var i=[];for(Object.keys(t).forEach((function(e){i.push([c(t[e]),e])})),i.sort((function(t,e){return t[0][0]-e[0][0]})),n=0;n<i.length;n++)this.handleEntryPoint(i[n][1],i[n][0]);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)this.handleStepPoint(n,this.xNumSteps[n])}return t.prototype.getDistance=function(t){for(var e=[],r=0;r<this.xNumSteps.length-1;r++)e[r]=g(this.xVal,t,r);return e},t.prototype.getAbsoluteDistance=function(t,e,r){var n,i=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[i+1];)i++;else t===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);r||t!==this.xPct[i+1]||i++,null===e&&(e=[]);var o=1,s=e[i],a=0,l=0,u=0,c=0;for(n=r?(t-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-t)/(this.xPct[i+1]-this.xPct[i]);s>0;)a=this.xPct[i+1+c]-this.xPct[i+c],e[i+c]*o+100-100*n>100?(l=a*n,o=(s-100*n)/e[i+c],n=1):(l=e[i+c]*a/100*o,o=0),r?(u-=l,this.xPct.length+c>=1&&c--):(u+=l,this.xPct.length-c>=1&&c++),s=e[i+c]*o;return t+u},t.prototype.toStepping=function(t){return t=b(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n=v(r,e),i=t[n-1],o=t[n],s=e[n-1];return function(t,e){return e*(t[1]-t[0])/100+t[0]}([i,o],(r-s)*m(s,e[n]))}(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=S(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,r){var n=v(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},t.prototype.getNearbySteps=function(t){var e=v(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],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(p);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){var r;if(!a(r=\"min\"===t?0:\"max\"===t?100:parseFloat(t))||!a(e[0]))throw new Error(\"noUiSlider: 'range' value isn't numeric.\");this.xPct.push(r),this.xVal.push(e[0]);var n=Number(e[1]);r?this.xSteps.push(!isNaN(n)&&n):isNaN(n)||(this.xSteps[0]=n),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){if(e)if(this.xVal[t]!==this.xVal[t+1]){this.xSteps[t]=g([this.xVal[t],this.xVal[t+1]],e,0)/m(this.xPct[t],this.xPct[t+1]);var r=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],n=Math.ceil(Number(r.toFixed(3))-1),i=this.xVal[t]+this.xNumSteps[t]*n;this.xHighestCompleteStep[t]=i}else this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]},t}(),y={to:function(t){return void 0===t?\"\":t.toFixed(2)},from:Number},w={target:\"target\",base:\"base\",origin:\"origin\",handle:\"handle\",handleLower:\"handle-lower\",handleUpper:\"handle-upper\",touchArea:\"touch-area\",horizontal:\"horizontal\",vertical:\"vertical\",background:\"background\",connect:\"connect\",connects:\"connects\",ltr:\"ltr\",rtl:\"rtl\",textDirectionLtr:\"txt-dir-ltr\",textDirectionRtl:\"txt-dir-rtl\",draggable:\"draggable\",drag:\"state-drag\",tap:\"state-tap\",active:\"active\",tooltip:\"tooltip\",pips:\"pips\",pipsHorizontal:\"pips-horizontal\",pipsVertical:\"pips-vertical\",marker:\"marker\",markerHorizontal:\"marker-horizontal\",markerVertical:\"marker-vertical\",markerNormal:\"marker-normal\",markerLarge:\"marker-large\",markerSub:\"marker-sub\",value:\"value\",valueHorizontal:\"value-horizontal\",valueVertical:\"value-vertical\",valueNormal:\"value-normal\",valueLarge:\"value-large\",valueSub:\"value-sub\"},E={tooltips:\".__tooltips\",aria:\".__aria\"};function P(t,e){if(!a(e))throw new Error(\"noUiSlider: 'step' is not numeric.\");t.singleStep=e}function C(t,e){if(!a(e))throw new Error(\"noUiSlider: 'keyboardPageMultiplier' is not numeric.\");t.keyboardPageMultiplier=e}function N(t,e){if(!a(e))throw new Error(\"noUiSlider: 'keyboardMultiplier' is not numeric.\");t.keyboardMultiplier=e}function V(t,e){if(!a(e))throw new Error(\"noUiSlider: 'keyboardDefaultStep' is not numeric.\");t.keyboardDefaultStep=e}function A(t,e){if(\"object\"!=typeof e||Array.isArray(e))throw new Error(\"noUiSlider: 'range' is not an object.\");if(void 0===e.min||void 0===e.max)throw new Error(\"noUiSlider: Missing 'min' or 'max' in 'range'.\");t.spectrum=new x(e,t.snap||!1,t.singleStep)}function k(t,e){if(e=c(e),!Array.isArray(e)||!e.length)throw new Error(\"noUiSlider: 'start' option is incorrect.\");t.handles=e.length,t.start=e}function M(t,e){if(\"boolean\"!=typeof e)throw new Error(\"noUiSlider: 'snap' option must be a boolean.\");t.snap=e}function U(t,e){if(\"boolean\"!=typeof e)throw new Error(\"noUiSlider: 'animate' option must be a boolean.\");t.animate=e}function D(t,e){if(\"number\"!=typeof e)throw new Error(\"noUiSlider: 'animationDuration' option must be a number.\");t.animationDuration=e}function O(t,e){var r,n=[!1];if(\"lower\"===e?e=[!0,!1]:\"upper\"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error(\"noUiSlider: 'connect' option doesn't match handle count.\");n=e}t.connect=n}function L(t,e){switch(e){case\"horizontal\":t.ort=0;break;case\"vertical\":t.ort=1;break;default:throw new Error(\"noUiSlider: 'orientation' option is invalid.\")}}function T(t,e){if(!a(e))throw new Error(\"noUiSlider: 'margin' option must be numeric.\");0!==e&&(t.margin=t.spectrum.getDistance(e))}function j(t,e){if(!a(e))throw new Error(\"noUiSlider: 'limit' option must be numeric.\");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error(\"noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.\")}function z(t,e){var r;if(!a(e)&&!Array.isArray(e))throw new Error(\"noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.\");if(Array.isArray(e)&&2!==e.length&&!a(e[0])&&!a(e[1]))throw new Error(\"noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.\");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],r=0;r<t.spectrum.xNumSteps.length-1;r++)if(t.padding[0][r]<0||t.padding[1][r]<0)throw new Error(\"noUiSlider: 'padding' option must be a positive number(s).\");var n=e[0]+e[1],i=t.spectrum.xVal[0];if(n/(t.spectrum.xVal[t.spectrum.xVal.length-1]-i)>1)throw new Error(\"noUiSlider: 'padding' option must not exceed 100% of the range.\")}}function H(t,e){switch(e){case\"ltr\":t.dir=0;break;case\"rtl\":t.dir=1;break;default:throw new Error(\"noUiSlider: 'direction' option was not recognized.\")}}function F(t,e){if(\"string\"!=typeof e)throw new Error(\"noUiSlider: 'behaviour' must be a string containing options.\");var r=e.indexOf(\"tap\")>=0,n=e.indexOf(\"drag\")>=0,i=e.indexOf(\"fixed\")>=0,o=e.indexOf(\"snap\")>=0,s=e.indexOf(\"hover\")>=0,a=e.indexOf(\"unconstrained\")>=0,l=e.indexOf(\"drag-all\")>=0,u=e.indexOf(\"smooth-steps\")>=0;if(i){if(2!==t.handles)throw new Error(\"noUiSlider: 'fixed' behaviour must be used with 2 handles\");T(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error(\"noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit\");t.events={tap:r||o,drag:n,dragAll:l,smoothSteps:u,fixed:i,snap:o,hover:s,unconstrained:a}}function R(t,e){if(!1!==e)if(!0===e||n(e)){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(e)}else{if((e=c(e)).length!==t.handles)throw new Error(\"noUiSlider: must pass a formatter for all handles.\");e.forEach((function(t){if(\"boolean\"!=typeof t&&!n(t))throw new Error(\"noUiSlider: 'tooltips' must be passed a formatter or 'false'.\")})),t.tooltips=e}}function _(t,e){if(e.length!==t.handles)throw new Error(\"noUiSlider: must pass a attributes for all handles.\");t.handleAttributes=e}function B(t,e){if(!n(e))throw new Error(\"noUiSlider: 'ariaFormat' requires 'to' method.\");t.ariaFormat=e}function q(t,e){if(!function(t){return n(t)&&\"function\"==typeof t.from}(e))throw new Error(\"noUiSlider: 'format' requires 'to' and 'from' methods.\");t.format=e}function X(t,e){if(\"boolean\"!=typeof e)throw new Error(\"noUiSlider: 'keyboardSupport' option must be a boolean.\");t.keyboardSupport=e}function Y(t,e){t.documentElement=e}function I(t,e){if(\"string\"!=typeof e&&!1!==e)throw new Error(\"noUiSlider: 'cssPrefix' must be a string or `false`.\");t.cssPrefix=e}function W(t,e){if(\"object\"!=typeof e)throw new Error(\"noUiSlider: 'cssClasses' must be an object.\");\"string\"==typeof t.cssPrefix?(t.cssClasses={},Object.keys(e).forEach((function(r){t.cssClasses[r]=t.cssPrefix+e[r]}))):t.cssClasses=e}function $(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:y,format:y},r={step:{r:!1,t:P},keyboardPageMultiplier:{r:!1,t:C},keyboardMultiplier:{r:!1,t:N},keyboardDefaultStep:{r:!1,t:V},start:{r:!0,t:k},connect:{r:!0,t:O},direction:{r:!0,t:H},snap:{r:!1,t:M},animate:{r:!1,t:U},animationDuration:{r:!1,t:D},range:{r:!0,t:A},orientation:{r:!1,t:L},margin:{r:!1,t:T},limit:{r:!1,t:j},padding:{r:!1,t:z},behaviour:{r:!0,t:F},ariaFormat:{r:!1,t:B},format:{r:!1,t:q},tooltips:{r:!1,t:R},keyboardSupport:{r:!0,t:X},documentElement:{r:!1,t:Y},cssPrefix:{r:!0,t:I},cssClasses:{r:!0,t:W},handleAttributes:{r:!1,t:_}},n={connect:!1,direction:\"ltr\",behaviour:\"tap\",orientation:\"horizontal\",keyboardSupport:!0,cssPrefix:\"noUi-\",cssClasses:w,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach((function(i){if(o(t[i])||void 0!==n[i])r[i].t(e,o(t[i])?t[i]:n[i]);else if(r[i].r)throw new Error(\"noUiSlider: '\"+i+\"' is required.\")})),e.pips=t.pips;var i=document.createElement(\"div\"),s=void 0!==i.style.msTransform,a=void 0!==i.style.transform;return e.transformRule=a?\"transform\":s?\"msTransform\":\"webkitTransform\",e.style=[[\"left\",\"top\"],[\"right\",\"bottom\"]][e.dir][e.ort],e}function G(e,r,n){var a,p,m,g,v,b,S,x=window.navigator.pointerEnabled?{start:\"pointerdown\",move:\"pointermove\",end:\"pointerup\"}:window.navigator.msPointerEnabled?{start:\"MSPointerDown\",move:\"MSPointerMove\",end:\"MSPointerUp\"}:{start:\"mousedown touchstart\",move:\"mousemove touchmove\",end:\"mouseup touchend\"},y=window.CSS&&CSS.supports&&CSS.supports(\"touch-action\",\"none\")&&function(){var t=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"test\",null,e)}catch(t){}return t}(),w=e,P=r.spectrum,C=[],N=[],V=[],A=0,k={},M=e.ownerDocument,U=r.documentElement||M.documentElement,D=M.body,O=\"rtl\"===M.dir||1===r.ort?0:100;function L(t,e){var r=M.createElement(\"div\");return e&&f(r,e),t.appendChild(r),r}function T(t,e){var n=L(t,r.cssClasses.origin),i=L(n,r.cssClasses.handle);if(L(i,r.cssClasses.touchArea),i.setAttribute(\"data-handle\",String(e)),r.keyboardSupport&&(i.setAttribute(\"tabindex\",\"0\"),i.addEventListener(\"keydown\",(function(t){return function(t,e){if(H()||F(e))return!1;var n=[\"Left\",\"Right\"],i=[\"Down\",\"Up\"],o=[\"PageDown\",\"PageUp\"],s=[\"Home\",\"End\"];r.dir&&!r.ort?n.reverse():r.ort&&!r.dir&&(i.reverse(),o.reverse());var a,l=t.key.replace(\"Arrow\",\"\"),u=l===o[0],c=l===o[1],p=l===i[0]||l===n[0]||u,f=l===i[1]||l===n[1]||c,d=l===s[0],h=l===s[1];if(!(p||f||d||h))return!0;if(t.preventDefault(),f||p){var m=p?0:1,g=gt(e)[m];if(null===g)return!1;!1===g&&(g=P.getDefaultStep(N[e],p,r.keyboardDefaultStep)),g*=c||u?r.keyboardPageMultiplier:r.keyboardMultiplier,g=Math.max(g,1e-7),g*=p?-1:1,a=C[e]+g}else a=h?r.spectrum.xVal[r.spectrum.xVal.length-1]:r.spectrum.xVal[0];return pt(e,P.toStepping(a),!0,!0),ot(\"slide\",e),ot(\"update\",e),ot(\"change\",e),ot(\"set\",e),!1}(t,e)}))),void 0!==r.handleAttributes){var o=r.handleAttributes[e];Object.keys(o).forEach((function(t){i.setAttribute(t,o[t])}))}return i.setAttribute(\"role\",\"slider\"),i.setAttribute(\"aria-orientation\",r.ort?\"vertical\":\"horizontal\"),0===e?f(i,r.cssClasses.handleLower):e===r.handles-1&&f(i,r.cssClasses.handleUpper),n.handle=i,n}function j(t,e){return!!e&&L(t,r.cssClasses.connect)}function z(t,e){return!(!r.tooltips||!r.tooltips[e])&&L(t.firstChild,r.cssClasses.tooltip)}function H(){return w.hasAttribute(\"disabled\")}function F(t){return p[t].hasAttribute(\"disabled\")}function R(){v&&(it(\"update\"+E.tooltips),v.forEach((function(t){t&&i(t)})),v=null)}function _(){R(),v=p.map(z),nt(\"update\"+E.tooltips,(function(t,e,n){if(v&&r.tooltips&&!1!==v[e]){var i=t[e];!0!==r.tooltips[e]&&(i=r.tooltips[e].to(n[e])),v[e].innerHTML=i}}))}function B(t,e){return t.map((function(t){return P.fromStepping(e?P.getStep(t):t)}))}function q(e){var r,n=function(e){if(e.mode===t.PipsMode.Range||e.mode===t.PipsMode.Steps)return P.xVal;if(e.mode===t.PipsMode.Count){if(e.values<2)throw new Error(\"noUiSlider: 'values' (>= 2) required for mode 'count'.\");for(var r=e.values-1,n=100/r,i=[];r--;)i[r]=r*n;return i.push(100),B(i,e.stepped)}return e.mode===t.PipsMode.Positions?B(e.values,e.stepped):e.mode===t.PipsMode.Values?e.stepped?e.values.map((function(t){return P.fromStepping(P.getStep(P.toStepping(t)))})):e.values:[]}(e),i={},o=P.xVal[0],s=P.xVal[P.xVal.length-1],a=!1,l=!1,u=0;return r=n.slice().sort((function(t,e){return t-e})),(n=r.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(n.unshift(o),a=!0),n[n.length-1]!==s&&(n.push(s),l=!0),n.forEach((function(r,o){var s,c,p,f,d,h,m,g,v,b,S=r,x=n[o+1],y=e.mode===t.PipsMode.Steps;for(y&&(s=P.xNumSteps[o]),s||(s=x-S),void 0===x&&(x=S),s=Math.max(s,1e-7),c=S;c<=x;c=Number((c+s).toFixed(7))){for(g=(d=(f=P.toStepping(c))-u)/(e.density||1),b=d/(v=Math.round(g)),p=1;p<=v;p+=1)i[(h=u+p*b).toFixed(5)]=[P.fromStepping(h),0];m=n.indexOf(c)>-1?t.PipsType.LargeValue:y?t.PipsType.SmallValue:t.PipsType.NoValue,!o&&a&&c!==x&&(m=0),c===x&&l||(i[f.toFixed(5)]=[c,m]),u=f}})),i}function X(e,n,i){var o,s,a=M.createElement(\"div\"),l=((o={})[t.PipsType.None]=\"\",o[t.PipsType.NoValue]=r.cssClasses.valueNormal,o[t.PipsType.LargeValue]=r.cssClasses.valueLarge,o[t.PipsType.SmallValue]=r.cssClasses.valueSub,o),u=((s={})[t.PipsType.None]=\"\",s[t.PipsType.NoValue]=r.cssClasses.markerNormal,s[t.PipsType.LargeValue]=r.cssClasses.markerLarge,s[t.PipsType.SmallValue]=r.cssClasses.markerSub,s),c=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],p=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];function d(t,e){var n=e===r.cssClasses.value,i=n?l:u;return e+\" \"+(n?c:p)[r.ort]+\" \"+i[t]}return f(a,r.cssClasses.pips),f(a,0===r.ort?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical),Object.keys(e).forEach((function(o){!function(e,o,s){if((s=n?n(o,s):s)!==t.PipsType.None){var l=L(a,!1);l.className=d(s,r.cssClasses.marker),l.style[r.style]=e+\"%\",s>t.PipsType.NoValue&&((l=L(a,!1)).className=d(s,r.cssClasses.value),l.setAttribute(\"data-value\",String(o)),l.style[r.style]=e+\"%\",l.innerHTML=String(i.to(o)))}}(o,e[o][0],e[o][1])})),a}function Y(){g&&(i(g),g=null)}function I(t){Y();var e=q(t),r=t.filter,n=t.format||{to:function(t){return String(Math.round(t))}};return g=w.appendChild(X(e,r,n))}function W(){var t=a.getBoundingClientRect(),e=\"offset\"+[\"Width\",\"Height\"][r.ort];return 0===r.ort?t.width||a[e]:t.height||a[e]}function G(t,e,n,i){var o=function(o){var s,a,l=function(t,e,r){var n=0===t.type.indexOf(\"touch\"),i=0===t.type.indexOf(\"mouse\"),o=0===t.type.indexOf(\"pointer\"),s=0,a=0;if(0===t.type.indexOf(\"MSPointer\")&&(o=!0),\"mousedown\"===t.type&&!t.buttons&&!t.touches)return!1;if(n){var l=function(e){var n=e.target;return n===r||r.contains(n)||t.composed&&t.composedPath().shift()===r};if(\"touchstart\"===t.type){var u=Array.prototype.filter.call(t.touches,l);if(u.length>1)return!1;s=u[0].pageX,a=u[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,l);if(!c)return!1;s=c.pageX,a=c.pageY}}return e=e||h(M),(i||o)&&(s=t.clientX+e.x,a=t.clientY+e.y),t.pageOffset=e,t.points=[s,a],t.cursor=i||o,t}(o,i.pageOffset,i.target||e);return!!l&&!(H()&&!i.doNotReject)&&(s=w,a=r.cssClasses.tap,!((s.classList?s.classList.contains(a):new RegExp(\"\\\\b\"+a+\"\\\\b\").test(s.className))&&!i.doNotReject)&&!(t===x.start&&void 0!==l.buttons&&l.buttons>1)&&(!i.hover||!l.buttons)&&(y||l.preventDefault(),l.calcPoint=l.points[r.ort],void n(l,i)))},s=[];return t.split(\" \").forEach((function(t){e.addEventListener(t,o,!!y&&{passive:!0}),s.push([t,o])})),s}function J(t){var e,n,i,o,s,l,c=100*(t-(e=a,n=r.ort,i=e.getBoundingClientRect(),o=e.ownerDocument,s=o.documentElement,l=h(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),n?i.top+l.y-s.clientTop:i.left+l.x-s.clientLeft))/W();return c=u(c),r.dir?100-c:c}function K(t,e){\"mouseout\"===t.type&&\"HTML\"===t.target.nodeName&&null===t.relatedTarget&&Z(t,e)}function Q(t,e){if(-1===navigator.appVersion.indexOf(\"MSIE 9\")&&0===t.buttons&&0!==e.buttonsProperty)return Z(t,e);var n=(r.dir?-1:1)*(t.calcPoint-e.startCalcPoint);lt(n>0,100*n/e.baseSize,e.locations,e.handleNumbers,e.connect)}function Z(t,e){e.handle&&(d(e.handle,r.cssClasses.active),A-=1),e.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===A&&(d(w,r.cssClasses.drag),ct(),t.cursor&&(D.style.cursor=\"\",D.removeEventListener(\"selectstart\",s))),r.events.smoothSteps&&(e.handleNumbers.forEach((function(t){pt(t,N[t],!0,!0,!1,!1)})),e.handleNumbers.forEach((function(t){ot(\"update\",t)}))),e.handleNumbers.forEach((function(t){ot(\"change\",t),ot(\"set\",t),ot(\"end\",t)}))}function tt(t,e){if(!e.handleNumbers.some(F)){var n;1===e.handleNumbers.length&&(n=p[e.handleNumbers[0]].children[0],A+=1,f(n,r.cssClasses.active)),t.stopPropagation();var i=[],o=G(x.move,U,Q,{target:t.target,handle:n,connect:e.connect,listeners:i,startCalcPoint:t.calcPoint,baseSize:W(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:N.slice()}),a=G(x.end,U,Z,{target:t.target,handle:n,listeners:i,doNotReject:!0,handleNumbers:e.handleNumbers}),l=G(\"mouseout\",U,K,{target:t.target,handle:n,listeners:i,doNotReject:!0,handleNumbers:e.handleNumbers});i.push.apply(i,o.concat(a,l)),t.cursor&&(D.style.cursor=getComputedStyle(t.target).cursor,p.length>1&&f(w,r.cssClasses.drag),D.addEventListener(\"selectstart\",s,!1)),e.handleNumbers.forEach((function(t){ot(\"start\",t)}))}}function et(t){t.stopPropagation();var e=J(t.calcPoint),n=function(t){var e=100,r=!1;return p.forEach((function(n,i){if(!F(i)){var o=N[i],s=Math.abs(o-t);(s<e||s<=e&&t>o||100===s&&100===e)&&(r=i,e=s)}})),r}(e);!1!==n&&(r.events.snap||l(w,r.cssClasses.tap,r.animationDuration),pt(n,e,!0,!0),ct(),ot(\"slide\",n,!0),ot(\"update\",n,!0),r.events.snap?tt(t,{handleNumbers:[n]}):(ot(\"change\",n,!0),ot(\"set\",n,!0)))}function rt(t){var e=J(t.calcPoint),r=P.getStep(e),n=P.fromStepping(r);Object.keys(k).forEach((function(t){\"hover\"===t.split(\".\")[0]&&k[t].forEach((function(t){t.call(vt,n)}))}))}function nt(t,e){k[t]=k[t]||[],k[t].push(e),\"update\"===t.split(\".\")[0]&&p.forEach((function(t,e){ot(\"update\",e)}))}function it(t){var e=t&&t.split(\".\")[0],r=e?t.substring(e.length):t;Object.keys(k).forEach((function(t){var n=t.split(\".\")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||function(t){return t===E.aria||t===E.tooltips}(i)&&r!==i||delete k[t]}))}function ot(t,e,n){Object.keys(k).forEach((function(i){var o=i.split(\".\")[0];t===o&&k[i].forEach((function(t){t.call(vt,C.map(r.format.to),e,C.slice(),n||!1,N.slice(),vt)}))}))}function st(t,e,n,i,o,s,a){var l;return p.length>1&&!r.events.unconstrained&&(i&&e>0&&(l=P.getAbsoluteDistance(t[e-1],r.margin,!1),n=Math.max(n,l)),o&&e<p.length-1&&(l=P.getAbsoluteDistance(t[e+1],r.margin,!0),n=Math.min(n,l))),p.length>1&&r.limit&&(i&&e>0&&(l=P.getAbsoluteDistance(t[e-1],r.limit,!1),n=Math.min(n,l)),o&&e<p.length-1&&(l=P.getAbsoluteDistance(t[e+1],r.limit,!0),n=Math.max(n,l))),r.padding&&(0===e&&(l=P.getAbsoluteDistance(0,r.padding[0],!1),n=Math.max(n,l)),e===p.length-1&&(l=P.getAbsoluteDistance(100,r.padding[1],!0),n=Math.min(n,l))),a||(n=P.getStep(n)),!((n=u(n))===t[e]&&!s)&&n}function at(t,e){var n=r.ort;return(n?e:t)+\", \"+(n?t:e)}function lt(t,e,n,i,o){var s=n.slice(),a=i[0],l=r.events.smoothSteps,u=[!t,t],c=[t,!t];i=i.slice(),t&&i.reverse(),i.length>1?i.forEach((function(t,r){var n=st(s,t,s[t]+e,u[r],c[r],!1,l);!1===n?e=0:(e=n-s[t],s[t]=n)})):u=c=[!0];var p=!1;i.forEach((function(t,r){p=pt(t,n[t]+e,u[r],c[r],!1,l)||p})),p&&(i.forEach((function(t){ot(\"update\",t),ot(\"slide\",t)})),null!=o&&ot(\"drag\",a))}function ut(t,e){return r.dir?100-t-e:t}function ct(){V.forEach((function(t){var e=N[t]>50?-1:1,r=3+(p.length+e*t);p[t].style.zIndex=String(r)}))}function pt(t,e,n,i,o,s){return o||(e=st(N,t,e,n,i,!1,s)),!1!==e&&(function(t,e){N[t]=e,C[t]=P.fromStepping(e);var n=\"translate(\"+at(ut(e,0)-O+\"%\",\"0\")+\")\";p[t].style[r.transformRule]=n,ft(t),ft(t+1)}(t,e),!0)}function ft(t){if(m[t]){var e=0,n=100;0!==t&&(e=N[t-1]),t!==m.length-1&&(n=N[t]);var i=n-e,o=\"translate(\"+at(ut(e,i)+\"%\",\"0\")+\")\",s=\"scale(\"+at(i/100,\"1\")+\")\";m[t].style[r.transformRule]=o+\" \"+s}}function dt(t,e){return null===t||!1===t||void 0===t?N[e]:(\"number\"==typeof t&&(t=String(t)),!1!==(t=r.format.from(t))&&(t=P.toStepping(t)),!1===t||isNaN(t)?N[e]:t)}function ht(t,e,n){var i=c(t),o=void 0===N[0];e=void 0===e||e,r.animate&&!o&&l(w,r.cssClasses.tap,r.animationDuration),V.forEach((function(t){pt(t,dt(i[t],t),!0,!1,n)}));var s=1===V.length?0:1;if(o&&P.hasNoSize()&&(n=!0,N[0]=0,V.length>1)){var a=100/(V.length-1);V.forEach((function(t){N[t]=t*a}))}for(;s<V.length;++s)V.forEach((function(t){pt(t,N[t],!0,!0,n)}));ct(),V.forEach((function(t){ot(\"update\",t),null!==i[t]&&e&&ot(\"set\",t)}))}function mt(t){if(void 0===t&&(t=!1),t)return 1===C.length?C[0]:C.slice(0);var e=C.map(r.format.to);return 1===e.length?e[0]:e}function gt(t){var e=N[t],n=P.getNearbySteps(e),i=C[t],o=n.thisStep.step,s=null;if(r.snap)return[i-n.stepBefore.startValue||null,n.stepAfter.startValue-i||null];!1!==o&&i+o>n.stepAfter.startValue&&(o=n.stepAfter.startValue-i),s=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===e?o=null:0===e&&(s=null);var a=P.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,o]}f(b=w,r.cssClasses.target),0===r.dir?f(b,r.cssClasses.ltr):f(b,r.cssClasses.rtl),0===r.ort?f(b,r.cssClasses.horizontal):f(b,r.cssClasses.vertical),f(b,\"rtl\"===getComputedStyle(b).direction?r.cssClasses.textDirectionRtl:r.cssClasses.textDirectionLtr),a=L(b,r.cssClasses.base),function(t,e){var n=L(e,r.cssClasses.connects);p=[],(m=[]).push(j(n,t[0]));for(var i=0;i<r.handles;i++)p.push(T(e,i)),V[i]=i,m.push(j(n,t[i+1]))}(r.connect,a),(S=r.events).fixed||p.forEach((function(t,e){G(x.start,t.children[0],tt,{handleNumbers:[e]})})),S.tap&&G(x.start,a,et,{}),S.hover&&G(x.move,a,rt,{hover:!0}),S.drag&&m.forEach((function(t,e){if(!1!==t&&0!==e&&e!==m.length-1){var n=p[e-1],i=p[e],o=[t],s=[n,i],a=[e-1,e];f(t,r.cssClasses.draggable),S.fixed&&(o.push(n.children[0]),o.push(i.children[0])),S.dragAll&&(s=p,a=V),o.forEach((function(e){G(x.start,e,tt,{handles:s,handleNumbers:a,connect:t})}))}})),ht(r.start),r.pips&&I(r.pips),r.tooltips&&_(),it(\"update\"+E.aria),nt(\"update\"+E.aria,(function(t,e,n,i,o){V.forEach((function(t){var e=p[t],i=st(N,t,0,!0,!0,!0),s=st(N,t,100,!0,!0,!0),a=o[t],l=String(r.ariaFormat.to(n[t]));i=P.fromStepping(i).toFixed(1),s=P.fromStepping(s).toFixed(1),a=P.fromStepping(a).toFixed(1),e.children[0].setAttribute(\"aria-valuemin\",i),e.children[0].setAttribute(\"aria-valuemax\",s),e.children[0].setAttribute(\"aria-valuenow\",a),e.children[0].setAttribute(\"aria-valuetext\",l)}))}));var vt={destroy:function(){for(it(E.aria),it(E.tooltips),Object.keys(r.cssClasses).forEach((function(t){d(w,r.cssClasses[t])}));w.firstChild;)w.removeChild(w.firstChild);delete w.noUiSlider},steps:function(){return V.map(gt)},on:nt,off:it,get:mt,set:ht,setHandle:function(t,e,r,n){if(!((t=Number(t))>=0&&t<V.length))throw new Error(\"noUiSlider: invalid handle number, got: \"+t);pt(t,dt(e,t),!0,!0,n),ot(\"update\",t),r&&ot(\"set\",t)},reset:function(t){ht(r.start,t)},disable:function(t){null!=t?(p[t].setAttribute(\"disabled\",\"\"),p[t].handle.removeAttribute(\"tabindex\")):(w.setAttribute(\"disabled\",\"\"),p.forEach((function(t){t.handle.removeAttribute(\"tabindex\")})))},enable:function(t){null!=t?(p[t].removeAttribute(\"disabled\"),p[t].handle.setAttribute(\"tabindex\",\"0\")):(w.removeAttribute(\"disabled\"),p.forEach((function(t){t.removeAttribute(\"disabled\"),t.handle.setAttribute(\"tabindex\",\"0\")})))},__moveHandles:function(t,e,r){lt(t,e,N,r)},options:n,updateOptions:function(t,e){var i=mt(),s=[\"margin\",\"limit\",\"padding\",\"range\",\"animate\",\"snap\",\"step\",\"format\",\"pips\",\"tooltips\"];s.forEach((function(e){void 0!==t[e]&&(n[e]=t[e])}));var a=$(n);s.forEach((function(e){void 0!==t[e]&&(r[e]=a[e])})),P=a.spectrum,r.margin=a.margin,r.limit=a.limit,r.padding=a.padding,r.pips?I(r.pips):Y(),r.tooltips?_():R(),N=[],ht(o(t.start)?t.start:i,e)},target:w,removePips:Y,removeTooltips:R,getPositions:function(){return N.slice()},getTooltips:function(){return v},getOrigins:function(){return p},pips:I};return vt}function J(t,e){if(!t||!t.nodeName)throw new Error(\"noUiSlider: create requires a single element, got: \"+t);if(t.noUiSlider)throw new Error(\"noUiSlider: Slider was already initialized.\");var r=G(t,$(e),e);return t.noUiSlider=r,r}var K={__spectrum:x,cssClasses:w,create:J};t.create=J,t.cssClasses=w,t.default=K,Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&void 0!==e?s(r):\"function\"==typeof define&&define.amd?define([\"exports\"],s):s((o=\"undefined\"!=typeof globalThis?globalThis:o||self).noUiSlider={})},\n 586: function _(e,l,i,t,d){t(),i.slider_title=\"bk-slider-title\",i.slider_value=\"bk-slider-value\",i.default=\".bk-slider-title{white-space:nowrap;}.bk-slider-value{font-weight:600;}\"},\n 587: function _(i,o,t,n,r){n(),t.default='.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box;}.noUi-target{position:relative;}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1;}.noUi-connects{overflow:hidden;z-index:0;}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat;}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto;}.noUi-vertical .noUi-origin{top:-100%;width:0;}.noUi-horizontal .noUi-origin{height:0;}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute;}.noUi-touch-area{height:100%;width:100%;}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform 0.3s;transition:transform 0.3s;}.noUi-state-drag *{cursor:inherit !important;}.noUi-horizontal{height:18px;}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px;}.noUi-vertical{width:18px;}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px;}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto;}.noUi-target{background:#FAFAFA;border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;}.noUi-connects{border-radius:3px;}.noUi-connect{background:#3FB8AF;}.noUi-draggable{cursor:ew-resize;}.noUi-vertical .noUi-draggable{cursor:ns-resize;}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;}.noUi-active{box-shadow:inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;}.noUi-handle:before,.noUi-handle:after{content:\"\";display:block;position:absolute;height:14px;width:1px;background:#E8E7E6;left:14px;top:6px;}.noUi-handle:after{left:17px;}.noUi-vertical .noUi-handle:before,.noUi-vertical .noUi-handle:after{width:14px;height:1px;left:6px;top:14px;}.noUi-vertical .noUi-handle:after{top:17px;}[disabled] .noUi-connect{background:#B8B8B8;}[disabled].noUi-target,[disabled].noUi-handle,[disabled] .noUi-handle{cursor:not-allowed;}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box;}.noUi-pips{position:absolute;color:#999;}.noUi-value{position:absolute;white-space:nowrap;text-align:center;}.noUi-value-sub{color:#ccc;font-size:10px;}.noUi-marker{position:absolute;background:#CCC;}.noUi-marker-sub{background:#AAA;}.noUi-marker-large{background:#AAA;}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%;}.noUi-value-horizontal{-webkit-transform:translate(-50%, 50%);transform:translate(-50%, 50%);}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%, 50%);transform:translate(50%, 50%);}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px;}.noUi-marker-horizontal.noUi-marker-sub{height:10px;}.noUi-marker-horizontal.noUi-marker-large{height:15px;}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%;}.noUi-value-vertical{-webkit-transform:translate(0, -50%);transform:translate(0, -50%);padding-left:25px;}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0, 50%);transform:translate(0, 50%);}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px;}.noUi-marker-vertical.noUi-marker-sub{width:10px;}.noUi-marker-vertical.noUi-marker-large{width:15px;}.noUi-tooltip{display:block;position:absolute;border:1px solid #D9D9D9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap;}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0);left:50%;bottom:120%;}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0, -50%);transform:translate(0, -50%);top:50%;right:120%;}.noUi-horizontal .noUi-origin > .noUi-tooltip{-webkit-transform:translate(50%, 0);transform:translate(50%, 0);left:auto;bottom:10px;}.noUi-vertical .noUi-origin > .noUi-tooltip{-webkit-transform:translate(0, -18px);transform:translate(0, -18px);top:auto;right:28px;}.noUi-handle{cursor:grab;cursor:-webkit-grab;}.noUi-handle.noUi-active{cursor:grabbing;cursor:-webkit-grabbing;}.noUi-handle:after,.noUi-handle:before{display:none;}.noUi-tooltip{display:none;white-space:nowrap;}.noUi-handle:hover .noUi-tooltip{display:block;}:host{--slider-size:10px;--handle-width:14px;--handle-height:18px;--handle-right:calc(-1*var(--handle-width)/2);--handle-top:calc(-1*(var(--handle-height) - var(--slider-size))/2 - 1px);--slider-margin:calc((var(--handle-height) - var(--slider-size))/2 + 1px);}.noUi-horizontal{width:100%;height:var(--slider-size);}.noUi-vertical{width:var(--slider-size);height:100%;}.noUi-horizontal .noUi-handle{width:var(--handle-width);height:var(--handle-height);right:var(--handle-right);top:var(--handle-top);}.noUi-vertical .noUi-handle{width:var(--handle-height);height:var(--handle-width);right:var(--handle-top);top:var(--handle-right);}.noUi-target.noUi-horizontal{margin:var(--slider-margin) 0px;}.noUi-target.noUi-vertical{margin:0px var(--slider-margin);}'},\n 588: function _(e,t,r,a,s){var i;a();const d=e(1).__importDefault(e(173)),n=e(584),o=e(8);class l extends n.AbstractSliderView{_calc_to(){const{start:e,end:t,value:r,step:a}=this.model;return{start:e,end:t,value:[r],step:864e5*a}}}r.DateSliderView=l,l.__name__=\"DateSliderView\";class _ extends n.AbstractSlider{constructor(e){super(e),this.behaviour=\"tap\",this.connected=[!0,!1]}_formatter(e,t){return(0,o.isString)(t)?(0,d.default)(e,t):t.compute(e)}}r.DateSlider=_,i=_,_.__name__=\"DateSlider\",i.prototype.default_view=l,i.override({format:\"%d %b %Y\"})},\n 589: function _(e,t,r,a,i){var n;a();const s=e(1).__importDefault(e(173)),d=e(584),o=e(8);class _ extends d.AbstractRangeSliderView{}r.DatetimeRangeSliderView=_,_.__name__=\"DatetimeRangeSliderView\";class c extends d.AbstractSlider{constructor(e){super(e),this.behaviour=\"drag\",this.connected=[!1,!0,!1]}_formatter(e,t){return(0,o.isString)(t)?(0,s.default)(e,t):t.compute(e)}}r.DatetimeRangeSlider=c,n=c,c.__name__=\"DatetimeRangeSlider\",n.prototype.default_view=_,n.override({format:\"%d %b %Y %H:%M:%S\",step:36e5})},\n 590: function _(e,t,s,i,r){var _;i();const n=e(591);class a extends n.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.has_math_disabled()?this.model.text:this.process_tex(this.model.text)}}s.DivView=a,a.__name__=\"DivView\";class d extends n.Markup{constructor(e){super(e)}}s.Div=d,_=d,d.__name__=\"Div\",_.prototype.default_view=a,_.define((({Boolean:e})=>({render_as_text:[e,!1]})))},\n 591: function _(t,e,s,i,r){var a;i();const n=t(1),d=t(56),h=t(640),o=n.__importStar(t(592));class _ extends h.WidgetView{constructor(){super(...arguments),this._auto_width=\"fit-content\",this._auto_height=\"auto\"}async lazy_initialize(){await super.lazy_initialize(),\"not_started\"!=this.provider.status&&\"loading\"!=this.provider.status||this.provider.ready.connect((()=>{this.contains_tex_string(this.model.text)&&this.rerender()}))}has_math_disabled(){return this.model.disable_math||!this.contains_tex_string(this.model.text)}rerender(){this.render()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.rerender()}))}stylesheets(){return[...super.stylesheets(),o.default,\"p { margin: 0; }\"]}render(){super.render(),this.markup_el=(0,d.div)({class:o.clearfix,style:{display:\"inline-block\"}}),this.shadow_el.appendChild(this.markup_el),\"failed\"!=this.provider.status&&\"loaded\"!=this.provider.status||(this._has_finished=!0)}}s.MarkupView=_,_.__name__=\"MarkupView\";class l extends h.Widget{constructor(t){super(t)}}s.Markup=l,a=l,l.__name__=\"Markup\",a.define((({Boolean:t,String:e})=>({text:[e,\"\"],disable_math:[t,!1]})))},\n 592: function _(e,a,f,l,r){l(),f.clearfix=\"bk-clearfix\",f.default='.bk-clearfix:before,.bk-clearfix:after{content:\"\";display:table;}.bk-clearfix:after{clear:both;}'},\n 593: function _(e,t,i,s,n){var o;s();const l=e(1),r=e(544),d=e(52),_=e(56),u=e(8),h=l.__importStar(e(547)),c=l.__importStar(e(553)),p=c,m=l.__importStar(e(594)),a=m;class g extends r.AbstractButtonView{constructor(){super(...arguments),this._open=!1}stylesheets(){return[...super.stylesheets(),c.default,m.default]}render(){super.render();const e=(0,_.div)({class:[a.caret,a.down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(h.dropdown_toggle),t.addEventListener(\"click\",(()=>this._toggle_menu())),this.group_el.appendChild(t)}else this.button_el.appendChild(e);const t=this.model.menu.map(((e,t)=>{if(null==e)return(0,_.div)({class:p.divider});{const i=(0,u.isString)(e)?e:e[0],s=(0,_.div)(i);return s.addEventListener(\"click\",(()=>this._item_click(t))),s}}));this.menu=(0,_.div)({class:[p.menu,p.below]},t),this.shadow_el.appendChild(this.menu),(0,_.undisplay)(this.menu)}_show_menu(){if(!this._open){this._open=!0,(0,_.display)(this.menu);const e=t=>{t.composedPath().includes(this.el)||(document.removeEventListener(\"click\",e),this._hide_menu())};document.addEventListener(\"click\",e)}}_hide_menu(){this._open&&(this._open=!1,(0,_.undisplay)(this.menu))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new d.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=(0,u.isString)(t)?t:t[1];(0,u.isString)(i)?this.model.trigger_event(new d.MenuItemClick(i)):i.execute(this.model,{index:e})}}}i.DropdownView=g,g.__name__=\"DropdownView\";class w extends r.AbstractButton{constructor(e){super(e)}get is_split(){return this.split}}i.Dropdown=w,o=w,w.__name__=\"Dropdown\",o.prototype.default_view=g,o.define((({Null:e,Boolean:t,String:i,Array:s,Tuple:n,Or:o})=>({split:[t,!1],menu:[s(o(i,n(i,o(i)),e)),[]]}))),o.override({label:\"Dropdown\"})},\n 594: function _(t,r,e,a,d){a(),e.caret=\"bk-caret\",e.down=\"bk-down\",e.up=\"bk-up\",e.left=\"bk-left\",e.right=\"bk-right\",e.default=\":host{--caret-width:4px;}.bk-caret{display:inline-block;vertical-align:middle;width:0;height:0;margin:0 5px;}.bk-caret.bk-down{border-top:var(--caret-width) solid;}.bk-caret.bk-up{border-bottom:var(--caret-width) solid;}.bk-caret.bk-down,.bk-caret.bk-up{border-right:var(--caret-width) solid transparent;border-left:var(--caret-width) solid transparent;}.bk-caret.bk-left{border-right:var(--caret-width) solid;}.bk-caret.bk-right{border-left:var(--caret-width) solid;}.bk-caret.bk-left,.bk-caret.bk-right{border-top:var(--caret-width) solid transparent;border-bottom:var(--caret-width) solid transparent;}\"},\n 595: function _(e,t,n,l,i){var s;l();const r=e(1),a=e(551),u=e(56),o=e(8),p=r.__importStar(e(17)),d=r.__importStar(e(552)),_=r.__importDefault(e(547));class c extends a.InputWidgetView{stylesheets(){return[...super.stylesheets(),_.default]}render(){super.render();const{multiple:e,disabled:t}=this.model,n=(()=>{const{accept:e}=this.model;return(0,o.isString)(e)?e:e.join(\",\")})();this.input_el=(0,u.input)({type:\"file\",class:d.input,multiple:e,accept:n,disabled:t}),this.group_el.appendChild(this.input_el),this.input_el.addEventListener(\"change\",(()=>{const{files:e}=this.input_el;null!=e&&this.load_files(e)}))}async load_files(e){const t=[],n=[],l=[];for(const i of e){const e=await this._read_file(i),[,s=\"\",,r=\"\"]=e.split(/[:;,]/,4);t.push(r),n.push(i.name),l.push(s)}const[i,s,r]=(()=>this.model.multiple?[t,n,l]:0!=e.length?[t[0],n[0],l[0]]:[\"\",\"\",\"\"])();this.model.setv({value:i,filename:s,mime_type:r})}_read_file(e){return new Promise(((t,n)=>{const l=new FileReader;l.onload=()=>{var i;const{result:s}=l;null!=s?t(s):n(null!==(i=l.error)&&void 0!==i?i:new Error(`unable to read '${e.name}'`))},l.readAsDataURL(e)}))}}n.FileInputView=c,c.__name__=\"FileInputView\";class m extends a.InputWidget{constructor(e){super(e)}}n.FileInput=m,s=m,m.__name__=\"FileInput\",s.prototype.default_view=c,s.define((({Boolean:e,String:t,Array:n,Or:l})=>({value:[l(t,n(t)),p.unset,{readonly:!0}],mime_type:[l(t,n(t)),p.unset,{readonly:!0}],filename:[l(t,n(t)),p.unset,{readonly:!0}],accept:[l(t,n(t)),\"\"],multiple:[e,!1]})))},\n 596: function _(e,t,i,o,n){var s;o();const l=e(544),d=e(448),r=e(438),a=e(59);class p extends l.AbstractButtonView{*children(){yield*super.children(),yield this.tooltip}async lazy_initialize(){await super.lazy_initialize();const{tooltip:e}=this.model;this.tooltip=await(0,a.build_view)(e,{parent:this})}remove(){this.tooltip.remove(),super.remove()}render(){super.render();let e=!1;const t=t=>{this.tooltip.model.setv({visible:t,closable:e})};this.on_change(this.tooltip.model.properties.visible,(()=>{const{visible:i}=this.tooltip.model;i||(e=!1),t(i)})),this.el.addEventListener(\"mouseenter\",(()=>{t(!0)})),this.el.addEventListener(\"mouseleave\",(()=>{e||t(!1)})),document.addEventListener(\"mousedown\",(i=>{const o=i.composedPath();o.includes(this.tooltip.el)||(o.includes(this.el)?(e=!e,t(e)):(e=!1,t(!1)))})),window.addEventListener(\"blur\",(()=>{e=!1,t(!1)}))}}i.HelpButtonView=p,p.__name__=\"HelpButtonView\";class u extends l.AbstractButton{constructor(e){super(e)}}i.HelpButton=u,s=u,u.__name__=\"HelpButton\",s.prototype.default_view=p,s.define((({Ref:e})=>({tooltip:[e(d.Tooltip)]}))),s.override({label:\"\",icon:new r.BuiltinIcon({icon_name:\"help\",size:18}),button_type:\"default\"})},\n 597: function _(e,t,s,i,n){var l;i();const o=e(1),r=e(56),c=e(8),h=e(551),d=o.__importStar(e(552));class p extends h.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,(()=>this.render_selection())),this.connect(this.model.properties.options.change,(()=>this.render())),this.connect(this.model.properties.name.change,(()=>this.render())),this.connect(this.model.properties.title.change,(()=>this.render())),this.connect(this.model.properties.size.change,(()=>this.render())),this.connect(this.model.properties.disabled.change,(()=>this.render()))}render(){super.render();const e=this.model.options.map((e=>{let t,s;return(0,c.isString)(e)?t=s=e:[t,s]=e,(0,r.option)({value:t},s)}));this.input_el=(0,r.select)({multiple:!0,class:d.input,name:this.model.name,disabled:this.model.disabled},e),this.input_el.addEventListener(\"change\",(()=>this.change_input())),this.group_el.appendChild(this.input_el),this.render_selection()}render_selection(){const e=new Set(this.model.value);for(const t of this.shadow_el.querySelectorAll(\"option\"))t.selected=e.has(t.value);this.input_el.size=this.model.size}change_input(){const e=null!=this.shadow_el.querySelector(\"select:focus\"),t=[];for(const e of this.shadow_el.querySelectorAll(\"option\"))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.input_el.focus()}}s.MultiSelectView=p,p.__name__=\"MultiSelectView\";class a extends h.InputWidget{constructor(e){super(e)}}s.MultiSelect=a,l=a,a.__name__=\"MultiSelect\",l.prototype.default_view=p,l.define((({Int:e,String:t,Array:s,Tuple:i,Or:n})=>({value:[s(t),[]],options:[s(n(t,i(t,t))),[]],size:[e,4]})))},\n 598: function _(e,a,t,r,s){var n;r();const p=e(591),i=e(56);class _ extends p.MarkupView{render(){super.render();const e=(0,i.p)({style:{margin:0}});this.has_math_disabled()?e.textContent=this.model.text:e.innerHTML=this.process_tex(this.model.text),this.markup_el.appendChild(e)}}t.ParagraphView=_,_.__name__=\"ParagraphView\";class h extends p.Markup{constructor(e){super(e)}}t.Paragraph=h,n=h,h.__name__=\"Paragraph\",n.prototype.default_view=_},\n 599: function _(e,t,s,l,n){var o;l();const p=e(1),r=e(549),a=e(56),i=p.__importDefault(e(600)),_=p.__importDefault(e(269));class u extends r.TextInputView{stylesheets(){return[...super.stylesheets(),i.default,_.default]}render(){super.render(),this.input_el.type=\"password\",this.toggle_el=(0,a.div)({class:\"bk-toggle\"}),this.toggle_el.addEventListener(\"click\",(()=>{const{input_el:e,toggle_el:t}=this,s=\"text\"==e.type;t.classList.toggle(\"bk-visible\",!s),e.type=s?\"password\":\"text\"})),this.shadow_el.append(this.toggle_el)}}s.PasswordInputView=u,u.__name__=\"PasswordInputView\";class d extends r.TextInput{constructor(e){super(e)}}s.PasswordInput=d,o=d,d.__name__=\"PasswordInput\",o.prototype.default_view=u},\n 600: function _(e,i,o,t,g){t(),o.input=\"bk-input\",o.toggle=\"bk-toggle\",o.visible=\"bk-visible\",o.default=\":host{--toggle-size:14px;--toggle-padding:4px;--toggle-width:calc(var(--toggle-size) + 2*var(--toggle-padding));}.bk-input{padding-right:max(var(--padding-horizontal), var(--toggle-width));}.bk-toggle{position:absolute;right:0;top:0;width:var(--toggle-width);height:100%;padding:0 var(--toggle-padding);background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-off);-webkit-mask-image:var(--bokeh-icon-see-off);mask-size:var(--toggle-size) var(--toggle-size);-webkit-mask-size:var(--toggle-size) var(--toggle-size);mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;cursor:pointer;}.bk-toggle.bk-visible{mask-image:var(--bokeh-icon-see-on);-webkit-mask-image:var(--bokeh-icon-see-on);}\"},\n 601: function _(e,t,i,l,o){var s;l();const n=e(1),u=n.__importDefault(e(602)),_=e(56),r=e(8),a=e(25),h=n.__importStar(e(552)),c=n.__importDefault(e(603)),d=e(551);function p(e){return Object.defineProperty(e,\"target\",{get:()=>{var t;return null!==(t=e.composedPath()[0])&&void 0!==t?t:null},configurable:!0}),e}class m extends u.default{_onFocus(e){super._onFocus(p(e))}_onBlur(e){super._onBlur(p(e))}_onKeyUp(e){super._onKeyUp(p(e))}_onKeyDown(e){super._onKeyDown(p(e))}_onClick(e){super._onClick(p(e))}_onTouchEnd(e){super._onTouchEnd(p(e))}_onMouseDown(e){super._onMouseDown(p(e))}_onMouseOver(e){super._onMouseOver(p(e))}}m.__name__=\"OurChoices\";class v extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.disabled.change,(()=>this.set_disabled()));const{value:e,max_items:t,option_limit:i,search_option_limit:l,delete_button:o,placeholder:s,options:n,name:u,title:_}=this.model.properties;this.on_change([t,i,l,o,s,n,u,_],(()=>this.render())),this.on_change(e,(()=>{(0,a.is_equal)(this.model.value,this._current_values)||this.render()}))}stylesheets(){return[...super.stylesheets(),c.default]}render(){var e,t,i;super.render(),this.input_el=(0,_.select)({multiple:!0,class:h.input,name:this.model.name,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el);const l=new Set(this.model.value),o=this.model.options.map((e=>{let t,i;return(0,r.isString)(e)?t=i=e:[t,i]=e,{value:t,label:i,selected:l.has(t)}})),s=this.model.solid?\"solid\":\"light\",n=`choices__item ${s}`,u=`choices__button ${s}`,a={choices:o,itemSelectText:\"\",duplicateItemsAllowed:!1,shouldSort:!1,removeItemButton:this.model.delete_button,classNames:{item:n,button:u},placeholderValue:this.model.placeholder,maxItemCount:null!==(e=this.model.max_items)&&void 0!==e?e:-1,renderChoiceLimit:null!==(t=this.model.option_limit)&&void 0!==t?t:-1,searchResultLimit:null!==(i=this.model.search_option_limit)&&void 0!==i?i:4};this.choice_el=new m(this.input_el,a),this.input_el.addEventListener(\"change\",(()=>this.change_input()))}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}get _current_values(){return this.choice_el.getValue().map((e=>e.value))}change_input(){this.model.value=this._current_values,super.change_input()}}i.MultiChoiceView=v,v.__name__=\"MultiChoiceView\";class g extends d.InputWidget{constructor(e){super(e)}}i.MultiChoice=g,s=g,g.__name__=\"MultiChoice\",s.prototype.default_view=v,s.define((({Boolean:e,Int:t,String:i,Array:l,Tuple:o,Or:s,Nullable:n})=>({value:[l(i),[]],options:[l(s(i,o(i,i))),[]],max_items:[n(t),null],delete_button:[e,!0],placeholder:[n(i),null],option_limit:[n(t),null],search_option_limit:[n(t),null],solid:[e,!0]})))},\n 602: function _(e,t,i,n,r){\n /*! choices.js v10.2.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */\n var s,o;s=window,o=function(){return function(){\"use strict\";var e={282:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var n=i(883);t.addChoice=function(e){var t=e.value,i=e.label,r=e.id,s=e.groupId,o=e.disabled,a=e.elementId,c=e.customProperties,l=e.placeholder,h=e.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:t,label:i,id:r,groupId:s,disabled:o,elementId:a,customProperties:c,placeholder:l,keyCode:h}},t.filterChoices=function(e){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.addGroup=void 0;var n=i(883);t.addGroup=function(e){var t=e.value,i=e.id,r=e.active,s=e.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:t,id:i,active:r,disabled:s}}},464:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var n=i(883);t.addItem=function(e){var t=e.value,i=e.label,r=e.id,s=e.choiceId,o=e.groupId,a=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:t,label:i,id:r,choiceId:s,groupId:o,customProperties:a,placeholder:c,keyCode:l}},t.removeItem=function(e,t){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var n=i(883);t.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:n.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,i){var n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var s=r(i(996)),o=r(i(221)),a=i(282),c=i(783),l=i(464),h=i(137),u=i(520),d=i(883),p=i(789),f=i(799),m=i(655),v=r(i(744)),g=r(i(686)),_=\"-ms-scroll-limit\"in document.documentElement.style&&\"-ms-ime-align\"in document.documentElement.style,y={},E=function(){function e(t,i){void 0===t&&(t=\"[data-choice]\"),void 0===i&&(i={});var r=this;void 0===i.allowHTML&&console.warn(\"Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message.\"),this.config=s.default.all([p.DEFAULT_CONFIG,e.defaults.options,i],{arrayMerge:function(e,t){return n([],t,!0)}});var o=(0,f.diff)(this.config,p.DEFAULT_CONFIG);o.length&&console.warn(\"Unknown config option(s) passed\",o.join(\", \"));var a=\"string\"==typeof t?document.querySelector(t):t;if(!(a instanceof HTMLInputElement||a instanceof HTMLSelectElement))throw TypeError(\"Expected one of the following types text|select-one|select-multiple\");if(this._isTextElement=a.type===d.TEXT_TYPE,this._isSelectOneElement=a.type===d.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===d.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,[\"auto\",\"always\"].includes(\"\".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices=\"auto\"),i.addItemFilter&&\"function\"!=typeof i.addItemFilter){var c=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);this.config.addItemFilter=c.test.bind(c)}if(this._isTextElement?this.passedElement=new u.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new u.WrappedSelect({element:a,classNames:this.config.classNames,template:function(e){return r._templates.option(e)}}),this.initialised=!1,this._store=new v.default,this._initialState=m.defaultState,this._currentState=m.defaultState,this._prevState=m.defaultState,this._currentValue=\"\",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,f.generateId)(this.passedElement.element,\"choices-\"),this._direction=this.passedElement.dir,!this._direction){var l=window.getComputedStyle(this.passedElement.element).direction;l!==window.getComputedStyle(document.documentElement).direction&&(this._direction=l)}if(this._idNames={itemChoice:\"item-choice\"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var h=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(h)}if(this.passedElement.options&&this.passedElement.options.forEach((function(e){r._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:\"\"===e.value||e.hasAttribute(\"placeholder\"),customProperties:(0,f.parseCustomProperties)(e.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn(\"Trying to initialise Choices on element already initialised\",{element:t}),void(this.initialised=!0);this.init()}return Object.defineProperty(e,\"defaults\",{get:function(){return Object.preventExtensions({get options(){return y},get templates(){return g.default}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute(\"disabled\"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&\"function\"==typeof e&&e.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=g.default,this.initialised=!1)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var i=e.id,n=e.groupId,r=void 0===n?-1:n,s=e.value,o=void 0===s?\"\":s,a=e.label,c=void 0===a?\"\":a,h=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,l.highlightItem)(i,!0)),t&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:h&&h.value?h.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,i=e.groupId,n=void 0===i?-1:i,r=e.value,s=void 0===r?\"\":r,o=e.label,a=void 0===o?\"\":o,c=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,l.highlightItem)(t,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:t,value:s,label:a,groupValue:c&&c.value?c.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(d.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;return t.push(n),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,i,n){var r=this;if(void 0===e&&(e=[]),void 0===t&&(t=\"value\"),void 0===i&&(i=\"label\"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError(\"setChoices was called on a non-initialized instance of Choices\");if(!this._isSelectElement)throw new TypeError(\"setChoices can't be used with INPUT based Choices\");if(\"string\"!=typeof t||!t)throw new TypeError(\"value parameter must be a name of 'value' field in passed objects\");if(n&&this.clearChoices(),\"function\"==typeof e){var s=e(this);if(\"function\"==typeof Promise&&s instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return s})).then((function(e){return r.setChoices(e,t,i,n)})).catch((function(e){r.config.silent||console.error(e)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(s))throw new TypeError(\".setChoices first argument function must return either array of choices or Promise, got: \".concat(typeof s));return this.setChoices(s,t,i,!1)}if(!Array.isArray(e))throw new TypeError(\".setChoices must be called either with array of choices with a function resulting into Promise of array of choices\");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)r._addGroup({id:e.id?parseInt(\"\".concat(e.id),10):null,group:e,valueKey:t,labelKey:i});else{var n=e;r._addChoice({value:n[t],label:n[i],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,h.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,n=t.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var s=n.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));s.length>=1&&(r=this._createChoicesFragment(s,r)),r=this._createGroupsFragment(i,n,r)}else n.length>=1&&(r=this._createChoicesFragment(n,r));if(r.childNodes&&r.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,this.input.value);if(a.response)this.choiceList.append(r),this._highlightChoice();else{var c=this._getTemplate(\"notice\",a.notice);this.choiceList.append(c)}}else{var l=void 0;c=void 0,this._isSearching?(c=\"function\"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,l=this._getTemplate(\"notice\",c,\"no-results\")):(c=\"function\"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,l=this._getTemplate(\"notice\",c,\"no-choices\")),this.choiceList.append(l)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,i){var n=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var r=function(e){return t.filter((function(t){return n._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&(\"always\"===n.config.renderSelectedChoices||!t.selected)}))}(e);if(r.length>=1){var s=n._getTemplate(\"choiceGroup\",e);i.appendChild(s),n._createChoicesFragment(r,i,!0)}})),i},e.prototype._createChoicesFragment=function(e,t,i){var r=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,c=s.renderChoiceLimit,l=this._isSearching?f.sortByScore:this.config.sorter,h=function(e){if(\"auto\"!==o||r._isSelectOneElement||!e.selected){var i=r._getTemplate(\"choice\",e,r.config.itemSelectText);t.appendChild(i)}},u=e;\"auto\"!==o||this._isSelectOneElement||(u=e.filter((function(e){return!e.selected})));var d=u.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),p=d.placeholderChoices,m=d.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(l);var v=u.length,g=this._isSelectOneElement?n(n([],p,!0),m,!0):m;this._isSearching?v=a:c&&c>0&&!i&&(v=c);for(var _=0;_<v;_+=1)g[_]&&h(g[_]);return t},e.prototype._createItemsFragment=function(e,t){var i=this;void 0===t&&(t=document.createDocumentFragment());var n=this.config,r=n.shouldSortItems,s=n.sorter,o=n.removeItemButton;return r&&!this._isSelectOneElement&&e.sort(s),this._isTextElement?this.passedElement.value=e.map((function(e){return e.value})).join(this.config.delimiter):this.passedElement.options=e,e.forEach((function(e){var n=i._getTemplate(\"item\",e,o);t.appendChild(n)})),t},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(d.EVENTS.change,{value:e})},e.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var i=t.parentNode&&t.parentNode.dataset.id,n=i&&e.find((function(e){return e.id===parseInt(i,10)}));n&&(this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,t,i){var n=this;if(void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var r=t.dataset.id;e.forEach((function(e){e.id!==parseInt(\"\".concat(r),10)||e.highlighted?!i&&e.highlighted&&n.unhighlightItem(e):n.highlightItem(e)})),this.input.focus()}},e.prototype._handleChoiceAction=function(e,t){if(e&&t){var i=t.dataset.id,n=i&&this._store.getChoiceById(i);if(n){var r=e[0]&&e[0].keyCode?e[0].keyCode:void 0,s=this.dropdown.isActive;n.keyCode=r,this.passedElement.triggerEvent(d.EVENTS.choice,{choice:n}),n.selected||n.disabled||this._canAddItem(e,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),s&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some((function(e){return e.highlighted}));this.config.editItems&&!i&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},e.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(\".\".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate(\"placeholder\",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||\"\"):this.input.placeholder=this._placeholderValue||\"\")},e.prototype._handleSearch=function(e){if(this.input.isFocussed){var t=this._store.choices,i=this.config,n=i.searchFloor,r=i.searchChoices,s=t.some((function(e){return!e.active}));if(null!=e&&e.length>=n){var o=r?this._searchChoices(e):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:e,resultCount:o})}else s&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var i=!0,n=\"function\"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,f.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,n=\"function\"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&i&&(i=!1,n=\"function\"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&\"function\"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,n=\"function\"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:n}},e.prototype._searchChoices=function(e){var t=\"string\"==typeof e?e.trim():e,i=\"string\"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t===\"\".concat(i,\" \"))return 0;var r=this._store.searchableChoices,s=t,c=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,!0),includeMatches:!0}),l=new o.default(r,c).search(s);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(l)),l.length},e.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener(\"touchend\",this._onTouchEnd,!0),this.containerOuter.element.addEventListener(\"keydown\",this._onKeyDown,!0),this.containerOuter.element.addEventListener(\"mousedown\",this._onMouseDown,!0),e.addEventListener(\"click\",this._onClick,{passive:!0}),e.addEventListener(\"touchmove\",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener(\"mouseover\",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener(\"focus\",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener(\"blur\",this._onBlur,{passive:!0})),this.input.element.addEventListener(\"keyup\",this._onKeyUp,{passive:!0}),this.input.element.addEventListener(\"focus\",this._onFocus,{passive:!0}),this.input.element.addEventListener(\"blur\",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener(\"reset\",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener(\"touchend\",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener(\"keydown\",this._onKeyDown,!0),this.containerOuter.element.removeEventListener(\"mousedown\",this._onMouseDown,!0),e.removeEventListener(\"click\",this._onClick),e.removeEventListener(\"touchmove\",this._onTouchMove),this.dropdown.element.removeEventListener(\"mouseover\",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener(\"focus\",this._onFocus),this.containerOuter.element.removeEventListener(\"blur\",this._onBlur)),this.input.element.removeEventListener(\"keyup\",this._onKeyUp),this.input.element.removeEventListener(\"focus\",this._onFocus),this.input.element.removeEventListener(\"blur\",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener(\"reset\",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,i=this._store.activeItems,n=this.input.isFocussed,r=this.dropdown.isActive,s=this.itemList.hasChildren(),o=String.fromCharCode(t),a=/[^\\x00-\\x1F]/.test(o),c=d.KEY_CODES.BACK_KEY,l=d.KEY_CODES.DELETE_KEY,h=d.KEY_CODES.ENTER_KEY,u=d.KEY_CODES.A_KEY,p=d.KEY_CODES.ESC_KEY,f=d.KEY_CODES.UP_KEY,m=d.KEY_CODES.DOWN_KEY,v=d.KEY_CODES.PAGE_UP_KEY,g=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case u:return this._onSelectKey(e,s);case h:return this._onEnterKey(e,i,r);case p:return this._onEscapeKey(r);case f:case v:case m:case g:return this._onDirectionKey(e,r);case l:case c:return this._onDeleteKey(e,i,n)}},e.prototype._onKeyUp=function(e){var t=e.target,i=e.keyCode,n=this.input.value,r=this._store.activeItems,s=this._canAddItem(r,n),o=d.KEY_CODES.BACK_KEY,c=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(s.notice&&n){var l=this._getTemplate(\"notice\",s.notice);this.dropdown.element.innerHTML=l.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var h=(i===o||i===c)&&t&&!t.value,u=!this._isTextElement&&this._isSearching,p=this._canSearch&&s.response;h&&u?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var i=e.ctrlKey,n=e.metaKey;(i||n)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e,t,i){var n=e.target,r=d.KEY_CODES.ENTER_KEY,s=n&&n.hasAttribute(\"data-button\");if(this._isTextElement&&n&&n.value){var o=this.input.value;this._canAddItem(t,o).response&&(this.hideDropdown(!0),this._addItem({value:o}),this._triggerChange(o),this.clearInput())}if(s&&(this._handleButtonAction(t,n),e.preventDefault()),i){var a=this.dropdown.getChild(\".\".concat(this.config.classNames.highlightedState));a&&(t[0]&&(t[0].keyCode=r),this._handleChoiceAction(t,a)),e.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e,t){var i=e.keyCode,n=e.metaKey,r=d.KEY_CODES.DOWN_KEY,s=d.KEY_CODES.PAGE_UP_KEY,o=d.KEY_CODES.PAGE_DOWN_KEY;if(t||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=i===r||i===o?1:-1,c=\"[data-choice-selectable]\",l=void 0;if(n||i===o||i===s)l=a>0?this.dropdown.element.querySelector(\"\".concat(c,\":last-of-type\")):this.dropdown.element.querySelector(c);else{var h=this.dropdown.element.querySelector(\".\".concat(this.config.classNames.highlightedState));l=h?(0,f.getAdjacentEl)(h,c,a):this.dropdown.element.querySelector(c)}l&&((0,f.isScrolledIntoView)(l,this.choiceList.element,a)||this.choiceList.scrollToChildElement(l,a),this._highlightChoice(l)),e.preventDefault()}},e.prototype._onDeleteKey=function(e,t,i){var n=e.target;this._isSelectOneElement||n.value||!i||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(_&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,n=\"ltr\"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(t!==this.input.element){var r=t.closest(\"[data-button],[data-item],[data-choice]\");if(r instanceof HTMLElement){var s=e.shiftKey,o=this._store.activeItems,a=r.dataset;\"button\"in a?this._handleButtonAction(o,r):\"item\"in a?this._handleItemAction(o,r,s):\"choice\"in a&&this._handleChoiceAction(o,r)}e.preventDefault()}}},e.prototype._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&\"choice\"in t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,i=this,n=e.target;n&&this.containerOuter.element.contains(n)&&((t={})[d.TEXT_TYPE]=function(){n===i.input.element&&i.containerOuter.addFocusState()},t[d.SELECT_ONE_TYPE]=function(){i.containerOuter.addFocusState(),n===i.input.element&&i.showDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,i=this,n=e.target;if(n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[d.TEXT_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),r&&i.unhighlightAll(),i.hideDropdown(!0))},t[d.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState(),(n===i.input.element||n===i.containerOuter.element&&!i._canSearch)&&i.hideDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),r&&i.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll(\"[data-choice-selectable]\"));if(i.length){var n=e;Array.from(this.dropdown.element.querySelectorAll(\".\".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute(\"aria-selected\",\"false\")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute(\"aria-selected\",\"true\"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},e.prototype._addItem=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,r=e.choiceId,s=void 0===r?-1:r,o=e.groupId,a=void 0===o?-1:o,c=e.customProperties,h=void 0===c?{}:c,u=e.placeholder,p=void 0!==u&&u,f=e.keyCode,m=void 0===f?-1:f,v=\"string\"==typeof t?t.trim():t,g=this._store.items,_=n||v,y=s||-1,E=a>=0?this._store.getGroupById(a):null,b=g?g.length+1:1;this.config.prependValue&&(v=this.config.prependValue+v.toString()),this.config.appendValue&&(v+=this.config.appendValue.toString()),this._store.dispatch((0,l.addItem)({value:v,label:_,id:b,choiceId:y,groupId:a,customProperties:h,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(b),this.passedElement.triggerEvent(d.EVENTS.addItem,{id:b,value:v,label:_,customProperties:h,groupValue:E&&E.value?E.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,i=e.value,n=e.label,r=e.customProperties,s=e.choiceId,o=e.groupId,a=o&&o>=0?this._store.getGroupById(o):null;t&&s&&(this._store.dispatch((0,l.removeItem)(t,s)),this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:t,value:i,label:n,customProperties:r,groupValue:a&&a.value?a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,r=e.isSelected,s=void 0!==r&&r,o=e.isDisabled,c=void 0!==o&&o,l=e.groupId,h=void 0===l?-1:l,u=e.customProperties,d=void 0===u?{}:u,p=e.placeholder,f=void 0!==p&&p,m=e.keyCode,v=void 0===m?-1:m;if(null!=t){var g=this._store.choices,_=n||t,y=g?g.length+1:1,E=\"\".concat(this._baseId,\"-\").concat(this._idNames.itemChoice,\"-\").concat(y);this._store.dispatch((0,a.addChoice)({id:y,groupId:h,elementId:E,value:t,label:_,disabled:c,customProperties:d,placeholder:f,keyCode:v})),s&&this._addItem({value:t,label:_,choiceId:y,customProperties:d,placeholder:f,keyCode:v})}},e.prototype._addGroup=function(e){var t=this,i=e.group,n=e.id,r=e.valueKey,s=void 0===r?\"value\":r,o=e.labelKey,a=void 0===o?\"label\":o,l=(0,f.isType)(\"Object\",i)?i.choices:Array.from(i.getElementsByTagName(\"OPTION\")),h=n||Math.floor((new Date).valueOf()*Math.random()),u=!!i.disabled&&i.disabled;l?(this._store.dispatch((0,c.addGroup)({value:i.label,id:h,active:!0,disabled:u})),l.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[s],label:(0,f.isType)(\"Object\",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:h,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,c.addGroup)({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},e.prototype._getTemplate=function(e){for(var t,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return(t=this._templates[e]).call.apply(t,n([this,this.config],i,!1))},e.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&\"function\"==typeof e&&(t=e.call(this,f.strToEl)),this._templates=(0,s.default)(g.default,t)},e.prototype._createElements=function(){this.containerOuter=new u.Container({element:this._getTemplate(\"containerOuter\",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new u.Container({element:this._getTemplate(\"containerInner\"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new u.Input({element:this._getTemplate(\"input\",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new u.List({element:this._getTemplate(\"choiceList\",this._isSelectOneElement)}),this.itemList=new u.List({element:this._getTemplate(\"itemList\",this._isSelectOneElement)}),this.dropdown=new u.Dropdown({element:this._getTemplate(\"dropdown\"),classNames:this.config.classNames,type:this.passedElement.element.type})},e.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||\"\":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},e.prototype._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&i.parentNode&&\"SELECT\"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},e.prototype._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var i=e.some((function(e){return e.selected})),n=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,r){var s=e.value,o=void 0===s?\"\":s,a=e.label,c=e.customProperties,l=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var h=!(!t._isSelectOneElement||i||r!==n)||e.selected,u=e.disabled;t._addChoice({value:o,label:a,isSelected:!!h,isDisabled:!!u,placeholder:!!l,customProperties:c})}else t._addChoice({value:o,label:a,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:c})}))},e.prototype._addPredefinedItems=function(e){var t=this;e.forEach((function(e){\"object\"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),\"string\"==typeof e&&t._addItem({value:e})}))},e.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,f.getType)(e).toLowerCase()]()},e.prototype._findAndSelectChoiceByValue=function(e){var t=this,i=this._store.choices.find((function(i){return t.config.valueComparer(i.value,e)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},e.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return e?e.text:null}var t=this.config,i=t.placeholder,n=t.placeholderValue,r=this.passedElement.element.dataset;if(i){if(n)return n;if(r.placeholder)return r.placeholder}return null},e}();t.default=E},613:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(799),r=i(883),s=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,r=e.position;this.element=t,this.classNames=n,this.type=i,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener(\"focus\",this._onFocus),this.element.addEventListener(\"blur\",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener(\"focus\",this._onFocus),this.element.removeEventListener(\"blur\",this._onBlur)},e.prototype.shouldFlip=function(e){if(\"number\"!=typeof e)return!1;var t=!1;return\"auto\"===this.position?t=!window.matchMedia(\"(min-height: \".concat(e+1,\"px)\")).matches:\"top\"===this.position&&(t=!0),t},e.prototype.setActiveDescendant=function(e){this.element.setAttribute(\"aria-activedescendant\",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute(\"aria-activedescendant\")},e.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute(\"aria-expanded\",\"true\"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute(\"aria-expanded\",\"false\"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute(\"aria-disabled\"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute(\"tabindex\",\"0\"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute(\"aria-disabled\",\"true\"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute(\"tabindex\",\"-1\"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,n.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute(\"aria-busy\",\"true\"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute(\"aria-busy\"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=s},217:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e){var t=e.element,i=e.type,n=e.classNames;this.element=t,this.classNames=n,this.type=i,this.isActive=!1}return Object.defineProperty(e.prototype,\"distanceFromTopWindow\",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute(\"aria-expanded\",\"true\"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute(\"aria-expanded\",\"false\"),this.isActive=!1,this},e}();t.default=i},520:function(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var r=n(i(217));t.Dropdown=r.default;var s=n(i(613));t.Container=s.default;var o=n(i(11));t.Input=o.default;var a=n(i(624));t.List=a.default;var c=n(i(541));t.WrappedInput=c.default;var l=n(i(982));t.WrappedSelect=l.default},11:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(799),r=i(883),s=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,r=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,\"placeholder\",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"value\",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"rawValue\",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener(\"paste\",this._onPaste),this.element.addEventListener(\"input\",this._onInput,{passive:!0}),this.element.addEventListener(\"focus\",this._onFocus,{passive:!0}),this.element.addEventListener(\"blur\",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener(\"input\",this._onInput),this.element.removeEventListener(\"paste\",this._onPaste),this.element.removeEventListener(\"focus\",this._onFocus),this.element.removeEventListener(\"blur\",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute(\"disabled\"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute(\"disabled\",\"\"),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=\"\"),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,i=e.value,n=e.placeholder;t.minWidth=\"\".concat(n.length+1,\"ch\"),t.width=\"\".concat(i.length+1,\"ch\")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute(\"aria-activedescendant\",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute(\"aria-activedescendant\")},e.prototype._onInput=function(){this.type!==r.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=s},624:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(883),r=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=\"\"},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var i=this;if(e){var n=this.element.offsetHeight,r=this.element.scrollTop+n,s=e.offsetHeight,o=e.offsetTop+s,a=t>0?this.element.scrollTop+o-r:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,i){var n=(i-e)/t,r=n>1?n:1;this.element.scrollTop=e+r},e.prototype._scrollUp=function(e,t,i){var n=(e-i)/t,r=n>1?n:1;this.element.scrollTop=e-r},e.prototype._animateScroll=function(e,t){var i=this,r=n.SCROLLING_SPEED,s=this.element.scrollTop,o=!1;t>0?(this._scrollDown(s,r,e),s<e&&(o=!0)):(this._scrollUp(s,r,e),s>e&&(o=!0)),o&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();t.default=r},730:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(799),r=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError(\"Invalid element passed\");this.isDisabled=!1}return Object.defineProperty(e.prototype,\"isActive\",{get:function(){return\"active\"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"dir\",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"value\",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute(\"style\");e&&this.element.setAttribute(\"data-choice-orig-style\",e),this.element.setAttribute(\"data-choice\",\"active\")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute(\"tabindex\");var e=this.element.getAttribute(\"data-choice-orig-style\");e?(this.element.removeAttribute(\"data-choice-orig-style\"),this.element.setAttribute(\"style\",e)):this.element.removeAttribute(\"style\"),this.element.removeAttribute(\"data-choice\"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute(\"disabled\"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute(\"disabled\",\"\"),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,n.dispatchEvent)(this.element,e,t)},e}();t.default=r},541:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var o=function(e){function t(t){var i=t.element,n=t.classNames,r=t.delimiter,s=e.call(this,{element:i,classNames:n})||this;return s.delimiter=r,s}return r(t,e),Object.defineProperty(t.prototype,\"value\",{get:function(){return this.element.value},set:function(e){this.element.setAttribute(\"value\",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(s(i(730)).default);t.default=o},982:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var o=function(e){function t(t){var i=t.element,n=t.classNames,r=t.template,s=e.call(this,{element:i,classNames:n})||this;return s.template=r,s}return r(t,e),Object.defineProperty(t.prototype,\"placeholderOption\",{get:function(){return this.element.querySelector('option[value=\"\"]')||this.element.querySelector(\"option[placeholder]\")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"optionGroups\",{get:function(){return Array.from(this.element.getElementsByTagName(\"OPTGROUP\"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"options\",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return n=e,r=t.template(n),void i.appendChild(r);var n,r})),this.appendDocFragment(i)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML=\"\",this.element.appendChild(e)},t}(s(i(730)).default);t.default=o},883:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:\"showDropdown\",hideDropdown:\"hideDropdown\",change:\"change\",choice:\"choice\",search:\"search\",addItem:\"addItem\",removeItem:\"removeItem\",highlightItem:\"highlightItem\",highlightChoice:\"highlightChoice\",unhighlightItem:\"unhighlightItem\"},t.ACTION_TYPES={ADD_CHOICE:\"ADD_CHOICE\",FILTER_CHOICES:\"FILTER_CHOICES\",ACTIVATE_CHOICES:\"ACTIVATE_CHOICES\",CLEAR_CHOICES:\"CLEAR_CHOICES\",ADD_GROUP:\"ADD_GROUP\",ADD_ITEM:\"ADD_ITEM\",REMOVE_ITEM:\"REMOVE_ITEM\",HIGHLIGHT_ITEM:\"HIGHLIGHT_ITEM\",CLEAR_ALL:\"CLEAR_ALL\",RESET_TO:\"RESET_TO\",SET_IS_LOADING:\"SET_IS_LOADING\"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE=\"text\",t.SELECT_ONE_TYPE=\"select-one\",t.SELECT_MULTIPLE_TYPE=\"select-multiple\",t.SCROLLING_SPEED=4},789:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var n=i(799);t.DEFAULT_CLASSNAMES={containerOuter:\"choices\",containerInner:\"choices__inner\",input:\"choices__input\",inputCloned:\"choices__input--cloned\",list:\"choices__list\",listItems:\"choices__list--multiple\",listSingle:\"choices__list--single\",listDropdown:\"choices__list--dropdown\",item:\"choices__item\",itemSelectable:\"choices__item--selectable\",itemDisabled:\"choices__item--disabled\",itemChoice:\"choices__item--choice\",placeholder:\"choices__placeholder\",group:\"choices__group\",groupHeading:\"choices__heading\",button:\"choices__button\",activeState:\"is-active\",focusState:\"is-focused\",openState:\"is-open\",disabledState:\"is-disabled\",highlightedState:\"is-highlighted\",selectedState:\"is-selected\",flippedState:\"is-flipped\",loadingState:\"is-loading\",noResults:\"has-no-results\",noChoices:\"has-no-choices\"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:\",\",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:[\"label\",\"value\"],position:\"auto\",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:\"auto\",loadingText:\"Loading...\",noResultsText:\"No results found\",noChoicesText:\"No choices to choose from\",itemSelectText:\"Press to select\",uniqueItemText:\"Only unique values can be added\",customAddItemText:\"Only values matching specific conditions can be added\",addItemText:function(e){return'Press Enter to add <b>\"'.concat((0,n.sanitise)(e),'\"</b>')},maxItemText:function(e){return\"Only \".concat(e,\" values can be added\")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:\"\",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},978:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},948:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},359:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},285:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},533:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},187:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!(\"get\"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)\"default\"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,\"__esModule\",{value:!0}),r(i(18),t),r(i(978),t),r(i(948),t),r(i(359),t),r(i(285),t),r(i(533),t),r(i(287),t),r(i(132),t),r(i(837),t),r(i(598),t),r(i(369),t),r(i(37),t),r(i(47),t),r(i(923),t),r(i(876),t)},287:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},132:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},837:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},598:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},37:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},369:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},47:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},923:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},876:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},799:function(e,t){var i;Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join(\"\")},t.generateId=function(e,i){var n=e.id||e.name&&\"\".concat(e.name,\"-\").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return n=n.replace(/(:|\\.|\\[|\\]|,)/g,\"\"),n=\"\".concat(i,\"-\").concat(n)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,i){return null!=i&&(0,t.getType)(i)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement(\"div\")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,i){void 0===i&&(i=1);for(var n=\"\".concat(i>0?\"next\":\"previous\",\"ElementSibling\"),r=e[n];r;){if(r.matches(t))return r;r=r[n]}return r},t.isScrolledIntoView=function(e,t,i){return void 0===i&&(i=1),!!e&&(i>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return\"string\"!=typeof e?e:e.replace(/&/g,\"&\").replace(/>/g,\">\").replace(/</g,\"<\").replace(/\"/g,\""\")},t.strToEl=(i=document.createElement(\"div\"),function(e){var t=e.trim();i.innerHTML=t;for(var n=i.children[0];i.firstChild;)i.removeChild(i.firstChild);return n}),t.sortByAlpha=function(e,t){var i=e.value,n=e.label,r=void 0===n?i:n,s=t.value,o=t.label,a=void 0===o?s:o;return r.localeCompare(a,[],{sensitivity:\"base\",ignorePunctuation:!0,numeric:!0})},t.sortByScore=function(e,t){var i=e.score,n=void 0===i?0:i,r=t.score;return n-(void 0===r?0:r)},t.dispatchEvent=function(e,t,i){void 0===i&&(i=null);var n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});return e.dispatchEvent(n)},t.existsInArray=function(e,t,i){return void 0===i&&(i=\"value\"),e.some((function(e){return\"string\"==typeof t?e[i]===t.trim():e[i]===t}))},t.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},t.diff=function(e,t){var i=Object.keys(e).sort(),n=Object.keys(t).sort();return i.filter((function(e){return n.indexOf(e)<0}))},t.parseCustomProperties=function(e){if(void 0!==e)try{return JSON.parse(e)}catch(t){return e}return{}}},273:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,n){switch(void 0===e&&(e=t.defaultState),void 0===n&&(n={}),n.type){case\"ADD_CHOICE\":var r=n,s={id:r.id,elementId:r.elementId,groupId:r.groupId,value:r.value,label:r.label||r.value,disabled:r.disabled||!1,selected:!1,active:!0,score:9999,customProperties:r.customProperties,placeholder:r.placeholder||!1};return i(i([],e,!0),[s],!1);case\"ADD_ITEM\":var o=n;return o.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt(\"\".concat(o.choiceId),10)&&(t.selected=!0),t})):e;case\"REMOVE_ITEM\":var a=n;return a.choiceId&&a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt(\"\".concat(a.choiceId),10)&&(t.selected=!1),t})):e;case\"FILTER_CHOICES\":var c=n;return e.map((function(e){var t=e;return t.active=c.results.some((function(e){var i=e.item,n=e.score;return i.id===t.id&&(t.score=n,!0)})),t}));case\"ACTIVATE_CHOICES\":var l=n;return e.map((function(e){var t=e;return t.active=l.active,t}));case\"CLEAR_CHOICES\":return t.defaultState;default:return e}}},871:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,n){switch(void 0===e&&(e=t.defaultState),void 0===n&&(n={}),n.type){case\"ADD_GROUP\":var r=n;return i(i([],e,!0),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],!1);case\"CLEAR_CHOICES\":return[];default:return e}}},655:function(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.defaultState=void 0;var r=i(791),s=n(i(52)),o=n(i(871)),a=n(i(273)),c=n(i(502)),l=i(799);t.defaultState={groups:[],items:[],choices:[],loading:!1};var h=(0,r.combineReducers)({items:s.default,groups:o.default,choices:a.default,loading:c.default});t.default=function(e,i){var n=e;if(\"CLEAR_ALL\"===i.type)n=t.defaultState;else if(\"RESET_TO\"===i.type)return(0,l.cloneObject)(i.state);return h(n,i)}},52:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,n){switch(void 0===e&&(e=t.defaultState),void 0===n&&(n={}),n.type){case\"ADD_ITEM\":var r=n;return i(i([],e,!0),[{id:r.id,choiceId:r.choiceId,groupId:r.groupId,value:r.value,label:r.label,active:!0,highlighted:!1,customProperties:r.customProperties,placeholder:r.placeholder||!1,keyCode:null}],!1).map((function(e){var t=e;return t.highlighted=!1,t}));case\"REMOVE_ITEM\":return e.map((function(e){var t=e;return t.id===n.id&&(t.active=!1),t}));case\"HIGHLIGHT_ITEM\":var s=n;return e.map((function(e){var t=e;return t.id===s.id&&(t.highlighted=s.highlighted),t}));default:return e}}},502:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,i){return void 0===e&&(e=t.defaultState),void 0===i&&(i={}),\"SET_IS_LOADING\"===i.type?i.isLoading:e}},744:function(e,t,i){var n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var s=i(791),o=r(i(655)),a=function(){function e(){this._store=(0,s.createStore)(o.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return e.prototype.subscribe=function(e){this._store.subscribe(e)},e.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(e.prototype,\"state\",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"items\",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"activeItems\",{get:function(){return this.items.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"highlightedActiveItems\",{get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"choices\",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"activeChoices\",{get:function(){return this.choices.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"selectableChoices\",{get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"searchableChoices\",{get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"placeholderChoice\",{get:function(){return n([],this.choices,!0).reverse().find((function(e){return!0===e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"groups\",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"activeGroups\",{get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var i=!0===e.active&&!1===e.disabled,n=t.some((function(e){return!0===e.active&&!1===e.disabled}));return i&&n}),[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return this.state.loading},e.prototype.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},e.prototype.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},e}();t.default=a},686:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0});var i={containerOuter:function(e,t,i,n,r,s,o){var a=e.classNames.containerOuter,c=Object.assign(document.createElement(\"div\"),{className:a});return c.dataset.type=s,t&&(c.dir=t),n&&(c.tabIndex=0),i&&(c.setAttribute(\"role\",r?\"combobox\":\"listbox\"),r&&c.setAttribute(\"aria-autocomplete\",\"list\")),c.setAttribute(\"aria-haspopup\",\"true\"),c.setAttribute(\"aria-expanded\",\"false\"),o&&c.setAttribute(\"aria-labelledby\",o),c},containerInner:function(e){var t=e.classNames.containerInner;return Object.assign(document.createElement(\"div\"),{className:t})},itemList:function(e,t){var i=e.classNames,n=i.list,r=i.listSingle,s=i.listItems;return Object.assign(document.createElement(\"div\"),{className:\"\".concat(n,\" \").concat(t?r:s)})},placeholder:function(e,t){var i,n=e.allowHTML,r=e.classNames.placeholder;return Object.assign(document.createElement(\"div\"),((i={className:r})[n?\"innerHTML\":\"innerText\"]=t,i))},item:function(e,t,i){var n,r,s=e.allowHTML,o=e.classNames,a=o.item,c=o.button,l=o.highlightedState,h=o.itemSelectable,u=o.placeholder,d=t.id,p=t.value,f=t.label,m=t.customProperties,v=t.active,g=t.disabled,_=t.highlighted,y=t.placeholder,E=Object.assign(document.createElement(\"div\"),((n={className:a})[s?\"innerHTML\":\"innerText\"]=f,n));if(Object.assign(E.dataset,{item:\"\",id:d,value:p,customProperties:m}),v&&E.setAttribute(\"aria-selected\",\"true\"),g&&E.setAttribute(\"aria-disabled\",\"true\"),y&&E.classList.add(u),E.classList.add(_?l:h),i){g&&E.classList.remove(h),E.dataset.deletable=\"\";var b=\"Remove item\",S=Object.assign(document.createElement(\"button\"),((r={type:\"button\",className:c})[s?\"innerHTML\":\"innerText\"]=b,r));S.setAttribute(\"aria-label\",\"\".concat(b,\": '\").concat(p,\"'\")),S.dataset.button=\"\",E.appendChild(S)}return E},choiceList:function(e,t){var i=e.classNames.list,n=Object.assign(document.createElement(\"div\"),{className:i});return t||n.setAttribute(\"aria-multiselectable\",\"true\"),n.setAttribute(\"role\",\"listbox\"),n},choiceGroup:function(e,t){var i,n=e.allowHTML,r=e.classNames,s=r.group,o=r.groupHeading,a=r.itemDisabled,c=t.id,l=t.value,h=t.disabled,u=Object.assign(document.createElement(\"div\"),{className:\"\".concat(s,\" \").concat(h?a:\"\")});return u.setAttribute(\"role\",\"group\"),Object.assign(u.dataset,{group:\"\",id:c,value:l}),h&&u.setAttribute(\"aria-disabled\",\"true\"),u.appendChild(Object.assign(document.createElement(\"div\"),((i={className:o})[n?\"innerHTML\":\"innerText\"]=l,i))),u},choice:function(e,t,i){var n,r=e.allowHTML,s=e.classNames,o=s.item,a=s.itemChoice,c=s.itemSelectable,l=s.selectedState,h=s.itemDisabled,u=s.placeholder,d=t.id,p=t.value,f=t.label,m=t.groupId,v=t.elementId,g=t.disabled,_=t.selected,y=t.placeholder,E=Object.assign(document.createElement(\"div\"),((n={id:v})[r?\"innerHTML\":\"innerText\"]=f,n.className=\"\".concat(o,\" \").concat(a),n));return _&&E.classList.add(l),y&&E.classList.add(u),E.setAttribute(\"role\",m&&m>0?\"treeitem\":\"option\"),Object.assign(E.dataset,{choice:\"\",id:d,value:p,selectText:i}),g?(E.classList.add(h),E.dataset.choiceDisabled=\"\",E.setAttribute(\"aria-disabled\",\"true\")):(E.classList.add(c),E.dataset.choiceSelectable=\"\"),E},input:function(e,t){var i=e.classNames,n=i.input,r=i.inputCloned,s=Object.assign(document.createElement(\"input\"),{type:\"search\",name:\"search_terms\",className:\"\".concat(n,\" \").concat(r),autocomplete:\"off\",autocapitalize:\"off\",spellcheck:!1});return s.setAttribute(\"role\",\"textbox\"),s.setAttribute(\"aria-autocomplete\",\"list\"),s.setAttribute(\"aria-label\",t),s},dropdown:function(e){var t=e.classNames,i=t.list,n=t.listDropdown,r=document.createElement(\"div\");return r.classList.add(i,n),r.setAttribute(\"aria-expanded\",\"false\"),r},notice:function(e,t,i){var n,r=e.allowHTML,s=e.classNames,o=s.item,a=s.itemChoice,c=s.noResults,l=s.noChoices;void 0===i&&(i=\"\");var h=[o,a];return\"no-choices\"===i?h.push(l):\"no-results\"===i&&h.push(c),Object.assign(document.createElement(\"div\"),((n={})[r?\"innerHTML\":\"innerText\"]=t,n.className=h.join(\" \"),n))},option:function(e){var t=e.label,i=e.value,n=e.customProperties,r=e.active,s=e.disabled,o=new Option(t,i,!1,r);return n&&(o.dataset.customProperties=\"\".concat(n)),o.disabled=!!s,o}};t.default=i},996:function(e){var t=function(e){return function(e){return!!e&&\"object\"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return\"[object RegExp]\"===t||\"[object Date]\"===t||function(e){return e.$$typeof===i}(e)}(e)},i=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function r(e,t,i){return e.concat(t).map((function(e){return n(e,i)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var r={};return i.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=n(e[t],i)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&i.isMergeableObject(t[s])?r[s]=function(e,t){if(!t.customMerge)return c;var i=t.customMerge(e);return\"function\"==typeof i?i:c}(s,i)(e[s],t[s],i):r[s]=n(t[s],i))})),r}function c(e,i,s){(s=s||{}).arrayMerge=s.arrayMerge||r,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(i);return o===Array.isArray(e)?o?s.arrayMerge(e,i,s):a(e,i,s):n(i,s)}c.all=function(e,t){if(!Array.isArray(e))throw new Error(\"first argument should be an array\");return e.reduce((function(e,i){return c(e,i,t)}),{})};var l=c;e.exports=l},221:function(e,t,i){\n /**\n * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io)\n *\n * Copyright (c) 2022 Kiro Risk (http://kiro.me)\n * All Rights Reserved. Apache Software License 2.0\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n function n(e){return Array.isArray?Array.isArray(e):\"[object Array]\"===d(e)}i.r(t),i.d(t,{default:function(){return Z}});const r=1/0;function s(e){return null==e?\"\":function(e){if(\"string\"==typeof e)return e;let t=e+\"\";return\"0\"==t&&1/e==-r?\"-0\":t}(e)}function o(e){return\"string\"==typeof e}function a(e){return\"number\"==typeof e}function c(e){return!0===e||!1===e||function(e){return l(e)&&null!==e}(e)&&\"[object Boolean]\"==d(e)}function l(e){return\"object\"==typeof e}function h(e){return null!=e}function u(e){return!e.trim().length}function d(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":Object.prototype.toString.call(e)}const p=e=>`Invalid value for key ${e}`,f=e=>`Pattern length exceeds max of ${e}.`,m=e=>`Missing ${e} property in key`,v=e=>`Property 'weight' in key '${e}' must be a positive integer`,g=Object.prototype.hasOwnProperty;class _{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let i=y(e);t+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function y(e){let t=null,i=null,r=null,s=1,a=null;if(o(e)||n(e))r=e,t=E(e),i=b(e);else{if(!g.call(e,\"name\"))throw new Error(m(\"name\"));const n=e.name;if(r=n,g.call(e,\"weight\")&&(s=e.weight,s<=0))throw new Error(v(n));t=E(n),i=b(n),a=e.getFn}return{path:t,id:i,weight:s,src:r,getFn:a}}function E(e){return n(e)?e:e.split(\".\")}function b(e){return n(e)?e.join(\".\"):e}var S={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let i=[],r=!1;const l=(e,t,u)=>{if(h(e))if(t[u]){const d=e[t[u]];if(!h(d))return;if(u===t.length-1&&(o(d)||a(d)||c(d)))i.push(s(d));else if(n(d)){r=!0;for(let e=0,i=d.length;e<i;e+=1)l(d[e],t,u+1)}else t.length&&l(d,t,u+1)}else i.push(e)};return l(e,o(t)?t.split(\".\"):t,0),r?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const O=/[^ ]+/g;class I{constructor({getFn:e=S.getFn,fieldNormWeight:t=S.fieldNormWeight}={}){this.norm=function(e=1,t=3){const i=new Map,n=Math.pow(10,t);return{get(t){const r=t.match(O).length;if(i.has(r))return i.get(r);const s=1/Math.pow(r,.5*e),o=parseFloat(Math.round(s*n)/n);return i.set(r,o),o},clear(){i.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,i=this.size();t<i;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!h(e)||u(e))return;let i={v:e,i:t,n:this.norm.get(e)};this.records.push(i)}_addObject(e,t){let i={i:t,$:{}};this.keys.forEach(((t,r)=>{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(h(s))if(n(s)){let e=[];const t=[{nestedArrIndex:-1,value:s}];for(;t.length;){const{nestedArrIndex:i,value:r}=t.pop();if(h(r))if(o(r)&&!u(r)){let t={v:r,i,n:this.norm.get(r)};e.push(t)}else n(r)&&r.forEach(((e,i)=>{t.push({nestedArrIndex:i,value:e})}))}i.$[r]=e}else if(o(s)&&!u(s)){let e={v:s,n:this.norm.get(s)};i.$[r]=e}})),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function C(e,t,{getFn:i=S.getFn,fieldNormWeight:n=S.fieldNormWeight}={}){const r=new I({getFn:i,fieldNormWeight:n});return r.setKeys(e.map(y)),r.setSources(t),r.create(),r}function T(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:r=S.distance,ignoreLocation:s=S.ignoreLocation}={}){const o=t/e.length;if(s)return o;const a=Math.abs(n-i);return r?o+a/r:a?1:o}const L=32;function w(e,t,i,{location:n=S.location,distance:r=S.distance,threshold:s=S.threshold,findAllMatches:o=S.findAllMatches,minMatchCharLength:a=S.minMatchCharLength,includeMatches:c=S.includeMatches,ignoreLocation:l=S.ignoreLocation}={}){if(t.length>L)throw new Error(f(L));const h=t.length,u=e.length,d=Math.max(0,Math.min(n,u));let p=s,m=d;const v=a>1||c,g=v?Array(u):[];let _;for(;(_=e.indexOf(t,m))>-1;){let e=T(t,{currentLocation:_,expectedLocation:d,distance:r,ignoreLocation:l});if(p=Math.min(e,p),m=_+h,v){let e=0;for(;e<h;)g[_+e]=1,e+=1}}m=-1;let y=[],E=1,b=h+u;const O=1<<h-1;for(let n=0;n<h;n+=1){let s=0,a=b;for(;s<a;)T(t,{errors:n,currentLocation:d+a,expectedLocation:d,distance:r,ignoreLocation:l})<=p?s=a:b=a,a=Math.floor((b-s)/2+s);b=a;let c=Math.max(1,d-a+1),f=o?u:Math.min(d+a,u)+h,_=Array(f+2);_[f+1]=(1<<n)-1;for(let s=f;s>=c;s-=1){let o=s-1,a=i[e.charAt(o)];if(v&&(g[o]=+!!a),_[s]=(_[s+1]<<1|1)&a,n&&(_[s]|=(y[s+1]|y[s])<<1|1|y[s+1]),_[s]&O&&(E=T(t,{errors:n,currentLocation:o,expectedLocation:d,distance:r,ignoreLocation:l}),E<=p)){if(p=E,m=o,m<=d)break;c=Math.max(1,2*d-m)}}if(T(t,{errors:n+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l})>p)break;y=_}const I={isMatch:m>=0,score:Math.max(.001,E)};if(v){const e=function(e=[],t=S.minMatchCharLength){let i=[],n=-1,r=-1,s=0;for(let o=e.length;s<o;s+=1){let o=e[s];o&&-1===n?n=s:o||-1===n||(r=s-1,r-n+1>=t&&i.push([n,r]),n=-1)}return e[s-1]&&s-n>=t&&i.push([n,s-1]),i}(g,a);e.length?c&&(I.indices=e):I.isMatch=!1}return I}function A(e){let t={};for(let i=0,n=e.length;i<n;i+=1){const r=e.charAt(i);t[r]=(t[r]||0)|1<<n-i-1}return t}class M{constructor(e,{location:t=S.location,threshold:i=S.threshold,distance:n=S.distance,includeMatches:r=S.includeMatches,findAllMatches:s=S.findAllMatches,minMatchCharLength:o=S.minMatchCharLength,isCaseSensitive:a=S.isCaseSensitive,ignoreLocation:c=S.ignoreLocation}={}){if(this.options={location:t,threshold:i,distance:n,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(e,t)=>{this.chunks.push({pattern:e,alphabet:A(e),startIndex:t})},h=this.pattern.length;if(h>L){let e=0;const t=h%L,i=h-t;for(;e<i;)l(this.pattern.substr(e,L),e),e+=L;if(t){const e=h-L;l(this.pattern.substr(e),e)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:i}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return i&&(t.indices=[[0,e.length-1]]),t}const{location:n,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:c}=this.options;let l=[],h=0,u=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:f,score:m,indices:v}=w(e,t,d,{location:n+p,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});f&&(u=!0),h+=m,f&&v&&(l=[...l,...v])}));let d={isMatch:u,score:u?h/this.chunks.length:1};return u&&i&&(d.indices=l),d}}class P{constructor(e){this.pattern=e}static isMultiMatch(e){return x(e,this.multiRegex)}static isSingleMatch(e){return x(e,this.singleRegex)}search(){}}function x(e,t){const i=e.match(t);return i?i[1]:null}class N extends P{constructor(e,{location:t=S.location,threshold:i=S.threshold,distance:n=S.distance,includeMatches:r=S.includeMatches,findAllMatches:s=S.findAllMatches,minMatchCharLength:o=S.minMatchCharLength,isCaseSensitive:a=S.isCaseSensitive,ignoreLocation:c=S.ignoreLocation}={}){super(e),this._bitapSearch=new M(e,{location:t,threshold:i,distance:n,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c})}static get type(){return\"fuzzy\"}static get multiRegex(){return/^\"(.*)\"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class D extends P{constructor(e){super(e)}static get type(){return\"include\"}static get multiRegex(){return/^'\"(.*)\"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,i=0;const n=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,i))>-1;)i=t+r,n.push([t,i-1]);const s=!!n.length;return{isMatch:s,score:s?0:1,indices:n}}}const j=[class extends P{constructor(e){super(e)}static get type(){return\"exact\"}static get multiRegex(){return/^=\"(.*)\"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},D,class extends P{constructor(e){super(e)}static get type(){return\"prefix-exact\"}static get multiRegex(){return/^\\^\"(.*)\"$/}static get singleRegex(){return/^\\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends P{constructor(e){super(e)}static get type(){return\"inverse-prefix-exact\"}static get multiRegex(){return/^!\\^\"(.*)\"$/}static get singleRegex(){return/^!\\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends P{constructor(e){super(e)}static get type(){return\"inverse-suffix-exact\"}static get multiRegex(){return/^!\"(.*)\"\\$$/}static get singleRegex(){return/^!(.*)\\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends P{constructor(e){super(e)}static get type(){return\"suffix-exact\"}static get multiRegex(){return/^\"(.*)\"\\$$/}static get singleRegex(){return/^(.*)\\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends P{constructor(e){super(e)}static get type(){return\"inverse-exact\"}static get multiRegex(){return/^!\"(.*)\"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},N],F=j.length,k=/ +(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)/,K=\"|\",R=new Set([N.type,D.type]);class H{constructor(e,{isCaseSensitive:t=S.isCaseSensitive,includeMatches:i=S.includeMatches,minMatchCharLength:n=S.minMatchCharLength,ignoreLocation:r=S.ignoreLocation,findAllMatches:s=S.findAllMatches,location:o=S.location,threshold:a=S.threshold,distance:c=S.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:s,ignoreLocation:r,location:o,threshold:a,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split(K).map((e=>{let i=e.trim().split(k).filter((e=>e&&!!e.trim())),n=[];for(let e=0,r=i.length;e<r;e+=1){const r=i[e];let s=!1,o=-1;for(;!s&&++o<F;){const e=j[o];let i=e.isMultiMatch(r);i&&(n.push(new e(i,t)),s=!0)}if(!s)for(o=-1;++o<F;){const e=j[o];let i=e.isSingleMatch(r);if(i){n.push(new e(i,t));break}}}return n}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let r=0,s=[],o=0;for(let n=0,a=t.length;n<a;n+=1){const a=t[n];s.length=0,r=0;for(let t=0,n=a.length;t<n;t+=1){const n=a[t],{isMatch:c,indices:l,score:h}=n.search(e);if(!c){o=0,r=0,s.length=0;break}if(r+=1,o+=h,i){const e=n.constructor.type;R.has(e)?s=[...s,...l]:s.push(l)}}if(r){let e={isMatch:!0,score:o/r};return i&&(e.indices=s),e}}return{isMatch:!1,score:1}}}const Y=[];function V(e,t){for(let i=0,n=Y.length;i<n;i+=1){let n=Y[i];if(n.condition(e,t))return new n(e,t)}return new M(e,t)}const B=\"$and\",G=\"$or\",U={PATH:\"$path\",PATTERN:\"$val\"},W=e=>!(!e[B]&&!e[G]),$=e=>!!e[U.PATH],q=e=>!n(e)&&l(e)&&!W(e),X=e=>({[B]:Object.keys(e).map((t=>({[t]:e[t]})))});function z(e,t,{auto:i=!0}={}){const r=e=>{let s=Object.keys(e);const a=$(e);if(!a&&s.length>1&&!W(e))return r(X(e));if(q(e)){const n=a?e[U.PATH]:s[0],r=a?e[U.PATTERN]:e[n];if(!o(r))throw new Error(p(n));const c={keyId:b(n),pattern:r};return i&&(c.searcher=V(r,t)),c}let c={children:[],operator:s[0]};return s.forEach((t=>{const i=e[t];n(i)&&i.forEach((e=>{c.children.push(r(e))}))})),c};return W(e)||(e=X(e)),r(e)}function J(e,t){const i=e.matches;t.matches=[],h(i)&&i.forEach((e=>{if(!h(e.indices)||!e.indices.length)return;const{indices:i,value:n}=e;let r={indices:i,value:n};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function Q(e,t){t.score=e.score}class Z{constructor(e,t={},i){this.options={...S,...t},this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof I))throw new Error(\"Incorrect 'index' type\");this._myIndex=t||C(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){h(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let i=0,n=this._docs.length;i<n;i+=1){const r=this._docs[i];e(r,i)&&(this.removeAt(i),i-=1,n-=1,t.push(r))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:i,includeScore:n,shouldSort:r,sortFn:s,ignoreFieldNorm:c}=this.options;let l=o(e)?o(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=S.ignoreFieldNorm}){e.forEach((e=>{let i=1;e.matches.forEach((({key:e,norm:n,score:r})=>{const s=e?e.weight:null;i*=Math.pow(0===r&&s?Number.EPSILON:r,(s||1)*(t?1:n))})),e.score=i}))}(l,{ignoreFieldNorm:c}),r&&l.sort(s),a(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:i=S.includeMatches,includeScore:n=S.includeScore}={}){const r=[];return i&&r.push(J),n&&r.push(Q),e.map((e=>{const{idx:i}=e,n={item:t[i],refIndex:i};return r.length&&r.forEach((t=>{t(e,n)})),n}))}(l,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const t=V(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach((({v:e,i,n:r})=>{if(!h(e))return;const{isMatch:s,score:o,indices:a}=t.searchIn(e);s&&n.push({item:e,idx:i,matches:[{score:o,value:e,norm:r,indices:a}]})})),n}_searchLogical(e){const t=z(e,this.options),i=(e,t,n)=>{if(!e.children){const{keyId:i,searcher:r}=e,s=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(t,i),searcher:r});return s&&s.length?[{idx:n,item:t,matches:s}]:[]}const r=[];for(let s=0,o=e.children.length;s<o;s+=1){const o=e.children[s],a=i(o,t,n);if(a.length)r.push(...a);else if(e.operator===B)return[]}return r},n=this._myIndex.records,r={},s=[];return n.forEach((({$:e,i:n})=>{if(h(e)){let o=i(t,e,n);o.length&&(r[n]||(r[n]={idx:n,item:e,matches:[]},s.push(r[n])),o.forEach((({matches:e})=>{r[n].matches.push(...e)})))}})),s}_searchObjectList(e){const t=V(e,this.options),{keys:i,records:n}=this._myIndex,r=[];return n.forEach((({$:e,i:n})=>{if(!h(e))return;let s=[];i.forEach(((i,n)=>{s.push(...this._findMatches({key:i,value:e[n],searcher:t}))})),s.length&&r.push({idx:n,item:e,matches:s})})),r}_findMatches({key:e,value:t,searcher:i}){if(!h(t))return[];let r=[];if(n(t))t.forEach((({v:t,i:n,n:s})=>{if(!h(t))return;const{isMatch:o,score:a,indices:c}=i.searchIn(t);o&&r.push({score:a,key:e,value:t,idx:n,norm:s,indices:c})}));else{const{v:n,n:s}=t,{isMatch:o,score:a,indices:c}=i.searchIn(n);o&&r.push({score:a,key:e,value:n,norm:s,indices:c})}return r}}Z.version=\"6.6.2\",Z.createIndex=C,Z.parseIndex=function(e,{getFn:t=S.getFn,fieldNormWeight:i=S.fieldNormWeight}={}){const{keys:n,records:r}=e,s=new I({getFn:t,fieldNormWeight:i});return s.setKeys(n),s.setIndexRecords(r),s},Z.config=S,Z.parseQuery=z,function(...e){Y.push(...e)}(H)},791:function(e,t,i){function n(e){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},n(e)}function r(e){var t=function(e,t){if(\"object\"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||\"default\");if(\"object\"!==n(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");return\"symbol\"===n(t)?t:String(t)}function s(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(e){return\"Minified Redux error #\"+e+\"; visit https://redux.js.org/Errors?code=\"+e+\" for the full message or use the non-minified dev environment for full errors. \"}i.r(t),i.d(t,{__DO_NOT_USE__ActionTypes:function(){return u},applyMiddleware:function(){return y},bindActionCreators:function(){return g},combineReducers:function(){return m},compose:function(){return _},createStore:function(){return p},legacy_createStore:function(){return f}});var l=\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\",h=function(){return Math.random().toString(36).substring(7).split(\"\").join(\".\")},u={INIT:\"@@redux/INIT\"+h(),REPLACE:\"@@redux/REPLACE\"+h(),PROBE_UNKNOWN_ACTION:function(){return\"@@redux/PROBE_UNKNOWN_ACTION\"+h()}};function d(e){if(\"object\"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p(e,t,i){var n;if(\"function\"==typeof t&&\"function\"==typeof i||\"function\"==typeof i&&\"function\"==typeof arguments[3])throw new Error(c(0));if(\"function\"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if(\"function\"!=typeof i)throw new Error(c(1));return i(p)(e,t)}if(\"function\"!=typeof e)throw new Error(c(2));var r=e,s=t,o=[],a=o,h=!1;function f(){a===o&&(a=o.slice())}function m(){if(h)throw new Error(c(3));return s}function v(e){if(\"function\"!=typeof e)throw new Error(c(4));if(h)throw new Error(c(5));var t=!0;return f(),a.push(e),function(){if(t){if(h)throw new Error(c(6));t=!1,f();var i=a.indexOf(e);a.splice(i,1),o=null}}}function g(e){if(!d(e))throw new Error(c(7));if(void 0===e.type)throw new Error(c(8));if(h)throw new Error(c(9));try{h=!0,s=r(s,e)}finally{h=!1}for(var t=o=a,i=0;i<t.length;i++)(0,t[i])();return e}return g({type:u.INIT}),(n={dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if(\"function\"!=typeof e)throw new Error(c(10));r=e,g({type:u.REPLACE})}})[l]=function(){var e,t=v;return(e={subscribe:function(e){if(\"object\"!=typeof e||null===e)throw new Error(c(11));function i(){e.next&&e.next(m())}return i(),{unsubscribe:t(i)}}})[l]=function(){return this},e},n}var f=p;function m(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++){var r=t[n];\"function\"==typeof e[r]&&(i[r]=e[r])}var s,o=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:u.INIT}))throw new Error(c(12));if(void 0===i(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(c(13))}))}(i)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var n=!1,r={},a=0;a<o.length;a++){var l=o[a],h=i[l],u=e[l],d=h(u,t);if(void 0===d)throw t&&t.type,new Error(c(14));r[l]=d,n=n||d!==u}return(n=n||o.length!==Object.keys(e).length)?r:e}}function v(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t){if(\"function\"==typeof e)return v(e,t);if(\"object\"!=typeof e||null===e)throw new Error(c(16));var i={};for(var n in e){var r=e[n];\"function\"==typeof r&&(i[n]=v(r,t))}return i}function _(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return function(){var i=e.apply(void 0,arguments),n=function(){throw new Error(c(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},s=t.map((function(e){return e(r)}));return n=_.apply(void 0,s)(i.dispatch),a(a({},i),{},{dispatch:n})}}}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var n,r,s={};return n=i(373),r=i.n(n),i(187),i(883),i(789),i(686),s.default=r(),s=s.default}()},\"object\"==typeof i&&\"object\"==typeof t?t.exports=o():\"function\"==typeof define&&define.amd?define([],o):\"object\"==typeof i?i.Choices=o():s.Choices=o()},\n 603: function _(e,i,o,t,c){t(),o.default='.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px;}.choices:focus{outline:none;}.choices:last-child{margin-bottom:0;}.choices.is-open{overflow:visible;}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;user-select:none;}.choices.is-disabled .choices__item{cursor:not-allowed;}.choices [hidden]{display:none !important;}.choices[data-type*=select-one]{cursor:pointer;}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px;}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0;}.choices[data-type*=select-one] .choices__button{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==\");padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:0.25;}.choices[data-type*=select-one] .choices__button:hover,.choices[data-type*=select-one] .choices__button:focus{opacity:1;}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px #00bcd4;}.choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__button{display:none;}.choices[data-type*=select-one]::after{content:\"\";height:0;width:0;border-style:solid;border-color:#333 transparent transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none;}.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #333 transparent;margin-top:-7.5px;}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto;}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0;}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text;}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin-top:0;margin-right:-4px;margin-bottom:0;margin-left:8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==\");background-size:8px;width:8px;line-height:1;opacity:0.75;border-radius:0;}.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=text] .choices__button:hover,.choices[data-type*=text] .choices__button:focus{opacity:1;}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden;}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7;}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0;}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px;}.choices__list{margin:0;padding-left:0;list-style:none;}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%;}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px;}.choices__list--single .choices__item{width:100%;}.choices__list--multiple{display:inline;}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;box-sizing:border-box;}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px;}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px;}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1;}.is-disabled .choices__list--multiple .choices__item{background-color:#aaaaaa;border:1px solid #919191;}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility;}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible;}.is-open .choices__list--dropdown,.is-open .choices__list[aria-expanded]{border-color:#b7b7b7;}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:0.25rem 0.25rem 0 0;}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position;}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{position:relative;padding:10px;font-size:14px;}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right;}@media (min-width: 640px){.choices__list--dropdown .choices__item--selectable,.choices__list[aria-expanded] .choices__item--selectable{padding-right:100px;}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%);}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px;}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px;}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:#f2f2f2;}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:0.5;}.choices__item{cursor:default;}.choices__item--selectable{cursor:pointer;}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;opacity:0.5;}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray;}.choices__button{text-indent:-9999px;-webkit-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer;}.choices__button:focus{outline:none;}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px;}.choices__input:focus{outline:0;}.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none;}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0;}[dir=rtl] .choices__input{padding-right:2px;padding-left:0;}.choices__placeholder{opacity:0.5;}.choices{width:100%;}.choices{box-sizing:border-box;}.choices *,.choices *:before,.choices *:after{box-sizing:inherit;}input[type=\"search\"]{margin:0;}.choices__inner .choices__item.light{background-color:rgba(0, 126, 255, 0.08);border-radius:5px;border:1px solid rgba(0, 126, 255, 0.24);color:#007eff;}.choices__inner .choices__item.solid{background-color:#1f77b4;border:none;border-radius:5px;color:white;}.choices__inner .choices__item.solid .is-highlighted{background-color:#1f77b4;border:none;}.choices__input{background-color:transparent;}.choices__inner{background:transparent;border:1px solid darkgray;border-radius:5px;min-height:0;padding:calc(var(--padding-vertical) / 2) var(--padding-horizontal);}.choices__list{white-space:initial;}.choices__list--dropdown,.choices__list[aria-expanded]{z-index:100;}.choices__list--dropdown .choices__item--selectable,.choices__list[aria-expanded] .choices__item--selectable{padding-right:0;}.choices[data-type*=select-multiple] .choices__button.light{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDA3ZWZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);}.choices[data-type*=select-multiple] .choices__button.solid{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);border-left:1px solid white;opacity:1;}'},\n 604: function _(e,t,l,i,n){var s;i();const u=e(1),h=u.__importStar(e(171)),o=e(551),a=e(162),r=e(56),d=e(8),p=e(12),_=u.__importStar(e(552)),m=/^[-+]?\\d*$/,c=/^[-+]?\\d*\\.?\\d*(?:(?:\\d|\\d.)[eE][-+]?)*\\d*$/;class v extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,(()=>{var e;return this.input_el.name=null!==(e=this.model.name)&&void 0!==e?e:\"\"})),this.connect(this.model.properties.value.change,(()=>{this.input_el.value=this.format_value,this.old_value=this.input_el.value})),this.connect(this.model.properties.low.change,(()=>{const{value:e,low:t,high:l}=this.model;null!=t&&null!=l&&(0,p.assert)(t<=l,\"Invalid bounds, low must be inferior to high\"),null!=e&&null!=t&&e<t&&(this.model.value=t)})),this.connect(this.model.properties.high.change,(()=>{const{value:e,low:t,high:l}=this.model;null!=t&&null!=l&&(0,p.assert)(l>=t,\"Invalid bounds, high must be superior to low\"),null!=e&&null!=l&&e>l&&(this.model.value=l)})),this.connect(this.model.properties.high.change,(()=>this.input_el.placeholder=this.model.placeholder)),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled)),this.connect(this.model.properties.placeholder.change,(()=>this.input_el.placeholder=this.model.placeholder))}get format_value(){return null!=this.model.value?this.model.pretty(this.model.value):\"\"}_set_input_filter(e){this.input_el.addEventListener(\"input\",(()=>{const{selectionStart:t,selectionEnd:l}=this.input_el;if(e(this.input_el.value))this.old_value=this.input_el.value;else{const e=this.old_value.length-this.input_el.value.length;this.input_el.value=this.old_value,null!=t&&null!=l&&this.input_el.setSelectionRange(t-1,l+e)}}))}render(){super.render(),this.input_el=(0,r.input)({type:\"text\",class:_.input,name:this.model.name,value:this.format_value,disabled:this.model.disabled,placeholder:this.model.placeholder}),this.old_value=this.format_value,this.set_input_filter(),this.input_el.addEventListener(\"change\",(()=>this.change_input())),this.input_el.addEventListener(\"focusout\",(()=>this.input_el.value=this.format_value)),this.group_el.appendChild(this.input_el)}set_input_filter(){const e=\"int\"==this.model.mode?m:c;this._set_input_filter((t=>e.test(t)))}bound_value(e){let t=e;const{low:l,high:i}=this.model;return t=null!=l?Math.max(l,t):t,t=null!=i?Math.min(i,t):t,t}get value(){let e=\"\"!=this.input_el.value?Number(this.input_el.value):null;return null!=e&&(e=this.bound_value(e)),e}change_input(){null==this.value?this.model.value=null:Number.isNaN(this.value)||(this.model.value=this.value)}}l.NumericInputView=v,v.__name__=\"NumericInputView\";class g extends o.InputWidget{constructor(e){super(e)}_formatter(e,t){return(0,d.isString)(t)?h.format(e,t):t.doFormat([e],{loc:0})[0]}pretty(e){return null!=this.format?this._formatter(e,this.format):`${e}`}}l.NumericInput=g,s=g,g.__name__=\"NumericInput\",s.prototype.default_view=v,s.define((({Number:e,String:t,Enum:l,Ref:i,Or:n,Nullable:s})=>({value:[s(e),null],placeholder:[t,\"\"],mode:[l(\"int\",\"float\"),\"int\"],format:[s(n(t,i(a.TickFormatter))),null],low:[s(e),null],high:[s(e),null]})))},\n 605: function _(e,t,r,s,n){var a;s();const o=e(591),_=e(56);class p extends o.MarkupView{render(){super.render();const e=(0,_.pre)({style:{overflow:\"auto\"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=p,p.__name__=\"PreTextView\";class u extends o.Markup{constructor(e){super(e)}}r.PreText=u,a=u,u.__name__=\"PreText\",a.prototype.default_view=p},\n 606: function _(t,o,e,a,i){var n;a();const u=t(1),s=t(556),c=u.__importStar(t(547));class _ extends s.ToggleButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach(((o,e)=>{o.classList.toggle(c.active,t===e)}))}}e.RadioButtonGroupView=_,_.__name__=\"RadioButtonGroupView\";class l extends s.ToggleButtonGroup{constructor(t){super(t)}}e.RadioButtonGroup=l,n=l,l.__name__=\"RadioButtonGroup\",n.prototype.default_view=_,n.define((({Int:t,Nullable:o})=>({active:[o(t),null]})))},\n 607: function _(e,t,n,i,s){var o;i();const a=e(1),l=e(559),c=e(56),d=e(38),p=e(32),u=a.__importStar(e(552));class r extends l.ToggleInputGroupView{connect_signals(){super.connect_signals();const{active:e}=this.model.properties;this.on_change(e,(()=>{const{active:e}=this.model;for(const[t,n]of(0,p.enumerate)(this._inputs))t.checked=e==n}))}render(){super.render();const e=(0,c.div)({class:[u.input_group,this.model.inline?u.inline:null]});this.shadow_el.appendChild(e);const t=(0,d.unique_id)(),{active:n,labels:i}=this.model;this._inputs=[];for(let s=0;s<i.length;s++){const o=(0,c.input)({type:\"radio\",name:t,value:`${s}`});o.addEventListener(\"change\",(()=>this.change_active(s))),this._inputs.push(o),this.model.disabled&&(o.disabled=!0),s==n&&(o.checked=!0);const a=(0,c.label)(o,(0,c.span)(i[s]));e.appendChild(a)}}change_active(e){this.model.active=e}}n.RadioGroupView=r,r.__name__=\"RadioGroupView\";class h extends l.ToggleInputGroup{constructor(e){super(e)}}n.RadioGroup=h,o=h,h.__name__=\"RadioGroup\",o.prototype.default_view=r,o.define((({Int:e,Nullable:t})=>({active:[t(e),null]})))},\n 608: function _(e,r,t,a,i){var n;a();const o=e(1).__importStar(e(171)),s=e(584),_=e(8);class d extends s.AbstractRangeSliderView{}t.RangeSliderView=d,d.__name__=\"RangeSliderView\";class c extends s.AbstractSlider{constructor(e){super(e),this.behaviour=\"drag\",this.connected=[!1,!0,!1]}_formatter(e,r){return(0,_.isString)(r)?o.format(e,r):r.compute(e)}}t.RangeSlider=c,n=c,c.__name__=\"RangeSlider\",n.prototype.default_view=d,n.override({format:\"0[.]00\"})},\n 609: function _(e,t,n,s,i){var l;s();const u=e(1),a=e(56),o=e(8),p=e(9),_=e(551),r=u.__importStar(e(552));class h extends _.InputWidgetView{constructor(){super(...arguments),this._known_values=new Set}connect_signals(){super.connect_signals();const{value:e,options:t}=this.model.properties;this.on_change(e,(()=>{this._update_value()})),this.on_change(t,(()=>{(0,a.empty)(this.input_el),(0,a.append)(this.input_el,...this.options_el()),this._update_value()}))}options_el(){const{_known_values:e}=this;function t(t){return t.map((t=>{let n,s;return(0,o.isString)(t)?n=s=t:[n,s]=t,e.add(n),(0,a.option)({value:n},s)}))}e.clear();const{options:n}=this.model;return(0,o.isArray)(n)?t(n):(0,p.entries)(n).map((([e,n])=>(0,a.optgroup)({label:e},t(n))))}render(){super.render(),this.input_el=(0,a.select)({class:r.input,name:this.model.name,disabled:this.model.disabled},this.options_el()),this._update_value(),this.input_el.addEventListener(\"change\",(()=>this.change_input())),this.group_el.appendChild(this.input_el)}change_input(){const e=this.input_el.value;this.model.value=e,super.change_input()}_update_value(){const{value:e}=this.model;this._known_values.has(e)?this.input_el.value=e:this.input_el.removeAttribute(\"value\")}}n.SelectView=h,h.__name__=\"SelectView\";class c extends _.InputWidget{constructor(e){super(e)}}n.Select=c,l=c,c.__name__=\"Select\",l.prototype.default_view=h,l.define((({String:e,Array:t,Tuple:n,Dict:s,Or:i})=>{const l=t(i(e,n(e,e)));return{value:[e,\"\"],options:[i(l,s(l)),[]]}}))},\n 610: function _(e,t,r,i,a){var o;i();const s=e(1).__importStar(e(171)),_=e(584),n=e(8);class c extends _.AbstractSliderView{}r.SliderView=c,c.__name__=\"SliderView\";class d extends _.AbstractSlider{constructor(e){super(e),this.behaviour=\"tap\",this.connected=[!0,!1]}_formatter(e,t){return(0,n.isString)(t)?s.format(e,t):t.compute(e)}}r.Slider=d,o=d,d.__name__=\"Slider\",o.prototype.default_view=c,o.override({format:\"0[.]00\"})},\n 611: function _(e,t,i,n,s){var l;n();const o=e(1),r=e(604),a=o.__importStar(e(17)),h=e(56),{min:_,max:u,floor:d,abs:p}=Math;function m(e){return d(e)!==e?e.toFixed(16).replace(/0+$/,\"\").split(\".\")[1].length:0}class c extends r.NumericInputView{*buttons(){yield this.btn_up_el,yield this.btn_down_el}initialize(){super.initialize(),this._handles={interval:void 0,timeout:void 0},this._interval=200}connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,(()=>{for(const e of this.buttons())(0,h.toggle_attribute)(e,\"disabled\",this.model.disabled)}))}render(){super.render(),this.wrapper_el=(0,h.div)({class:\"bk-spin-wrapper\"}),this.group_el.replaceChild(this.wrapper_el,this.input_el),this.btn_up_el=(0,h.button)({class:\"bk-spin-btn bk-spin-btn-up\"}),this.btn_down_el=(0,h.button)({class:\"bk-spin-btn bk-spin-btn-down\"}),this.wrapper_el.appendChild(this.input_el),this.wrapper_el.appendChild(this.btn_up_el),this.wrapper_el.appendChild(this.btn_down_el);for(const e of this.buttons())(0,h.toggle_attribute)(e,\"disabled\",this.model.disabled),e.addEventListener(\"mousedown\",(e=>this._btn_mouse_down(e))),e.addEventListener(\"mouseup\",(()=>this._btn_mouse_up())),e.addEventListener(\"mouseleave\",(()=>this._btn_mouse_leave()));this.input_el.addEventListener(\"keydown\",(e=>{this._input_key_down(e)})),this.input_el.addEventListener(\"keyup\",(()=>{this.model.value_throttled=this.model.value})),this.input_el.addEventListener(\"wheel\",(e=>{this._input_mouse_wheel(e)})),this.input_el.addEventListener(\"wheel\",function(e,t,i=!1){let n;return function(...s){const l=this,o=i&&void 0===n;void 0!==n&&clearTimeout(n),n=setTimeout((function(){n=void 0,i||e.apply(l,s)}),t),o&&e.apply(l,s)}}((()=>{this.model.value_throttled=this.model.value}),this.model.wheel_wait,!1))}get precision(){const{low:e,high:t,step:i}=this.model,n=m;return u(n(p(null!=e?e:0)),n(p(null!=t?t:0)),n(p(i)))}remove(){this._stop_incrementation(),super.remove()}_start_incrementation(e){clearInterval(this._handles.interval),this._counter=0;const{step:t}=this.model,i=e=>{if(this._counter+=1,this._counter%5==0){const t=Math.floor(this._counter/5);t<10?(clearInterval(this._handles.interval),this._handles.interval=setInterval((()=>i(e)),this._interval/(t+1))):t>=10&&t<=13&&(clearInterval(this._handles.interval),this._handles.interval=setInterval((()=>i(2*e)),this._interval/10))}this.increment(e)};this._handles.interval=setInterval((()=>i(e*t)),this._interval)}_stop_incrementation(){clearTimeout(this._handles.timeout),this._handles.timeout=void 0,clearInterval(this._handles.interval),this._handles.interval=void 0,this.model.value_throttled=this.model.value}_btn_mouse_down(e){e.preventDefault();const t=e.currentTarget===this.btn_up_el?1:-1;this.increment(t*this.model.step),this.input_el.focus(),this._handles.timeout=setTimeout((()=>this._start_incrementation(t)),this._interval)}_btn_mouse_up(){this._stop_incrementation()}_btn_mouse_leave(){this._stop_incrementation()}_input_mouse_wheel(e){if(document.activeElement===this.input_el){e.preventDefault();const t=e.deltaY>0?-1:1;this.increment(t*this.model.step)}}_input_key_down(e){switch(e.key){case\"ArrowUp\":return e.preventDefault(),this.increment(this.model.step);case\"ArrowDown\":return e.preventDefault(),this.increment(-this.model.step);case\"PageUp\":return e.preventDefault(),this.increment(this.model.page_step_multiplier*this.model.step);case\"PageDown\":return e.preventDefault(),this.increment(-this.model.page_step_multiplier*this.model.step)}}adjust_to_precision(e){return this.bound_value(Number(e.toFixed(this.precision)))}increment(e){const{low:t,high:i}=this.model;null==this.model.value?e>0?this.model.value=null!=t?t:null!=i?_(0,i):0:e<0&&(this.model.value=null!=i?i:null!=t?u(t,0):0):this.model.value=this.adjust_to_precision(this.model.value+e)}change_input(){super.change_input(),this.model.value_throttled=this.model.value}}i.SpinnerView=c,c.__name__=\"SpinnerView\";class v extends r.NumericInput{constructor(e){super(e)}}i.Spinner=v,l=v,v.__name__=\"Spinner\",l.prototype.default_view=c,l.define((({Number:e,Nullable:t})=>({value_throttled:[t(e),a.unset,{readonly:!0}],step:[e,1],page_step_multiplier:[e,10],wheel_wait:[e,100]}))),l.override({mode:\"float\"})},\n 612: function _(e,t,s,i,a){var l;i();const d=e(1),n=e(562),c=e(56),_=d.__importDefault(e(613));class h extends n.ToggleInputView{stylesheets(){return[...super.stylesheets(),_.default]}connect_signals(){super.connect_signals(),this.el.addEventListener(\"keydown\",(e=>{switch(e.key){case\"Enter\":case\" \":e.preventDefault(),this._toggle_active()}})),this.el.addEventListener(\"click\",(()=>this._toggle_active()))}render(){super.render(),this.bar_el=(0,c.div)({class:\"bar\"}),this.knob_el=(0,c.div)({class:\"knob\",tabIndex:0});const e=(0,c.div)({class:\"body\"},this.bar_el,this.knob_el);this._update_active(),this._update_disabled(),this.shadow_el.appendChild(e)}_update_active(){this.el.classList.toggle(\"active\",this.model.active)}_update_disabled(){this.el.classList.toggle(\"disabled\",this.model.disabled)}}s.SwitchView=h,h.__name__=\"SwitchView\";class o extends n.ToggleInput{constructor(e){super(e)}}s.Switch=o,l=o,o.__name__=\"Switch\",l.prototype.default_view=h,l.override({width:32})},\n 613: function _(o,r,t,a,i){a(),t.default=\":host{cursor:pointer;}:host(.disabled){cursor:default;}:host{--switch-size:16px;--bar-height:10px;}.body{width:100%;height:var(--switch-size);}.bar{position:relative;top:calc(50% - var(--bar-height)/2);height:var(--bar-height);border-radius:calc(var(--bar-height)/2);background-color:#e5e5e5;transition-property:background-color;}.knob{position:absolute;top:0;left:0;width:var(--switch-size);height:var(--switch-size);border-radius:8px;background-color:#adadad;transition-property:left, background-color;}:host(.active) .bar{background-color:#c2d5f7;}:host(.active) .knob{left:calc(100% - var(--switch-size));background-color:#3b80f0;}\"},\n 614: function _(e,t,s,n,i){var r;n();const o=e(1),l=e(550),c=e(56),p=o.__importStar(e(552));class _ extends l.TextLikeInputView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.rows.change,(()=>this.input_el.rows=this.model.rows)),this.connect(this.model.properties.cols.change,(()=>this.input_el.cols=this.model.cols))}_render_input(){return this.input_el=(0,c.textarea)({class:p.input})}render(){super.render(),this.input_el.cols=this.model.cols,this.input_el.rows=this.model.rows}}s.TextAreaInputView=_,_.__name__=\"TextAreaInputView\";class u extends l.TextLikeInput{constructor(e){super(e)}}s.TextAreaInput=u,r=u,u.__name__=\"TextAreaInput\",r.prototype.default_view=_,r.define((({Int:e})=>({cols:[e,20],rows:[e,2]}))),r.override({max_length:500})},\n 615: function _(e,t,i,s,c){var o;s();const a=e(1),n=e(544),l=e(52),r=a.__importStar(e(547));class _ extends n.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,(()=>this._update_active()))}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,this.model.trigger_event(new l.ButtonClick),super.click()}_update_active(){this.button_el.classList.toggle(r.active,this.model.active)}}i.ToggleView=_,_.__name__=\"ToggleView\";class g extends n.AbstractButton{constructor(e){super(e)}}i.Toggle=g,o=g,g.__name__=\"Toggle\",o.prototype.default_view=_,o.define((({Boolean:e})=>({active:[e,!1]}))),o.override({label:\"Toggle\"})},\n }, 542, {\"models/widgets/main\":542,\"models/widgets/index\":543,\"models/widgets/abstract_button\":544,\"models/widgets/control\":545,\"models/widgets/widget\":640,\"styles/buttons.css\":547,\"models/widgets/autocomplete_input\":548,\"models/widgets/text_input\":549,\"models/widgets/text_like_input\":550,\"models/widgets/input_widget\":551,\"styles/widgets/inputs.css\":552,\"styles/dropdown.css\":553,\"models/widgets/button\":554,\"models/widgets/checkbox_button_group\":555,\"models/widgets/toggle_button_group\":556,\"models/widgets/oriented_control\":557,\"models/widgets/checkbox_group\":558,\"models/widgets/toggle_input_group\":559,\"styles/widgets/checkbox.css\":560,\"models/widgets/checkbox\":561,\"models/widgets/toggle_input\":562,\"models/widgets/color_picker\":563,\"models/widgets/date_picker\":564,\"models/widgets/base_date_picker\":565,\"models/widgets/picker_base\":566,\"styles/widgets/flatpickr.css\":575,\"models/widgets/date_range_picker\":576,\"models/widgets/multiple_date_picker\":577,\"models/widgets/datetime_picker\":578,\"models/widgets/base_datetime_picker\":579,\"models/widgets/datetime_range_picker\":580,\"models/widgets/multiple_datetime_picker\":581,\"models/widgets/time_picker\":582,\"models/widgets/date_range_slider\":583,\"models/widgets/abstract_slider\":584,\"styles/widgets/sliders.css\":586,\"styles/widgets/nouislider.css\":587,\"models/widgets/date_slider\":588,\"models/widgets/datetime_range_slider\":589,\"models/widgets/div\":590,\"models/widgets/markup\":591,\"styles/clearfix.css\":592,\"models/widgets/dropdown\":593,\"styles/caret.css\":594,\"models/widgets/file_input\":595,\"models/widgets/help_button\":596,\"models/widgets/multiselect\":597,\"models/widgets/paragraph\":598,\"models/widgets/password_input\":599,\"styles/widgets/password_input.css\":600,\"models/widgets/multi_choice\":601,\"styles/widgets/choices.css\":603,\"models/widgets/numeric_input\":604,\"models/widgets/pretext\":605,\"models/widgets/radio_button_group\":606,\"models/widgets/radio_group\":607,\"models/widgets/range_slider\":608,\"models/widgets/selectbox\":609,\"models/widgets/slider\":610,\"models/widgets/spinner\":611,\"models/widgets/switch\":612,\"styles/widgets/switch.css\":613,\"models/widgets/textarea_input\":614,\"models/widgets/toggle\":615}, {});});\n\n /* END bokeh-widgets.min.js */\n },\n function(Bokeh) {\n /* BEGIN bokeh-tables.min.js */\n /*!\n * Copyright (c) 2012 - 2023, 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(root, factory) {\n factory(root[\"Bokeh\"], \"3.1.1\");\n })(this, function(Bokeh, version) {\n let define;\n return (function(modules, entry, aliases, externals) {\n const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n if (bokeh != null) {\n return bokeh.register_plugin(modules, entry, aliases);\n } else {\n throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n }\n })\n ({\n 616: function _(t,e,o,r,s){r();const _=t(1).__importStar(t(617));o.Tables=_;(0,t(7).register_models)(_)},\n 617: function _(g,a,r,e,t){e();const o=g(1);o.__exportStar(g(618),r),o.__exportStar(g(621),r),t(\"DataTable\",g(624).DataTable),t(\"TableColumn\",g(642).TableColumn),t(\"TableWidget\",g(641).TableWidget);var n=g(644);t(\"AvgAggregator\",n.AvgAggregator),t(\"MinAggregator\",n.MinAggregator),t(\"MaxAggregator\",n.MaxAggregator),t(\"SumAggregator\",n.SumAggregator);var A=g(645);t(\"GroupingInfo\",A.GroupingInfo),t(\"DataCube\",A.DataCube)},\n 618: function _(e,t,i,s,r){var a,l,n,u,d,o,p,_,c;s();const h=e(1),E=e(56),V=e(8),m=e(55),f=e(50),w=e(619),g=h.__importStar(e(620));class x extends m.DOMComponentView{get emptyValue(){return null}constructor(e){const{model:t,parent:i}=e.column;super(Object.assign({model:t,parent:i},e)),this.args=e,this.initialize(),this.render()}initialize(){super.initialize(),this.inputEl=this._createInput(),this.defaultValue=null}async lazy_initialize(){throw new Error(\"unsupported\")}css_classes(){return super.css_classes().concat(g.cell_editor)}render(){this.args.container.append(this.el),this.shadow_el.appendChild(this.inputEl),this.renderEditor(),this.disableNavigation()}renderEditor(){}disableNavigation(){this.inputEl.addEventListener(\"keydown\",(e=>{switch(e.key){case\"ArrowLeft\":case\"ArrowRight\":case\"ArrowUp\":case\"ArrowDown\":case\"PageUp\":case\"PageDown\":e.stopImmediatePropagation()}}))}destroy(){this.remove()}focus(){this.inputEl.focus()}show(){}hide(){}position(){}getValue(){return this.inputEl.value}setValue(e){this.inputEl.value=e}serializeValue(){return this.getValue()}isValueChanged(){return!(\"\"==this.getValue()&&null==this.defaultValue)&&this.getValue()!==this.defaultValue}applyValue(e,t){const i=this.args.grid.getData(),s=i.index.indexOf(e[w.DTINDEX_NAME]);i.setField(s,this.args.column.field,t)}loadValue(e){const t=e[this.args.column.field];this.defaultValue=null!=t?t:this.emptyValue,this.setValue(this.defaultValue)}validateValue(e){if(this.args.column.validator){const t=this.args.column.validator(e);if(!t.valid)return t}return{valid:!0,msg:null}}validate(){return this.validateValue(this.getValue())}}i.CellEditorView=x,x.__name__=\"CellEditorView\";class v extends f.Model{}i.CellEditor=v,v.__name__=\"CellEditor\";class y extends x{get emptyValue(){return\"\"}_createInput(){return(0,E.input)({type:\"text\"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}}i.StringEditorView=y,y.__name__=\"StringEditorView\";class I extends v{}i.StringEditor=I,a=I,I.__name__=\"StringEditor\",a.prototype.default_view=y,a.define((({String:e,Array:t})=>({completions:[t(e),[]]})));class N extends x{_createInput(){return(0,E.textarea)()}renderEditor(){this.inputEl.focus(),this.inputEl.select()}}i.TextEditorView=N,N.__name__=\"TextEditorView\";class b extends v{}i.TextEditor=b,l=b,b.__name__=\"TextEditor\",l.prototype.default_view=N;class C extends x{_createInput(){return(0,E.select)()}renderEditor(){for(const e of this.model.options)this.inputEl.appendChild((0,E.option)({value:e},e));this.focus()}}i.SelectEditorView=C,C.__name__=\"SelectEditorView\";class S extends v{}i.SelectEditor=S,n=S,S.__name__=\"SelectEditor\",n.prototype.default_view=C,n.define((({String:e,Array:t})=>({options:[t(e),[]]})));class D extends x{_createInput(){return(0,E.input)({type:\"text\"})}}i.PercentEditorView=D,D.__name__=\"PercentEditorView\";class k extends v{}i.PercentEditor=k,u=k,k.__name__=\"PercentEditor\",u.prototype.default_view=D;class z extends x{_createInput(){return(0,E.input)({type:\"checkbox\"})}renderEditor(){this.focus()}loadValue(e){this.defaultValue=!!e[this.args.column.field],this.inputEl.checked=this.defaultValue}serializeValue(){return this.inputEl.checked}}i.CheckboxEditorView=z,z.__name__=\"CheckboxEditorView\";class P extends v{}i.CheckboxEditor=P,d=P,P.__name__=\"CheckboxEditor\",d.prototype.default_view=z;class T extends x{_createInput(){return(0,E.input)({type:\"text\"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){const e=parseInt(this.getValue(),10);return isNaN(e)?0:e}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return(0,V.isString)(e)&&(e=Number(e)),(0,V.isInteger)(e)?super.validateValue(e):{valid:!1,msg:\"Please enter a valid integer\"}}}i.IntEditorView=T,T.__name__=\"IntEditorView\";class A extends v{}i.IntEditor=A,o=A,A.__name__=\"IntEditor\",o.prototype.default_view=T,o.define((({Int:e})=>({step:[e,1]})));class M extends x{_createInput(){return(0,E.input)({type:\"text\"})}renderEditor(){this.inputEl.focus(),this.inputEl.select()}remove(){super.remove()}serializeValue(){const e=parseFloat(this.getValue());return isNaN(e)?0:e}loadValue(e){super.loadValue(e),this.inputEl.defaultValue=this.defaultValue,this.inputEl.select()}validateValue(e){return isNaN(e)?{valid:!1,msg:\"Please enter a valid number\"}:super.validateValue(e)}}i.NumberEditorView=M,M.__name__=\"NumberEditorView\";class O extends v{}i.NumberEditor=O,p=O,O.__name__=\"NumberEditor\",p.prototype.default_view=M,p.define((({Number:e})=>({step:[e,.01]})));class F extends x{_createInput(){return(0,E.input)({type:\"text\"})}}i.TimeEditorView=F,F.__name__=\"TimeEditorView\";class L extends v{}i.TimeEditor=L,_=L,L.__name__=\"TimeEditor\",_.prototype.default_view=F;class U extends x{_createInput(){return(0,E.input)({type:\"text\"})}get emptyValue(){return new Date}renderEditor(){this.inputEl.focus(),this.inputEl.select()}destroy(){super.destroy()}show(){super.show()}hide(){super.hide()}position(){return super.position()}getValue(){}setValue(e){}}i.DateEditorView=U,U.__name__=\"DateEditorView\";class j extends v{}i.DateEditor=j,c=j,j.__name__=\"DateEditor\",c.prototype.default_view=U},\n 619: function _(_,n,i,t,d){t(),i.DTINDEX_NAME=\"__bkdt_internal_index__\"},\n 620: function _(e,l,t,i,r){i(),t.data_table=\"bk-data-table\",t.cell_special_defaults=\"bk-cell-special-defaults\",t.cell_select=\"bk-cell-select\",t.cell_index=\"bk-cell-index\",t.header_index=\"bk-header-index\",t.cell_editor=\"bk-cell-editor\",t.cell_editor_completion=\"bk-cell-editor-completion\",t.default=':host{--data-table-font-size:11px;}.bk-data-table{box-sizing:content-box;width:100%;height:100%;font-size:var(--data-table-font-size);}.bk-data-table input[type=\"checkbox\"]{margin-left:4px;margin-right:4px;}.bk-cell-special-defaults{border-right-color:silver;border-right-style:solid;background:#f5f5f5;}.bk-cell-select{border-right-color:silver;border-right-style:solid;background:#f5f5f5;}.slick-cell.bk-cell-index{border-right-color:silver;border-right-style:solid;background:#f5f5f5;text-align:right;background:#f0f0f0;color:#909090;}.bk-header-index .slick-column-name{float:right;}.slick-row.selected .bk-cell-index{background-color:transparent;}.slick-row.odd{background:#f0f0f0;}.slick-cell{padding-left:4px;padding-right:4px;border-right-color:transparent;border:0.25px solid transparent;}.slick-cell .bk{line-height:inherit;}.slick-cell.active{border-style:dashed;}.slick-cell.selected{background-color:#F0F8FF;}.slick-cell.editable{padding-left:0;padding-right:0;}.bk-cell-editor{display:contents;}.bk-cell-editor input,.bk-cell-editor select{width:100%;height:100%;border:0;margin:0;padding:0;outline:0;background:transparent;vertical-align:baseline;}.bk-cell-editor input{padding-left:4px;padding-right:4px;}.bk-cell-editor-completion{font-size:var(--data-table-font-size);}'},\n 621: function _(t,e,r,n,a){var o,s,i,l,c,u;n();const m=t(1),_=m.__importDefault(t(173)),d=m.__importStar(t(171)),f=t(622),g=t(56),h=t(19),F=t(8),p=t(38),b=t(21),S=t(50);class x extends S.Model{constructor(t){super(t)}doFormat(t,e,r,n,a){return null==r?\"\":`${r}`.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\")}}r.CellFormatter=x,x.__name__=\"CellFormatter\";class N extends x{constructor(t){super(t)}doFormat(t,e,r,n,a){const{font_style:o,text_align:s,text_color:i}=this,l=(0,g.div)(null==r?\"\":`${r}`);switch(o){case\"normal\":break;case\"bold\":l.style.fontWeight=\"bold\";break;case\"italic\":l.style.fontStyle=\"italic\";break;case\"bold italic\":l.style.fontWeight=\"bold\",l.style.fontStyle=\"italic\"}return l.style.textAlign=s,null!=i&&(l.style.color=(0,b.color2css)(i)),l.outerHTML}}r.StringFormatter=N,o=N,N.__name__=\"StringFormatter\",o.define((({Color:t,Nullable:e,String:r})=>({font_style:[h.FontStyle,\"normal\"],text_align:[h.TextAlign,\"left\"],text_color:[e(t),null],nan_format:[r,\"-\"]})));class w extends N{constructor(t){super(t)}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}doFormat(t,e,r,n,a){const o=Math.abs(r)<=this.scientific_limit_low||Math.abs(r)>=this.scientific_limit_high;let s=this.precision;return s<1&&(s=1),r=null==r||isNaN(r)?this.nan_format:0==r?(0,p.to_fixed)(r,1):o?r.toExponential(s):(0,p.to_fixed)(r,s),super.doFormat(t,e,r,n,a)}}r.ScientificFormatter=w,s=w,w.__name__=\"ScientificFormatter\",s.define((({Number:t})=>({precision:[t,10],power_limit_high:[t,5],power_limit_low:[t,-3]})));class y extends N{constructor(t){super(t)}doFormat(t,e,r,n,a){const{format:o,language:s,nan_format:i}=this,l=(()=>{switch(this.rounding){case\"round\":case\"nearest\":return Math.round;case\"floor\":case\"rounddown\":return Math.floor;case\"ceil\":case\"roundup\":return Math.ceil}})();return r=null==r||isNaN(r)?i:d.format(r,o,s,l),super.doFormat(t,e,r,n,a)}}r.NumberFormatter=y,i=y,y.__name__=\"NumberFormatter\",i.define((({String:t})=>({format:[t,\"0,0\"],language:[t,\"en\"],rounding:[h.RoundingFunction,\"round\"]})));class M extends x{constructor(t){super(t)}doFormat(t,e,r,n,a){return r?(0,g.i)({class:this.icon}).outerHTML:\"\"}}r.BooleanFormatter=M,l=M,M.__name__=\"BooleanFormatter\",l.define((({String:t})=>({icon:[t,\"check\"]})));class C extends N{constructor(t){super(t)}getFormat(){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}}doFormat(t,e,r,n,a){const o=(()=>{if(null==r||(0,F.isNumber)(r))return r;if((0,F.isString)(r)){const t=Number(r);return isNaN(t)?function(t){const e=/Z$|[+-]\\d\\d((:?)\\d\\d)?$/.test(t);return new Date(e?t:`${t}Z`).getTime()}(r):t}return r instanceof Date?r.valueOf():Number(r)})(),s=(()=>null==o||isNaN(o)||-9223372036854776==o?this.nan_format:(0,_.default)(o,this.getFormat()))();return super.doFormat(t,e,s,n,a)}}r.DateFormatter=C,c=C,C.__name__=\"DateFormatter\",c.define((({String:t})=>({format:[t,\"ISO-8601\"]})));class T extends x{constructor(t){super(t)}doFormat(t,e,r,n,a){const{template:o}=this;if(null==r)return\"\";return f._.template(o)(Object.assign(Object.assign({},a),{value:r}))}}r.HTMLTemplateFormatter=T,u=T,T.__name__=\"HTMLTemplateFormatter\",u.define((({String:t})=>({template:[t,\"<%= value %>\"]})))},\n 622: function _(e,n,t,f,i){var o=e(623),d=o.template;function r(e,n,t){return d(e,n,t)}r._=o,n.exports=r,\"function\"==typeof define&&define.amd?define((function(){return r})):\"undefined\"==typeof window&&\"undefined\"==typeof navigator||(window.UnderscoreTemplate=r)},\n 623: function _(r,e,n,t,a){\n // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n // Underscore may be freely distributed under the MIT license.\n var u={},c=Array.prototype,o=Object.prototype,l=c.slice,i=o.toString,f=o.hasOwnProperty,s=c.forEach,p=Object.keys,_=Array.isArray,h=function(){},v=h.each=h.forEach=function(r,e,n){if(null!=r)if(s&&r.forEach===s)r.forEach(e,n);else if(r.length===+r.length){for(var t=0,a=r.length;t<a;t++)if(e.call(n,r[t],t,r)===u)return}else{var c=h.keys(r);for(t=0,a=c.length;t<a;t++)if(e.call(n,r[c[t]],c[t],r)===u)return}};h.keys=p||function(r){if(r!==Object(r))throw new TypeError(\"Invalid object\");var e=[];for(var n in r)h.has(r,n)&&e.push(n);return e},h.defaults=function(r){return v(l.call(arguments,1),(function(e){if(e)for(var n in e)void 0===r[n]&&(r[n]=e[n])})),r},h.isArray=_||function(r){return\"[object Array]\"===i.call(r)},h.has=function(r,e){if(!h.isArray(e))return null!=r&&f.call(r,e);for(var n=e.length,t=0;t<n;t++){var a=e[t];if(null==r||!f.call(r,a))return!1;r=r[a]}return!!n};var g={escape:{\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"}},y={escape:new RegExp(\"[\"+h.keys(g.escape).join(\"\")+\"]\",\"g\")};h.each([\"escape\"],(function(r){h[r]=function(e){return null==e?\"\":(\"\"+e).replace(y[r],(function(e){return g[r][e]}))}})),h.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var j=/(.)^/,b={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},w=/\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;h.template=function(r,e,n){var t;n=h.defaults({},n,h.templateSettings);var a=new RegExp([(n.escape||j).source,(n.interpolate||j).source,(n.evaluate||j).source].join(\"|\")+\"|$\",\"g\"),u=0,c=\"__p+='\";r.replace(a,(function(e,n,t,a,o){return c+=r.slice(u,o).replace(w,(function(r){return\"\\\\\"+b[r]})),n&&(c+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),t&&(c+=\"'+\\n((__t=(\"+t+\"))==null?'':__t)+\\n'\"),a&&(c+=\"';\\n\"+a+\"\\n__p+='\"),u=o+e.length,e})),c+=\"';\\n\",n.variable||(c=\"with(obj||{}){\\n\"+c+\"}\\n\"),c=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+c+\"return __p;\\n\";try{t=new Function(n.variable||\"obj\",\"_\",c)}catch(r){throw r.source=c,r}if(e)return t(e,h);var o=function(r){return t.call(this,r,h)};return o.source=\"function(\"+(n.variable||\"obj\")+\"){\\n\"+c+\"}\",o},e.exports=h},\n 624: function _(e,t,i,s,o){var r;s();const n=e(1),l=e(625),d=e(629),a=e(630),h=e(631),u=e(56),c=e(38),_=e(8),m=e(10),g=e(29),f=e(9),p=e(18),w=e(640),b=e(619),v=e(641),x=e(642),z=e(59),C=n.__importStar(e(620)),y=C,A=n.__importDefault(e(643));i.AutosizeModes={fit_columns:\"FCV\",fit_viewport:\"FVC\",force_fit:\"LFF\",none:\"NOA\"};let D=!1;class N{constructor(e,t){this.init(e,t)}init(e,t){if(b.DTINDEX_NAME in e.data)throw new Error(`special name ${b.DTINDEX_NAME} cannot be used as a data table column`);this.source=e,this.view=t,this.index=[...this.view.indices]}getLength(){return this.index.length}getItem(e){const t={},{data:i}=this.source;for(const s of(0,f.keys)(i)){const o=i[s],r=this.index[e],n=(0,g.is_NDArray)(o)?o.get(r):o[r];t[s]=n}return t[b.DTINDEX_NAME]=this.index[e],t}getField(e,t){if(t==b.DTINDEX_NAME)return this.index[e];{const{data:i}=this.source,s=i[t],o=this.index[e];return(0,g.is_NDArray)(s)?s.get(o):s[o]}}setField(e,t,i){const s=this.index[e];this.source.patch({[t]:[[s,i]]})}getRecords(){return(0,m.range)(0,this.getLength()).map((e=>this.getItem(e)))}getItems(){return this.getRecords()}slice(e,t,i=1){return t=null!=t?t:this.getLength(),(0,m.range)(e,t,i).map((e=>this.getItem(e)))}sort(e){let t=e.map((e=>[e.sortCol.field,e.sortAsc?1:-1]));0==t.length&&(t=[[b.DTINDEX_NAME,1]]);const i=this.getRecords(),s=this.index.slice();this.index.sort(((e,o)=>{for(const[r,n]of t){const t=i[s.indexOf(e)][r],l=i[s.indexOf(o)][r];if(t!==l){if((0,_.isNumber)(t)&&(0,_.isNumber)(l))return n*(t-l||+isNaN(t)-+isNaN(l));{const e=`${t}`.localeCompare(`${l}`);if(0==e)continue;return n*e}}}return 0}))}}i.TableDataProvider=N,N.__name__=\"TableDataProvider\";class M extends w.WidgetView{constructor(){super(...arguments),this._in_selection_update=!1,this._width=null}get data_source(){return this.model.properties.source}*children(){yield*super.children(),yield this.cds_view}async lazy_initialize(){await super.lazy_initialize(),this.cds_view=await(0,z.build_view)(this.model.view,{parent:this})}remove(){this.cds_view.remove(),this.grid.destroy(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.render(),this.after_render(),this.invalidate_layout()}));for(const e of this.model.columns)this.connect(e.change,(()=>{this.render(),this.after_render(),this.invalidate_layout()}));this.connect(this.model.view.change,(()=>this.updateGrid())),this.connect(this.model.source.selected.change,(()=>this.updateSelection())),this.connect(this.model.source.selected.properties.indices.change,(()=>this.updateSelection()))}stylesheets(){return[...super.stylesheets(),A.default,C.default]}_after_resize(){super._after_resize(),this.grid.resizeCanvas(),this.updateLayout(!0,!1)}_after_layout(){super._after_layout(),this.grid.resizeCanvas(),this.updateLayout(!0,!1)}box_sizing(){const e=super.box_sizing();return\"fit_viewport\"===this.model.autosize_mode&&null!=this._width&&(e.width=this._width),e}updateLayout(e,t){const s=this.autosize;s===i.AutosizeModes.fit_columns||s===i.AutosizeModes.force_fit?(e||this.grid.resizeCanvas(),this.grid.autosizeColumns()):e&&t&&s===i.AutosizeModes.fit_viewport&&this.invalidate_layout()}updateGrid(){if(this.data.init(this.model.source,this.model.view),this.model.sortable){const e=this.grid.getColumns(),t=this.grid.getSortColumns().map((t=>({sortCol:{field:e[this.grid.getColumnIndex(t.columnId)].field},sortAsc:t.sortAsc})));this.data.sort(t)}this.grid.invalidate(),this.updateLayout(!0,!0)}updateSelection(){if(!1===this.model.selectable||this._in_selection_update)return;const{indices:e}=this.model.source.selected,t=(0,m.sort_by)((0,m.map)(e,(e=>this.data.index.indexOf(e))),(e=>e));this._in_selection_update=!0;try{this.grid.setSelectedRows([...t])}finally{this._in_selection_update=!1}const i=this.grid.getViewport(),s=this.model.get_scroll_index(i,t);null!=s&&this.grid.scrollRowToTop(s)}newIndexColumn(){return{id:(0,c.unique_id)(),name:this.model.index_header,field:b.DTINDEX_NAME,width:this.model.index_width,behavior:\"select\",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:y.cell_index,headerCssClass:y.header_index}}get autosize(){let e;return e=!0===this.model.fit_columns?i.AutosizeModes.force_fit:!1===this.model.fit_columns?i.AutosizeModes.none:i.AutosizeModes[this.model.autosize_mode],e}render(){super.render(),this.wrapper_el=(0,u.div)({class:y.data_table}),this.shadow_el.appendChild(this.wrapper_el)}_after_render(){var e;super._after_render();const t=this.model.columns.filter((e=>e.visible)).map((e=>Object.assign(Object.assign({},e.toColumn()),{parent:this})));let s=null;if(\"checkbox\"==this.model.selectable&&(s=new d.CheckboxSelectColumn({cssClass:y.cell_select}),t.unshift(s.getColumnDefinition())),null!=this.model.index_position){const e=this.model.index_position,i=this.newIndexColumn();-1==e?t.push(i):e<-1?t.splice(e+1,0,i):t.splice(e,0,i)}let{reorderable:o}=this.model;!o||\"undefined\"!=typeof $&&void 0!==$.fn&&\"sortable\"in $.fn||(D||(p.logger.warn(\"jquery-ui is required to enable DataTable.reorderable\"),D=!0),o=!1);let r=-1,n=!1;const{frozen_rows:u,frozen_columns:c}=this.model,m=null==c?-1:c-1;null!=u&&(n=u<0,r=Math.abs(u));const g={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:o,autosizeColsMode:this.autosize,multiColumnSort:this.model.sortable,editable:this.model.editable,autoEdit:this.model.auto_edit,autoHeight:!1,rowHeight:this.model.row_height,frozenColumn:m,frozenRow:r,frozenBottom:n,explicitInitialization:!1},f=(0,_.is_defined)(this.grid);if(this.data=new N(this.model.source,this.model.view),this.grid=new h.Grid(this.wrapper_el,this.data,t,g),this.autosize==i.AutosizeModes.fit_viewport){this.grid.autosizeColumns();let i=0;for(const s of t)i+=null!==(e=s.width)&&void 0!==e?e:0;this._width=Math.ceil(i)}if(this.grid.onSort.subscribe(((e,t)=>{if(!this.model.sortable)return;const i=t.sortCols;null!=i&&(this.data.sort(i),this.grid.invalidate(),this.updateSelection(),this.grid.render(),this.model.header_row||this._hide_header(),this.model.update_sort_columns(i))})),!1!==this.model.selectable){this.grid.setSelectionModel(new l.RowSelectionModel({selectActiveRow:null==s})),null!=s&&this.grid.registerPlugin(s);const e={dataItemColumnValueExtractor(e,t){let i=e[t.field];return(0,_.isString)(i)&&(i=i.replace(/\\n/g,\"\\\\n\")),i},includeHeaderWhenCopying:!1};this.grid.registerPlugin(new a.CellExternalCopyManager(e)),this.grid.onSelectedRowsChanged.subscribe(((e,t)=>{this._in_selection_update||(this.model.source.selected.indices=t.rows.map((e=>this.data.index[e])))})),this.updateSelection(),this.model.header_row||this._hide_header()}this.updateLayout(f,!1)}_hide_header(){for(const e of this.shadow_el.querySelectorAll(\".slick-header-columns\"))e.style.height=\"0px\";this.grid.resizeCanvas()}get_selected_rows(){return this.grid.getSelectedRows()}}i.DataTableView=M,M.__name__=\"DataTableView\";class I extends v.TableWidget{get sort_columns(){return this._sort_columns}constructor(e){super(e),this._sort_columns=[]}update_sort_columns(e){this._sort_columns=e.map((({sortCol:e,sortAsc:t})=>({field:e.field,sortAsc:t})))}get_scroll_index(e,t){return this.scroll_to_selection&&0!=t.length?(0,m.some)(t,(t=>e.top<=t&&t<=e.bottom))?null:Math.max(0,Math.min(...t)-1):null}}i.DataTable=I,r=I,I.__name__=\"DataTable\",r.prototype.default_view=M,r.define((({Array:e,Boolean:t,Int:i,Ref:s,String:o,Enum:r,Or:n,Nullable:l})=>({autosize_mode:[r(\"fit_columns\",\"fit_viewport\",\"none\",\"force_fit\"),\"force_fit\"],auto_edit:[t,!1],columns:[e(s(x.TableColumn)),[]],fit_columns:[l(t),null],frozen_columns:[l(i),null],frozen_rows:[l(i),null],sortable:[t,!0],reorderable:[t,!0],editable:[t,!1],selectable:[n(t,r(\"checkbox\")),!0],index_position:[l(i),0],index_header:[o,\"#\"],index_width:[i,40],scroll_to_selection:[t,!0],header_row:[t,!0],row_height:[i,25]}))),r.override({width:600,height:400})},\n 625: function _(e,t,n,o,r){var l=e(626),i=e(628);t.exports={RowSelectionModel:function(e){var t,n,o,r=[],c=this,u=new i.EventHandler,s={selectActiveRow:!0};function a(e){return function(){n||(n=!0,e.apply(this,arguments),n=!1)}}function f(e){for(var t=[],n=0;n<e.length;n++)for(var o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}function h(e){for(var n=[],o=t.getColumns().length-1,r=0;r<e.length;r++)n.push(new i.Range(e[r],0,e[r],o));return n}function w(){return f(r)}function g(e){(r&&0!==r.length||e&&0!==e.length)&&(r=e,c.onSelectedRangesChanged.notify(r))}function v(e,n){o.selectActiveRow&&null!=n.row&&g([new i.Range(n.row,0,n.row,t.getColumns().length-1)])}function p(e){var n=t.getActiveCell();if(t.getOptions().multiSelect&&n&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which==i.keyCode.UP||e.which==i.keyCode.DOWN)){var o=w();o.sort((function(e,t){return e-t})),o.length||(o=[n.row]);var r,l=o[0],c=o[o.length-1];if((r=e.which==i.keyCode.DOWN?n.row<c||l==c?++c:++l:n.row<c?--c:--l)>=0&&r<t.getDataLength())t.scrollRowIntoView(r),g(h(function(e,t){var n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}(l,c)));e.preventDefault(),e.stopPropagation()}}function y(e){var n=t.getCellFromEvent(e);if(!n||!t.canCellBeActive(n.row,n.cell))return!1;if(!t.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;var o=f(r),i=l.inArray(n.row,o);if(-1===i&&(e.ctrlKey||e.metaKey))o.push(n.row),t.setActiveCell(n.row,n.cell);else if(-1!==i&&(e.ctrlKey||e.metaKey))o=l.grep(o,(function(e,t){return e!==n.row})),t.setActiveCell(n.row,n.cell);else if(o.length&&e.shiftKey){var c=o.pop(),u=Math.min(n.row,c),s=Math.max(n.row,c);o=[];for(var a=u;a<=s;a++)a!==c&&o.push(a);o.push(c),t.setActiveCell(n.row,n.cell)}return g(h(o)),e.stopImmediatePropagation(),!0}l.extend(this,{getSelectedRows:w,setSelectedRows:function(e){g(h(e))},getSelectedRanges:function(){return r},setSelectedRanges:g,init:function(n){o=l.extend(!0,{},s,e),t=n,u.subscribe(t.onActiveCellChanged,a(v)),u.subscribe(t.onKeyDown,a(p)),u.subscribe(t.onClick,a(y))},destroy:function(){u.unsubscribeAll()},pluginName:\"RowSelectionModel\",onSelectedRangesChanged:new i.Event})}}},\n 626: function _(e,n,f,o,t){n.exports=\"undefined\"!=typeof $?$:e(627)},\n 627: function _(e,t,n,r,i){\n /*!\n * jQuery JavaScript Library v3.6.3\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2022-12-20T21:28Z\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=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return\"function\"==typeof e&&\"number\"!=typeof e.nodeType&&\"function\"!=typeof e.item},g=function(e){return null!=e&&e===e.window},v=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||v).createElement(\"script\");if(o.text=e,t)for(r in y)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?u[l.call(e)]||\"object\":typeof e}var b=\"3.6.3\",w=function(e,t){return new w.fn.init(e,t)};function T(e){var t=!!e&&\"length\"in e&&e.length,n=x(e);return!h(e)&&!g(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:b,constructor:w,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=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.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)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for(\"boolean\"==typeof a&&(l=a,a=arguments[s]||{},s++),\"object\"==typeof a||h(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],\"__proto__\"!==t&&a!==r&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||w.isPlainObject(n)?n:{},i=!1,a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:\"jQuery\"+(b+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||\"[object Object]\"!==l.call(e))&&(!(t=r(e))||\"function\"==typeof(n=c.call(t,\"constructor\")&&t.constructor)&&f.call(n)===p)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?w.merge(n,\"string\"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,s=[];if(T(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&s.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&s.push(i);return o(s)},guid:1,support:d}),\"function\"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),(function(e,t){u[\"[object \"+t+\"]\"]=t.toLowerCase()}));var C=\n /*!\n * Sizzle CSS Selector Engine v2.3.9\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2022-12-19\n */\n function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b=\"sizzle\"+1*new Date,w=e.document,T=0,C=0,S=ue(),E=ue(),k=ue(),A=ue(),N=function(e,t){return e===t&&(f=!0),0},j={}.hasOwnProperty,D=[],q=D.pop,L=D.push,H=D.push,O=D.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",M=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",I=\"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\"+M+\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",W=\"\\\\[\"+M+\"*(\"+I+\")(?:\"+M+\"*([*^$|!~]?=)\"+M+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+I+\"))|)\"+M+\"*\\\\]\",F=\":(\"+I+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+W+\")*)|.*)\\\\)|)\",$=new RegExp(M+\"+\",\"g\"),B=new RegExp(\"^\"+M+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+M+\"+$\",\"g\"),_=new RegExp(\"^\"+M+\"*,\"+M+\"*\"),z=new RegExp(\"^\"+M+\"*([>+~]|\"+M+\")\"+M+\"*\"),U=new RegExp(M+\"|>\"),X=new RegExp(F),V=new RegExp(\"^\"+I+\"$\"),G={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I+\"|[*])\"),ATTR:new RegExp(\"^\"+W),PSEUDO:new RegExp(\"^\"+F),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+M+\"*(?:([+-]|)\"+M+\"*(\\\\d+)|))\"+M+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+R+\")$\",\"i\"),needsContext:new RegExp(\"^\"+M+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+M+\"*((?:-\\\\d)?\\\\d*)\"+M+\"*\\\\)|)(?=[^-]|$)\",\"i\")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\\d$/i,K=/^[^{]+\\{\\s*\\[native \\w/,Z=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ee=/[+~]/,te=new RegExp(\"\\\\\\\\[\\\\da-fA-F]{1,6}\"+M+\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\",\"g\"),ne=function(e,t){var n=\"0x\"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,ie=function(e,t){return t?\"\\0\"===e?\"\\ufffd\":e.slice(0,-1)+\"\\\\\"+e.charCodeAt(e.length-1).toString(16)+\" \":\"\\\\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&\"fieldset\"===e.nodeName.toLowerCase()}),{dir:\"parentNode\",next:\"legend\"});try{H.apply(D=O.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){H={apply:D.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],\"string\"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(p(t),t=t||d,g)){if(11!==w&&(f=Z.exec(e)))if(o=f[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+\" \"]&&(!v||!v.test(e))&&(1!==w||\"object\"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===w&&(U.test(e)||z.test(e))){for((m=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute(\"id\"))?c=c.replace(re,ie):t.setAttribute(\"id\",c=b)),s=(h=a(e)).length;s--;)h[s]=(c?\"#\"+c:\":scope\")+\" \"+xe(h[s]);y=h.join(\",\")}try{if(n.cssSupportsSelector&&!CSS.supports(\"selector(:is(\"+y+\"))\"))throw new Error;return H.apply(r,m.querySelectorAll(y)),r}catch(t){A(e,!0)}finally{c===b&&t.removeAttribute(\"id\")}}}return u(e.replace(B,\"$1\"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+\" \")>r.cacheLength&&delete t[e.shift()],t[n+\" \"]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement(\"fieldset\");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split(\"|\"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&t.type===e}}function ge(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 ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||\"HTML\")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener(\"unload\",oe,!1):i.attachEvent&&i.attachEvent(\"onunload\",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(d.createElement(\"div\")),void 0!==e.querySelectorAll&&!e.querySelectorAll(\":scope fieldset div\").length})),n.cssSupportsSelector=ce((function(){return CSS.supports(\"selector(*)\")&&d.querySelectorAll(\":is(:jqfake)\")&&!CSS.supports(\"selector(:is(*,:jqfake))\")})),n.attributes=ce((function(e){return e.className=\"i\",!e.getAttribute(\"className\")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment(\"\")),!e.getElementsByTagName(\"*\").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute(\"id\")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.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}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode(\"id\"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode(\"id\"))&&n.value===e)return[o]}return[]}}),r.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,r=[],i=0,o=t.getElementsByTagName(e);if(\"*\"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML=\"<a id='\"+b+\"'></a><select id='\"+b+\"-\\r\\\\' msallowcapture=''><option selected=''></option></select>\",e.querySelectorAll(\"[msallowcapture^='']\").length&&v.push(\"[*^$]=\"+M+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||v.push(\"\\\\[\"+M+\"*(?:value|\"+R+\")\"),e.querySelectorAll(\"[id~=\"+b+\"-]\").length||v.push(\"~=\"),(t=d.createElement(\"input\")).setAttribute(\"name\",\"\"),e.appendChild(t),e.querySelectorAll(\"[name='']\").length||v.push(\"\\\\[\"+M+\"*name\"+M+\"*=\"+M+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\":checked\").length||v.push(\":checked\"),e.querySelectorAll(\"a#\"+b+\"+*\").length||v.push(\".#.+[+~]\"),e.querySelectorAll(\"\\\\\\f\"),v.push(\"[\\\\r\\\\n\\\\f]\")})),ce((function(e){e.innerHTML=\"<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>\";var t=d.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&v.push(\"name\"+M+\"*[*^$|!~]?=\"),2!==e.querySelectorAll(\":enabled\").length&&v.push(\":enabled\",\":disabled\"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(\":disabled\").length&&v.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),v.push(\",.*:\")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,\"*\"),m.call(e,\"[s!='']:x\"),y.push(\"!=\",F)})),n.cssSupportsSelector||v.push(\":has\"),v=v.length&&new RegExp(v.join(\"|\")),y=y.length&&new RegExp(y.join(\"|\")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==w&&x(w,e)?-1:t==d||t.ownerDocument==w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==d?-1:t==d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!A[t+\" \"]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&j.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+\"\").replace(re,ie)},se.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n=\"\",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if(\"string\"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:le,match:G,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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&X.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=S[e+\" \"];return t||(t=new RegExp(\"(^|\"+M+\")\"+e+\"(\"+M+\"|$)\"))&&S(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(r){var i=se.attr(r,e);return null==i?\"!=\"===t:!t||(i+=\"\",\"=\"===t?i===n:\"!=\"===t?i!==n:\"^=\"===t?n&&0===i.indexOf(n):\"*=\"===t?n&&i.indexOf(n)>-1:\"$=\"===t?n&&i.slice(-n.length)===n:\"~=\"===t?(\" \"+i.replace($,\" \")+\" \").indexOf(n)>-1:\"|=\"===t&&(i===n||i.slice(0,n.length+1)===n+\"-\"))}},CHILD:function(e,t,n,r,i){var o=\"nth\"!==e.slice(0,3),a=\"last\"!==e.slice(-4),s=\"of-type\"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?\"nextSibling\":\"previousSibling\",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g=\"only\"===e&&!h&&\"nextSibling\"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error(\"unsupported pseudo: \"+e);return i[b]?i(t):i.length>1?(n=[e,e,\"\",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,\"$1\"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||\"\")||se.error(\"unsupported lang: \"+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?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===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!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!r.pseudos.empty(e)},header:function(e){return J.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:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r=\"\";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&\"parentNode\"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||\"*\",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&(l=i?P(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Se(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[\" \"],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(u>1&&we(p),u>1&&xe(e.slice(0,u-1).concat({value:\" \"===e[u-2].type?\"*\":\"\"})).replace(B,\"$1\"),n,u<i&&Se(e.slice(u,i)),i<o&&Se(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=E[e+\" \"];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B,\" \")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):E(e,u).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=k[e+\" \"];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Se(t[n]))[b]?i.push(s):o.push(s);s=k(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m=\"0\",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG(\"*\",c),S=T+=null==w?1:Math.random()||.1,E=C.length;for(c&&(l=a==d||a||c);m!==E&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument==d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=S)}n&&((f=!v&&f)&&y--,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m--;)x[m]||b[m]||(b[m]=q.call(u));b=Te(b)}H.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(T=S,l=w),x};return n?le(o):o}(o,i)),s.selector=e}return s},u=se.select=function(e,t,n,i){var o,u,l,c,f,p=\"function\"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&\"ID\"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split(\"\").sort(N).join(\"\")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement(\"fieldset\"))})),ce((function(e){return e.innerHTML=\"<a href='#'></a>\",\"#\"===e.firstChild.getAttribute(\"href\")}))||fe(\"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=\"<input/>\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")}))||fe(\"value\",(function(e,t,n){if(!n&&\"input\"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute(\"disabled\")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);w.find=C,w.expr=C.selectors,w.expr[\":\"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function j(e,t,n){return h(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):\"string\"!=typeof t?w.grep(e,(function(e){return s.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=\":not(\"+e+\")\"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(\"string\"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,\"string\"==typeof e&&k.test(e)?w(e):e||[],!1).length}});var D,q=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(w.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]:q.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 w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),N.test(r[1])&&w.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=v.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(w):w.makeArray(e,this)}).prototype=w.fn,D=w(v);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a=\"string\"!=typeof e&&w(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?\"string\"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,\"parentNode\")},parentsUntil:function(e,t,n){return S(e,\"parentNode\",n)},next:function(e){return O(e,\"nextSibling\")},prev:function(e){return O(e,\"previousSibling\")},nextAll:function(e){return S(e,\"nextSibling\")},prevAll:function(e){return S(e,\"previousSibling\")},nextUntil:function(e,t,n){return S(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return S(e,\"previousSibling\",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,\"template\")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return\"Until\"!==e.slice(-5)&&(r=n),r&&\"string\"==typeof r&&(i=w.filter(r,i)),this.length>1&&(H[e]||w.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var P=/[^\\x20\\t\\r\\n\\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&h(i=e.promise)?i.call(e).done(t).fail(n):e&&h(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e=\"string\"==typeof e?function(e){var t={};return w.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:\"\")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){w.each(n,(function(n,r){h(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&\"string\"!==x(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n=\"\",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=\"\"),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},w.extend({Deferred:function(t){var n=[[\"notify\",\"progress\",w.Callbacks(\"memory\"),w.Callbacks(\"memory\"),2],[\"resolve\",\"done\",w.Callbacks(\"once memory\"),w.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",w.Callbacks(\"once memory\"),w.Callbacks(\"once memory\"),1,\"rejected\"]],r=\"pending\",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(n,(function(n,r){var i=h(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+\"With\"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError(\"Thenable self-resolution\");l=e&&(\"object\"==typeof e||\"function\"==typeof e)&&e.then,h(l)?i?l.call(e,a(o,n,R,i),a(o,n,M,i)):(o++,l.call(e,a(o,n,R,i),a(o,n,M,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==M&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred((function(e){n[0][3].add(a(0,e,h(i)?i:R,e.notifyWith)),n[1][3].add(a(0,e,h(t)?t:R)),n[2][3].add(a(0,e,h(r)?r:M))})).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,(function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+\"With\"](this===o?void 0:this,arguments),this},o[t[0]+\"With\"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),\"pending\"===a.state()||h(o[n]&&o[n].then)))return a.then();for(;n--;)I(o[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn(\"jQuery.Deferred exception: \"+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var F=w.Deferred();function $(){v.removeEventListener(\"DOMContentLoaded\",$),e.removeEventListener(\"load\",$),w.ready()}w.fn.ready=function(e){return F.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(v,[w]))}}),w.ready.then=F.then,\"complete\"===v.readyState||\"loading\"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(w.ready):(v.addEventListener(\"DOMContentLoaded\",$),e.addEventListener(\"load\",$));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if(\"object\"===x(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,h(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,\"ms-\").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=w.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(\"string\"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&\"string\"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r=\"data-\"+t.replace(K,\"-$&\").toLowerCase(),\"string\"==typeof(n=e.getAttribute(r))){try{n=function(e){return\"true\"===e||\"false\"!==e&&(\"null\"===e?null:e===+e+\"\"?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,\"hasDataAttrs\"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf(\"data-\")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,\"hasDataAttrs\",!0)}return i}return\"object\"==typeof e?this.each((function(){Q.set(this,e)})):B(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||\"fx\")+\"queue\",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||\"fx\";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t);\"inprogress\"===i&&(i=n.shift(),r--),i&&(\"fx\"===t&&n.unshift(\"inprogress\"),delete o.stop,i.call(e,(function(){w.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+\"queueHooks\";return Y.get(e,n)||Y.access(e,n,{empty:w.Callbacks(\"once memory\").add((function(){Y.remove(e,[t+\"queue\",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return\"string\"!=typeof e&&(t=e,e=\"fx\",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),\"fx\"===e&&\"inprogress\"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||\"fx\",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for(\"string\"!=typeof e&&(t=e,e=void 0),e=e||\"fx\";a--;)(n=Y.get(o[a],e+\"queueHooks\"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,te=new RegExp(\"^(?:([+-])=|)(\"+ee+\")([a-z%]*)$\",\"i\"),ne=[\"Top\",\"Right\",\"Bottom\",\"Left\"],re=v.documentElement,ie=function(e){return w.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return\"none\"===(e=t||e).style.display||\"\"===e.style.display&&ie(e)&&\"none\"===w.css(e,\"display\")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,\"\")},u=s(),l=n&&n[3]||(w.cssNumber[t]?\"\":\"px\"),c=e.nodeType&&(w.cssNumber[t]||\"px\"!==l&&+u)&&te.exec(w.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)w.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,w.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=w.css(t,\"display\"),t.parentNode.removeChild(t),\"none\"===i&&(i=\"block\"),ue[r]=i,i)}function ce(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?(\"none\"===n&&(i[o]=Y.get(r,\"display\")||null,i[o]||(r.style.display=\"\")),\"\"===r.style.display&&ae(r)&&(i[o]=le(r))):\"none\"!==n&&(i[o]=\"none\",Y.set(r,\"display\",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}w.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return\"boolean\"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?w(this).show():w(this).hide()}))}});var fe,pe,de=/^(?:checkbox|radio)$/i,he=/<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i,ge=/^$|^module$|\\/(?:java|ecma)script/i;fe=v.createDocumentFragment().appendChild(v.createElement(\"div\")),(pe=v.createElement(\"input\")).setAttribute(\"type\",\"radio\"),pe.setAttribute(\"checked\",\"checked\"),pe.setAttribute(\"name\",\"t\"),fe.appendChild(pe),d.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML=\"<textarea>x</textarea>\",d.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML=\"<option></option>\",d.option=!!fe.lastChild;var ve={thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||\"*\"):void 0!==e.querySelectorAll?e.querySelectorAll(t||\"*\"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function me(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],\"globalEval\",!t||Y.get(t[n],\"globalEval\"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,d.option||(ve.optgroup=ve.option=[1,\"<select multiple='multiple'>\",\"</select>\"]);var xe=/<|&#?\\w+;/;function be(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if(\"object\"===x(o))w.merge(p,o.nodeType?[o]:o);else if(xe.test(o)){for(a=a||f.appendChild(t.createElement(\"div\")),s=(he.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=ve[s]||ve._default,a.innerHTML=u[1]+w.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;w.merge(p,a.childNodes),(a=f.firstChild).textContent=\"\"}else p.push(t.createTextNode(o));for(f.textContent=\"\",d=0;o=p[d++];)if(r&&w.inArray(o,r)>-1)i&&i.push(o);else if(l=ie(o),a=ye(f.appendChild(o),\"script\"),l&&me(a),n)for(c=0;o=a[c++];)ge.test(o.type||\"\")&&n.push(o);return f}var we=/^([^.]*)(?:\\.(.+)|)/;function Te(){return!0}function Ce(){return!1}function Se(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==(\"focus\"===t)}function Ee(e,t,n,r,i,o){var a,s;if(\"object\"==typeof t){for(s in\"string\"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&(\"string\"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ce;else if(!i)return e;return 1===o&&(a=i,i=function(e){return w().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,i,r,n)}))}function ke(e,t,n){n?(Y.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,o,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=i.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(o=Y.get(this,t))||r?Y.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else a.length&&(Y.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&w.event.add(e,t,Te)}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(V(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(re,i),n.guid||(n.guid=w.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||\"\").match(P)||[\"\"]).length;l--;)d=g=(s=we.exec(t[l])||[])[1],h=(s[2]||\"\").split(\".\").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(\".\")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||\"\").match(P)||[\"\"]).length;l--;)if(d=g=(s=we.exec(t[l])||[])[1],h=(s[2]||\"\").split(\".\").sort(),d){for(f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp(\"(^|\\\\.)\"+h.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(\"**\"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||w.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&Y.remove(e,\"handle events\")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=w.event.fix(e),l=(Y.get(this,\"events\")||Object.create(null))[u.type]||[],c=w.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=w.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((w.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!(\"click\"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(\"click\"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+\" \"]&&(a[i]=r.needsContext?w(i,this).index(l)>-1:w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return de.test(t.type)&&t.click&&A(t,\"input\")&&ke(t,\"click\",Te),!1},trigger:function(e){var t=this||e;return de.test(t.type)&&t.click&&A(t,\"input\")&&ke(t,\"click\"),!0},_default:function(e){var t=e.target;return de.test(t.type)&&t.click&&A(t,\"input\")&&Y.get(t,\"click\")||A(t,\"a\")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:\"focusin\",blur:\"focusout\"},(function(e,t){w.event.special[e]={setup:function(){return ke(this,e,Se),!1},trigger:function(){return ke(this,e),!0},_default:function(t){return Y.get(t.target,e)},delegateType:t}})),w.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+\".\"+r.namespace:r.origType,r.selector,r.handler),this;if(\"object\"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&\"function\"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){w.event.remove(this,e,n,t)}))}});var Ae=/<script|<style|<link/i,Ne=/checked\\s*(?:[^=]|=\\s*.checked.)/i,je=/^\\s*<!\\[CDATA\\[|\\]\\]>\\s*$/g;function De(e,t){return A(e,\"table\")&&A(11!==t.nodeType?t:t.firstChild,\"tr\")&&w(e).children(\"tbody\")[0]||e}function qe(e){return e.type=(null!==e.getAttribute(\"type\"))+\"/\"+e.type,e}function Le(e){return\"true/\"===(e.type||\"\").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute(\"type\"),e}function He(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,\"handle events\"),s)for(n=0,r=s[i].length;n<r;n++)w.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=w.extend({},o),Q.set(t,a))}}function Oe(e,t){var n=t.nodeName.toLowerCase();\"input\"===n&&de.test(e.type)?t.checked=e.checked:\"input\"!==n&&\"textarea\"!==n||(t.defaultValue=e.defaultValue)}function Pe(e,t,n,r){t=o(t);var i,a,s,u,l,c,f=0,p=e.length,g=p-1,v=t[0],y=h(v);if(y||p>1&&\"string\"==typeof v&&!d.checkClone&&Ne.test(v))return e.each((function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),Pe(o,t,n,r)}));if(p&&(a=(i=be(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(u=(s=w.map(ye(i,\"script\"),qe)).length;f<p;f++)l=i,f!==g&&(l=w.clone(l,!0,!0),u&&w.merge(s,ye(l,\"script\"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,w.map(s,Le),f=0;f<u;f++)l=s[f],ge.test(l.type||\"\")&&!Y.access(l,\"globalEval\")&&w.contains(c,l)&&(l.src&&\"module\"!==(l.type||\"\").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute(\"nonce\")},c):m(l.textContent.replace(je,\"\"),l,c))}return e}function Re(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(ye(r)),r.parentNode&&(n&&ie(r)&&me(ye(r,\"script\")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ie(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r<i;r++)Oe(o[r],a[r]);if(t)if(n)for(o=o||ye(e),a=a||ye(s),r=0,i=o.length;r<i;r++)He(o[r],a[r]);else He(e,s);return(a=ye(s,\"script\")).length>0&&me(a,!u&&ye(e,\"script\")),s},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return B(this,(function(e){return void 0===e?w.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 Pe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Pe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Pe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Pe(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&&(w.cleanData(ye(e,!1)),e.textContent=\"\");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if(\"string\"==typeof e&&!Ae.test(e)&&!ve[(he.exec(e)||[\"\",\"\"])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Pe(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},(function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),w(i[s])[t](n),a.apply(r,n.get());return this.pushStack(r)}}));var Me=new RegExp(\"^(\"+ee+\")(?!px)[a-z%]+$\",\"i\"),Ie=/^--/,We=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Fe=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},$e=new RegExp(ne.join(\"|\"),\"i\"),Be=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",_e=new RegExp(\"^\"+Be+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+Be+\"+$\",\"g\");function ze(e,t,n){var r,i,o,a,s=Ie.test(t),u=e.style;return(n=n||We(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(_e,\"$1\")||void 0),\"\"!==a||ie(e)||(a=w.style(e,t)),!d.pixelBoxStyles()&&Me.test(a)&&$e.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+\"\":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText=\"position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0\",c.style.cssText=\"position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%\",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r=\"1%\"!==t.top,u=12===n(t.marginLeft),c.style.right=\"60%\",a=36===n(t.right),i=36===n(t.width),c.style.position=\"absolute\",o=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=v.createElement(\"div\"),c=v.createElement(\"div\");c.style&&(c.style.backgroundClip=\"content-box\",c.cloneNode(!0).style.backgroundClip=\"\",d.clearCloneStyle=\"content-box\"===c.style.backgroundClip,w.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=v.createElement(\"table\"),n=v.createElement(\"tr\"),r=v.createElement(\"div\"),t.style.cssText=\"position:absolute;left:-11111px;border-collapse:separate\",n.style.cssText=\"border:1px solid\",n.style.height=\"1px\",r.style.height=\"9px\",r.style.display=\"block\",re.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,re.removeChild(t)),s}}))}();var Xe=[\"Webkit\",\"Moz\",\"ms\"],Ve=v.createElement(\"div\").style,Ge={};function Ye(e){var t=w.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Ke={letterSpacing:\"0\",fontWeight:\"400\"};function Ze(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||\"px\"):t}function et(e,t,n,r,i,o){var a=\"width\"===t?1:0,s=0,u=0;if(n===(r?\"border\":\"content\"))return 0;for(;a<4;a+=2)\"margin\"===n&&(u+=w.css(e,n+ne[a],!0,i)),r?(\"content\"===n&&(u-=w.css(e,\"padding\"+ne[a],!0,i)),\"margin\"!==n&&(u-=w.css(e,\"border\"+ne[a]+\"Width\",!0,i))):(u+=w.css(e,\"padding\"+ne[a],!0,i),\"padding\"!==n?u+=w.css(e,\"border\"+ne[a]+\"Width\",!0,i):s+=w.css(e,\"border\"+ne[a]+\"Width\",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,n){var r=We(e),i=(!d.boxSizingReliable()||n)&&\"border-box\"===w.css(e,\"boxSizing\",!1,r),o=i,a=ze(e,t,r),s=\"offset\"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a=\"auto\"}return(!d.boxSizingReliable()&&i||!d.reliableTrDimensions()&&A(e,\"tr\")||\"auto\"===a||!parseFloat(a)&&\"inline\"===w.css(e,\"display\",!1,r))&&e.getClientRects().length&&(i=\"border-box\"===w.css(e,\"boxSizing\",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?\"border\":\"content\"),o,r,a)+\"px\"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(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,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ie.test(t),l=e.style;if(u||(t=Ye(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&\"get\"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];\"string\"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o=\"number\"),null!=n&&n==n&&(\"number\"!==o||u||(n+=i&&i[3]||(w.cssNumber[s]?\"\":\"px\")),d.clearCloneStyle||\"\"!==n||0!==t.indexOf(\"background\")||(l[t]=\"inherit\"),a&&\"set\"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ie.test(t)||(t=Ye(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&\"get\"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),\"normal\"===i&&t in Ke&&(i=Ke[t]),\"\"===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each([\"height\",\"width\"],(function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(w.css(e,\"display\"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Fe(e,Je,(function(){return tt(e,t,r)}))},set:function(e,n,r){var i,o=We(e),a=!d.scrollboxSize()&&\"absolute\"===o.position,s=(a||r)&&\"border-box\"===w.css(e,\"boxSizing\",!1,o),u=r?et(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,\"border\",!1,o)-.5)),u&&(i=te.exec(n))&&\"px\"!==(i[3]||\"px\")&&(e.style[t]=n,n=w.css(e,t)),Ze(0,n,u)}}})),w.cssHooks.marginLeft=Ue(d.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,\"marginLeft\"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+\"px\"})),w.each({margin:\"\",padding:\"\",border:\"Width\"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o=\"string\"==typeof n?n.split(\" \"):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},\"margin\"!==e&&(w.cssHooks[e+t].set=Ze)})),w.fn.extend({css:function(e,t){return B(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=We(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.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=w.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=w.css(e.elem,e.prop,\"\"))&&\"auto\"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:w.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)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:\"swing\"},w.fx=nt.prototype.init,w.fx.step={};var rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){it&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(st):e.setTimeout(st,w.fx.interval),w.fx.tick())}function ut(){return e.setTimeout((function(){rt=void 0})),rt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i[\"margin\"+(n=ne[r])]=i[\"padding\"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners[\"*\"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(e,t,n){var r,i,o=0,a=ft.prefilters.length,s=w.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=rt||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=w.cssHooks[r])&&\"expand\"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=ft.prefilters[o].call(l,e,c,l.opts))return h(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,ct,l),h(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(ft,{tweeners:{\"*\":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=[\"*\"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f=\"width\"in t||\"height\"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,\"fxshow\");for(r in n.queue||(null==(a=w._queueHooks(e,\"fx\")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,w.queue(e,\"fx\").length||a.empty.fire()}))}))),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||\"toggle\"===i,i===(g?\"hide\":\"show\")){if(\"show\"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,\"display\")),\"none\"===(c=w.css(e,\"display\"))&&(l?c=l:(ce([e],!0),l=e.style.display||l,c=w.css(e,\"display\"),ce([e]))),(\"inline\"===c||\"inline-block\"===c&&null!=l)&&\"none\"===w.css(e,\"float\")&&(u||(p.done((function(){h.display=l})),null==l&&(c=h.display,l=\"none\"===c?\"\":c)),h.display=\"inline-block\")),n.overflow&&(h.overflow=\"hidden\",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(v?\"hidden\"in v&&(g=v.hidden):v=Y.access(e,\"fxshow\",{display:l}),o&&(v.hidden=!g),g&&ce([e],!0),p.done((function(){for(r in g||ce([e]),Y.remove(e,\"fxshow\"),d)w.style(e,r,d[r])}))),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&\"object\"==typeof e?w.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return w.fx.off?r.duration=0:\"number\"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue=\"fx\"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css(\"opacity\",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),a=function(){var t=ft(this,w.extend({},e),o);(i||Y.get(this,\"finish\"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return\"string\"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||\"fx\",[]),this.each((function(){var t=!0,i=null!=e&&e+\"queueHooks\",o=w.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&at.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||\"fx\"),this.each((function(){var t,n=Y.get(this),r=n[e+\"queue\"],i=n[e+\"queueHooks\"],o=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),w.each([\"toggle\",\"show\",\"hide\"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||\"boolean\"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,i)}})),w.each({slideDown:lt(\"show\"),slideUp:lt(\"hide\"),slideToggle:lt(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},(function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),rt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){it||(it=!0,st())},w.fx.stop=function(){it=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||\"fx\",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=v.createElement(\"input\"),t=v.createElement(\"select\").appendChild(v.createElement(\"option\"));e.type=\"checkbox\",d.checkOn=\"\"!==e.value,d.optSelected=t.selected,(e=v.createElement(\"input\")).value=\"t\",e.type=\"radio\",d.radioValue=\"t\"===e.value}();var pt,dt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return B(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&\"set\"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+\"\"),n):i&&\"get\"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&\"radio\"===t&&A(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\\w+/g),(function(e,t){var n=dt[t]||w.find.attr;dt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=dt[a],dt[a]=i,i=null!=n(e,t,r)?a:null,dt[a]=o),i}}));var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(\" \")}function yt(e){return e.getAttribute&&e.getAttribute(\"class\")||\"\"}function mt(e){return Array.isArray(e)?e:\"string\"==typeof e&&e.match(P)||[]}w.fn.extend({prop:function(e,t){return B(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&\"set\"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&\"get\"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,\"tabindex\");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:\"htmlFor\",class:\"className\"}}),d.optSelected||(w.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)}}),w.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,r,i,o,a;return h(e)?this.each((function(t){w(this).addClass(e.call(this,t,yt(this)))})):(t=mt(e)).length?this.each((function(){if(r=yt(this),n=1===this.nodeType&&\" \"+vt(r)+\" \"){for(o=0;o<t.length;o++)i=t[o],n.indexOf(\" \"+i+\" \")<0&&(n+=i+\" \");a=vt(n),r!==a&&this.setAttribute(\"class\",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return h(e)?this.each((function(t){w(this).removeClass(e.call(this,t,yt(this)))})):arguments.length?(t=mt(e)).length?this.each((function(){if(r=yt(this),n=1===this.nodeType&&\" \"+vt(r)+\" \"){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(\" \"+i+\" \")>-1;)n=n.replace(\" \"+i+\" \",\" \");a=vt(n),r!==a&&this.setAttribute(\"class\",a)}})):this:this.attr(\"class\",\"\")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s=\"string\"===a||Array.isArray(e);return h(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,yt(this),t),t)})):\"boolean\"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=mt(e),this.each((function(){if(s)for(o=w(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&\"boolean\"!==a||((r=yt(this))&&Y.set(this,\"__className__\",r),this.setAttribute&&this.setAttribute(\"class\",r||!1===e?\"\":Y.get(this,\"__className__\")||\"\"))})))},hasClass:function(e){var t,n,r=0;for(t=\" \"+e+\" \";n=this[r++];)if(1===n.nodeType&&(\" \"+vt(yt(n))+\" \").indexOf(t)>-1)return!0;return!1}});var xt=/\\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i=\"\":\"number\"==typeof i?i+=\"\":Array.isArray(i)&&(i=w.map(i,(function(e){return null==e?\"\":e+\"\"}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&\"set\"in t&&void 0!==t.set(this,i,\"value\")||(this.value=i))}))):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&\"get\"in t&&void 0!==(n=t.get(i,\"value\"))?n:\"string\"==typeof(n=i.value)?n.replace(xt,\"\"):null==n?\"\":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,\"value\");return null!=t?t:vt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a=\"select-one\"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,\"optgroup\"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),a=i.length;a--;)((r=i[a]).selected=w.inArray(w.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each([\"radio\",\"checkbox\"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},d.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute(\"value\")?\"on\":e.value})})),d.focusin=\"onfocusin\"in e;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,r,i){var o,a,s,u,l,f,p,d,y=[r||v],m=c.call(t,\"type\")?t.type:t,x=c.call(t,\"namespace\")?t.namespace.split(\".\"):[];if(a=d=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!bt.test(m+w.event.triggered)&&(m.indexOf(\".\")>-1&&(x=m.split(\".\"),m=x.shift(),x.sort()),l=m.indexOf(\":\")<0&&\"on\"+m,(t=t[w.expando]?t:new w.Event(m,\"object\"==typeof t&&t)).isTrigger=i?2:3,t.namespace=x.join(\".\"),t.rnamespace=t.namespace?new RegExp(\"(^|\\\\.)\"+x.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:w.makeArray(n,[t]),p=w.event.special[m]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!g(r)){for(u=p.delegateType||m,bt.test(u+m)||(a=a.parentNode);a;a=a.parentNode)y.push(a),s=a;s===(r.ownerDocument||v)&&y.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=y[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?u:p.bindType||m,(f=(Y.get(a,\"events\")||Object.create(null))[t.type]&&Y.get(a,\"handle\"))&&f.apply(a,n),(f=l&&a[l])&&f.apply&&V(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(y.pop(),n)||!V(r)||l&&h(r[m])&&!g(r)&&((s=r[l])&&(r[l]=null),w.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,wt),r[m](),t.isPropagationStopped()&&d.removeEventListener(m,wt),w.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),d.focusin||w.each({focus:\"focusin\",blur:\"focusout\"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var Tt=e.location,Ct={guid:Date.now()},St=/\\?/;w.parseXML=function(t){var n,r;if(!t||\"string\"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,\"text/xml\")}catch(e){}return r=n&&n.getElementsByTagName(\"parsererror\")[0],n&&!r||w.error(\"Invalid XML: \"+(r?w.map(r.childNodes,(function(e){return e.textContent})).join(\"\\n\"):t)),n};var Et=/\\[\\]$/,kt=/\\r?\\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,(function(t,i){n||Et.test(e)?r(e,i):jt(e+\"[\"+(\"object\"==typeof i&&null!=i?t:\"\")+\"]\",i,n,r)}));else if(n||\"object\"!==x(t))r(e,t);else for(i in t)jt(e+\"[\"+i+\"]\",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(null==n?\"\":n)};if(null==e)return\"\";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join(\"&\")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,\"elements\");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(\":disabled\")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!de.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(kt,\"\\r\\n\")}})):{name:t.name,value:n.replace(kt,\"\\r\\n\")}})).get()}});var Dt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\\/\\//,Rt={},Mt={},It=\"*/\".concat(\"*\"),Wt=v.createElement(\"a\");function Ft(e){return function(t,n){\"string\"!=typeof t&&(n=t,t=\"*\");var r,i=0,o=t.toLowerCase().match(P)||[];if(h(n))for(;r=o[i++];)\"+\"===r[0]?(r=r.slice(1)||\"*\",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===Mt;function a(s){var u;return i[s]=!0,w.each(e[s]||[],(function(e,s){var l=s(t,n,r);return\"string\"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i[\"*\"]&&a(\"*\")}function Bt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Wt.href=Tt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:\"GET\",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":It,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\":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,w.ajaxSettings),t):Bt(w.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(t,n){\"object\"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,a,s,u,l,c,f,p,d=w.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?w(h):w.event,y=w.Deferred(),m=w.Callbacks(\"once memory\"),x=d.statusCode||{},b={},T={},C=\"canceled\",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Ht.exec(o);)a[t[1].toLowerCase()+\" \"]=(a[t[1].toLowerCase()+\" \"]||[]).concat(t[2]);t=a[e.toLowerCase()+\" \"]}return null==t?null:t.join(\", \")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),E(0,t),this}};if(y.promise(S),d.url=((t||d.url||Tt.href)+\"\").replace(Pt,Tt.protocol+\"//\"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||\"*\").toLowerCase().match(P)||[\"\"],null==d.crossDomain){u=v.createElement(\"a\");try{u.href=d.url,u.href=u.href,d.crossDomain=Wt.protocol+\"//\"+Wt.host!=u.protocol+\"//\"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&\"string\"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),$t(Rt,d,n,S),l)return S;for(f in(c=w.event&&d.global)&&0==w.active++&&w.event.trigger(\"ajaxStart\"),d.type=d.type.toUpperCase(),d.hasContent=!Ot.test(d.type),i=d.url.replace(qt,\"\"),d.hasContent?d.data&&d.processData&&0===(d.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(d.data=d.data.replace(Dt,\"+\")):(p=d.url.slice(i.length),d.data&&(d.processData||\"string\"==typeof d.data)&&(i+=(St.test(i)?\"&\":\"?\")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Lt,\"$1\"),p=(St.test(i)?\"&\":\"?\")+\"_=\"+Ct.guid+++p),d.url=i+p),d.ifModified&&(w.lastModified[i]&&S.setRequestHeader(\"If-Modified-Since\",w.lastModified[i]),w.etag[i]&&S.setRequestHeader(\"If-None-Match\",w.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&S.setRequestHeader(\"Content-Type\",d.contentType),S.setRequestHeader(\"Accept\",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(\"*\"!==d.dataTypes[0]?\", \"+It+\"; q=0.01\":\"\"):d.accepts[\"*\"]),d.headers)S.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,S,d)||l))return S.abort();if(C=\"abort\",m.add(d.complete),S.done(d.success),S.fail(d.error),r=$t(Mt,d,n,S)){if(S.readyState=1,c&&g.trigger(\"ajaxSend\",[S,d]),l)return S;d.async&&d.timeout>0&&(s=e.setTimeout((function(){S.abort(\"timeout\")}),d.timeout));try{l=!1,r.send(b,E)}catch(e){if(l)throw e;E(-1,e)}}else E(-1,\"No Transport\");function E(t,n,a,u){var f,p,v,b,T,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,o=u||\"\",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;\"*\"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader(\"Content-Type\"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+\" \"+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,S,a)),!f&&w.inArray(\"script\",d.dataTypes)>-1&&w.inArray(\"json\",d.dataTypes)<0&&(d.converters[\"text script\"]=function(){}),b=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if(\"*\"===o)o=u;else if(\"*\"!==u&&u!==o){if(!(a=l[u+\" \"+o]||l[\"* \"+o]))for(i in l)if((s=i.split(\" \"))[1]===o&&(a=l[u+\" \"+s[0]]||l[\"* \"+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[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 \"+u+\" to \"+o}}}return{state:\"success\",data:t}}(d,b,S,f),f?(d.ifModified&&((T=S.getResponseHeader(\"Last-Modified\"))&&(w.lastModified[i]=T),(T=S.getResponseHeader(\"etag\"))&&(w.etag[i]=T)),204===t||\"HEAD\"===d.type?C=\"nocontent\":304===t?C=\"notmodified\":(C=b.state,p=b.data,f=!(v=b.error))):(v=C,!t&&C||(C=\"error\",t<0&&(t=0))),S.status=t,S.statusText=(n||C)+\"\",f?y.resolveWith(h,[p,C,S]):y.rejectWith(h,[S,C,v]),S.statusCode(x),x=void 0,c&&g.trigger(f?\"ajaxSuccess\":\"ajaxError\",[S,d,f?p:v]),m.fireWith(h,[S,C]),c&&(g.trigger(\"ajaxComplete\",[S,d]),--w.active||w.event.trigger(\"ajaxStop\")))}return S},getJSON:function(e,t,n){return w.get(e,t,n,\"json\")},getScript:function(e,t){return w.get(e,void 0,t,\"script\")}}),w.each([\"get\",\"post\"],(function(e,t){w[t]=function(e,n,r,i){return h(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)\"content-type\"===t.toLowerCase()&&(e.contentType=e.headers[t]||\"\")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:\"GET\",dataType:\"script\",cache:!0,async:!1,global:!1,converters:{\"text script\":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=w(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){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not(\"body\").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=w.ajaxSettings.xhr();d.cors=!!zt&&\"withCredentials\"in zt,d.ajax=zt=!!zt,w.ajaxTransport((function(t){var n,r;if(d.cors||zt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i[\"X-Requested-With\"]||(i[\"X-Requested-With\"]=\"XMLHttpRequest\"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,\"abort\"===e?s.abort():\"error\"===e?\"number\"!=typeof s.status?o(0,\"error\"):o(s.status,s.statusText):o(_t[s.status]||s.status,s.statusText,\"text\"!==(s.responseType||\"text\")||\"string\"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n(\"error\"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n(\"abort\");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter(\"script\",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\")})),w.ajaxTransport(\"script\",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=w(\"<script>\").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on(\"load error\",n=function(e){t.remove(),n=null,e&&i(\"error\"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,Xt=[],Vt=/(=)\\?(?=&|$)|\\?\\?/;w.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var e=Xt.pop()||w.expando+\"_\"+Ct.guid++;return this[e]=!0,e}}),w.ajaxPrefilter(\"json jsonp\",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Vt.test(t.url)?\"url\":\"string\"==typeof t.data&&0===(t.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Vt.test(t.data)&&\"data\");if(s||\"jsonp\"===t.dataTypes[0])return i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Vt,\"$1\"+i):!1!==t.jsonp&&(t.url+=(St.test(t.url)?\"&\":\"?\")+t.jsonp+\"=\"+i),t.converters[\"script json\"]=function(){return a||w.error(i+\" was not called\"),a[0]},t.dataTypes[0]=\"json\",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?w(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(i)),a&&h(o)&&o(a[0]),a=o=void 0})),\"script\"})),d.createHTMLDocument=((Ut=v.implementation.createHTMLDocument(\"\").body).innerHTML=\"<form></form><form></form>\",2===Ut.childNodes.length),w.parseHTML=function(e,t,n){return\"string\"!=typeof e?[]:(\"boolean\"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument(\"\")).createElement(\"base\")).href=v.location.href,t.head.appendChild(r)):t=v),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=be([e],t,o),o&&o.length&&w(o).remove(),w.merge([],i.childNodes)));var r,i,o},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(\" \");return s>-1&&(r=vt(e.slice(s)),e=e.slice(0,s)),h(t)?(n=t,t=void 0):t&&\"object\"==typeof t&&(i=\"POST\"),a.length>0&&w.ajax({url:e,type:i||\"GET\",dataType:\"html\",data:t}).done((function(e){o=arguments,a.html(r?w(\"<div>\").append(w.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=w.css(e,\"position\"),c=w(e),f={};\"static\"===l&&(e.style.position=\"relative\"),s=c.offset(),o=w.css(e,\"top\"),u=w.css(e,\"left\"),(\"absolute\"===l||\"fixed\"===l)&&(o+u).indexOf(\"auto\")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),h(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),\"using\"in t?t.using.call(e,f):c.css(f)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(\"fixed\"===w.css(r,\"position\"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&\"static\"===w.css(e,\"position\");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,\"borderTopWidth\",!0),i.left+=w.css(e,\"borderLeftWidth\",!0))}return{top:t.top-i.top-w.css(r,\"marginTop\",!0),left:t.left-i.left-w.css(r,\"marginLeft\",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&\"static\"===w.css(e,\"position\");)e=e.offsetParent;return e||re}))}}),w.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},(function(e,t){var n=\"pageYOffset\"===t;w.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),w.each([\"top\",\"left\"],(function(e,t){w.cssHooks[t]=Ue(d.pixelPosition,(function(e,n){if(n)return n=ze(e,t),Me.test(n)?w(e).position()[t]+\"px\":n}))})),w.each({Height:\"height\",Width:\"width\"},(function(e,t){w.each({padding:\"inner\"+e,content:t,\"\":\"outer\"+e},(function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||\"boolean\"!=typeof i),s=n||(!0===i||!0===o?\"margin\":\"border\");return B(this,(function(t,n,i){var o;return g(t)?0===r.indexOf(\"outer\")?t[\"inner\"+e]:t.document.documentElement[\"client\"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body[\"scroll\"+e],o[\"scroll\"+e],t.body[\"offset\"+e],o[\"offset\"+e],o[\"client\"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),w.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,\"**\"):this.off(t,e||\"**\",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each(\"blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu\".split(\" \"),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Gt=/^[\\s\\uFEFF\\xA0]+|([^\\s\\uFEFF\\xA0])[\\s\\uFEFF\\xA0]+$/g;w.proxy=function(e,t){var n,r,o;if(\"string\"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=i.call(arguments,2),o=function(){return e.apply(t||this,r.concat(i.call(arguments)))},o.guid=e.guid=e.guid||w.guid++,o},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=h,w.isWindow=g,w.camelCase=X,w.type=x,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return(\"number\"===t||\"string\"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?\"\":(e+\"\").replace(Gt,\"$1\")},\"function\"==typeof define&&define.amd&&define(\"jquery\",[],(function(){return w}));var Yt=e.jQuery,Qt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Qt),t&&e.jQuery===w&&(e.jQuery=Yt),w},void 0===t&&(e.jQuery=e.$=w),w}))},\n 628: function _(t,n,i,o,e){var r=t(626);function u(){var t=!1,n=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){n=!0},this.isImmediatePropagationStopped=function(){return n}}function s(){this.__nonDataRow=!0}function l(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.selectChecked=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function c(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function a(){var t=null;this.isActive=function(n){return n?t===n:null!==t},this.activate=function(n){if(n!==t){if(null!==t)throw new Error(\"SlickGrid.EditorLock.activate: an editController is still active, can't activate another editController\");if(!n.commitCurrentEdit)throw new Error(\"SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()\");if(!n.cancelCurrentEdit)throw new Error(\"SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()\");t=n}},this.deactivate=function(n){if(t){if(t!==n)throw new Error(\"SlickGrid.EditorLock.deactivate: specified editController is not the currently active one\");t=null}},this.commitCurrentEdit=function(){return!t||t.commitCurrentEdit()},this.cancelCurrentEdit=function(){return!t||t.cancelCurrentEdit()}}l.prototype=new s,l.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},c.prototype=new s;var h=\"Map\"in window?window.Map:function(){var t={};this.get=function(n){return t[n]},this.set=function(n,i){t[n]=i},this.has=function(n){return n in t},this.delete=function(n){delete t[n]}};n.exports={Event:function(){var t=[];this.subscribe=function(n){t.push(n)},this.unsubscribe=function(n){for(var i=t.length-1;i>=0;i--)t[i]===n&&t.splice(i,1)},this.notify=function(n,i,o){var e;i=i||new u,o=o||this;for(var r=0;r<t.length&&!i.isPropagationStopped()&&!i.isImmediatePropagationStopped();r++)e=t[r].call(o,i,n);return e}},EventData:u,EventHandler:function(){var t=[];this.subscribe=function(n,i){return t.push({event:n,handler:i}),n.subscribe(i),this},this.unsubscribe=function(n,i){for(var o=t.length;o--;)if(t[o].event===n&&t[o].handler===i)return t.splice(o,1),void n.unsubscribe(i);return this},this.unsubscribeAll=function(){for(var n=t.length;n--;)t[n].event.unsubscribe(t[n].handler);return t=[],this}},Range:function(t,n,i,o){void 0===i&&void 0===o&&(i=t,o=n),this.fromRow=Math.min(t,i),this.fromCell=Math.min(n,o),this.toRow=Math.max(t,i),this.toCell=Math.max(n,o),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&&this.fromCell==this.toCell},this.contains=function(t,n){return t>=this.fromRow&&t<=this.toRow&&n>=this.fromCell&&n<=this.toCell},this.toString=function(){return this.isSingleCell()?\"(\"+this.fromRow+\":\"+this.fromCell+\")\":\"(\"+this.fromRow+\":\"+this.fromCell+\" - \"+this.toRow+\":\"+this.toCell+\")\"}},Map:h,NonDataRow:s,Group:l,GroupTotals:c,EditorLock:a,GlobalEditorLock:new a,TreeColumns:function(t){var n={};function i(t){t.forEach((function(t){n[t.id]=t,t.columns&&i(t.columns)}))}function o(t,n){return t.filter((function(t){var i=n.call(t);return i&&t.columns&&(t.columns=o(t.columns,n)),i&&(!t.columns||t.columns.length)}))}function e(t,n){t.sort((function(t,i){return u(n.getColumnIndex(t.id))-u(n.getColumnIndex(i.id))})).forEach((function(t){t.columns&&e(t.columns,n)}))}function u(t){return void 0===t?-1:t}function s(t){if(!t.length)return t.columns?1+s(t.columns):1;for(var n in t)return s(t[n])}function l(t,n,i){var o=[];if(n==(i=i||0))return t.length&&t.forEach((function(t){t.columns&&(t.extractColumns=function(){return c(t)})})),t;for(var e in t)t[e].columns&&(o=o.concat(l(t[e].columns,n,i+1)));return o}function c(t){var n=[];if(t.hasOwnProperty(\"length\"))for(var i=0;i<t.length;i++)n=n.concat(c(t[i]));else{if(!t.hasOwnProperty(\"columns\"))return t;n=n.concat(c(t.columns))}return n}function a(){return r.extend(!0,[],t)}i(t),this.hasDepth=function(){for(var n in t)if(t[n].hasOwnProperty(\"columns\"))return!0;return!1},this.getTreeColumns=function(){return t},this.extractColumns=function(){return this.hasDepth()?c(t):t},this.getDepth=function(){return s(t)},this.getColumnsInDepth=function(n){return l(t,n)},this.getColumnsInGroup=function(t){return c(t)},this.visibleColumns=function(){return o(a(),(function(){return this.visible}))},this.filter=function(t){return o(a(),t)},this.reOrder=function(n){return e(t,n)},this.getById=function(t){return n[t]},this.getInIds=function(t){return t.map((function(t){return n[t]}))}},keyCode:{SPACE:8,BACKSPACE:8,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,ESC:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38,A:65,C:67,V:86},preClickClassName:\"slick-edit-preclick\",GridAutosizeColsMode:{None:\"NOA\",LegacyOff:\"LOF\",LegacyForceFit:\"LFF\",IgnoreViewport:\"IGV\",FitColsToViewport:\"FCV\",FitViewportToCols:\"FVC\"},ColAutosizeMode:{Locked:\"LCK\",Guide:\"GUI\",Content:\"CON\",ContentIntelligent:\"CTI\"},RowSelectionMode:{FirstRow:\"FS1\",FirstNRows:\"FSN\",AllRows:\"ALL\",LastRow:\"LS1\"},ValueFilterMode:{None:\"NONE\",DeDuplicate:\"DEDP\",GetGreatestAndSub:\"GR8T\",GetLongestTextAndSub:\"LNSB\",GetLongestText:\"LNSC\"},WidthEvalMode:{CanvasTextSize:\"CANV\",HTML:\"HTML\"}}},\n 629: function _(e,t,o,l,n){var i=e(626),c=e(628);t.exports={CheckboxSelectColumn:function(e){var t,o=null,l=k(),n=new c.EventHandler,r={},d=!1,a=i.extend(!0,{},{columnId:\"_checkbox_selector\",cssClass:null,hideSelectAllCheckbox:!1,toolTip:\"Select/Deselect All\",width:30,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0},e);function s(){t.updateColumnHeader(a.columnId,\"\",\"\")}function u(){i(\"#filter-checkbox-selectall-container\").hide()}function h(e,n){var c,s,u,h=t.getSelectedRows(),f={},p=0;if(\"function\"==typeof o)for(u=0;u<t.getDataLength();u++){C(s,t.getDataItem(u),t)||p++}var b=[];for(s=0;s<h.length;s++){c=h[s],C(s,t.getDataItem(c),t)?(f[c]=!0,f[c]!==r[c]&&(t.invalidateRow(c),delete r[c])):b.push(c)}for(s in r)t.invalidateRow(s);(r=f,t.render(),d=h.length&&h.length+p>=t.getDataLength(),a.hideInColumnTitleRow||a.hideSelectAllCheckbox||v(d),a.hideInFilterHeaderRow)||i(\"#header-filter-selector\"+l).prop(\"checked\",d);if(b.length>0){for(s=0;s<b.length;s++){var g=h.indexOf(b[s]);h.splice(g,1)}t.setSelectedRows(h)}}function f(e,o){32==e.which&&t.getColumns()[o.cell].id===a.columnId&&(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit()||b(o.row),e.preventDefault(),e.stopImmediatePropagation())}function p(e,o){if(t.getColumns()[o.cell].id===a.columnId&&i(e.target).is(\":checkbox\")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();b(o.row),e.stopPropagation(),e.stopImmediatePropagation()}}function b(e){var o=t.getDataItem(e);C(e,o,t)&&(r[e]?t.setSelectedRows(i.grep(t.getSelectedRows(),(function(t){return t!=e}))):t.setSelectedRows(t.getSelectedRows().concat(e)),t.setActiveCell(e,function(){if(null===m){m=0;for(var e=t.getColumns(),o=0;o<e.length;o++)e[o].id==a.columnId&&(m=o)}return m}()))}function g(e,o){if(o.column.id==a.columnId&&i(e.target).is(\":checkbox\")){if(t.getEditorLock().isActive()&&!t.getEditorLock().commitCurrentEdit())return e.preventDefault(),void e.stopImmediatePropagation();if(i(e.target).is(\":checked\")){for(var l=[],n=0;n<t.getDataLength();n++){var c=t.getDataItem(n);c.__group||c.__groupTotals||!C(n,c,t)||l.push(n)}t.setSelectedRows(l)}else t.setSelectedRows([]);e.stopPropagation(),e.stopImmediatePropagation()}}\"function\"==typeof a.selectableOverride&&R(a.selectableOverride);var m=null;function k(){return Math.round(1e7*Math.random())}function w(e,t,o,l,n,i){var c=k()+e;return n&&C(e,n,i)?r[e]?\"<input id='selector\"+c+\"' type='checkbox' checked='checked'><label for='selector\"+c+\"'></label>\":\"<input id='selector\"+c+\"' type='checkbox'><label for='selector\"+c+\"'></label>\":null}function C(e,t,l){return\"function\"!=typeof o||o(e,t,l)}function v(e){e?t.updateColumnHeader(a.columnId,\"<input id='header-selector\"+l+\"' type='checkbox' checked='checked'><label for='header-selector\"+l+\"'></label>\",a.toolTip):t.updateColumnHeader(a.columnId,\"<input id='header-selector\"+l+\"' type='checkbox'><label for='header-selector\"+l+\"'></label>\",a.toolTip)}function R(e){o=e}i.extend(this,{init:function(e){t=e,n.subscribe(t.onSelectedRowsChanged,h).subscribe(t.onClick,p).subscribe(t.onKeyDown,f),a.hideInFilterHeaderRow||function(e){n.subscribe(e.onHeaderRowCellRendered,(function(e,t){\"sel\"===t.column.field&&(i(t.node).empty(),i(\"<span id='filter-checkbox-selectall-container'><input id='header-filter-selector\"+l+\"' type='checkbox'><label for='header-filter-selector\"+l+\"'></label></span>\").appendTo(t.node).on(\"click\",(function(e){g(e,t)})))}))}(e),a.hideInColumnTitleRow||n.subscribe(t.onHeaderClick,g)},destroy:function(){n.unsubscribeAll()},pluginName:\"CheckboxSelectColumn\",deSelectRows:function(e){var o,l=e.length,n=[];for(o=0;o<l;o++)r[e[o]]&&(n[n.length]=e[o]);t.setSelectedRows(i.grep(t.getSelectedRows(),(function(e){return n.indexOf(e)<0})))},selectRows:function(e){var o,l=e.length,n=[];for(o=0;o<l;o++)r[e[o]]||(n[n.length]=e[o]);t.setSelectedRows(t.getSelectedRows().concat(n))},getColumnDefinition:function(){return{id:a.columnId,name:a.hideSelectAllCheckbox||a.hideInColumnTitleRow?\"\":\"<input id='header-selector\"+l+\"' type='checkbox'><label for='header-selector\"+l+\"'></label>\",toolTip:a.hideSelectAllCheckbox||a.hideInColumnTitleRow?\"\":a.toolTip,field:\"sel\",width:a.width,resizable:!1,sortable:!1,cssClass:a.cssClass,hideSelectAllCheckbox:a.hideSelectAllCheckbox,formatter:w}},getOptions:function(){return a},selectableOverride:R,setOptions:function(e){if((a=i.extend(!0,{},a,e)).hideSelectAllCheckbox)s(),u();else if(a.hideInColumnTitleRow?s():(v(d),n.subscribe(t.onHeaderClick,g)),a.hideInFilterHeaderRow)u();else{var o=i(\"#filter-checkbox-selectall-container\");o.show(),o.find('input[type=\"checkbox\"]').prop(\"checked\",d)}}})}}},\n 630: function _(e,t,o,l,n){var a=e(626),r=e(628),i=r.keyCode;t.exports={CellExternalCopyManager:function(e){var t,o,l=this,n=e||{},s=n.copiedCellStyleLayerKey||\"copy-manager\",u=n.copiedCellStyle||\"copied\",c=0,d=n.bodyElement||document.body,f=n.onCopyInit||null,h=n.onCopySuccess||null;function C(e){if(n.headerColumnValueExtractor){var t=n.headerColumnValueExtractor(e);if(t)return t}return e.name}function m(e,o,l){if(n.dataItemColumnValueExtractor){var r=n.dataItemColumnValueExtractor(e,o);if(r)return r}var i=\"\";if(o.editor){var s={container:a(\"<p>\"),column:o,position:{top:0,left:0},grid:t,event:l},u=new o.editor(s);u.loadValue(e),i=u.serializeValue(),u.destroy()}else i=e[o.field];return i}function g(e,o,l){if(o.denyPaste)return null;if(n.dataItemColumnValueSetter)return n.dataItemColumnValueSetter(e,o,l);if(o.editor){var r={container:a(\"body\"),column:o,position:{top:0,left:0},grid:t},i=new o.editor(r);i.loadValue(e),i.applyValue(e,l),i.destroy()}else e[o.field]=l}function p(e){var t=document.createElement(\"textarea\");return t.style.position=\"absolute\",t.style.left=\"-1000px\",t.style.top=document.body.scrollTop+\"px\",t.value=e,d.appendChild(t),t.select(),t}function y(e,a){var r;if(!t.getEditorLock().isActive()||t.getOptions().autoEdit){if(e.which==i.ESC&&o&&(e.preventDefault(),w(),l.onCopyCancelled.notify({ranges:o}),o=null),(e.which===i.C||e.which===i.INSERT)&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&(f&&f.call(),0!==(r=t.getSelectionModel().getSelectedRanges()).length)){o=r,v(r),l.onCopyCells.notify({ranges:r});for(var s=t.getColumns(),u=\"\",c=0;c<r.length;c++){for(var y=r[c],D=[],S=y.fromRow;S<y.toRow+1;S++){var R=[],x=t.getDataItem(S);if(0===D.length&&n.includeHeaderWhenCopying){for(var E=[],V=y.fromCell;V<y.toCell+1;V++)s[V].name.length>0&&E.push(C(s[V]));D.push(E.join(\"\\t\"))}for(V=y.fromCell;V<y.toCell+1;V++)R.push(m(x,s[V],e));D.push(R.join(\"\\t\"))}u+=D.join(\"\\r\\n\")+\"\\r\\n\"}if(window.clipboardData)return window.clipboardData.setData(\"Text\",u),!0;var b=document.activeElement;if((M=p(u)).focus(),setTimeout((function(){d.removeChild(M),b?b.focus():console.log(\"Not element to restore focus to after copy?\")}),100),h){var I=0;I=1===r.length?r[0].toRow+1-r[0].fromRow:r.length,h.call(this,I)}return!1}if(!n.readOnlyMode&&(e.which===i.V&&(e.ctrlKey||e.metaKey)&&!e.shiftKey||e.which===i.INSERT&&e.shiftKey&&!e.ctrlKey)){var M=p(\"\");return setTimeout((function(){!function(e,t){var o=e.getColumns(),a=t.value.split(/[\\n\\f\\r]/);\"\"===a[a.length-1]&&a.pop();var r=[],i=0;d.removeChild(t);for(var s=0;s<a.length;s++)\"\"!==a[s]?r[i++]=a[s].split(\"\\t\"):r[i++]=[\"\"];var u=e.getActiveCell(),c=e.getSelectionModel().getSelectedRanges(),f=c&&c.length?c[0]:null,h=null,C=null;if(f)h=f.fromRow,C=f.fromCell;else{if(!u)return;h=u.row,C=u.cell}var m=!1,p=r.length,y=r.length?r[0].length:0;1==r.length&&1==r[0].length&&f&&(m=!0,p=f.toRow-f.fromRow+1,y=f.toCell-f.fromCell+1);var w=e.getData().length-h,D=0;if(w<p&&n.newRowCreator){var S=e.getData();for(D=1;D<=p-w;D++)S.push({});e.setData(S),e.render()}var R=h+p>e.getDataLength();if(n.newRowCreator&&R){var x=h+p-e.getDataLength();n.newRowCreator(x)}var E={isClipboardCommand:!0,clippedRange:r,oldValues:[],cellExternalCopyManager:l,_options:n,setDataItemValueForColumn:g,markCopySelection:v,oneCellToMultiple:m,activeRow:h,activeCell:C,destH:p,destW:y,maxDestY:e.getDataLength(),maxDestX:e.getColumns().length,h:0,w:0,execute:function(){this.h=0;for(var t=0;t<this.destH;t++){this.oldValues[t]=[],this.w=0,this.h++;for(var l=0;l<this.destW;l++){this.w++;var n=h+t,a=C+l;if(n<this.maxDestY&&a<this.maxDestX){e.getCellNode(n,a);var i=e.getDataItem(n);this.oldValues[t][l]=i[o[a].field],m?this.setDataItemValueForColumn(i,o[a],r[0][0]):this.setDataItemValueForColumn(i,o[a],r[t]?r[t][l]:\"\"),e.updateCell(n,a),e.onCellChange.notify({row:n,cell:a,item:i,grid:e})}}}var s={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};this.markCopySelection([s]),e.getSelectionModel().setSelectedRanges([s]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[s]})},undo:function(){for(var t=0;t<this.destH;t++)for(var l=0;l<this.destW;l++){var n=h+t,a=C+l;if(n<this.maxDestY&&a<this.maxDestX){e.getCellNode(n,a);var r=e.getDataItem(n);m?this.setDataItemValueForColumn(r,o[a],this.oldValues[0][0]):this.setDataItemValueForColumn(r,o[a],this.oldValues[t][l]),e.updateCell(n,a),e.onCellChange.notify({row:n,cell:a,item:r,grid:e})}}var i={fromCell:C,fromRow:h,toCell:C+this.w-1,toRow:h+this.h-1};if(this.markCopySelection([i]),e.getSelectionModel().setSelectedRanges([i]),this.cellExternalCopyManager.onPasteCells.notify({ranges:[i]}),D>1){for(var s=e.getData();D>1;D--)s.splice(s.length-1,1);e.setData(s),e.render()}}};n.clipboardCommandHandler?n.clipboardCommandHandler(E):E.execute()}(t,M)}),100),!1}}}function v(e){w();for(var o=t.getColumns(),n={},a=0;a<e.length;a++)for(var r=e[a].fromRow;r<=e[a].toRow;r++){n[r]={};for(var i=e[a].fromCell;i<=e[a].toCell&&i<o.length;i++)n[r][o[i].id]=u}t.setCellCssStyles(s,n),clearTimeout(c),c=setTimeout((function(){l.clearCopySelection()}),2e3)}function w(){t.removeCellCssStyles(s)}a.extend(this,{init:function(e){(t=e).onKeyDown.subscribe(y);var o=e.getSelectionModel();if(!o)throw new Error(\"Selection model is mandatory for this plugin. Please set a selection model on the grid before adding this plugin: grid.setSelectionModel(new Slick.CellSelectionModel())\");o.onSelectedRangesChanged.subscribe((function(e,o){t.focus()}))},destroy:function(){t.onKeyDown.unsubscribe(y)},pluginName:\"CellExternalCopyManager\",clearCopySelection:w,handleKeyDown:y,onCopyCells:new r.Event,onCopyCancelled:new r.Event,onPasteCells:new r.Event,setIncludeHeaderWhenCopying:function(e){n.includeHeaderWhenCopying=e}})}}},\n 631: function _(r,t,o,_,e){var p=r(1);p.__exportStar(r(628),t.exports),p.__exportStar(r(632),t.exports),p.__exportStar(r(635),t.exports),p.__exportStar(r(636),t.exports),p.__exportStar(r(637),t.exports),p.__exportStar(r(638),t.exports),p.__exportStar(r(639),t.exports)},\n 632: function _(require,module,exports,__esModule,__esExport){\n /**\n * @license\n * (c) 2009-2016 Michael Leibman\n * michael{dot}leibman{at}gmail{dot}com\n * http://github.com/mleibman/slickgrid\n *\n * Distributed under MIT license.\n * All rights reserved.\n *\n * SlickGrid v2.4\n *\n * NOTES:\n * Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulation methods.\n * This increases the speed dramatically, but can only be done safely because there are no event handlers\n * or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()\n * and do proper cleanup.\n */\n var $=jQuery=require(626),Slick=require(628),scrollbarDimensions,maxSupportedCssHeight;function SlickGrid(container,data,columns,options){$.fn.drag||require(633),$.fn.drop||require(634);var defaults={alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,showPreHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:\"flashing\",selectedCellCssClass:\"selected\",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:\"new-row\",preserveCopiedSelectionOnPaste:!1,showCellSelection:!0,viewportClass:null,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:Slick.GridAutosizeColsMode.LegacyOff,autosizeColPaddingPx:4,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1},columnDefaults={name:\"\",resizable:!0,sortable:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},columnAutosizeDefaults={ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:Slick.ColAutosizeMode.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:Slick.RowSelectionMode.FirstNRows,rowSelectionCount:100,valueFilterMode:Slick.ValueFilterMode.None,widthEvalMode:Slick.WidthEvalMode.CanvasTextSize,sizeToRemaining:void 0,widthPx:void 0,colDataTypeOf:void 0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid=\"slickgrid_\"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$groupHeaders=$(),$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacerL,$headerRowSpacerR,$footerRow,$footerRowScroller,$footerRowSpacerL,$footerRowSpacerR,$preHeaderPanel,$preHeaderPanelScroller,$preHeaderPanelSpacer,$preHeaderPanelR,$preHeaderPanelScrollerR,$preHeaderPanelSpacerR,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,treeColumns,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,canvasWidthL,canvasWidthR,headersWidth,headersWidthL,headersWidthR,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,jQueryNewWidthBehaviour=!1,absoluteColumnMinWidth,hasFrozenRows=!1,frozenRowsHeight=0,actualFrozenRow=-1,paneTopH=0,paneBottomH=0,viewportTopH=0,viewportBottomH=0,topPanelH=0,headerRowH=0,footerRowH=0,tabbingDirection=1,$activeCanvasNode,$activeViewportNode,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows=0,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],pagingActive=!1,pagingIsLastPage=!1,scrollThrottle=ActionThrottle(render,50),h_editorLoader=null,h_render=null,h_postrender=null,h_postrenderCleanup=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,postProcessedCleanupQueue=[],postProcessgroupId=0,counter_rows_rendered=0,counter_rows_removed=0,$paneHeaderL,$paneHeaderR,$paneTopL,$paneTopR,$paneBottomL,$paneBottomR,$headerScrollerL,$headerScrollerR,$headerL,$headerR,$groupHeadersL,$groupHeadersR,$headerRowScrollerL,$headerRowScrollerR,$footerRowScrollerL,$footerRowScrollerR,$headerRowL,$headerRowR,$footerRowL,$footerRowR,$topPanelScrollerL,$topPanelScrollerR,$topPanelL,$topPanelR,$viewportTopL,$viewportTopR,$viewportBottomL,$viewportBottomR,$canvasTopL,$canvasTopR,$canvasBottomL,$canvasBottomR,$viewportScrollContainerX,$viewportScrollContainerY,$headerScrollContainer,$headerRowScrollContainer,$footerRowScrollContainer,cssShow={position:\"absolute\",visibility:\"hidden\",display:\"block\"},$hiddenParents,oldProps=[],columnResizeDragging=!1;function init(){if(($container=container instanceof $?container:$(container)).length<1)throw new Error(\"SlickGrid requires a valid container, \"+container+\" does not exist in the DOM.\");if(maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,options.suppressCssChangesOnHiddenInit||cacheCssForHiddenInit(),treeColumns=new Slick.TreeColumns(columns),columns=treeColumns.extractColumns(),updateColumnProps(),options.enableColumnReorder&&!$.fn.sortable)throw new Error(\"SlickGrid's 'enableColumnReorder = true' option requires jquery-ui.sortable module to be loaded\");if(editController={commitCurrentEdit,cancelCurrentEdit},$container.empty().css(\"overflow\",\"hidden\").css(\"outline\",0).addClass(uid).addClass(\"ui-widget\"),/relative|absolute|fixed/.test($container.css(\"position\"))||$container.css(\"position\",\"relative\"),$focusSink=$(\"<div tabIndex='0' hideFocus style='position:fixed;width:0;height:0;top:0;left:0;outline:0;'></div>\").appendTo($container),$paneHeaderL=$(\"<div class='slick-pane slick-pane-header slick-pane-left' tabIndex='0' />\").appendTo($container),$paneHeaderR=$(\"<div class='slick-pane slick-pane-header slick-pane-right' tabIndex='0' />\").appendTo($container),$paneTopL=$(\"<div class='slick-pane slick-pane-top slick-pane-left' tabIndex='0' />\").appendTo($container),$paneTopR=$(\"<div class='slick-pane slick-pane-top slick-pane-right' tabIndex='0' />\").appendTo($container),$paneBottomL=$(\"<div class='slick-pane slick-pane-bottom slick-pane-left' tabIndex='0' />\").appendTo($container),$paneBottomR=$(\"<div class='slick-pane slick-pane-bottom slick-pane-right' tabIndex='0' />\").appendTo($container),options.createPreHeaderPanel&&($preHeaderPanelScroller=$(\"<div class='slick-preheader-panel ui-state-default' style='overflow:hidden;position:relative;' />\").appendTo($paneHeaderL),$preHeaderPanel=$(\"<div />\").appendTo($preHeaderPanelScroller),$preHeaderPanelSpacer=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").appendTo($preHeaderPanelScroller),$preHeaderPanelScrollerR=$(\"<div class='slick-preheader-panel ui-state-default' style='overflow:hidden;position:relative;' />\").appendTo($paneHeaderR),$preHeaderPanelR=$(\"<div />\").appendTo($preHeaderPanelScrollerR),$preHeaderPanelSpacerR=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").appendTo($preHeaderPanelScrollerR),options.showPreHeaderPanel||($preHeaderPanelScroller.hide(),$preHeaderPanelScrollerR.hide())),$headerScrollerL=$(\"<div class='slick-header ui-state-default slick-header-left' />\").appendTo($paneHeaderL),$headerScrollerR=$(\"<div class='slick-header ui-state-default slick-header-right' />\").appendTo($paneHeaderR),$headerScroller=$().add($headerScrollerL).add($headerScrollerR),treeColumns.hasDepth()){$groupHeadersL=[],$groupHeadersR=[];for(var e=0;e<treeColumns.getDepth()-1;e++)$groupHeadersL[e]=$(\"<div class='slick-group-header-columns slick-group-header-columns-left' style='left:-1000px' />\").appendTo($headerScrollerL),$groupHeadersR[e]=$(\"<div class='slick-group-header-columns slick-group-header-columns-right' style='left:-1000px' />\").appendTo($headerScrollerR);$groupHeaders=$().add($groupHeadersL).add($groupHeadersR)}$headerL=$(\"<div class='slick-header-columns slick-header-columns-left' style='left:-1000px' />\").appendTo($headerScrollerL),$headerR=$(\"<div class='slick-header-columns slick-header-columns-right' style='left:-1000px' />\").appendTo($headerScrollerR),$headers=$().add($headerL).add($headerR),$headerRowScrollerL=$(\"<div class='slick-headerrow ui-state-default' />\").appendTo($paneTopL),$headerRowScrollerR=$(\"<div class='slick-headerrow ui-state-default' />\").appendTo($paneTopR),$headerRowScroller=$().add($headerRowScrollerL).add($headerRowScrollerR),$headerRowSpacerL=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").appendTo($headerRowScrollerL),$headerRowSpacerR=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").appendTo($headerRowScrollerR),$headerRowL=$(\"<div class='slick-headerrow-columns slick-headerrow-columns-left' />\").appendTo($headerRowScrollerL),$headerRowR=$(\"<div class='slick-headerrow-columns slick-headerrow-columns-right' />\").appendTo($headerRowScrollerR),$headerRow=$().add($headerRowL).add($headerRowR),$topPanelScrollerL=$(\"<div class='slick-top-panel-scroller ui-state-default' />\").appendTo($paneTopL),$topPanelScrollerR=$(\"<div class='slick-top-panel-scroller ui-state-default' />\").appendTo($paneTopR),$topPanelScroller=$().add($topPanelScrollerL).add($topPanelScrollerR),$topPanelL=$(\"<div class='slick-top-panel' style='width:10000px' />\").appendTo($topPanelScrollerL),$topPanelR=$(\"<div class='slick-top-panel' style='width:10000px' />\").appendTo($topPanelScrollerR),$topPanel=$().add($topPanelL).add($topPanelR),options.showColumnHeader||$headerScroller.hide(),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),$viewportTopL=$(\"<div class='slick-viewport slick-viewport-top slick-viewport-left' tabIndex='0' hideFocus />\").appendTo($paneTopL),$viewportTopR=$(\"<div class='slick-viewport slick-viewport-top slick-viewport-right' tabIndex='0' hideFocus />\").appendTo($paneTopR),$viewportBottomL=$(\"<div class='slick-viewport slick-viewport-bottom slick-viewport-left' tabIndex='0' hideFocus />\").appendTo($paneBottomL),$viewportBottomR=$(\"<div class='slick-viewport slick-viewport-bottom slick-viewport-right' tabIndex='0' hideFocus />\").appendTo($paneBottomR),$viewport=$().add($viewportTopL).add($viewportTopR).add($viewportBottomL).add($viewportBottomR),$activeViewportNode=$viewportTopL,$canvasTopL=$(\"<div class='grid-canvas grid-canvas-top grid-canvas-left' tabIndex='0' hideFocus />\").appendTo($viewportTopL),$canvasTopR=$(\"<div class='grid-canvas grid-canvas-top grid-canvas-right' tabIndex='0' hideFocus />\").appendTo($viewportTopR),$canvasBottomL=$(\"<div class='grid-canvas grid-canvas-bottom grid-canvas-left' tabIndex='0' hideFocus />\").appendTo($viewportBottomL),$canvasBottomR=$(\"<div class='grid-canvas grid-canvas-bottom grid-canvas-right' tabIndex='0' hideFocus />\").appendTo($viewportBottomR),options.viewportClass&&$viewport.toggleClass(options.viewportClass,!0),$canvas=$().add($canvasTopL).add($canvasTopR).add($canvasBottomL).add($canvasBottomR),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),$activeCanvasNode=$canvasTopL,$preHeaderPanelSpacer&&$preHeaderPanelSpacer.css(\"width\",getCanvasWidth()+scrollbarDimensions.width+\"px\"),$headers.width(getHeadersWidth()),$headerRowSpacerL.css(\"width\",getCanvasWidth()+scrollbarDimensions.width+\"px\"),$headerRowSpacerR.css(\"width\",getCanvasWidth()+scrollbarDimensions.width+\"px\"),options.createFooterRow&&($footerRowScrollerR=$(\"<div class='slick-footerrow ui-state-default' />\").appendTo($paneTopR),$footerRowScrollerL=$(\"<div class='slick-footerrow ui-state-default' />\").appendTo($paneTopL),$footerRowScroller=$().add($footerRowScrollerL).add($footerRowScrollerR),$footerRowSpacerL=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").css(\"width\",getCanvasWidth()+scrollbarDimensions.width+\"px\").appendTo($footerRowScrollerL),$footerRowSpacerR=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").css(\"width\",getCanvasWidth()+scrollbarDimensions.width+\"px\").appendTo($footerRowScrollerR),$footerRowL=$(\"<div class='slick-footerrow-columns slick-footerrow-columns-left' />\").appendTo($footerRowScrollerL),$footerRowR=$(\"<div class='slick-footerrow-columns slick-footerrow-columns-right' />\").appendTo($footerRowScrollerR),$footerRow=$().add($footerRowL).add($footerRowR),options.showFooterRow||$footerRowScroller.hide()),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,getViewportWidth(),getViewportHeight(),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.on(\"selectstart.ui\",(function(e){return $(e.target).is(\"input,textarea\")})),setFrozenOptions(),setPaneVisibility(),setScroller(),setOverflow(),updateColumnCaches(),createColumnHeaders(),createColumnGroupHeaders(),createColumnFooter(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.on(\"resize.slickgrid\",resizeCanvas),$viewport.on(\"scroll\",handleScroll),jQuery.fn.mousewheel&&options.enableMouseWheelScrollHandler&&$viewport.on(\"mousewheel\",handleMouseWheel),$headerScroller.on(\"contextmenu\",handleHeaderContextMenu).on(\"click\",handleHeaderClick).on(\"mouseenter\",\".slick-header-column\",handleHeaderMouseEnter).on(\"mouseleave\",\".slick-header-column\",handleHeaderMouseLeave),$headerRowScroller.on(\"scroll\",handleHeaderRowScroll),options.createFooterRow&&($footerRow.on(\"contextmenu\",handleFooterContextMenu).on(\"click\",handleFooterClick),$footerRowScroller.on(\"scroll\",handleFooterRowScroll)),options.createPreHeaderPanel&&$preHeaderPanelScroller.on(\"scroll\",handlePreHeaderPanelScroll),$focusSink.add($focusSink2).on(\"keydown\",handleKeyDown),$canvas.on(\"keydown\",handleKeyDown).on(\"click\",handleClick).on(\"dblclick\",handleDblClick).on(\"contextmenu\",handleContextMenu).on(\"draginit\",handleDragInit).on(\"dragstart\",{distance:3},handleDragStart).on(\"drag\",handleDrag).on(\"dragend\",handleDragEnd).on(\"mouseenter\",\".slick-cell\",handleMouseEnter).on(\"mouseleave\",\".slick-cell\",handleMouseLeave),options.suppressCssChangesOnHiddenInit||restoreCssFromHiddenInit())}function cacheCssForHiddenInit(){($hiddenParents=$container.parents().addBack().not(\":visible\")).each((function(){var e={};for(var o in cssShow)e[o]=this.style[o],this.style[o]=cssShow[o];oldProps.push(e)}))}function restoreCssFromHiddenInit(){$hiddenParents.each((function(e){var o=oldProps[e];for(var t in cssShow)this.style[t]=o[t]}))}function hasFrozenColumns(){return options.frozenColumn>-1}function registerPlugin(e){plugins.unshift(e),e.init(self)}function unregisterPlugin(e){for(var o=plugins.length;o>=0;o--)if(plugins[o]===e){plugins[o].destroy&&plugins[o].destroy(),plugins.splice(o,1);break}}function getPluginByName(e){for(var o=plugins.length-1;o>=0;o--)if(plugins[o].pluginName===e)return plugins[o]}function setSelectionModel(e){selectionModel&&(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&&selectionModel.destroy()),(selectionModel=e)&&(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(e,o){return _getContainerElement(getCanvases(),e,o)}function getActiveCanvasNode(e){return setActiveCanvasNode(e),$activeCanvasNode[0]}function getCanvases(){return $canvas}function setActiveCanvasNode(e){e&&($activeCanvasNode=$(e.target).closest(\".grid-canvas\"))}function getViewportNode(e,o){return _getContainerElement(getViewports(),e,o)}function getViewports(){return $viewport}function getActiveViewportNode(e){return setActiveViewportNode(e),$activeViewportNode[0]}function setActiveViewportNode(e){e&&($activeViewportNode=$(e.target).closest(\".slick-viewport\"))}function _getContainerElement(e,o,t){if(e){o||(o=0),t||(t=0);var n=\"number\"==typeof o?o:getColumnIndex(o);return e[(hasFrozenRows&&t>=actualFrozenRow+(options.frozenBottom?0:1)?2:0)+(hasFrozenColumns()&&n>options.frozenColumn?1:0)]}}function measureScrollbar(){var e=$('<div class=\"'+$viewport.className+'\" style=\"position:absolute; top:-10000px; left:-10000px; overflow:auto; width:100px; height:100px;\"></div>').appendTo(\"body\"),o=$('<div style=\"width:200px; height:200px; overflow:auto;\"></div>').appendTo(e),t={width:e[0].offsetWidth-e[0].clientWidth,height:e[0].offsetHeight-e[0].clientHeight};return o.remove(),e.remove(),t}function getHeadersWidth(){headersWidth=headersWidthL=headersWidthR=0;for(var e=!options.autoHeight,o=0,t=columns.length;o<t;o++){var n=columns[o].width;options.frozenColumn>-1&&o>options.frozenColumn?headersWidthR+=n:headersWidthL+=n}return e&&(options.frozenColumn>-1&&o>options.frozenColumn?headersWidthR+=scrollbarDimensions.width:headersWidthL+=scrollbarDimensions.width),hasFrozenColumns()?(headersWidthL+=1e3,headersWidthR=Math.max(headersWidthR,viewportW)+headersWidthL,headersWidthR+=scrollbarDimensions.width):(headersWidthL+=scrollbarDimensions.width,headersWidthL=Math.max(headersWidthL,viewportW)+1e3),headersWidth=headersWidthL+headersWidthR,Math.max(headersWidth,viewportW)+1e3}function getHeadersWidthL(){return headersWidthL=0,columns.forEach((function(e,o){options.frozenColumn>-1&&o>options.frozenColumn||(headersWidthL+=e.width)})),hasFrozenColumns()?headersWidthL+=1e3:(headersWidthL+=scrollbarDimensions.width,headersWidthL=Math.max(headersWidthL,viewportW)+1e3),headersWidthL}function getHeadersWidthR(){return headersWidthR=0,columns.forEach((function(e,o){options.frozenColumn>-1&&o>options.frozenColumn&&(headersWidthR+=e.width)})),hasFrozenColumns()&&(headersWidthR=Math.max(headersWidthR,viewportW)+getHeadersWidthL(),headersWidthR+=scrollbarDimensions.width),headersWidthR}function getCanvasWidth(){var e=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,o=columns.length;for(canvasWidthL=canvasWidthR=0;o--;)hasFrozenColumns()&&o>options.frozenColumn?canvasWidthR+=columns[o].width:canvasWidthL+=columns[o].width;var t=canvasWidthL+canvasWidthR;return options.fullWidthRows?Math.max(t,e):t}function updateCanvasWidth(e){var o,t=canvasWidth,n=canvasWidthL,l=canvasWidthR;((o=(canvasWidth=getCanvasWidth())!==t||canvasWidthL!==n||canvasWidthR!==l)||hasFrozenColumns()||hasFrozenRows)&&($canvasTopL.width(canvasWidthL),getHeadersWidth(),$headerL.width(headersWidthL),$headerR.width(headersWidthR),hasFrozenColumns()?($canvasTopR.width(canvasWidthR),$paneHeaderL.width(canvasWidthL),$paneHeaderR.css(\"left\",canvasWidthL),$paneHeaderR.css(\"width\",viewportW-canvasWidthL),$paneTopL.width(canvasWidthL),$paneTopR.css(\"left\",canvasWidthL),$paneTopR.css(\"width\",viewportW-canvasWidthL),$headerRowScrollerL.width(canvasWidthL),$headerRowScrollerR.width(viewportW-canvasWidthL),$headerRowL.width(canvasWidthL),$headerRowR.width(canvasWidthR),options.createFooterRow&&($footerRowScrollerL.width(canvasWidthL),$footerRowScrollerR.width(viewportW-canvasWidthL),$footerRowL.width(canvasWidthL),$footerRowR.width(canvasWidthR)),options.createPreHeaderPanel&&$preHeaderPanel.width(canvasWidth),$viewportTopL.width(canvasWidthL),$viewportTopR.width(viewportW-canvasWidthL),hasFrozenRows&&($paneBottomL.width(canvasWidthL),$paneBottomR.css(\"left\",canvasWidthL),$viewportBottomL.width(canvasWidthL),$viewportBottomR.width(viewportW-canvasWidthL),$canvasBottomL.width(canvasWidthL),$canvasBottomR.width(canvasWidthR))):($paneHeaderL.width(\"100%\"),$paneTopL.width(\"100%\"),$headerRowScrollerL.width(\"100%\"),$headerRowL.width(canvasWidth),options.createFooterRow&&($footerRowScrollerL.width(\"100%\"),$footerRowL.width(canvasWidth)),options.createPreHeaderPanel&&($preHeaderPanel.width(\"100%\"),$preHeaderPanel.width(canvasWidth)),$viewportTopL.width(\"100%\"),hasFrozenRows&&($viewportBottomL.width(\"100%\"),$canvasBottomL.width(canvasWidthL))),viewportHasHScroll=canvasWidth>=viewportW-scrollbarDimensions.width),$headerRowSpacerL.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0)),$headerRowSpacerR.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0)),options.createFooterRow&&($footerRowSpacerL.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0)),$footerRowSpacerR.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0))),(o||e)&&applyColumnWidths()}function disableSelection(e){e&&e.jquery&&e.attr(\"unselectable\",\"on\").css(\"MozUserSelect\",\"none\").on(\"selectstart.ui\",(function(){return!1}))}function getMaxSupportedCssHeight(){for(var e=1e6,o=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,t=$(\"<div style='display:none' />\").appendTo(document.body);;){var n=2*e;if(t.css(\"height\",n),n>o||t.height()!==n)break;e=n}return t.remove(),e}function getUID(){return uid}function getHeaderColumnWidthDiff(){return headerColumnWidthDiff}function getScrollbarDimensions(){return scrollbarDimensions}function bindAncestorScrollEvents(){for(var e=hasFrozenRows&&!options.frozenBottom?$canvasBottomL[0]:$canvasTopL[0];(e=e.parentNode)!=document.body&&null!=e;)if(e==$viewportTopL[0]||e.scrollWidth!=e.clientWidth||e.scrollHeight!=e.clientHeight){var o=$(e);$boundAncestors=$boundAncestors?$boundAncestors.add(o):o,o.on(\"scroll.\"+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&&($boundAncestors.off(\"scroll.\"+uid),$boundAncestors=null)}function updateColumnHeader(e,o,t){if(initialized){var n=getColumnIndex(e);if(null!=n){var l=columns[n],r=$headers.children().eq(n);r&&(void 0!==o&&(columns[n].name=o),void 0!==t&&(columns[n].toolTip=t),trigger(self.onBeforeHeaderCellDestroy,{node:r[0],column:l,grid:self}),r.attr(\"title\",t||\"\").children().eq(0).html(o),trigger(self.onHeaderCellRendered,{node:r[0],column:l,grid:self}))}}}function getHeader(e){if(!e)return hasFrozenColumns()?$headers:$headerL;var o=getColumnIndex(e.id);return hasFrozenColumns()?o<=options.frozenColumn?$headerL:$headerR:$headerL}function getHeaderColumn(e){var o=\"number\"==typeof e?e:getColumnIndex(e),t=hasFrozenColumns()?o<=options.frozenColumn?$headerL:$headerR:$headerL,n=hasFrozenColumns()?o<=options.frozenColumn?o:o-options.frozenColumn-1:o,l=t.children().eq(n);return l&&l[0]}function getHeaderRow(){return hasFrozenColumns()?$headerRow:$headerRow[0]}function getFooterRow(){return hasFrozenColumns()?$footerRow:$footerRow[0]}function getPreHeaderPanel(){return $preHeaderPanel[0]}function getPreHeaderPanelRight(){return $preHeaderPanelR[0]}function getHeaderRowColumn(e){var o,t=\"number\"==typeof e?e:getColumnIndex(e);hasFrozenColumns()?t<=options.frozenColumn?o=$headerRowL:(o=$headerRowR,t-=options.frozenColumn+1):o=$headerRowL;var n=o.children().eq(t);return n&&n[0]}function getFooterRowColumn(e){var o,t=\"number\"==typeof e?e:getColumnIndex(e);hasFrozenColumns()?t<=options.frozenColumn?o=$footerRowL:(o=$footerRowR,t-=options.frozenColumn+1):o=$footerRowL;var n=o&&o.children().eq(t);return n&&n[0]}function createColumnFooter(){if(options.createFooterRow){$footerRow.find(\".slick-footerrow-column\").each((function(){var e=$(this).data(\"column\");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e,grid:self})})),$footerRowL.empty(),$footerRowR.empty();for(var e=0;e<columns.length;e++){var o=columns[e],t=$(\"<div class='ui-state-default slick-footerrow-column l\"+e+\" r\"+e+\"'></div>\").data(\"column\",o).addClass(hasFrozenColumns()&&e<=options.frozenColumn?\"frozen\":\"\").appendTo(hasFrozenColumns()&&e>options.frozenColumn?$footerRowR:$footerRowL);trigger(self.onFooterRowCellRendered,{node:t[0],column:o,grid:self})}}}function createColumnGroupHeaders(){var e=0,o=!1;if(treeColumns.hasDepth()){for(var t=0;t<$groupHeadersL.length;t++){$groupHeadersL[t].empty(),$groupHeadersR[t].empty();var n=treeColumns.getColumnsInDepth(t);for(var l in n){var r=n[l];e+=r.extractColumns().length,hasFrozenColumns()&&0===t&&e-1===options.frozenColumn&&(o=!0),$(\"<div class='ui-state-default slick-group-header-column' />\").html(\"<span class='slick-column-name'>\"+r.name+\"</span>\").attr(\"id\",\"\"+uid+r.id).attr(\"title\",r.toolTip||\"\").data(\"column\",r).addClass(r.headerCssClass||\"\").addClass(hasFrozenColumns()&&e-1>options.frozenColumn?\"frozen\":\"\").appendTo(hasFrozenColumns()&&e-1>options.frozenColumn?$groupHeadersR[t]:$groupHeadersL[t])}if(hasFrozenColumns()&&0===t&&!o){$groupHeadersL[t].empty(),$groupHeadersR[t].empty(),alert(\"All columns of group should to be grouped!\");break}}applyColumnGroupHeaderWidths()}}function createColumnHeaders(){function e(){$(this).addClass(\"ui-state-hover\")}function o(){$(this).removeClass(\"ui-state-hover\")}$headers.find(\".slick-header-column\").each((function(){var e=$(this).data(\"column\");e&&trigger(self.onBeforeHeaderCellDestroy,{node:this,column:e,grid:self})})),$headerL.empty(),$headerR.empty(),getHeadersWidth(),$headerL.width(headersWidthL),$headerR.width(headersWidthR),$headerRow.find(\".slick-headerrow-column\").each((function(){var e=$(this).data(\"column\");e&&trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:e,grid:self})})),$headerRowL.empty(),$headerRowR.empty(),options.createFooterRow&&($footerRowL.find(\".slick-footerrow-column\").each((function(){var e=$(this).data(\"column\");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e,grid:self})})),$footerRowL.empty(),hasFrozenColumns()&&($footerRowR.find(\".slick-footerrow-column\").each((function(){var e=$(this).data(\"column\");e&&trigger(self.onBeforeFooterRowCellDestroy,{node:this,column:e,grid:self})})),$footerRowR.empty()));for(var t=0;t<columns.length;t++){var n=columns[t],l=hasFrozenColumns()?t<=options.frozenColumn?$headerL:$headerR:$headerL,r=hasFrozenColumns()?t<=options.frozenColumn?$headerRowL:$headerRowR:$headerRowL,i=$(\"<div class='ui-state-default slick-header-column' />\").html(\"<span class='slick-column-name'>\"+n.name+\"</span>\").width(n.width-headerColumnWidthDiff).attr(\"id\",\"\"+uid+n.id).attr(\"title\",n.toolTip||\"\").data(\"column\",n).addClass(n.headerCssClass||\"\").addClass(hasFrozenColumns()&&t<=options.frozenColumn?\"frozen\":\"\").appendTo(l);if((options.enableColumnReorder||n.sortable)&&i.on(\"mouseenter\",e).on(\"mouseleave\",o),n.hasOwnProperty(\"headerCellAttrs\")&&n.headerCellAttrs instanceof Object)for(var a in n.headerCellAttrs)n.headerCellAttrs.hasOwnProperty(a)&&i.attr(a,n.headerCellAttrs[a]);if(n.sortable&&(i.addClass(\"slick-header-sortable\"),i.append(\"<span class='slick-sort-indicator\"+(options.numberedMultiColumnSort&&!options.sortColNumberInSeparateSpan?\" slick-sort-indicator-numbered\":\"\")+\"' />\"),options.numberedMultiColumnSort&&options.sortColNumberInSeparateSpan&&i.append(\"<span class='slick-sort-indicator-numbered' />\")),trigger(self.onHeaderCellRendered,{node:i[0],column:n,grid:self}),options.showHeaderRow){var s=$(\"<div class='ui-state-default slick-headerrow-column l\"+t+\" r\"+t+\"'></div>\").data(\"column\",n).addClass(hasFrozenColumns()&&t<=options.frozenColumn?\"frozen\":\"\").appendTo(r);trigger(self.onHeaderRowCellRendered,{node:s[0],column:n,grid:self})}if(options.createFooterRow&&options.showFooterRow){var d=$(\"<div class='ui-state-default slick-footerrow-column l\"+t+\" r\"+t+\"'></div>\").data(\"column\",n).appendTo($footerRow);trigger(self.onFooterRowCellRendered,{node:d[0],column:n,grid:self})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&&(\"function\"==typeof options.enableColumnReorder?options.enableColumnReorder(self,$headers,headerColumnWidthDiff,setColumns,setupColumnResize,columns,getColumnIndex,uid,trigger):setupColumnReorder())}function setupColumnSort(){$headers.click((function(e){if(!columnResizeDragging&&(e.metaKey=e.metaKey||e.ctrlKey,!$(e.target).hasClass(\"slick-resizable-handle\"))){var o=$(e.target).closest(\".slick-header-column\");if(o.length){var t=o.data(\"column\");if(t.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var n=$.extend(!0,[],sortColumns),l=null,r=0;r<sortColumns.length;r++)if(sortColumns[r].columnId==t.id){(l=sortColumns[r]).sortAsc=!l.sortAsc;break}var i,a=!!l;options.tristateMultiColumnSort?(l||(l={columnId:t.id,sortAsc:t.defaultSortAsc}),a&&l.sortAsc&&(sortColumns.splice(r,1),l=null),options.multiColumnSort||(sortColumns=[]),!l||a&&options.multiColumnSort||sortColumns.push(l)):e.metaKey&&options.multiColumnSort?l&&sortColumns.splice(r,1):((e.shiftKey||e.metaKey)&&options.multiColumnSort||(sortColumns=[]),l?0===sortColumns.length&&sortColumns.push(l):(l={columnId:t.id,sortAsc:t.defaultSortAsc},sortColumns.push(l))),i=options.multiColumnSort?{multiColumnSort:!0,previousSortColumns:n,sortCols:$.map(sortColumns,(function(e){return{columnId:columns[getColumnIndex(e.columnId)].id,sortCol:columns[getColumnIndex(e.columnId)],sortAsc:e.sortAsc}}))}:{multiColumnSort:!1,previousSortColumns:n,columnId:sortColumns.length>0?t.id:null,sortCol:sortColumns.length>0?t:null,sortAsc:!(sortColumns.length>0)||sortColumns[0].sortAsc},!1!==trigger(self.onBeforeSort,i,e)&&(setSortColumns(sortColumns),trigger(self.onSort,i,e))}}}}))}function currentPositionInHeader(e){var o=0;return $headers.find(\".slick-header-column\").each((function(t){if(this.id==e)return o=t,!1})),o}function limitPositionInGroup(e){var o,t=0,n=0;return treeColumns.getColumnsInDepth($groupHeadersL.length-1).some((function(l){return t=n,n+=l.columns.length,l.columns.some((function(t){return t.id===e&&(o=l),o})),o})),n--,{start:t,end:n,group:o}}function remove(e,o){var t=e.lastIndexOf(o);t>-1&&(e.splice(t,1),remove(e,o))}function columnPositionValidInGroup(e){var o=currentPositionInHeader(e[0].id),t=limitPositionInGroup(e.data(\"column\").id),n=t.start<=o&&o<=t.end;return{limit:t,valid:n,message:n?\"\":'Column \"'.concat(e.text(),'\" can be reordered only within the \"',t.group.name,'\" group!')}}function setupColumnReorder(){$headers.filter(\":ui-sortable\").sortable(\"destroy\");var e,o=null;function t(){$viewportScrollContainerX[0].scrollLeft=$viewportScrollContainerX[0].scrollLeft+10}function n(){$viewportScrollContainerX[0].scrollLeft=$viewportScrollContainerX[0].scrollLeft-10}$headers.sortable({containment:\"parent\",distance:3,axis:\"x\",cursor:\"default\",tolerance:\"intersection\",helper:\"clone\",placeholder:\"slick-sortable-placeholder ui-state-default slick-header-column\",start:function(o,t){t.placeholder.width(t.helper.outerWidth()-headerColumnWidthDiff),e=!hasFrozenColumns()||t.placeholder.offset().left+t.placeholder.width()>$viewportScrollContainerX.offset().left,$(t.helper).addClass(\"slick-header-column-active\")},beforeStop:function(e,o){$(o.helper).removeClass(\"slick-header-column-active\")},sort:function(l,r){e&&l.originalEvent.pageX>$container[0].clientWidth?o||(o=setInterval(t,100)):e&&l.originalEvent.pageX<$viewportScrollContainerX.offset().left?o||(o=setInterval(n,100)):(clearInterval(o),o=null)},stop:function(e,t){var n=!1;clearInterval(o),o=null;var l=null;if(treeColumns.hasDepth()){var r=columnPositionValidInGroup(t.item);l=r.limit,(n=!r.valid)&&alert(r.message)}if(!n&&getEditorLock().commitCurrentEdit()){var i=$headerL.sortable(\"toArray\");i=i.concat($headerR.sortable(\"toArray\"));for(var a=[],s=0;s<i.length;s++)a.push(columns[getColumnIndex(i[s].replace(uid,\"\"))]);setColumns(a),trigger(self.onColumnsReordered,{impactedColumns:getImpactedColumns(l)}),e.stopPropagation(),setupColumnResize()}else $(this).sortable(\"cancel\")}})}function getImpactedColumns(e){var o=[];if(e)for(var t=e.start;t<=e.end;t++)o.push(columns[t]);else o=columns;return o}function setupColumnResize(){var e,o,t,n,l,r,i,a,s,d=0;(l=$headers.children()).find(\".slick-resizable-handle\").remove(),l.each((function(e,o){e>=columns.length||columns[e].resizable&&(void 0===a&&(a=e),s=e)})),void 0!==a&&l.each((function(c,u){c>=columns.length||c<a||options.forceFitColumns&&c>=s||($(u),$(\"<div class='slick-resizable-handle' />\").appendTo(u).on(\"dragstart\",(function(o,a){if(!getEditorLock().commitCurrentEdit())return!1;n=o.pageX,d=0,$(this).parent().addClass(\"slick-header-column-active\");var s=null,u=null;if(l.each((function(e,o){e>=columns.length||(columns[e].previousWidth=$(o).outerWidth())})),options.forceFitColumns)for(s=0,u=0,e=c+1;e<columns.length;e++)(t=columns[e]).resizable&&(null!==u&&(t.maxWidth?u+=t.maxWidth-t.previousWidth:u=null),s+=t.previousWidth-Math.max(t.minWidth||0,absoluteColumnMinWidth));var h=0,p=0;for(e=0;e<=c;e++)(t=columns[e]).resizable&&(null!==p&&(t.maxWidth?p+=t.maxWidth-t.previousWidth:p=null),h+=t.previousWidth-Math.max(t.minWidth||0,absoluteColumnMinWidth));null===s&&(s=1e5),null===h&&(h=1e5),null===u&&(u=1e5),null===p&&(p=1e5),i=n+Math.min(s,p),r=n-Math.min(h,u)})).on(\"drag\",(function(l,a){columnResizeDragging=!0;var s,u,h=Math.min(i,Math.max(r,l.pageX))-n,p=0,w=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;if(h<0){for(u=h,e=c;e>=0;e--)(t=columns[e]).resizable&&(s=Math.max(t.minWidth||0,absoluteColumnMinWidth),u&&t.previousWidth+u<s?(u+=t.previousWidth-s,t.width=s):(t.width=t.previousWidth+u,u=0));for(o=0;o<=c;o++)t=columns[o],hasFrozenColumns()&&o>options.frozenColumn?t.width:p+=t.width;if(options.forceFitColumns)for(u=-h,e=c+1;e<columns.length;e++)(t=columns[e]).resizable&&(u&&t.maxWidth&&t.maxWidth-t.previousWidth<u?(u-=t.maxWidth-t.previousWidth,t.width=t.maxWidth):(t.width=t.previousWidth+u,u=0),hasFrozenColumns()&&e>options.frozenColumn?t.width:p+=t.width);else for(e=c+1;e<columns.length;e++)t=columns[e],hasFrozenColumns()&&e>options.frozenColumn?t.width:p+=t.width;if(options.forceFitColumns)for(u=-h,e=c+1;e<columns.length;e++)(t=columns[e]).resizable&&(u&&t.maxWidth&&t.maxWidth-t.previousWidth<u?(u-=t.maxWidth-t.previousWidth,t.width=t.maxWidth):(t.width=t.previousWidth+u,u=0))}else{for(u=h,p=0,0,e=c;e>=0;e--)if((t=columns[e]).resizable)if(u&&t.maxWidth&&t.maxWidth-t.previousWidth<u)u-=t.maxWidth-t.previousWidth,t.width=t.maxWidth;else{var f=t.previousWidth+u,m=canvasWidthL+u;hasFrozenColumns()&&e<=options.frozenColumn?(f>d&&m<w-options.frozenRightViewportMinWidth&&(d=f),t.width=m+options.frozenRightViewportMinWidth>w?d:f):t.width=f,u=0}for(o=0;o<=c;o++)t=columns[o],hasFrozenColumns()&&o>options.frozenColumn?t.width:p+=t.width;if(options.forceFitColumns)for(u=-h,e=c+1;e<columns.length;e++)(t=columns[e]).resizable&&(s=Math.max(t.minWidth||0,absoluteColumnMinWidth),u&&t.previousWidth+u<s?(u+=t.previousWidth-s,t.width=s):(t.width=t.previousWidth+u,u=0),hasFrozenColumns()&&e>options.frozenColumn?t.width:p+=t.width);else for(e=c+1;e<columns.length;e++)t=columns[e],hasFrozenColumns()&&e>options.frozenColumn?t.width:p+=t.width}hasFrozenColumns()&&p!=canvasWidthL&&($headerL.width(p+1e3),$paneHeaderR.css(\"left\",p)),applyColumnHeaderWidths(),applyColumnGroupHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths(),trigger(self.onColumnsDrag,{triggeredByColumn:$(this).parent().attr(\"id\").replace(uid,\"\"),resizeHandle:$(this)})})).on(\"dragend\",(function(o,n){$(this).parent().removeClass(\"slick-header-column-active\");var r,i=$(this).parent().attr(\"id\").replace(uid,\"\");for(!0===trigger(self.onBeforeColumnsResize,{triggeredByColumn:i})&&(applyColumnHeaderWidths(),applyColumnGroupHeaderWidths()),e=0;e<columns.length;e++)t=columns[e],r=$(l[e]).outerWidth(),t.previousWidth!==r&&t.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{triggeredByColumn:i}),setTimeout((function(){columnResizeDragging=!1}),300)})).on(\"dblclick\",(function(){var e=$(this).parent().attr(\"id\").replace(uid,\"\");trigger(self.onColumnsResizeDblClick,{triggeredByColumn:e})})))}))}function getVBoxDelta(e){var o=0;return e&&\"function\"==typeof e.css&&$.each([\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],(function(t,n){o+=parseFloat(e.css(n))||0})),o}function setFrozenOptions(){if(options.frozenColumn=options.frozenColumn>=0&&options.frozenColumn<columns.length?parseInt(options.frozenColumn):-1,options.frozenRow>-1){hasFrozenRows=!0,frozenRowsHeight=options.frozenRow*options.rowHeight;var e=getDataLength();actualFrozenRow=options.frozenBottom?e-options.frozenRow:options.frozenRow}else hasFrozenRows=!1}function setPaneVisibility(){hasFrozenColumns()?($paneHeaderR.show(),$paneTopR.show(),hasFrozenRows?($paneBottomL.show(),$paneBottomR.show()):($paneBottomR.hide(),$paneBottomL.hide())):($paneHeaderR.hide(),$paneTopR.hide(),$paneBottomR.hide(),hasFrozenRows?$paneBottomL.show():($paneBottomR.hide(),$paneBottomL.hide()))}function setOverflow(){$viewportTopL.css({\"overflow-x\":hasFrozenColumns()?hasFrozenRows&&!options.alwaysAllowHorizontalScroll?\"hidden\":\"scroll\":hasFrozenRows&&!options.alwaysAllowHorizontalScroll?\"hidden\":\"auto\",\"overflow-y\":!hasFrozenColumns()&&options.alwaysShowVerticalScroll?\"scroll\":hasFrozenColumns()?\"hidden\":hasFrozenRows?\"scroll\":\"auto\"}),$viewportTopR.css({\"overflow-x\":hasFrozenColumns()?hasFrozenRows&&!options.alwaysAllowHorizontalScroll?\"hidden\":\"scroll\":hasFrozenRows&&!options.alwaysAllowHorizontalScroll?\"hidden\":\"auto\",\"overflow-y\":options.alwaysShowVerticalScroll?\"scroll\":(hasFrozenColumns(),hasFrozenRows?\"scroll\":\"auto\")}),$viewportBottomL.css({\"overflow-x\":hasFrozenColumns()?hasFrozenRows&&!options.alwaysAllowHorizontalScroll?\"scroll\":\"auto\":(hasFrozenRows&&options.alwaysAllowHorizontalScroll,\"auto\"),\"overflow-y\":!hasFrozenColumns()&&options.alwaysShowVerticalScroll?\"scroll\":hasFrozenColumns()?\"hidden\":hasFrozenRows?\"scroll\":\"auto\"}),$viewportBottomR.css({\"overflow-x\":hasFrozenColumns()?hasFrozenRows&&!options.alwaysAllowHorizontalScroll?\"scroll\":\"auto\":(hasFrozenRows&&options.alwaysAllowHorizontalScroll,\"auto\"),\"overflow-y\":options.alwaysShowVerticalScroll?\"scroll\":(hasFrozenColumns(),\"auto\")}),options.viewportClass&&($viewportTopL.toggleClass(options.viewportClass,!0),$viewportTopR.toggleClass(options.viewportClass,!0),$viewportBottomL.toggleClass(options.viewportClass,!0),$viewportBottomR.toggleClass(options.viewportClass,!0))}function setScroller(){hasFrozenColumns()?($headerScrollContainer=$headerScrollerR,$headerRowScrollContainer=$headerRowScrollerR,$footerRowScrollContainer=$footerRowScrollerR,hasFrozenRows?options.frozenBottom?($viewportScrollContainerX=$viewportBottomR,$viewportScrollContainerY=$viewportTopR):$viewportScrollContainerX=$viewportScrollContainerY=$viewportBottomR:$viewportScrollContainerX=$viewportScrollContainerY=$viewportTopR):($headerScrollContainer=$headerScrollerL,$headerRowScrollContainer=$headerRowScrollerL,$footerRowScrollContainer=$footerRowScrollerL,hasFrozenRows?options.frozenBottom?($viewportScrollContainerX=$viewportBottomL,$viewportScrollContainerY=$viewportTopL):$viewportScrollContainerX=$viewportScrollContainerY=$viewportBottomL:$viewportScrollContainerX=$viewportScrollContainerY=$viewportTopL)}function measureCellPaddingAndBorder(){var e,o=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],t=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],n=$.fn.jquery.split(\".\");jQueryNewWidthBehaviour=1==n[0]&&n[1]>=8||n[0]>=2,e=$(\"<div class='ui-state-default slick-header-column' style='visibility:hidden'>-</div>\").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,\"border-box\"!=e.css(\"box-sizing\")&&\"border-box\"!=e.css(\"-moz-box-sizing\")&&\"border-box\"!=e.css(\"-webkit-box-sizing\")&&($.each(o,(function(o,t){headerColumnWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){headerColumnHeightDiff+=parseFloat(e.css(t))||0}))),e.remove();var l=$(\"<div class='slick-row' />\").appendTo($canvas);e=$(\"<div class='slick-cell' id='' style='visibility:hidden'>-</div>\").appendTo(l),cellWidthDiff=cellHeightDiff=0,\"border-box\"!=e.css(\"box-sizing\")&&\"border-box\"!=e.css(\"-moz-box-sizing\")&&\"border-box\"!=e.css(\"-webkit-box-sizing\")&&($.each(o,(function(o,t){cellWidthDiff+=parseFloat(e.css(t))||0})),$.each(t,(function(o,t){cellHeightDiff+=parseFloat(e.css(t))||0}))),l.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$(\"<style type='text/css' rel='stylesheet' />\"),$container[0].parentNode instanceof ShadowRoot?$container[0].parentNode.insertBefore($style[0],$container[0]):$style.appendTo($(\"head\"));for(var e=options.rowHeight-cellHeightDiff,o=[\".\"+uid+\" .slick-group-header-column { left: 1000px; }\",\".\"+uid+\" .slick-header-column { left: 1000px; }\",\".\"+uid+\" .slick-top-panel { height:\"+options.topPanelHeight+\"px; }\",\".\"+uid+\" .slick-preheader-panel { height:\"+options.preHeaderPanelHeight+\"px; }\",\".\"+uid+\" .slick-headerrow-columns { height:\"+options.headerRowHeight+\"px; }\",\".\"+uid+\" .slick-footerrow-columns { height:\"+options.footerRowHeight+\"px; }\",\".\"+uid+\" .slick-cell { height:\"+e+\"px; }\",\".\"+uid+\" .slick-row { height:\"+options.rowHeight+\"px; }\"],t=0;t<columns.length;t++)o.push(\".\"+uid+\" .l\"+t+\" { }\"),o.push(\".\"+uid+\" .r\"+t+\" { }\");$style[0].styleSheet?$style[0].styleSheet.cssText=o.join(\" \"):$style[0].appendChild(document.createTextNode(o.join(\" \")))}function getColumnCssRules(e){var o;if(!stylesheet){var t;for(t=$container[0].parentNode instanceof ShadowRoot?$container[0].parentNode.styleSheets:document.styleSheets,o=0;o<t.length;o++)if((t[o].ownerNode||t[o].owningElement)==$style[0]){stylesheet=t[o];break}if(!stylesheet)throw new Error(\"SlickGrid Cannot find stylesheet.\");columnCssRulesL=[],columnCssRulesR=[];var n,l,r=stylesheet.cssRules||stylesheet.rules;for(o=0;o<r.length;o++){var i=r[o].selectorText;(n=/\\.l\\d+/.exec(i))?(l=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesL[l]=r[o]):(n=/\\.r\\d+/.exec(i))&&(l=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesR[l]=r[o])}}return{left:columnCssRulesL[e],right:columnCssRulesR[e]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(e){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var o=plugins.length;o--;)unregisterPlugin(plugins[o]);options.enableColumnReorder&&$headers.filter(\":ui-sortable\").sortable(\"destroy\"),unbindAncestorScrollEvents(),$container.off(\".slickgrid\"),removeCssRules(),$canvas.off(),$viewport.off(),$headerScroller.off(),$headerRowScroller.off(),$footerRow&&$footerRow.off(),$footerRowScroller&&$footerRowScroller.off(),$preHeaderPanelScroller&&$preHeaderPanelScroller.off(),$focusSink.off(),$(\".slick-resizable-handle\").off(),$(\".slick-header-column\").off(),$container.empty().removeClass(uid),e&&destroyAllElements()}function destroyAllElements(){$activeCanvasNode=null,$activeViewportNode=null,$boundAncestors=null,$canvas=null,$canvasTopL=null,$canvasTopR=null,$canvasBottomL=null,$canvasBottomR=null,$container=null,$focusSink=null,$focusSink2=null,$groupHeaders=null,$groupHeadersL=null,$groupHeadersR=null,$headerL=null,$headerR=null,$headers=null,$headerRow=null,$headerRowL=null,$headerRowR=null,$headerRowSpacerL=null,$headerRowSpacerR=null,$headerRowScrollContainer=null,$headerRowScroller=null,$headerRowScrollerL=null,$headerRowScrollerR=null,$headerScrollContainer=null,$headerScroller=null,$headerScrollerL=null,$headerScrollerR=null,$hiddenParents=null,$footerRow=null,$footerRowL=null,$footerRowR=null,$footerRowSpacerL=null,$footerRowSpacerR=null,$footerRowScroller=null,$footerRowScrollerL=null,$footerRowScrollerR=null,$footerRowScrollContainer=null,$preHeaderPanel=null,$preHeaderPanelR=null,$preHeaderPanelScroller=null,$preHeaderPanelScrollerR=null,$preHeaderPanelSpacer=null,$preHeaderPanelSpacerR=null,$topPanel=null,$topPanelScroller=null,$style=null,$topPanelScrollerL=null,$topPanelScrollerR=null,$topPanelL=null,$topPanelR=null,$paneHeaderL=null,$paneHeaderR=null,$paneTopL=null,$paneTopR=null,$paneBottomL=null,$paneBottomR=null,$viewport=null,$viewportTopL=null,$viewportTopR=null,$viewportBottomL=null,$viewportBottomR=null,$viewportScrollContainerX=null,$viewportScrollContainerY=null}var canvas=null,canvas_context=null;function autosizeColumn(e,o){var t=e;if(\"number\"==typeof e)t=columns[e];else if(\"string\"==typeof e)for(var n=0;n<columns.length;n++)columns[n].Id===e&&(t=columns[n]);getColAutosizeWidth(t,$(getCanvasNode(0,0)),o)}function autosizeColumns(e,o){if((e=e||options.autosizeColsMode)!==Slick.GridAutosizeColsMode.LegacyForceFit&&e!==Slick.GridAutosizeColsMode.LegacyOff){if(e!==Slick.GridAutosizeColsMode.None){(canvas=document.createElement(\"canvas\"))&&canvas.getContext&&(canvas_context=canvas.getContext(\"2d\"));var t,n,l,r,i=$(getCanvasNode(0,0)),a=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,s=0,d=0,c=0,u=0,h=0;for(t=0;t<columns.length;t++)getColAutosizeWidth(n=columns[t],i,o),h+=n.autoSize.autosizeMode===Slick.ColAutosizeMode.Locked?n.width:0,u+=n.autoSize.autosizeMode===Slick.ColAutosizeMode.Locked?n.width:n.minWidth,s+=n.autoSize.widthPx,d+=n.autoSize.sizeToRemaining?0:n.autoSize.widthPx,c+=n.autoSize.sizeToRemaining&&n.minWidth||0;var p=s-d;if(e===Slick.GridAutosizeColsMode.FitViewportToCols){var w=s+scrollbarDimensions.width;e=Slick.GridAutosizeColsMode.IgnoreViewport,options.viewportMaxWidthPx&&w>options.viewportMaxWidthPx?(w=options.viewportMaxWidthPx,e=Slick.GridAutosizeColsMode.FitColsToViewport):options.viewportMinWidthPx&&w<options.viewportMinWidthPx&&(w=options.viewportMinWidthPx,e=Slick.GridAutosizeColsMode.FitColsToViewport),$container.width(w)}if(e===Slick.GridAutosizeColsMode.FitColsToViewport)if(p>0&&d<a-c)for(t=0;t<columns.length;t++){var f=a-d;l=(n=columns[t]).autoSize.sizeToRemaining?f*n.autoSize.widthPx/p:n.autoSize.widthPx,n.rerenderOnResize&&n.width!=l&&(r=!0),n.width=l}else if(options.viewportSwitchToScrollModeWidthPercent&&d+c>a*options.viewportSwitchToScrollModeWidthPercent/100||u>a)e=Slick.GridAutosizeColsMode.IgnoreViewport;else{var m=d-h,v=a-h-c;for(t=0;t<columns.length;t++)l=(n=columns[t]).width,n.autoSize.autosizeMode!==Slick.ColAutosizeMode.Locked&&(n.autoSize.sizeToRemaining?l=n.minWidth:((l=v/m*n.autoSize.widthPx)<n.minWidth&&(l=n.minWidth),m-=n.autoSize.widthPx,v-=l)),n.rerenderOnResize&&n.width!=l&&(r=!0),n.width=l}if(e===Slick.GridAutosizeColsMode.IgnoreViewport)for(t=0;t<columns.length;t++)l=columns[t].autoSize.widthPx,columns[t].rerenderOnResize&&columns[t].width!=l&&(r=!0),columns[t].width=l;reRenderColumns(r)}}else legacyAutosizeColumns()}function LogColWidths(){for(var e=\"Col Widths:\",o=0;o<columns.length;o++)e+=\" \"+columns[o].width;console.log(e)}function getColAutosizeWidth(e,o,t){var n=e.autoSize;if(n.widthPx=e.width,n.autosizeMode!==Slick.ColAutosizeMode.Locked&&n.autosizeMode!==Slick.ColAutosizeMode.Guide){var l=getDataLength();if(n.autosizeMode===Slick.ColAutosizeMode.ContentIntelligent){var r,i=n.colDataTypeOf;if(l>0){var a=getDataItem(0);a&&\"object\"===(i=typeof(r=a[e.field]))&&(r instanceof Date&&(i=\"date\"),\"undefined\"!=typeof moment&&r instanceof moment&&(i=\"moment\"))}\"boolean\"===i&&(n.colValueArray=[!0,!1]),\"number\"===i&&(n.valueFilterMode=Slick.ValueFilterMode.GetGreatestAndSub,n.rowSelectionMode=Slick.RowSelectionMode.AllRows),\"string\"===i&&(n.valueFilterMode=Slick.ValueFilterMode.GetLongestText,n.rowSelectionMode=Slick.RowSelectionMode.AllRows,n.allowAddlPercent=5),\"date\"===i&&(n.colValueArray=[new Date(2009,8,30,12,20,20)]),\"moment\"===i&&\"undefined\"!=typeof moment&&(n.colValueArray=[moment([2009,8,30,12,20,20])])}var s=getColContentSize(e,o,t);s=s*(n.allowAddlPercent?1+n.allowAddlPercent/100:1)+options.autosizeColPaddingPx,e.minWidth&&s<e.minWidth&&(s=e.minWidth),e.maxWidth&&s>e.maxWidth&&(s=e.maxWidth),n.widthPx=s}}function getColContentSize(e,o,t){var n,l=e.autoSize,r=1,i=0,a=0;if(l.ignoreHeaderText||(a=getColHeaderWidth(e)),l.colValueArray)return i=getColWidth(e,o,l.colValueArray),Math.max(a,i);var s=getData();s.getItems&&(s=s.getItems());var d=(t?l.rowSelectionModeOnInit:void 0)||l.rowSelectionMode;if(d===Slick.RowSelectionMode.FirstRow&&(s=s.slice(0,1)),d===Slick.RowSelectionMode.LastRow&&(s=s.slice(s.length-1,s.length)),d===Slick.RowSelectionMode.FirstNRows&&(s=s.slice(0,l.rowSelectionCount)),l.valueFilterMode===Slick.ValueFilterMode.DeDuplicate){var c={};for(u=0,n=s.length;u<n;u++)c[s[u][e.field]]=!0;if(Object.keys)s=Object.keys(c);else for(var u in s=[],c)s.push(u)}if(l.valueFilterMode===Slick.ValueFilterMode.GetGreatestAndSub){var h,p=0;for(u=0,n=s.length;u<n;u++)f=s[u][e.field],Math.abs(f)>p&&(h=f,p=Math.abs(f));h=\"\"+h,s=[h=+(h=Array(h.length+1).join(\"9\"))]}if(l.valueFilterMode===Slick.ValueFilterMode.GetLongestTextAndSub){var w=0;for(u=0,n=s.length;u<n;u++)((f=s[u][e.field])||\"\").length>w&&(w=f.length);f=Array(w+1).join(\"m\"),r=options.autosizeTextAvgToMWidthRatio,s=[f]}if(l.valueFilterMode===Slick.ValueFilterMode.GetLongestText){w=0;var f,m=0;if(row.length){for(u=0,n=s.length;u<n;u++)((f=s[u][e.field])||\"\").length>w&&(w=f.length,m=u);f=s[m][e.field]}s=[f]}return i=getColWidth(e,o,s)*r,Math.max(a,i)}function getColWidth(e,o,t){var n=getColumnIndex(e.id),l=$('<div class=\"slick-row ui-widget-content\"></div>'),r=$('<div class=\"slick-cell\"></div>');r.css({position:\"absolute\",visibility:\"hidden\",\"text-overflow\":\"initial\",\"white-space\":\"nowrap\"}),l.append(r),o.append(l);var i,a,s,d,c=0;return canvas_context&&e.autoSize.widthEvalMode===Slick.WidthEvalMode.CanvasTextSize?(canvas_context.font=r.css(\"font-size\")+\" \"+r.css(\"font-family\"),$(t).each((function(o,t){d=Array.isArray(t)?t[e.field]:t,(i=(a=\"\"+d)?canvas_context.measureText(a).width:0)>c&&(c=i,s=a)})),r.html(s),i=r.outerWidth(),l.remove(),r=null,i):($(t).each((function(o,t){d=Array.isArray(t)?t[e.field]:t,applyFormatResultToCellNode(e.formatterOverride?e.formatterOverride(o,n,d,e,t,self):e.formatter?e.formatter(o,n,d,e,t,self):\"\"+d,r[0]),(i=r.outerWidth())>c&&(c=i)})),l.remove(),r=null,c)}function getColHeaderWidth(e){var o=0,t=getUID()+e.id,n=document.getElementById(t),l=t+\"_\";if(n){var r=n.cloneNode(!0);r.id=l,r.style.cssText=\"position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;\",n.parentNode.insertBefore(r,n),o=r.offsetWidth,r.parentNode.removeChild(r)}else{var i=getHeader(e);o=(n=$(\"<div class='ui-state-default slick-header-column' />\").html(\"<span class='slick-column-name'>\"+e.name+\"</span>\").attr(\"id\",l).css({position:\"absolute\",visibility:\"hidden\",right:\"auto\",\"text-overflow:\":\"initial\",\"white-space\":\"nowrap\"}).addClass(e.headerCssClass||\"\").appendTo(i))[0].offsetWidth,i[0].removeChild(n[0])}return o}function legacyAutosizeColumns(){var e,o,t,n=[],l=0,r=0,i=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(e=0;e<columns.length;e++)o=columns[e],n.push(o.width),r+=o.width,o.resizable&&(l+=o.width-Math.max(o.minWidth,absoluteColumnMinWidth));for(t=r;r>i&&l;){var a=(r-i)/l;for(e=0;e<columns.length&&r>i;e++){o=columns[e];var s=n[e];if(!(!o.resizable||s<=o.minWidth||s<=absoluteColumnMinWidth)){var d=Math.max(o.minWidth,absoluteColumnMinWidth),c=Math.floor(a*(s-d))||1;r-=c=Math.min(c,s-d),l-=c,n[e]-=c}}if(t<=r)break;t=r}for(t=r;r<i;){var u=i/r;for(e=0;e<columns.length&&r<i;e++){o=columns[e];var h,p=n[e];r+=h=!o.resizable||o.maxWidth<=p?0:Math.min(Math.floor(u*p)-p,o.maxWidth-p||1e6)||1,n[e]+=r<=i?h:0}if(t>=r)break;t=r}var w=!1;for(e=0;e<columns.length;e++)columns[e].rerenderOnResize&&columns[e].width!=n[e]&&(w=!0),columns[e].width=n[e];reRenderColumns(w)}function reRenderColumns(e){applyColumnHeaderWidths(),applyColumnGroupHeaderWidths(),updateCanvasWidth(!0),trigger(self.onAutosizeColumns,{columns}),e&&(invalidateAllRows(),render())}function trigger(e,o,t){return t=t||new Slick.EventData,(o=o||{}).grid=self,e.notify(o,t,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(e){return columnsById[e]}function applyColumnGroupHeaderWidths(){if(treeColumns.hasDepth())for(var e=$groupHeadersL.length-1;e>=0;e--){treeColumns.getColumnsInDepth(e);$().add($groupHeadersL[e]).add($groupHeadersR[e]).each((function(e){var o=$(this),t=0;o.width(0===e?getHeadersWidthL():getHeadersWidthR()),o.children().each((function(){var e=$(this),n=$(this).data(\"column\");n.width=0,n.columns.forEach((function(){var e=o.next().children(\":eq(\"+t+++\")\");n.width+=e.outerWidth()})),e.width(n.width-headerColumnWidthDiff)}))}))}}function applyColumnHeaderWidths(){if(initialized){for(var e,o=0,t=$headers.children(),n=columns.length;o<n;o++)e=$(t[o]),jQueryNewWidthBehaviour?e.outerWidth()!==columns[o].width&&e.outerWidth(columns[o].width):e.width()!==columns[o].width-headerColumnWidthDiff&&e.width(columns[o].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var e,o,t=0,n=0;n<columns.length;n++)e=columns[n].width,(o=getColumnCssRules(n)).left.style.left=t+\"px\",o.right.style.right=(-1!=options.frozenColumn&&n>options.frozenColumn?canvasWidthR:canvasWidthL)-t-e+\"px\",options.frozenColumn==n?t=0:t+=columns[n].width}function setSortColumn(e,o){setSortColumns([{columnId:e,sortAsc:o}])}function setSortColumns(e){sortColumns=e;var o=options.numberedMultiColumnSort&&sortColumns.length>1,t=$headers.children();t.removeClass(\"slick-header-column-sorted\").find(\".slick-sort-indicator\").removeClass(\"slick-sort-indicator-asc slick-sort-indicator-desc\"),t.find(\".slick-sort-indicator-numbered\").text(\"\"),$.each(sortColumns,(function(e,n){null==n.sortAsc&&(n.sortAsc=!0);var l=getColumnIndex(n.columnId);null!=l&&(t.eq(l).addClass(\"slick-header-column-sorted\").find(\".slick-sort-indicator\").addClass(n.sortAsc?\"slick-sort-indicator-asc\":\"slick-sort-indicator-desc\"),o&&t.eq(l).find(\".slick-sort-indicator-numbered\").text(e+1))}))}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(e,o){var t=selectedRows.slice(0);selectedRows=[];for(var n={},l=0;l<o.length;l++)for(var r=o[l].fromRow;r<=o[l].toRow;r++){n[r]||(selectedRows.push(r),n[r]={});for(var i=o[l].fromCell;i<=o[l].toCell;i++)canCellBeSelected(r,i)&&(n[r][columns[i].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,n),simpleArrayEquals(t,selectedRows)||trigger(self.onSelectedRowsChanged,{rows:getSelectedRows(),previousSelectedRows:t},e)}function simpleArrayEquals(e,o){if(!Array.isArray(e)||!Array.isArray(o))return!0;const t=new Set(e),n=new Set(o);if(t.size!=n.size)return!1;for(const e of t)if(!n.has(e))return!1;return!0}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var e=0,o=0,t=columns.length;o<t;o++)columnPosLeft[o]=e,columnPosRight[o]=e+columns[o].width,options.frozenColumn==o?e=0:e+=columns[o].width}function updateColumnProps(){columnsById={};for(var e=0;e<columns.length;e++){columns[e].width&&(columns[e].widthRequest=columns[e].width);var o=columns[e]=$.extend({},columnDefaults,columns[e]);o.autoSize=$.extend({},columnAutosizeDefaults,o.autoSize),columnsById[o.id]=e,o.minWidth&&o.width<o.minWidth&&(o.width=o.minWidth),o.maxWidth&&o.width>o.maxWidth&&(o.width=o.maxWidth),o.resizable}}function setColumns(e){trigger(self.onBeforeSetColumns,{previousColumns:columns,newColumns:e,grid:self});var o=new Slick.TreeColumns(e);columns=o.hasDepth()?(treeColumns=o).extractColumns():e,updateColumnProps(),updateColumnCaches(),initialized&&(setPaneVisibility(),setOverflow(),invalidateAllRows(),createColumnHeaders(),createColumnGroupHeaders(),createColumnFooter(),removeCssRules(),createCssRules(),resizeCanvas(),updateCanvasWidth(),applyColumnHeaderWidths(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(e,o,t,n){if(getEditorLock().commitCurrentEdit()){makeActiveCellNormal(),void 0!==e.showColumnHeader&&setColumnHeaderVisibility(e.showColumnHeader),options.enableAddRow!==e.enableAddRow&&invalidateRow(getDataLength());var l=$.extend(!0,{},options);if(options=$.extend(options,e),trigger(self.onSetOptions,{optionsBefore:l,optionsAfter:options}),validateAndEnforceOptions(),$viewport.css(\"overflow-y\",options.autoHeight?\"hidden\":\"auto\"),o||render(),setFrozenOptions(),setScroller(),n||setOverflow(),t||setColumns(treeColumns.extractColumns()),options.enableMouseWheelScrollHandler&&$viewport&&jQuery.fn.mousewheel){var r=$._data($viewport[0],\"events\");r&&r.mousewheel||$viewport.on(\"mousewheel\",handleMouseWheel)}else!1===options.enableMouseWheelScrollHandler&&$viewport.off(\"mousewheel\")}}function validateAndEnforceOptions(){options.autoHeight&&(options.leaveSpaceForNewRows=!1),options.forceFitColumns&&(options.autosizeColsMode=Slick.GridAutosizeColsMode.LegacyForceFit,console.log(\"forceFitColumns option is deprecated - use autosizeColsMode\"))}function setData(e,o){data=e,invalidateAllRows(),updateRowCount(),o&&scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data&&data.length||0}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow&&(!pagingActive||pagingIsLastPage)?1:0)}function getDataItem(e){return data.getItem?data.getItem(e):data[e]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(e,o){var t=!1!==o;options.showTopPanel!=e&&(options.showTopPanel=e,e?t?$topPanelScroller.slideDown(\"fast\",resizeCanvas):($topPanelScroller.show(),resizeCanvas()):t?$topPanelScroller.slideUp(\"fast\",resizeCanvas):($topPanelScroller.hide(),resizeCanvas()))}function setHeaderRowVisibility(e,o){var t=!1!==o;options.showHeaderRow!=e&&(options.showHeaderRow=e,e?t?$headerRowScroller.slideDown(\"fast\",resizeCanvas):($headerRowScroller.show(),resizeCanvas()):t?$headerRowScroller.slideUp(\"fast\",resizeCanvas):($headerRowScroller.hide(),resizeCanvas()))}function setColumnHeaderVisibility(e,o){options.showColumnHeader!=e&&(options.showColumnHeader=e,e?o?$headerScroller.slideDown(\"fast\",resizeCanvas):($headerScroller.show(),resizeCanvas()):o?$headerScroller.slideUp(\"fast\",resizeCanvas):($headerScroller.hide(),resizeCanvas()))}function setFooterRowVisibility(e,o){var t=!1!==o;options.showFooterRow!=e&&(options.showFooterRow=e,e?t?$footerRowScroller.slideDown(\"fast\",resizeCanvas):($footerRowScroller.show(),resizeCanvas()):t?$footerRowScroller.slideUp(\"fast\",resizeCanvas):($footerRowScroller.hide(),resizeCanvas()))}function setPreHeaderPanelVisibility(e,o){var t=!1!==o;options.showPreHeaderPanel!=e&&(options.showPreHeaderPanel=e,e?t?($preHeaderPanelScroller.slideDown(\"fast\",resizeCanvas),$preHeaderPanelScrollerR.slideDown(\"fast\",resizeCanvas)):($preHeaderPanelScroller.show(),$preHeaderPanelScrollerR.show(),resizeCanvas()):t?($preHeaderPanelScroller.slideUp(\"fast\",resizeCanvas),$preHeaderPanelScrollerR.slideUp(\"fast\",resizeCanvas)):($preHeaderPanelScroller.hide(),$preHeaderPanelScrollerR.hide(),resizeCanvas()))}function getContainerNode(){return $container.get(0)}function getRowTop(e){return options.rowHeight*e-offset}function getRowFromPosition(e){return Math.floor((e+offset)/options.rowHeight)}function scrollTo(e){e=Math.max(e,0),e=Math.min(e,th-$viewportScrollContainerY.height()+(viewportHasHScroll||hasFrozenColumns()?scrollbarDimensions.height:0));var o=offset;page=Math.min(n-1,Math.floor(e/ph));var t=e-(offset=Math.round(page*cj));offset!=o&&(cleanupRows(getVisibleRange(t)),updateRowPositions());prevScrollTop!=t&&(vScrollDir=prevScrollTop+o<t+offset?1:-1,lastRenderedScrollTop=scrollTop=prevScrollTop=t,hasFrozenColumns()&&($viewportTopL[0].scrollTop=t),hasFrozenRows&&($viewportBottomL[0].scrollTop=$viewportBottomR[0].scrollTop=t),$viewportScrollContainerY[0].scrollTop=t,trigger(self.onViewportChanged,{}))}function defaultFormatter(e,o,t,n,l,r){return null==t?\"\":(t+\"\").replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\")}function getFormatter(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e),n=t&&t.columns&&(t.columns[o.id]||t.columns[getColumnIndex(o.id)]);return n&&n.formatter||t&&t.formatter||o.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(o)||options.defaultFormatter}function getEditor(e,o){var t=columns[o],n=data.getItemMetadata&&data.getItemMetadata(e),l=n&&n.columns;return l&&l[t.id]&&void 0!==l[t.id].editor?l[t.id].editor:l&&l[o]&&void 0!==l[o].editor?l[o].editor:t.editor||options.editorFactory&&options.editorFactory.getEditor(t)}function getDataItemValueForColumn(e,o){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(e,o):e[o.field]}function appendRowHtml(e,o,t,n,l){var r=getDataItem(t),i=t<l&&!r,a=\"slick-row\"+(hasFrozenRows&&t<=options.frozenRow?\" frozen\":\"\")+(i?\" loading\":\"\")+(t===activeRow&&options.showCellSelection?\" active\":\"\")+(t%2==1?\" odd\":\" even\");r||(a+=\" \"+options.addNewRowCssClass);var s=data.getItemMetadata&&data.getItemMetadata(t);s&&s.cssClasses&&(a+=\" \"+s.cssClasses);var d,c,u=getFrozenRowOffset(t),h=\"<div class='ui-widget-content \"+a+\"' style='top:\"+(getRowTop(t)-u)+\"px'>\";e.push(h),hasFrozenColumns()&&o.push(h);for(var p=0,w=columns.length;p<w;p++){if(c=columns[p],d=1,s&&s.columns){var f=s.columns[c.id]||s.columns[p];\"*\"===(d=f&&f.colspan||1)&&(d=w-p)}if(columnPosRight[Math.min(w-1,p+d-1)]>n.leftPx){if(!c.alwaysRenderColumn&&columnPosLeft[p]>n.rightPx)break;hasFrozenColumns()&&p>options.frozenColumn?appendCellHtml(o,t,p,d,r):appendCellHtml(e,t,p,d,r)}else(c.alwaysRenderColumn||hasFrozenColumns()&&p<=options.frozenColumn)&&appendCellHtml(e,t,p,d,r);d>1&&(p+=d-1)}e.push(\"</div>\"),hasFrozenColumns()&&o.push(\"</div>\")}function appendCellHtml(e,o,t,n,l){var r=columns[t],i=\"slick-cell l\"+t+\" r\"+Math.min(columns.length-1,t+n-1)+(r.cssClass?\" \"+r.cssClass:\"\");for(var a in hasFrozenColumns()&&t<=options.frozenColumn&&(i+=\" frozen\"),o===activeRow&&t===activeCell&&options.showCellSelection&&(i+=\" active\"),cellCssClasses)cellCssClasses[a][o]&&cellCssClasses[a][o][r.id]&&(i+=\" \"+cellCssClasses[a][o][r.id]);var s=null,d=\"\";l&&(s=getDataItemValueForColumn(l,r),null==(d=getFormatter(o,r)(o,t,s,r,l,self))&&(d=\"\"));var c=trigger(self.onBeforeAppendCell,{row:o,cell:t,value:s,dataContext:l})||\"\";c+=d&&d.addClasses?(c?\" \":\"\")+d.addClasses:\"\";var u=d&&d.toolTip?\"title='\"+d.toolTip+\"'\":\"\",h=\"\";if(r.hasOwnProperty(\"cellAttrs\")&&r.cellAttrs instanceof Object)for(var a in r.cellAttrs)r.cellAttrs.hasOwnProperty(a)&&(h+=\" \"+a+'=\"'+r.cellAttrs[a]+'\" ');e.push(\"<div class='\"+i+(c?\" \"+c:\"\")+\"' \"+u+h+\">\"),l&&e.push(\"[object Object]\"!==Object.prototype.toString.call(d)?d:d.text),e.push(\"</div>\"),rowsCache[o].cellRenderQueue.push(t),rowsCache[o].cellColSpans[t]=n}function cleanupRows(e){for(var o in rowsCache){var t=!0;hasFrozenRows&&(options.frozenBottom&&o>=actualFrozenRow||!options.frozenBottom&&o<=actualFrozenRow)&&(t=!1),(o=parseInt(o,10))!==activeRow&&(o<e.top||o>e.bottom)&&t&&removeRowFromCache(o)}options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){for(var e in currentEditor&&makeActiveCellNormal(),rowsCache)removeRowFromCache(e);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}function queuePostProcessedRowForCleanup(e,o,t){for(var n in postProcessgroupId++,o)o.hasOwnProperty(n)&&postProcessedCleanupQueue.push({actionType:\"C\",groupId:postProcessgroupId,node:e.cellNodesByColumnIdx[0|n],columnIdx:0|n,rowIdx:t});postProcessedCleanupQueue.push({actionType:\"R\",groupId:postProcessgroupId,node:e.rowNode}),e.rowNode.detach()}function queuePostProcessedCellForCleanup(e,o,t){postProcessedCleanupQueue.push({actionType:\"C\",groupId:postProcessgroupId,node:e,columnIdx:o,rowIdx:t}),$(e).detach()}function removeRowFromCache(e){var o=rowsCache[e];o&&(options.enableAsyncPostRenderCleanup&&postProcessedRows[e]?queuePostProcessedRowForCleanup(o,postProcessedRows[e],e):o.rowNode.each((function(){this.parentElement.removeChild(this)})),delete rowsCache[e],delete postProcessedRows[e],renderedRows--,counter_rows_removed++)}function invalidateRows(e){var o,t;if(e&&e.length){for(vScrollDir=0,t=e.length,o=0;o<t;o++)currentEditor&&activeRow===e[o]&&makeActiveCellNormal(),rowsCache[e[o]]&&removeRowFromCache(e[o]);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup()}}function invalidateRow(e){(e||0===e)&&invalidateRows([e])}function applyFormatResultToCellNode(e,o,t){null==e&&(e=\"\"),\"[object Object]\"===Object.prototype.toString.call(e)?(o.innerHTML=e.text,e.removeClasses&&!t&&$(o).removeClass(e.removeClasses),e.addClasses&&$(o).addClass(e.addClasses),e.toolTip&&$(o).attr(\"title\",e.toolTip)):o.innerHTML=e}function updateCell(e,o){var t=getCellNode(e,o);if(t){var n=columns[o],l=getDataItem(e);if(currentEditor&&activeRow===e&&activeCell===o)currentEditor.loadValue(l);else applyFormatResultToCellNode(l?getFormatter(e,n)(e,o,getDataItemValueForColumn(l,n),n,l,self):\"\",t),invalidatePostProcessingResults(e)}}function updateRow(e){var o=rowsCache[e];if(o){ensureCellNodesInRowsCache(e);var t=getDataItem(e);for(var n in o.cellNodesByColumnIdx)if(o.cellNodesByColumnIdx.hasOwnProperty(n)){var l=columns[n|=0],r=o.cellNodesByColumnIdx[n][0];e===activeRow&&n===activeCell&¤tEditor?currentEditor.loadValue(t):t?applyFormatResultToCellNode(getFormatter(e,l)(e,n,getDataItemValueForColumn(t,l),l,t,self),r):r.innerHTML=\"\"}invalidatePostProcessingResults(e)}}function getViewportHeight(){if(options.autoHeight&&-1==options.frozenColumn||(topPanelH=options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0,headerRowH=options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0,footerRowH=options.showFooterRow?options.footerRowHeight+getVBoxDelta($footerRowScroller):0),options.autoHeight){var e=$paneHeaderL.outerHeight();e+=options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0,e+=options.showFooterRow?options.footerRowHeight+getVBoxDelta($footerRowScroller):0,e+=getCanvasWidth()>viewportW?scrollbarDimensions.height:0,viewportH=options.rowHeight*getDataLengthIncludingAddNew()+(-1==options.frozenColumn?e:0)}else{var o=options.showColumnHeader?parseFloat($.css($headerScroller[0],\"height\"))+getVBoxDelta($headerScroller):0,t=options.createPreHeaderPanel&&options.showPreHeaderPanel?options.preHeaderPanelHeight+getVBoxDelta($preHeaderPanelScroller):0;viewportH=parseFloat($.css($container[0],\"height\",!0))-parseFloat($.css($container[0],\"paddingTop\",!0))-parseFloat($.css($container[0],\"paddingBottom\",!0))-o-topPanelH-headerRowH-footerRowH-t}return numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportH}function getViewportWidth(){viewportW=parseFloat($container.width())}function resizeCanvas(){if(initialized){paneTopH=0,paneBottomH=0,viewportTopH=0,viewportBottomH=0,getViewportWidth(),getViewportHeight(),hasFrozenRows?options.frozenBottom?(paneTopH=viewportH-frozenRowsHeight-scrollbarDimensions.height,paneBottomH=frozenRowsHeight+scrollbarDimensions.height):(paneTopH=frozenRowsHeight,paneBottomH=viewportH-frozenRowsHeight):paneTopH=viewportH,paneTopH+=topPanelH+headerRowH+footerRowH,hasFrozenColumns()&&options.autoHeight&&(paneTopH+=scrollbarDimensions.height),viewportTopH=paneTopH-topPanelH-headerRowH-footerRowH,options.autoHeight&&(hasFrozenColumns()&&$container.height(paneTopH+parseFloat($.css($headerScrollerL[0],\"height\"))),$paneTopL.css(\"position\",\"relative\")),$paneTopL.css({top:$paneHeaderL.height()||(options.showHeaderRow?options.headerRowHeight:0)+(options.showPreHeaderPanel?options.preHeaderPanelHeight:0),height:paneTopH});var e=$paneTopL.position().top+paneTopH;options.autoHeight||$viewportTopL.height(viewportTopH),hasFrozenColumns()?($paneTopR.css({top:$paneHeaderL.height(),height:paneTopH}),$viewportTopR.height(viewportTopH),hasFrozenRows&&($paneBottomL.css({top:e,height:paneBottomH}),$paneBottomR.css({top:e,height:paneBottomH}),$viewportBottomR.height(paneBottomH))):hasFrozenRows&&($paneBottomL.css({width:\"100%\",height:paneBottomH}),$paneBottomL.css(\"top\",e)),hasFrozenRows?($viewportBottomL.height(paneBottomH),options.frozenBottom?($canvasBottomL.height(frozenRowsHeight),hasFrozenColumns()&&$canvasBottomR.height(frozenRowsHeight)):($canvasTopL.height(frozenRowsHeight),hasFrozenColumns()&&$canvasTopR.height(frozenRowsHeight))):$viewportTopR.height(viewportTopH),scrollbarDimensions&&scrollbarDimensions.width||(scrollbarDimensions=measureScrollbar()),options.autosizeColsMode===Slick.GridAutosizeColsMode.LegacyForceFit&&autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render()}}function updatePagingStatusFromView(e){pagingActive=0!==e.pageSize,pagingIsLastPage=e.pageNum==e.totalPages-1}function updateRowCount(){if(initialized){var e=getDataLength(),o=getDataLengthIncludingAddNew(),t=0,l=hasFrozenRows&&!options.frozenBottom?$canvasBottomL.height():$canvasTopL.height();if(hasFrozenRows)t=getDataLength()-options.frozenRow;else t=o+(options.leaveSpaceForNewRows?numVisibleRows-1:0);var r=$viewportScrollContainerY.height(),i=viewportHasVScroll;viewportHasVScroll=options.alwaysShowVerticalScroll||!options.autoHeight&&t*options.rowHeight>r,makeActiveCellNormal();var a=e-1;for(var s in rowsCache)s>a&&removeRowFromCache(s);options.enableAsyncPostRenderCleanup&&startPostProcessingCleanup(),activeCellNode&&activeRow>a&&resetActiveCell();l=h;options.autoHeight?h=options.rowHeight*t:(th=Math.max(options.rowHeight*t,r-scrollbarDimensions.height))<maxSupportedCssHeight?(h=ph=th,n=1,cj=0):(ph=(h=maxSupportedCssHeight)/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==l&&(hasFrozenRows&&!options.frozenBottom?($canvasBottomL.css(\"height\",h),hasFrozenColumns()&&$canvasBottomR.css(\"height\",h)):($canvasTopL.css(\"height\",h),$canvasTopR.css(\"height\",h)),scrollTop=$viewportScrollContainerY[0].scrollTop);var d=scrollTop+offset<=th-r;0==th||0==scrollTop?page=offset=0:scrollTo(d?scrollTop+offset:th-r),h!=l&&options.autoHeight&&resizeCanvas(),options.autosizeColsMode===Slick.GridAutosizeColsMode.LegacyForceFit&&i!=viewportHasVScroll&&autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(e,o){return null==e&&(e=scrollTop),null==o&&(o=scrollLeft),{top:getRowFromPosition(e),bottom:getRowFromPosition(e+viewportH)+1,leftPx:o,rightPx:o+viewportW}}function getRenderedRange(e,o){var t=getVisibleRange(e,o),n=Math.round(viewportH/options.rowHeight),l=options.minRowBuffer;return-1==vScrollDir?(t.top-=n,t.bottom+=l):1==vScrollDir?(t.top-=l,t.bottom+=n):(t.top-=l,t.bottom+=l),t.top=Math.max(0,t.top),t.bottom=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),t.leftPx-=viewportW,t.rightPx+=viewportW,t.leftPx=Math.max(0,t.leftPx),t.rightPx=Math.min(canvasWidth,t.rightPx),t}function ensureCellNodesInRowsCache(e){var o=rowsCache[e];if(o&&o.cellRenderQueue.length)for(var t=o.rowNode.children().last();o.cellRenderQueue.length;){var n=o.cellRenderQueue.pop();o.cellNodesByColumnIdx[n]=t,0===(t=t.prev()).length&&(t=$(o.rowNode[0]).children().last())}}function cleanUpCells(e,o){if(!hasFrozenRows||!(options.frozenBottom&&o>actualFrozenRow||o<=actualFrozenRow)){var t,n,l=rowsCache[o],r=[];for(var i in l.cellNodesByColumnIdx)if(l.cellNodesByColumnIdx.hasOwnProperty(i)&&!((i|=0)<=options.frozenColumn||Array.isArray(columns)&&columns[i]&&columns[i].alwaysRenderColumn)){var a=l.cellColSpans[i];(columnPosLeft[i]>e.rightPx||columnPosRight[Math.min(columns.length-1,i+a-1)]<e.leftPx)&&(o==activeRow&&i==activeCell||r.push(i))}for(;null!=(t=r.pop());)n=l.cellNodesByColumnIdx[t][0],options.enableAsyncPostRenderCleanup&&postProcessedRows[o]&&postProcessedRows[o][t]?queuePostProcessedCellForCleanup(n,t,o):n.parentElement.removeChild(n),delete l.cellColSpans[t],delete l.cellNodesByColumnIdx[t],postProcessedRows[o]&&delete postProcessedRows[o][t]}}function cleanUpAndRenderCells(e){for(var o,t,n,l=[],r=[],i=e.top,a=e.bottom;i<=a;i++)if(o=rowsCache[i]){ensureCellNodesInRowsCache(i),cleanUpCells(e,i),t=0;var s=data.getItemMetadata&&data.getItemMetadata(i);s=s&&s.columns;for(var d=getDataItem(i),c=0,u=columns.length;c<u&&!(columnPosLeft[c]>e.rightPx);c++)if(null==(n=o.cellColSpans[c])){if(n=1,s){var h=s[columns[c].id]||s[c];\"*\"===(n=h&&h.colspan||1)&&(n=u-c)}columnPosRight[Math.min(u-1,c+n-1)]>e.leftPx&&(appendCellHtml(l,i,c,n,d),t++),c+=n>1?n-1:0}else c+=n>1?n-1:0;t&&(t,r.push(i))}if(l.length){var p,w,f=document.createElement(\"div\");for(f.innerHTML=l.join(\"\");null!=(p=r.pop());){var m;for(o=rowsCache[p];null!=(m=o.cellRenderQueue.pop());)w=f.lastChild,hasFrozenColumns()&&m>options.frozenColumn?o.rowNode[1].appendChild(w):o.rowNode[0].appendChild(w),o.cellNodesByColumnIdx[m]=$(w)}}}function renderRows(e){for(var o=[],t=[],n=[],l=!1,r=getDataLength(),i=e.top,a=e.bottom;i<=a;i++)rowsCache[i]||hasFrozenRows&&options.frozenBottom&&i==getDataLength()||(renderedRows++,n.push(i),rowsCache[i]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(o,t,i,e,r),activeCellNode&&activeRow===i&&(l=!0),counter_rows_rendered++);if(n.length){var s=document.createElement(\"div\"),d=document.createElement(\"div\");s.innerHTML=o.join(\"\"),d.innerHTML=t.join(\"\");for(i=0,a=n.length;i<a;i++)hasFrozenRows&&n[i]>=actualFrozenRow?hasFrozenColumns()?(rowsCache[n[i]].rowNode=$().add($(s.firstChild)).add($(d.firstChild)),$canvasBottomL[0].append(s.firstChild),$canvasBottomR[0].append(d.firstChild)):(rowsCache[n[i]].rowNode=$().add($(s.firstChild)),$canvasBottomL[0].append($(s.firstChild))):hasFrozenColumns()?(rowsCache[n[i]].rowNode=$().add($(s.firstChild)).add($(d.firstChild)),$canvasTopL[0].append(s.firstChild),$canvasTopR[0].append(d.firstChild)):(rowsCache[n[i]].rowNode=$().add($(s.firstChild)),$canvasTopL[0].append(s.firstChild));l&&(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&&(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function startPostProcessingCleanup(){options.enableAsyncPostRenderCleanup&&(clearTimeout(h_postrenderCleanup),h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay))}function invalidatePostProcessingResults(e){for(var o in postProcessedRows[e])postProcessedRows[e].hasOwnProperty(o)&&(postProcessedRows[e][o]=\"C\");postProcessFromRow=Math.min(postProcessFromRow,e),postProcessToRow=Math.max(postProcessToRow,e),startPostProcessing()}function updateRowPositions(){for(var e in rowsCache){var o=e?parseInt(e):0;rowsCache[o].rowNode[0].style.top=getRowTop(o)+\"px\"}}function render(){if(initialized){scrollThrottle.dequeue();var e=getVisibleRange(),o=getRenderedRange();if(cleanupRows(o),lastRenderedScrollLeft!=scrollLeft){if(hasFrozenRows){var t=$.extend(!0,{},o);options.frozenBottom?(t.top=actualFrozenRow,t.bottom=getDataLength()):(t.top=0,t.bottom=options.frozenRow),cleanUpAndRenderCells(t)}cleanUpAndRenderCells(o)}renderRows(o),hasFrozenRows&&(options.frozenBottom?renderRows({top:actualFrozenRow,bottom:getDataLength()-1,leftPx:o.leftPx,rightPx:o.rightPx}):renderRows({top:0,bottom:options.frozenRow-1,leftPx:o.leftPx,rightPx:o.rightPx})),postProcessFromRow=e.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,e.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null,trigger(self.onRendered,{startRow:e.top,endRow:e.bottom,grid:self})}}function handleHeaderScroll(){handleElementScroll($headerScrollContainer[0])}function handleHeaderRowScroll(){var e=$headerRowScrollContainer[0].scrollLeft;e!=$viewportScrollContainerX[0].scrollLeft&&($viewportScrollContainerX[0].scrollLeft=e)}function handleFooterRowScroll(){var e=$footerRowScrollContainer[0].scrollLeft;e!=$viewportScrollContainerX[0].scrollLeft&&($viewportScrollContainerX[0].scrollLeft=e)}function handlePreHeaderPanelScroll(){handleElementScroll($preHeaderPanelScroller[0])}function handleElementScroll(e){var o=e.scrollLeft;o!=$viewportScrollContainerX[0].scrollLeft&&($viewportScrollContainerX[0].scrollLeft=o)}function handleScroll(){return scrollTop=$viewportScrollContainerY[0].scrollTop,scrollLeft=$viewportScrollContainerX[0].scrollLeft,_handleScroll(!1)}function _handleScroll(e){var o=$viewportScrollContainerY[0].scrollHeight-$viewportScrollContainerY[0].clientHeight,t=$viewportScrollContainerY[0].scrollWidth-$viewportScrollContainerY[0].clientWidth;o=Math.max(0,o),t=Math.max(0,t),scrollTop>o&&(scrollTop=o),scrollLeft>t&&(scrollLeft=t);var l=Math.abs(scrollTop-prevScrollTop),r=Math.abs(scrollLeft-prevScrollLeft);if(r&&(prevScrollLeft=scrollLeft,$viewportScrollContainerX[0].scrollLeft=scrollLeft,$headerScrollContainer[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScrollContainer[0].scrollLeft=scrollLeft,options.createFooterRow&&($footerRowScrollContainer[0].scrollLeft=scrollLeft),options.createPreHeaderPanel&&(hasFrozenColumns()?$preHeaderPanelScrollerR[0].scrollLeft=scrollLeft:$preHeaderPanelScroller[0].scrollLeft=scrollLeft),hasFrozenColumns()?hasFrozenRows&&($viewportTopR[0].scrollLeft=scrollLeft):hasFrozenRows&&($viewportTopL[0].scrollLeft=scrollLeft)),l)if(vScrollDir=prevScrollTop<scrollTop?1:-1,prevScrollTop=scrollTop,e&&($viewportScrollContainerY[0].scrollTop=scrollTop),hasFrozenColumns()&&(hasFrozenRows&&!options.frozenBottom?$viewportBottomL[0].scrollTop=scrollTop:$viewportTopL[0].scrollTop=scrollTop),l<viewportH)scrollTo(scrollTop+offset);else{var i=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),i!=(offset=Math.round(page*cj))&&invalidateAllRows()}if(r||l){var a=Math.abs(lastRenderedScrollLeft-scrollLeft),s=Math.abs(lastRenderedScrollTop-scrollTop);(a>20||s>20)&&(options.forceSyncScrolling||s<viewportH&&a<viewportW?render():scrollThrottle.enqueue(),trigger(self.onViewportChanged,{}))}return trigger(self.onScroll,{scrollLeft,scrollTop}),!(!r&&!l)}function ActionThrottle(e,o){var t=!1,n=!1;function l(){n=!1}function r(){t=!0,setTimeout(i,o),e()}function i(){n?(l(),r()):t=!1}return{enqueue:function(){t?n=!0:r()},dequeue:l}}function asyncPostProcessRows(){for(var e=getDataLength();postProcessFromRow<=postProcessToRow;){var o=vScrollDir>=0?postProcessFromRow++:postProcessToRow--,t=rowsCache[o];if(t&&!(o>=e)){for(var n in postProcessedRows[o]||(postProcessedRows[o]={}),ensureCellNodesInRowsCache(o),t.cellNodesByColumnIdx)if(t.cellNodesByColumnIdx.hasOwnProperty(n)){var l=columns[n|=0],r=postProcessedRows[o][n];if(l.asyncPostRender&&\"R\"!==r){var i=t.cellNodesByColumnIdx[n];i&&l.asyncPostRender(i,o,getDataItem(o),l,\"C\"===r),postProcessedRows[o][n]=\"R\"}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function asyncPostProcessCleanupRows(){if(postProcessedCleanupQueue.length>0){for(var e=postProcessedCleanupQueue[0].groupId;postProcessedCleanupQueue.length>0&&postProcessedCleanupQueue[0].groupId==e;){var o=postProcessedCleanupQueue.shift();if(\"R\"==o.actionType&&$(o.node).remove(),\"C\"==o.actionType){var t=columns[o.columnIdx];t.asyncPostRenderCleanup&&o.node&&t.asyncPostRenderCleanup(o.node,o.rowIdx,t)}}h_postrenderCleanup=setTimeout(asyncPostProcessCleanupRows,options.asyncPostRenderCleanupDelay)}}function updateCellCssStylesOnRenderedRows(e,o){var t,n,l,r;for(var i in rowsCache){if(r=o&&o[i],l=e&&e[i],r)for(n in r)l&&r[n]==l[n]||(t=getCellNode(i,getColumnIndex(n)))&&$(t).removeClass(r[n]);if(l)for(n in l)r&&r[n]==l[n]||(t=getCellNode(i,getColumnIndex(n)))&&$(t).addClass(l[n])}}function addCellCssStyles(e,o){if(cellCssClasses[e])throw new Error(\"SlickGrid addCellCssStyles: cell CSS hash with key '\"+e+\"' already exists.\");cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,null),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function removeCellCssStyles(e){cellCssClasses[e]&&(updateCellCssStylesOnRenderedRows(null,cellCssClasses[e]),delete cellCssClasses[e],trigger(self.onCellCssStylesChanged,{key:e,hash:null,grid:self}))}function setCellCssStyles(e,o){var t=cellCssClasses[e];cellCssClasses[e]=o,updateCellCssStylesOnRenderedRows(o,t),trigger(self.onCellCssStylesChanged,{key:e,hash:o,grid:self})}function getCellCssStyles(e){return cellCssClasses[e]}function flashCell(e,o,t){(t=t||100,rowsCache[e])&&function e(o,n){n&&setTimeout((function(){o.queue((function(){o.toggleClass(options.cellFlashingCssClass).dequeue(),e(o,n-1)}))}),t)}($(getCellNode(e,o)),4)}function handleMouseWheel(e,o,t,n){scrollTop=Math.max(0,$viewportScrollContainerY[0].scrollTop-n*options.rowHeight),scrollLeft=$viewportScrollContainerX[0].scrollLeft+10*t,_handleScroll(!0)&&e.preventDefault()}function handleDragInit(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var n=trigger(self.onDragInit,o,e);return!!e.isImmediatePropagationStopped()&&n}function handleDragStart(e,o){var t=getCellFromEvent(e);if(!t||!cellExists(t.row,t.cell))return!1;var n=trigger(self.onDragStart,o,e);return!!e.isImmediatePropagationStopped()&&n}function handleDrag(e,o){return trigger(self.onDrag,o,e)}function handleDragEnd(e,o){trigger(self.onDragEnd,o,e)}function handleKeyDown(e){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},e);var o=e.isImmediatePropagationStopped(),t=Slick.keyCode;if(!o&&!e.shiftKey&&!e.altKey){if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;e.which==t.HOME?o=e.ctrlKey?navigateTop():navigateRowStart():e.which==t.END&&(o=e.ctrlKey?navigateBottom():navigateRowEnd())}if(!o)if(e.shiftKey||e.altKey||e.ctrlKey)e.which!=t.TAB||!e.shiftKey||e.ctrlKey||e.altKey||(o=navigatePrev());else{if(options.editable&¤tEditor&¤tEditor.keyCaptureList&¤tEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which==t.ESCAPE){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else e.which==t.PAGE_DOWN?(navigatePageDown(),o=!0):e.which==t.PAGE_UP?(navigatePageUp(),o=!0):e.which==t.LEFT?o=navigateLeft():e.which==t.RIGHT?o=navigateRight():e.which==t.UP?o=navigateUp():e.which==t.DOWN?o=navigateDown():e.which==t.TAB?o=navigateNext():e.which==t.ENTER&&(options.editable&&(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&&makeActiveCellEditable(void 0,void 0,e)),o=!0)}if(o){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch(e){}}}function handleClick(e){if(!currentEditor&&(e.target!=document.activeElement||$(e.target).hasClass(\"slick-cell\"))){var o=getTextSelection();setFocus(),setTextSelection(o)}var t=getCellFromEvent(e);if(t&&(null===currentEditor||activeRow!=t.row||activeCell!=t.cell)&&(trigger(self.onClick,{row:t.row,cell:t.cell},e),!e.isImmediatePropagationStopped()&&canCellBeActive(t.row,t.cell)&&(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit()))){scrollRowIntoView(t.row,!1);var n=e.target&&e.target.className===Slick.preClickClassName,l=columns[t.cell],r=!!(options.editable&&l&&l.editor&&options.suppressActiveCellChangeOnEdit);setActiveCellInternal(getCellNode(t.row,t.cell),null,n,r,e)}}function handleContextMenu(e){var o=$(e.target).closest(\".slick-cell\",$canvas);0!==o.length&&(activeCellNode===o[0]&&null!==currentEditor||trigger(self.onContextMenu,{},e))}function handleDblClick(e){var o=getCellFromEvent(e);!o||null!==currentEditor&&activeRow==o.row&&activeCell==o.cell||(trigger(self.onDblClick,{row:o.row,cell:o.cell},e),e.isImmediatePropagationStopped()||options.editable&&gotoCell(o.row,o.cell,!0,e))}function handleHeaderMouseEnter(e){trigger(self.onHeaderMouseEnter,{column:$(this).data(\"column\"),grid:self},e)}function handleHeaderMouseLeave(e){trigger(self.onHeaderMouseLeave,{column:$(this).data(\"column\"),grid:self},e)}function handleHeaderContextMenu(e){var o=$(e.target).closest(\".slick-header-column\",\".slick-header-columns\"),t=o&&o.data(\"column\");trigger(self.onHeaderContextMenu,{column:t},e)}function handleHeaderClick(e){if(!columnResizeDragging){var o=$(e.target).closest(\".slick-header-column\",\".slick-header-columns\"),t=o&&o.data(\"column\");t&&trigger(self.onHeaderClick,{column:t},e)}}function handleFooterContextMenu(e){var o=$(e.target).closest(\".slick-footerrow-column\",\".slick-footerrow-columns\"),t=o&&o.data(\"column\");trigger(self.onFooterContextMenu,{column:t},e)}function handleFooterClick(e){var o=$(e.target).closest(\".slick-footerrow-column\",\".slick-footerrow-columns\"),t=o&&o.data(\"column\");trigger(self.onFooterClick,{column:t},e)}function handleMouseEnter(e){trigger(self.onMouseEnter,{},e)}function handleMouseLeave(e){trigger(self.onMouseLeave,{},e)}function cellExists(e,o){return!(e<0||e>=getDataLength()||o<0||o>=columns.length)}function getCellFromPoint(e,o){for(var t=getRowFromPosition(o),n=0,l=0,r=0;r<columns.length&&l<e;r++)l+=columns[r].width,n++;return n<0&&(n=0),{row:t,cell:n-1}}function getCellFromNode(e){var o=/l\\d+/.exec(e.className);if(!o)throw new Error(\"SlickGrid getCellFromNode: cannot get cell - \"+e.className);return parseInt(o[0].substr(1,o[0].length-1),10)}function getRowFromNode(e){for(var o in rowsCache)for(var t in rowsCache[o].rowNode)if(rowsCache[o].rowNode[t]===e)return o?parseInt(o):0;return null}function getFrozenRowOffset(e){return hasFrozenRows?options.frozenBottom?e>=actualFrozenRow?h<viewportTopH?actualFrozenRow*options.rowHeight:h:0:e>=actualFrozenRow?frozenRowsHeight:0:0}function getCellFromEvent(e){var o,t,n=$(e.target).closest(\".slick-cell\",$canvas);if(!n.length)return null;if(o=getRowFromNode(n[0].parentNode),hasFrozenRows){var l=n.parents(\".grid-canvas\").offset(),r=0;n.parents(\".grid-canvas-bottom\").length&&(r=options.frozenBottom?$canvasTopL.height():frozenRowsHeight),o=getCellFromPoint(e.clientX-l.left,e.clientY-l.top+r+$(document).scrollTop()).row}return t=getCellFromNode(n[0]),null==o||null==t?null:{row:o,cell:t}}function getCellNodeBox(e,o){if(!cellExists(e,o))return null;for(var t=getFrozenRowOffset(e),n=getRowTop(e)-t,l=n+options.rowHeight-1,r=0,i=0;i<o;i++)r+=columns[i].width,options.frozenColumn==i&&(r=0);return{top:n,left:r,bottom:l,right:r+columns[o].width}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(e,o,t){if(scrollRowIntoView(e,t),!(o<=options.frozenColumn)){var n=getColspan(e,o);internalScrollColumnIntoView(columnPosLeft[o],columnPosRight[o+(n>1?n-1:0)])}}function internalScrollColumnIntoView(e,o){var t=scrollLeft+$viewportScrollContainerX.width();e<scrollLeft?($viewportScrollContainerX.scrollLeft(e),handleScroll(),render()):o>t&&($viewportScrollContainerX.scrollLeft(Math.min(e,o-$viewportScrollContainerX[0].clientWidth)),handleScroll(),render())}function scrollColumnIntoView(e){internalScrollColumnIntoView(columnPosLeft[e],columnPosRight[e])}function setActiveCellInternal(e,o,t,n,l){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass(\"active\"),rowsCache[activeRow]&&rowsCache[activeRow].rowNode.removeClass(\"active\"));if(null!=(activeCellNode=e)){var r=$(activeCellNode),i=r.offset(),a=Math.floor(r.parents(\".grid-canvas\").offset().top),s=r.parents(\".grid-canvas-bottom\").length;hasFrozenRows&&s&&(a-=options.frozenBottom?$canvasTopL.height():frozenRowsHeight);var d=getCellFromPoint(i.left,Math.ceil(i.top)-a);activeRow=d.row,activeCell=activePosX=activeCell=activePosX=getCellFromNode(activeCellNode),null==o&&(o=activeRow==getDataLength()||options.autoEdit),options.showCellSelection&&(r.addClass(\"active\"),rowsCache[activeRow]&&rowsCache[activeRow].rowNode.addClass(\"active\")),options.editable&&o&&isCellPotentiallyEditable(activeRow,activeCell)&&(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout((function(){makeActiveCellEditable(void 0,t,l)}),options.asyncEditorLoadDelay):makeActiveCellEditable(void 0,t,l))}else activeRow=activeCell=null;n||trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}}function isCellPotentiallyEditable(e,o){var t=getDataLength();return!(e<t&&!getDataItem(e))&&(!(columns[o].cannotTriggerInsert&&e>=t)&&!!getEditor(e,o))}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var e=getDataItem(activeRow);if($(activeCellNode).removeClass(\"editable invalid\"),e){var o=columns[activeCell];applyFormatResultToCellNode(getFormatter(activeRow,o)(activeRow,activeCell,getDataItemValueForColumn(e,o),o,e,self),activeCellNode),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&&clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(e,o,t){if(activeCellNode){if(!options.editable)throw new Error(\"SlickGrid makeActiveCellEditable : should never get called when options.editable is false\");if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var n=columns[activeCell],l=getDataItem(activeRow);if(!1!==trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:l,column:n,target:\"grid\"})){getEditorLock().activate(editController),$(activeCellNode).addClass(\"editable\");var r=e||getEditor(activeRow,activeCell);e||r.suppressClearOnEdit||(activeCellNode.innerHTML=\"\");var i=data.getItemMetadata&&data.getItemMetadata(activeRow),a=(i=i&&i.columns)&&(i[n.id]||i[activeCell]);currentEditor=new r({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:n,columnMetaData:a,item:l||{},event:t,commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),l&&(currentEditor.loadValue(l),o&¤tEditor.preClick&¤tEditor.preClick()),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&&handleActiveCellPositionChange()}else setFocus()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&&(setFocus(),options.autoEdit&&navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&&setFocus()}function absBox(e){var o={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:$(e).outerWidth(),height:$(e).outerHeight(),visible:!0};o.bottom=o.top+o.height,o.right=o.left+o.width;for(var t=e.offsetParent;(e=e.parentNode)!=document.body&&null!=e;)o.visible&&e.scrollHeight!=e.offsetHeight&&\"visible\"!=$(e).css(\"overflowY\")&&(o.visible=o.bottom>e.scrollTop&&o.top<e.scrollTop+e.clientHeight),o.visible&&e.scrollWidth!=e.offsetWidth&&\"visible\"!=$(e).css(\"overflowX\")&&(o.visible=o.right>e.scrollLeft&&o.left<e.scrollLeft+e.clientWidth),o.left-=e.scrollLeft,o.top-=e.scrollTop,e===t&&(o.left+=e.offsetLeft,o.top+=e.offsetTop,t=e.offsetParent),o.bottom=o.top+o.height,o.right=o.left+o.width;return o}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&&(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var e=getActiveCellPosition();currentEditor.show&¤tEditor.hide&&(e.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&¤tEditor.position(e)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function getTextSelection(){var e=null;if(window.getSelection){var o=window.getSelection();o.rangeCount>0&&(e=o.getRangeAt(0))}return e}function setTextSelection(e){if(window.getSelection&&e){var o=window.getSelection();o.removeAllRanges(),o.addRange(e)}}function scrollRowIntoView(e,o){if(!hasFrozenRows||!options.frozenBottom&&e>actualFrozenRow-1||options.frozenBottom&&e<actualFrozenRow-1){var t=$viewportScrollContainerY.height(),n=hasFrozenRows&&!options.frozenBottom?e-options.frozenRow:e,l=n*options.rowHeight,r=(n+1)*options.rowHeight-t+(viewportHasHScroll?scrollbarDimensions.height:0);(n+1)*options.rowHeight>scrollTop+t+offset?(scrollTo(o?l:r),render()):n*options.rowHeight<scrollTop+offset&&(scrollTo(o?r:l),render())}}function scrollRowToTop(e){scrollTo(e*options.rowHeight),render()}function scrollPage(e){var o=e*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop+options.rowHeight-1)+o)*options.rowHeight),render(),options.enableCellNavigation&&null!=activeRow){var t=activeRow+o,n=getDataLengthIncludingAddNew();t>=n&&(t=n-1),t<0&&(t=0);for(var l=0,r=null,i=activePosX;l<=activePosX;)canCellBeActive(t,l)&&(r=l),l+=getColspan(t,l);null!==r?(setActiveCellInternal(getCellNode(t,r)),activePosX=i):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function navigateTop(){navigateToRow(0)}function navigateBottom(){navigateToRow(getDataLength()-1)}function navigateToRow(e){var o=getDataLength();if(!o)return!0;if(e<0?e=0:e>=o&&(e=o-1),scrollCellIntoView(e,0,!0),options.enableCellNavigation&&null!=activeRow){for(var t=0,n=null,l=activePosX;t<=activePosX;)canCellBeActive(e,t)&&(n=t),t+=getColspan(e,t);null!==n?(setActiveCellInternal(getCellNode(e,n)),activePosX=l):resetActiveCell()}return!0}function getColspan(e,o){var t=data.getItemMetadata&&data.getItemMetadata(e);if(!t||!t.columns)return 1;var n=t.columns[columns[o].id]||t.columns[o],l=n&&n.colspan;return l=\"*\"===l?columns.length-o:l||1}function findFirstFocusableCell(e){for(var o=0;o<columns.length;){if(canCellBeActive(e,o))return o;o+=getColspan(e,o)}return null}function findLastFocusableCell(e){for(var o=0,t=null;o<columns.length;)canCellBeActive(e,o)&&(t=o),o+=getColspan(e,o);return t}function gotoRight(e,o,t){if(o>=columns.length)return null;do{o+=getColspan(e,o)}while(o<columns.length&&!canCellBeActive(e,o));return o<columns.length?{row:e,cell:o,posX:o}:null}function gotoLeft(e,o,t){if(o<=0)return null;var n=findFirstFocusableCell(e);if(null===n||n>=o)return null;for(var l,r={row:e,cell:n,posX:n};;){if(!(l=gotoRight(r.row,r.cell,r.posX)))return null;if(l.cell>=o)return r;r=l}}function gotoDown(e,o,t){for(var n,l=getDataLengthIncludingAddNew();;){if(++e>=l)return null;for(n=o=0;o<=t;)n=o,o+=getColspan(e,o);if(canCellBeActive(e,n))return{row:e,cell:n,posX:t}}}function gotoUp(e,o,t){for(var n;;){if(--e<0)return null;for(n=o=0;o<=t;)n=o,o+=getColspan(e,o);if(canCellBeActive(e,n))return{row:e,cell:n,posX:t}}}function gotoNext(e,o,t){if(null==e&&null==o&&canCellBeActive(e=o=t=0,o))return{row:e,cell:o,posX:o};var n=gotoRight(e,o,t);if(n)return n;var l=null,r=getDataLengthIncludingAddNew();for(e===r-1&&e--;++e<r;)if(null!==(l=findFirstFocusableCell(e)))return{row:e,cell:l,posX:l};return null}function gotoPrev(e,o,t){if(null==e&&null==o&&canCellBeActive(e=getDataLengthIncludingAddNew()-1,o=t=columns.length-1))return{row:e,cell:o,posX:o};for(var n,l;!n&&!(n=gotoLeft(e,o,t));){if(--e<0)return null;o=0,null!==(l=findLastFocusableCell(e))&&(n={row:e,cell:l,posX:l})}return n}function gotoRowStart(e,o,t){var n=findFirstFocusableCell(e);return null===n?null:{row:e,cell:n,posX:n}}function gotoRowEnd(e,o,t){var n=findLastFocusableCell(e);return null===n?null:{row:e,cell:n,posX:n}}function navigateRight(){return navigate(\"right\")}function navigateLeft(){return navigate(\"left\")}function navigateDown(){return navigate(\"down\")}function navigateUp(){return navigate(\"up\")}function navigateNext(){return navigate(\"next\")}function navigatePrev(){return navigate(\"prev\")}function navigateRowStart(){return navigate(\"home\")}function navigateRowEnd(){return navigate(\"end\")}function navigate(e){if(!options.enableCellNavigation)return!1;if(!activeCellNode&&\"prev\"!=e&&\"next\"!=e)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();tabbingDirection={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1}[e];var o=(0,{up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext,home:gotoRowStart,end:gotoRowEnd}[e])(activeRow,activeCell,activePosX);if(o){if(hasFrozenRows&&options.frozenBottom&o.row==getDataLength())return;var t=o.row==getDataLength();return(!options.frozenBottom&&o.row>=actualFrozenRow||options.frozenBottom&&o.row<actualFrozenRow)&&scrollCellIntoView(o.row,o.cell,!t&&options.emulatePagingWhenScrolling),setActiveCellInternal(getCellNode(o.row,o.cell)),activePosX=o.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(e,o){if(rowsCache[e]){ensureCellNodesInRowsCache(e);try{return rowsCache[e].cellNodesByColumnIdx.length>o?rowsCache[e].cellNodesByColumnIdx[o][0]:null}catch(t){return rowsCache[e].cellNodesByColumnIdx[o]}}return null}function setActiveCell(e,o,t,n,l){initialized&&(e>getDataLength()||e<0||o>=columns.length||o<0||options.enableCellNavigation&&(scrollCellIntoView(e,o,!1),setActiveCellInternal(getCellNode(e,o),t,n,l)))}function setActiveRow(e,o,t){initialized&&(e>getDataLength()||e<0||o>=columns.length||o<0||(activeRow=e,t||scrollCellIntoView(e,o||0,!1)))}function canCellBeActive(e,o){if(!options.enableCellNavigation||e>=getDataLengthIncludingAddNew()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.focusable)return!!t.focusable;var n=t&&t.columns;return n&&n[columns[o].id]&&void 0!==n[columns[o].id].focusable?!!n[columns[o].id].focusable:n&&n[o]&&void 0!==n[o].focusable?!!n[o].focusable:!!columns[o].focusable}function canCellBeSelected(e,o){if(e>=getDataLength()||e<0||o>=columns.length||o<0)return!1;var t=data.getItemMetadata&&data.getItemMetadata(e);if(t&&void 0!==t.selectable)return!!t.selectable;var n=t&&t.columns&&(t.columns[columns[o].id]||t.columns[o]);return n&&void 0!==n.selectable?!!n.selectable:!!columns[o].selectable}function gotoCell(e,o,t,n){if(initialized&&canCellBeActive(e,o)&&getEditorLock().commitCurrentEdit()){scrollCellIntoView(e,o,!1);var l=getCellNode(e,o),r=columns[o],i=!!(options.editable&&r&&r.editor&&options.suppressActiveCellChangeOnEdit);setActiveCellInternal(l,t||e===getDataLength()||options.autoEdit,null,i,n),currentEditor||setFocus()}}function commitCurrentEdit(){var e=getDataItem(activeRow),o=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var t=currentEditor.validate();if(t.valid){if(activeRow<getDataLength()){var n={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(e,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{command:\"execute\",row:this.row,cell:this.cell,item:e,column:o})},undo:function(){this.editor.applyValue(e,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{command:\"undo\",row:this.row,cell:this.cell,item:e,column:o})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(e,o,n)):(n.execute(),makeActiveCellNormal())}else{var l={};currentEditor.applyValue(l,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:l,column:o})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass(\"invalid\"),$(activeCellNode).width(),$(activeCellNode).addClass(\"invalid\"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:t,row:activeRow,cell:activeCell,column:o}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(e){for(var o=[],t=columns.length-1,n=0;n<e.length;n++)o.push(new Slick.Range(e[n],0,e[n],t));return o}function getSelectedRows(){if(!selectionModel)throw new Error(\"SlickGrid Selection model is not set\");return selectedRows.slice(0)}function setSelectedRows(e){if(!selectionModel)throw new Error(\"SlickGrid Selection model is not set\");self&&self.getEditorLock&&!self.getEditorLock().isActive()&&selectionModel.setSelectedRanges(rowsToRanges(e))}this.debug=function(){var e=\"\";e+=\"\\ncounter_rows_rendered: \"+counter_rows_rendered,e+=\"\\ncounter_rows_removed: \"+counter_rows_removed,e+=\"\\nrenderedRows: \"+renderedRows,e+=\"\\nnumVisibleRows: \"+numVisibleRows,e+=\"\\nmaxSupportedCssHeight: \"+maxSupportedCssHeight,e+=\"\\nn(umber of pages): \"+n,e+=\"\\n(current) page: \"+page,e+=\"\\npage height (ph): \"+ph,e+=\"\\nvScrollDir: \"+vScrollDir,alert(e)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:\"2.4.41\",onScroll:new Slick.Event,onBeforeSort:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onFooterRowCellRendered:new Slick.Event,onFooterContextMenu:new Slick.Event,onFooterClick:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onBeforeFooterRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onBeforeAppendCell:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsDrag:new Slick.Event,onColumnsResized:new Slick.Event,onColumnsResizeDblClick:new Slick.Event,onBeforeColumnsResize:new Slick.Event,onCellChange:new Slick.Event,onCompositeEditorChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,onAutosizeColumns:new Slick.Event,onBeforeSetColumns:new Slick.Event,onRendered:new Slick.Event,onSetOptions:new Slick.Event,registerPlugin,unregisterPlugin,getPluginByName,getColumns,setColumns,getColumnIndex,updateColumnHeader,setSortColumn,setSortColumns,getSortColumns,autosizeColumns,autosizeColumn,getOptions,setOptions,getData,getDataLength,getDataItem,setData,getSelectionModel,setSelectionModel,getSelectedRows,setSelectedRows,getContainerNode,updatePagingStatusFromView,applyFormatResultToCellNode,render,reRenderColumns,invalidate,invalidateRow,invalidateRows,invalidateAllRows,updateCell,updateRow,getViewport:getVisibleRange,getRenderedRange,resizeCanvas,updateRowCount,scrollRowIntoView,scrollRowToTop,scrollCellIntoView,scrollColumnIntoView,getCanvasNode,getUID,getHeaderColumnWidthDiff,getScrollbarDimensions,getHeadersWidth,getCanvasWidth,getCanvases,getActiveCanvasNode,setActiveCanvasNode,getViewportNode,getViewports,getActiveViewportNode,setActiveViewportNode,focus:setFocus,scrollTo,cacheCssForHiddenInit,restoreCssFromHiddenInit,getCellFromPoint,getCellFromEvent,getActiveCell,setActiveCell,setActiveRow,getActiveCellNode,getActiveCellPosition,resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor,getCellNode,getCellNodeBox,canCellBeSelected,canCellBeActive,navigatePrev,navigateNext,navigateUp,navigateDown,navigateLeft,navigateRight,navigatePageUp,navigatePageDown,navigateTop,navigateBottom,navigateRowStart,navigateRowEnd,gotoCell,getTopPanel,setTopPanelVisibility,getPreHeaderPanel,getPreHeaderPanelLeft:getPreHeaderPanel,getPreHeaderPanelRight,setPreHeaderPanelVisibility,getHeader,getHeaderColumn,setHeaderRowVisibility,getHeaderRow,getHeaderRowColumn,setFooterRowVisibility,getFooterRow,getFooterRowColumn,getGridPosition,flashCell,addCellCssStyles,setCellCssStyles,removeCellCssStyles,getCellCssStyles,getFrozenRowOffset,setColumnHeaderVisibility,init:finishInitialization,destroy,getEditorLock,getEditController}),init()}module.exports={Grid:SlickGrid}},\n 633: function _(t,e,a,n,r){\n /*!\n * jquery.event.drag - v 2.3.0\n * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com\n * Open Source MIT License - http://threedubmedia.com/code/license\n */\n var o=t(626);o.fn.drag=function(t,e,a){var n=\"string\"==typeof t?t:\"\",r=o.isFunction(t)?t:o.isFunction(e)?e:null;return 0!==n.indexOf(\"drag\")&&(n=\"drag\"+n),a=(t==r?e:a)||{},r?this.on(n,a,r):this.trigger(n)};var i=o.event,d=i.special,s=d.drag={defaults:{which:1,distance:0,not:\":input\",handle:null,relative:!1,drop:!0,click:!1},datakey:\"dragdata\",noBubble:!0,add:function(t){var e=o.data(this,s.datakey),a=t.data||{};e.related+=1,o.each(s.defaults,(function(t,n){void 0!==a[t]&&(e[t]=a[t])}))},remove:function(){o.data(this,s.datakey).related-=1},setup:function(){if(!o.data(this,s.datakey)){var t=o.extend({related:0},s.defaults);o.data(this,s.datakey,t),i.add(this,\"touchstart mousedown\",s.init,t),this.attachEvent&&this.attachEvent(\"ondragstart\",s.dontstart)}},teardown:function(){(o.data(this,s.datakey)||{}).related||(o.removeData(this,s.datakey),i.remove(this,\"touchstart mousedown\",s.init),s.textselect(!0),this.detachEvent&&this.detachEvent(\"ondragstart\",s.dontstart))},init:function(t){if(!s.touched){var e,a=t.data;if(!(0!=t.which&&a.which>0&&t.which!=a.which)){var n=o(t.target).attr(\"class\")||\"\";if(!o(t.target).is(a.not)&&n&&-1!==n.toString().indexOf(\"slick\")&&(!a.handle||o(t.target).closest(a.handle,t.currentTarget).length)&&(s.touched=\"touchstart\"==t.type?this:null,a.propagates=1,a.mousedown=this,a.interactions=[s.interaction(this,a)],a.target=t.target,a.pageX=t.pageX,a.pageY=t.pageY,a.dragging=null,e=s.hijack(t,\"draginit\",a),a.propagates))return(e=s.flatten(e))&&e.length&&(a.interactions=[],o.each(e,(function(){a.interactions.push(s.interaction(this,a))}))),a.propagates=a.interactions.length,!1!==a.drop&&d.drop&&d.drop.handler(t,a),s.textselect(!1),s.touched?i.add(s.touched,\"touchmove touchend\",s.handler,a):i.add(document,\"mousemove mouseup\",s.handler,a),!(!s.touched||a.live)&&void 0}}},interaction:function(t,e){var a=t&&t.ownerDocument&&o(t)[e.relative?\"position\":\"offset\"]()||{top:0,left:0};return{drag:t,callback:new s.callback,droppable:[],offset:a}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&\"touchmove\":t.preventDefault();case!e.dragging&&\"mousemove\":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,s.hijack(t,\"dragstart\",e),e.propagates&&(e.dragging=!0);case\"touchmove\":t.preventDefault();case\"mousemove\":if(e.dragging){if(s.hijack(t,\"drag\",e),e.propagates){!1!==e.drop&&d.drop&&d.drop.handler(t,e);break}t.type=\"mouseup\"}default:s.touched?i.remove(s.touched,\"touchmove touchend\",s.handler):i.remove(document,\"mousemove mouseup\",s.handler),e.dragging&&(!1!==e.drop&&d.drop&&d.drop.handler(t,e),s.hijack(t,\"dragend\",e)),s.textselect(!0),!1===e.click&&e.dragging&&o.data(e.mousedown,\"suppress.click\",(new Date).getTime()+5),e.dragging=s.touched=!1}},hijack:function(t,e,a,n,r){if(a){var d,c,l,p={event:t.originalEvent,type:t.type},u=e.indexOf(\"drop\")?\"drag\":\"drop\",g=n||0,h=isNaN(n)?a.interactions.length:n;t.type=e;var f=function(){};t.originalEvent=new o.Event(p.event,{preventDefault:f,stopPropagation:f,stopImmediatePropagation:f}),a.results=[];do{if(c=a.interactions[g]){if(\"dragend\"!==e&&c.cancelled)continue;l=s.properties(t,a,c),c.results=[],o(r||c[u]||a.droppable).each((function(n,r){if(l.target=r,t.isPropagationStopped=function(){return!1},!1===(d=r?i.dispatch.call(r,t,l):null)?(\"drag\"==u&&(c.cancelled=!0,a.propagates-=1),\"drop\"==e&&(c[u][n]=null)):\"dropinit\"==e&&c.droppable.push(s.element(d)||r),\"dragstart\"==e&&(c.proxy=o(s.element(d)||c.drag)[0]),c.results.push(d),delete t.result,\"dropinit\"!==e)return d})),a.results[g]=s.flatten(c.results),\"dropinit\"==e&&(c.droppable=s.flatten(c.droppable)),\"dragstart\"!=e||c.cancelled||l.update()}}while(++g<h);return t.type=p.type,t.originalEvent=p.event,s.flatten(a.results)}},properties:function(t,e,a){var n=a.callback;return n.drag=a.drag,n.proxy=a.proxy||a.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=a.offset.left,n.originalY=a.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=s.flatten((a.drop||[]).slice()),n.available=s.flatten((a.droppable||[]).slice()),n},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(t){return o.map(t,(function(t){return t&&t.jquery?o.makeArray(t):t&&t.length?s.flatten(t):t}))},textselect:function(t){o(document)[t?\"off\":\"on\"](\"selectstart\",s.dontstart).css(\"MozUserSelect\",t?\"\":\"none\"),document.unselectable=t?\"off\":\"on\"},dontstart:function(){return!1},callback:function(){}};s.callback.prototype={update:function(){d.drop&&this.available.length&&o.each(this.available,(function(t){d.drop.locate(this,t)}))}};var c=i.dispatch;i.dispatch=function(t){if(!(o.data(this,\"suppress.\"+t.type)-(new Date).getTime()>0))return c.apply(this,arguments);o.removeData(this,\"suppress.\"+t.type)},d.draginit=d.dragstart=d.dragend=s},\n 634: function _(t,e,a,n,i){\n /*!\n * jquery.event.drop - v 2.3.0\n * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com\n * Open Source MIT License - http://threedubmedia.com/code/license\n */\n var o=t(626);o.fn.drop=function(t,e,a){var n=\"string\"==typeof t?t:\"\",i=o.isFunction(t)?t:o.isFunction(e)?e:null;return 0!==n.indexOf(\"drop\")&&(n=\"drop\"+n),a=(t==i?e:a)||{},i?this.on(n,a,i):this.trigger(n)},o.drop=function(t){t=t||{},d.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?d.multi:t.multi,d.delay=t.delay||d.delay,d.tolerance=o.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:d.tolerance,d.mode=t.mode||d.mode||\"intersect\"};var r=o.event.special,d=o.event.special.drop={multi:1,delay:20,mode:\"overlap\",targets:[],datakey:\"dropdata\",noBubble:!0,add:function(t){o.data(this,d.datakey).related+=1},remove:function(){o.data(this,d.datakey).related-=1},setup:function(){if(!o.data(this,d.datakey)){o.data(this,d.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),d.targets.push(this)}},teardown:function(){if(!(o.data(this,d.datakey)||{}).related){o.removeData(this,d.datakey);var t=this;d.targets=o.grep(d.targets,(function(e){return e!==t}))}},handler:function(t,e){var a;if(e)switch(t.type){case\"mousedown\":case\"touchstart\":a=o(d.targets),\"string\"==typeof e.drop&&(a=a.filter(e.drop)),a.each((function(){var t=o.data(this,d.datakey);t.active=[],t.anyactive=0,t.winner=0})),e.droppable=a,r.drag.hijack(t,\"dropinit\",e);break;case\"mousemove\":case\"touchmove\":d.event=t,d.timer||d.tolerate(e);break;case\"mouseup\":case\"touchend\":d.timer=clearTimeout(d.timer),e.propagates&&(r.drag.hijack(t,\"drop\",e),r.drag.hijack(t,\"dropend\",e))}},locate:function(t,e){var a=o.data(t,d.datakey),n=o(t),i=n.length&&!n.is(document)?n.offset():{},r=n.outerHeight(),l=n.outerWidth(),c={elem:t,width:l,height:r,top:i.top,left:i.left,right:i.left+l,bottom:i.top+r};return a&&(a.location=c,a.index=e,a.elem=t),c},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,a){return this.contains(a,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,a){return Math.max(0,Math.min(a.bottom,e.bottom)-Math.max(a.top,e.top))*Math.max(0,Math.min(a.right,e.right)-Math.max(a.left,e.left))},fit:function(t,e,a){return this.contains(a,e)?1:0},middle:function(t,e,a){return this.contains(a,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,a,n,i,l,c,s,u,p=0,h=t.interactions.length,m=[d.event.pageX,d.event.pageY],f=d.tolerance||d.modes[d.mode];do{if(u=t.interactions[p]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,f&&(n=d.locate(u.proxy)),e=0;do{if(s=u.droppable[e]){if(!(a=(i=o.data(s,d.datakey)).location))continue;i.winner=f?f.call(d,d.event,n,a):d.contains(a,m)?1:0,l.push(i)}}while(++e<c);l.sort(d.sort),e=0;do{(i=l[e])&&(i.winner&&u.drop.length<d.multi?(i.active[p]||i.anyactive||(!1!==r.drag.hijack(d.event,\"dropstart\",t,p,i.elem)[0]?(i.active[p]=1,i.anyactive+=1):i.winner=0),i.winner&&u.drop.push(i.elem)):i.active[p]&&1==i.anyactive&&(r.drag.hijack(d.event,\"dropend\",t,p,i.elem),i.active[p]=0,i.anyactive-=1))}while(++e<c)}}while(++p<h);d.last&&m[0]==d.last.pageX&&m[1]==d.last.pageY?delete d.timer:d.timer=setTimeout((function(){d.tolerate(t)}),d.delay),d.last=d.event}};r.dropinit=r.dropstart=r.dropend=d},\n 635: function _(e,t,n,r,i){var o=e(626),l=e(628);var a={Avg:function(e){this.field_=e,this.init=function(){this.count_=0,this.nonNullCount_=0,this.sum_=0},this.accumulate=function(e){var t=e[this.field_];this.count_++,null==t||\"\"===t||isNaN(t)||(this.nonNullCount_++,this.sum_+=parseFloat(t))},this.storeResult=function(e){e.avg||(e.avg={}),0!==this.nonNullCount_&&(e.avg[this.field_]=this.sum_/this.nonNullCount_)}},Min:function(e){this.field_=e,this.init=function(){this.min_=null},this.accumulate=function(e){var t=e[this.field_];null==t||\"\"===t||isNaN(t)||(null==this.min_||t<this.min_)&&(this.min_=t)},this.storeResult=function(e){e.min||(e.min={}),e.min[this.field_]=this.min_}},Max:function(e){this.field_=e,this.init=function(){this.max_=null},this.accumulate=function(e){var t=e[this.field_];null==t||\"\"===t||isNaN(t)||(null==this.max_||t>this.max_)&&(this.max_=t)},this.storeResult=function(e){e.max||(e.max={}),e.max[this.field_]=this.max_}},Sum:function(e){this.field_=e,this.init=function(){this.sum_=null},this.accumulate=function(e){var t=e[this.field_];null==t||\"\"===t||isNaN(t)||(this.sum_+=parseFloat(t))},this.storeResult=function(e){e.sum||(e.sum={}),e.sum[this.field_]=this.sum_}},Count:function(e){this.field_=e,this.init=function(){},this.storeResult=function(e){e.count||(e.count={}),e.count[this.field_]=e.group.rows.length}}};t.exports={DataView:function(e){var t,n,r,i,a,u=this,s=\"id\",g=[],c=[],f=new l.Map,d=null,h=null,p=null,m=!1,v=!1,w=new l.Map,_=!0,y={},C={},$=[],I=[],R=null,S={getter:null,formatter:null,comparer:function(e,t){return e.value===t.value?0:e.value>t.value?1:-1},predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1},x=[],E=[],M=[],G=\":|:\",b=null,A=0,D=0,F=0,V=new l.Event,N=new l.Event,T=new l.Event,O=new l.Event,k=new l.Event,P=new l.Event,B=new l.Event,K=new l.Event;function j(e){if(!v)for(var t,n=e=e||0,r=g.length;n<r;n++){if(void 0===(t=g[n][s]))throw new Error(\"[SlickGrid DataView] Each data element must implement a unique 'id' property\");f.set(t,n)}}function z(){if(!v)for(var e,t=0,n=g.length;t<n;t++)if(void 0===(e=g[t][s])||f.get(e)!==t)throw new Error(\"[SlickGrid DataView] Each data element must implement a unique 'id' property\")}function q(){var e=A?Math.max(1,Math.ceil(F/A)):1;return{pageSize:A,pageNum:D,totalRows:F,totalPages:e,dataView:u}}function U(e,r){_=r,n=e,t=null,!1===r&&g.reverse(),g.sort(e),!1===r&&g.reverse(),f=new l.Map,j(),pe()}function L(e,r){_=r,t=e,n=null;var i=Object.prototype.toString;Object.prototype.toString=\"function\"==typeof e?e:function(){return this[e]},!1===r&&g.reverse(),g.sort(),Object.prototype.toString=i,!1===r&&g.reverse(),f=new l.Map,j(),pe()}function H(t){e.groupItemMetadataProvider||(e.groupItemMetadataProvider=new l.Data.GroupItemMetadataProvider),E=[],M=[],x=(t=t||[])instanceof Array?t:[t];for(var n=0;n<x.length;n++){var r=x[n]=o.extend(!0,{},S,x[n]);r.getterIsAFn=\"function\"==typeof r.getter,r.compiledAccumulators=[];for(var i=r.aggregators.length;i--;)r.compiledAccumulators[i]=se(r.aggregators[i]);M[n]={}}pe()}function W(){if(!d){d={};for(var e=0,t=c.length;e<t;e++)d[c[e][s]]=e}}function J(e){return g[f.get(e)]}function Q(e,t){if(!f.has(e))throw new Error(\"[SlickGrid DataView] Invalid id\");if(e!==t[s]){var n=t[s];if(null==n)throw new Error(\"[SlickGrid DataView] Cannot update item to associate with a null id\");if(f.has(n))throw new Error(\"[SlickGrid DataView] Cannot update item to associate with a non-unique id\");f.set(n,f.get(e)),f.delete(e),p&&p[e]&&delete p[e],e=n}g[f.get(e)]=t,p||(p={}),p[e]=!0}function X(e,t){Q(e,t),pe()}function Y(e,t){g.splice(e,0,t),j(e),pe()}function Z(e){if(v)w.set(e,!0);else{var t=f.get(e);if(void 0===t)throw new Error(\"[SlickGrid DataView] Invalid id\");f.delete(e),g.splice(t,1),j(t),pe()}}function ee(e){if(!n)throw new Error(\"[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()\");Y(function(e){var t=0,r=g.length;for(;t<r;){var i=t+r>>>1;-1===n(g[i],e)?t=i+1:r=i}return t}(e),e)}function te(e,t){if(null==e)for(var n=0;n<x.length;n++)M[n]={},x[n].collapsed=t,!0===t?K.notify({level:n,groupingKey:null}):B.notify({level:n,groupingKey:null});else M[e]={},x[e].collapsed=t,!0===t?K.notify({level:e,groupingKey:null}):B.notify({level:e,groupingKey:null});pe()}function ne(e,t,n){M[e][t]=x[e].collapsed^n,pe()}function re(e,t){for(var n,r,i,o=[],a={},u=t?t.level+1:0,s=x[u],g=0,c=s.predefinedValues.length;g<c;g++)(n=a[r=s.predefinedValues[g]])||((n=new l.Group).value=r,n.level=u,n.groupingKey=(t?t.groupingKey+G:\"\")+r,o[o.length]=n,a[r]=n);for(g=0,c=e.length;g<c;g++)i=e[g],(n=a[r=s.getterIsAFn?s.getter(i):i[s.getter]])||((n=new l.Group).value=r,n.level=u,n.groupingKey=(t?t.groupingKey+G:\"\")+r,o[o.length]=n,a[r]=n),n.rows[n.count++]=i;if(u<x.length-1)for(g=0;g<o.length;g++)(n=o[g]).groups=re(n.rows,n);return o.length&&le(o,u),o.sort(x[u].comparer),o}function ie(e){var t,n=e.group,r=x[n.level],i=n.level==x.length,o=r.aggregators.length;if(!i&&r.aggregateChildGroups)for(var l=n.groups.length;l--;)n.groups[l].totals.initialized||ie(n.groups[l].totals);for(;o--;)(t=r.aggregators[o]).init(),!i&&r.aggregateChildGroups?r.compiledAccumulators[o].call(t,n.groups):r.compiledAccumulators[o].call(t,n.rows),t.storeResult(e);e.initialized=!0}function oe(e){var t=x[e.level],n=new l.GroupTotals;n.group=e,e.totals=n,t.lazyTotalsCalculation||ie(n)}function le(e,t){for(var n,r=x[t=t||0],i=r.collapsed,o=M[t],l=e.length;l--;)(n=e[l]).collapsed&&!r.aggregateCollapsed||(n.groups&&le(n.groups,t+1),r.aggregators.length&&(r.aggregateEmpty||n.rows.length||n.groups&&n.groups.length)&&oe(n),n.collapsed=i^o[n.groupingKey],n.title=r.formatter?r.formatter(n):n.value)}function ae(e,t){for(var n,r,i=x[t=t||0],o=[],l=0,a=0,u=e.length;a<u;a++){if(r=e[a],o[l++]=r,!r.collapsed)for(var s=0,g=(n=r.groups?ae(r.groups,t+1):r.rows).length;s<g;s++)o[l++]=n[s];r.totals&&i.displayTotalsRow&&(!r.collapsed||i.aggregateCollapsed)&&(o[l++]=r.totals)}return o}function ue(e){var t=e.toString().indexOf(\"function\")>=0?/^function[^(]*\\(([^)]*)\\)\\s*{([\\s\\S]*)}$/:/^[^(]*\\(([^)]*)\\)\\s*{([\\s\\S]*)}$/,n=e.toString().match(t);return{params:n[1].split(\",\"),body:n[2]}}function se(e){if(e.accumulate){var t=ue(e.accumulate),n=new Function(\"_items\",\"for (var \"+t.params[0]+\", _i=0, _il=_items.length; _i<_il; _i++) {\"+t.params[0]+\" = _items[_i]; \"+t.body+\"}\"),r=\"compiledAccumulatorLoop\";return n.displayName=r,n.name=ge(n,r),n}return function(){}}function ge(e,t){try{Object.defineProperty(e,\"name\",{writable:!0,value:t})}catch(n){e.name=t}}function ce(e,t){for(var n=[],r=0,i=0,o=e.length;i<o;i++)h(e[i],t)&&(n[r++]=e[i]);return n}function fe(e,t,n){for(var r,i=[],o=0,l=0,a=e.length;l<a;l++)r=e[l],n[l]?i[o++]=r:h(r,t)&&(i[o++]=r,n[l]=!0);return i}function de(t){if(h){var n=e.inlineFilters?i:ce,o=e.inlineFilters?a:fe;y.isFilterNarrowing?$=n($,r):y.isFilterExpanding?$=o(t,r,I):y.isFilterUnchanged||($=n(t,r))}else $=A?t:t.concat();var l;return A?($.length<=D*A&&(D=0===$.length?0:Math.floor(($.length-1)/A)),l=$.slice(A*D,A*D+A)):l=$,{totalRows:$.length,rows:l}}function he(e){d=null,y.isFilterNarrowing==C.isFilterNarrowing&&y.isFilterExpanding==C.isFilterExpanding||(I=[]);var t=de(e);F=t.totalRows;var n=t.rows;E=[],x.length&&(E=re(n)).length&&(n=ae(E));var r=function(e,t){var n,r,i,o=[],l=0,a=Math.max(t.length,e.length);y&&y.ignoreDiffsBefore&&(l=Math.max(0,Math.min(t.length,y.ignoreDiffsBefore))),y&&y.ignoreDiffsAfter&&(a=Math.min(t.length,Math.max(0,y.ignoreDiffsAfter)));for(var u=l,g=e.length;u<a;u++)u>=g?o[o.length]=u:(n=t[u],r=e[u],(!n||x.length&&(i=n.__nonDataRow||r.__nonDataRow)&&n.__group!==r.__group||n.__group&&!n.equals(r)||i&&(n.__groupTotals||r.__groupTotals)||n[s]!=r[s]||p&&p[n[s]])&&(o[o.length]=u));return o}(c,n);return c=n,r}function pe(){if(!m){var e=o.extend(!0,{},q()),t=c.length,n=F,r=he(g);A&&F<D*A&&(D=Math.max(0,Math.ceil(F/A)-1),r=he(g)),p=null,C=y,y={},n!==F&&!1!==k.notify(e,null,u)&&P.notify(q(),null,u),t!==c.length&&N.notify({previous:t,current:c.length,itemCount:g.length,dataView:u,callingOnRowsChanged:r.length>0},null,u),r.length>0&&T.notify({rows:r,itemCount:g.length,dataView:u,calledOnRowCountChanged:t!==c.length},null,u),(t!==c.length||r.length>0)&&O.notify({rowsDiff:r,previousRowCount:t,currentRowCount:c.length,itemCount:g.length,rowCountChanged:t!==c.length,rowsChanged:r.length>0,dataView:u},null,u)}}function me(){return b}e=o.extend(!0,{},{groupItemMetadataProvider:null,inlineFilters:!1},e),o.extend(this,{beginUpdate:function(e){m=!0,v=!0===e},endUpdate:function(){var e=v;v=!1,m=!1,e&&(!function(){for(var e,t,n=0,r=0,i=g.length;r<i;r++){if(void 0===(e=(t=g[r])[s]))throw new Error(\"[SlickGrid DataView] Each data element must implement a unique 'id' property\");w.has(e)?f.delete(e):(g[n]=t,f.set(e,n),++n)}g.length=n,w=new l.Map}(),z()),pe()},destroy:function(){g=[],f=null,d=null,h=null,p=null,n=null,I=[],$=[],i=null,a=null,R&&R.onSelectedRowsChanged&&R.onCellCssStylesChanged&&(R.onSelectedRowsChanged.unsubscribe(),R.onCellCssStylesChanged.unsubscribe()),u.onRowsOrCountChanged&&u.onRowsOrCountChanged.unsubscribe()},setPagingOptions:function(e){!1!==k.notify(q(),null,u)&&(null!=e.pageSize&&(A=e.pageSize,D=A?Math.min(D,Math.max(0,Math.ceil(F/A)-1)):0),null!=e.pageNum&&(D=Math.min(e.pageNum,Math.max(0,Math.ceil(F/A)-1))),P.notify(q(),null,u),pe())},getPagingInfo:q,getIdPropertyName:function(){return s},getItems:function(){return g},setItems:function(e,t){void 0!==t&&(s=t),g=$=e,V.notify({idProperty:t,itemCount:g.length},null,u),f=new l.Map,j(),z(),pe()},setFilter:function(t){h=t,e.inlineFilters&&(i=function(){var e=ue(h),t=\"{ continue _coreloop; }$1\",n=\"{ _retval[_idx++] = $item$; continue _coreloop; }$1\",r=e.body.replace(/return false\\s*([;}]|\\}|$)/gi,t).replace(/return!1([;}]|\\}|$)/gi,t).replace(/return true\\s*([;}]|\\}|$)/gi,n).replace(/return!0([;}]|\\}|$)/gi,n).replace(/return ([^;}]+?)\\s*([;}]|$)/gi,\"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2\"),i=[\"var _retval = [], _idx = 0; \",\"var $item$, $args$ = _args; \",\"_coreloop: \",\"for (var _i = 0, _il = _items.length; _i < _il; _i++) { \",\"$item$ = _items[_i]; \",\"$filter$; \",\"} \",\"return _retval; \"].join(\"\");i=(i=(i=i.replace(/\\$filter\\$/gi,r)).replace(/\\$item\\$/gi,e.params[0])).replace(/\\$args\\$/gi,e.params[1]);var o=new Function(\"_items,_args\",i),l=\"compiledFilter\";return o.displayName=l,o.name=ge(o,l),o}(),a=function(){var e=ue(h),t=\"{ continue _coreloop; }$1\",n=\"{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1\",r=e.body.replace(/return false\\s*([;}]|\\}|$)/gi,t).replace(/return!1([;}]|\\}|$)/gi,t).replace(/return true\\s*([;}]|\\}|$)/gi,n).replace(/return!0([;}]|\\}|$)/gi,n).replace(/return ([^;}]+?)\\s*([;}]|$)/gi,\"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2\"),i=[\"var _retval = [], _idx = 0; \",\"var $item$, $args$ = _args; \",\"_coreloop: \",\"for (var _i = 0, _il = _items.length; _i < _il; _i++) { \",\"$item$ = _items[_i]; \",\"if (_cache[_i]) { \",\"_retval[_idx++] = $item$; \",\"continue _coreloop; \",\"} \",\"$filter$; \",\"} \",\"return _retval; \"].join(\"\");i=(i=(i=i.replace(/\\$filter\\$/gi,r)).replace(/\\$item\\$/gi,e.params[0])).replace(/\\$args\\$/gi,e.params[1]);var o=new Function(\"_items,_args,_cache\",i),l=\"compiledFilterWithCaching\";return o.displayName=l,o.name=ge(o,l),o}()),pe()},getFilter:function(){return h},getFilteredItems:function(){return $},getFilteredItemCount:function(){return $.length},sort:U,fastSort:L,reSort:function(){n?U(n,_):t&&L(t,_)},setGrouping:H,getGrouping:function(){return x},groupBy:function(e,t,n){H(null!=e?{getter:e,formatter:t,comparer:n}:[])},setAggregators:function(e,t){if(!x.length)throw new Error(\"[SlickGrid DataView] At least one grouping must be specified before calling setAggregators().\");x[0].aggregators=e,x[0].aggregateCollapsed=t,H(x)},collapseAllGroups:function(e){te(e,!0)},expandAllGroups:function(e){te(e,!1)},collapseGroup:function(e){var t,n,r=Array.prototype.slice.call(arguments),i=r[0];1===r.length&&-1!==i.indexOf(G)?(t=i,n=i.split(G).length-1):(t=r.join(G),n=r.length-1),ne(n,t,!0),K.notify({level:n,groupingKey:t})},expandGroup:function(e){var t,n,r=Array.prototype.slice.call(arguments),i=r[0];1===r.length&&-1!==i.indexOf(G)?(n=i.split(G).length-1,t=i):(n=r.length-1,t=r.join(G)),ne(n,t,!1),B.notify({level:n,groupingKey:t})},getGroups:function(){return E},getAllSelectedIds:me,getAllSelectedItems:function(){var e=[];return me().forEach((function(t){e.push(u.getItemById(t))})),e},getIdxById:function(e){return f.get(e)},getRowByItem:function(e){return W(),d[e[s]]},getRowById:function(e){return W(),d[e]},getItemById:J,getItemByIdx:function(e){return g[e]},mapItemsToRows:function(e){var t=[];W();for(var n=0,r=e.length;n<r;n++){var i=d[e[n][s]];null!=i&&(t[t.length]=i)}return t},mapRowsToIds:function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]<c.length&&(t[t.length]=c[e[n]][s]);return t},mapIdsToRows:function(e){var t=[];W();for(var n=0,r=e.length;n<r;n++){var i=d[e[n]];null!=i&&(t[t.length]=i)}return t},setRefreshHints:function(e){y=e},setFilterArgs:function(e){r=e},refresh:pe,updateItem:X,updateItems:function(e,t){if(e.length!==t.length)throw new Error(\"[SlickGrid DataView] Mismatch on the length of ids and items provided to update\");for(var n=0,r=t.length;n<r;n++)Q(e[n],t[n]);pe()},insertItem:Y,insertItems:function(e,t){Array.prototype.splice.apply(g,[e,0].concat(t)),j(e),pe()},addItem:function(e){g.push(e),j(g.length-1),pe()},addItems:function(e){j((g=g.concat(e)).length-e.length),pe()},deleteItem:Z,deleteItems:function(e){if(0!==e.length)if(v)for(var t=0,n=e.length;t<n;t++){var r=e[t];if(void 0===(o=f.get(r)))throw new Error(\"[SlickGrid DataView] Invalid id\");w.set(r,!0)}else{var i=[];for(t=0,n=e.length;t<n;t++){var o;r=e[t];if(void 0===(o=f.get(r)))throw new Error(\"[SlickGrid DataView] Invalid id\");f.delete(r),i.push(o)}i.sort();for(t=i.length-1;t>=0;--t)g.splice(i[t],1);j(i[0]),pe()}},sortedAddItem:ee,sortedUpdateItem:function(e,t){if(!f.has(e)||e!==t[s])throw new Error(\"[SlickGrid DataView] Invalid or non-matching id \"+f.get(e));if(!n)throw new Error(\"[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()\");var r=J(e);0!==n(r,t)?(Z(e),ee(t)):X(e,t)},syncGridSelection:function(e,t,n){var r,i=this;R=e,b=i.mapRowsToIds(e.getSelectedRows());var a=new l.Event;function u(t){b.join(\",\")!=t.join(\",\")&&(b=t,a.notify({grid:e,ids:b,dataView:i},new l.EventData,i))}return e.onSelectedRowsChanged.subscribe((function(t,l){if(!r){var a=i.mapRowsToIds(e.getSelectedRows());if(n&&e.getOptions().multiSelect)u(o.grep(b,(function(e){return void 0===i.getRowById(e)})).concat(a));else u(a)}})),this.onRowsOrCountChanged.subscribe((function(){if(b.length>0){r=!0;var n=i.mapIdsToRows(b);t||u(i.mapRowsToIds(n)),e.setSelectedRows(n),r=!1}})),a},syncGridCellCssStyles:function(e,t){var n,r;function i(e){for(var t in n={},e){var r=c[t][s];n[r]=e[t]}}function o(){if(n){r=!0,W();var i={};for(var o in n){var l=d[o];null!=l&&(i[l]=n[o])}e.setCellCssStyles(t,i),r=!1}}i(e.getCellCssStyles(t)),e.onCellCssStylesChanged.subscribe((function(n,l){r||t==l.key&&(l.hash?i(l.hash):(e.onCellCssStylesChanged.unsubscribe(),u.onRowsOrCountChanged.unsubscribe(o)))})),this.onRowsOrCountChanged.subscribe(o)},getItemCount:function(){return g.length},getLength:function(){return c.length},getItem:function(e){var t=c[e];if(t&&t.__group&&t.totals&&!t.totals.initialized){var n=x[t.level];n.displayTotalsRow||(ie(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t&&t.__groupTotals&&!t.initialized&&ie(t);return t},getItemMetadata:function(t){var n=c[t];return void 0===n?null:n.__group?e.groupItemMetadataProvider.getGroupRowMetadata(n):n.__groupTotals?e.groupItemMetadataProvider.getTotalsRowMetadata(n):null},onSetItemsCalled:V,onRowCountChanged:N,onRowsChanged:T,onRowsOrCountChanged:O,onBeforePagingInfoChanged:k,onPagingInfoChanged:P,onGroupExpanded:B,onGroupCollapsed:K})},Aggregators:a,Data:{Aggregators:a}}},\n 636: function _(e,i,t,o,n){var a=e(626),l=e(628);function s(e){var i,t,o=this;function n(){var i=e.column.editorFixedDecimalPlaces;return void 0===i&&(i=s.DefaultDecimalPlaces),i||0===i?i:null}this.args=e,this.init=function(){var t=e.grid.getOptions().editorCellNavOnLRKeys;i=a(\"<INPUT type=text class='editor-text' />\").appendTo(e.container).on(\"keydown.nav\",t?r:u).focus().select(),e.compositeEditorOptions&&i.on(\"change\",(function(){var i=e.grid.getActiveCell();o.validate().valid&&o.applyValue(o.args.item,o.serializeValue()),o.applyValue(o.args.compositeEditorOptions.formValues,o.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:o.args.item,column:o.args.column,formValues:o.args.compositeEditorOptions.formValues})}))},this.destroy=function(){i.remove()},this.focus=function(){i.focus()},this.loadValue=function(o){t=o[e.column.field];var a=n();null!==a&&(t||0===t)&&t.toFixed&&(t=t.toFixed(a)),i.val(t),i[0].defaultValue=t,i.select()},this.serializeValue=function(){var e=parseFloat(i.val());s.AllowEmptyValue?e||0===e||(e=\"\"):e=e||0;var t=n();return null!==t&&(e||0===e)&&e.toFixed&&(e=parseFloat(e.toFixed(t))),e},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return!(\"\"===i.val()&&null==t)&&i.val()!=t},this.validate=function(){if(isNaN(i.val()))return{valid:!1,msg:\"Please enter a valid number\"};if(e.column.validator){var t=e.column.validator(i.val(),e);if(!t.valid)return t}return{valid:!0,msg:null}},this.init()}function r(e){var i=this.selectionStart,t=this.value.length;(e.keyCode===l.keyCode.LEFT&&i>0||e.keyCode===l.keyCode.RIGHT&&i<t-1)&&e.stopImmediatePropagation()}function u(e){e.keyCode!==l.keyCode.LEFT&&e.keyCode!==l.keyCode.RIGHT||e.stopImmediatePropagation()}s.DefaultDecimalPlaces=null,s.AllowEmptyValue=!1,i.exports={Editors:{Text:function(e){var i,t,o=this;this.args=e,this.init=function(){var t=e.grid.getOptions().editorCellNavOnLRKeys;i=a(\"<INPUT type=text class='editor-text' />\").appendTo(e.container).on(\"keydown.nav\",t?r:u).focus().select(),e.compositeEditorOptions&&i.on(\"change\",(function(){var i=e.grid.getActiveCell();o.validate().valid&&o.applyValue(o.args.item,o.serializeValue()),o.applyValue(o.args.compositeEditorOptions.formValues,o.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:o.args.item,column:o.args.column,formValues:o.args.compositeEditorOptions.formValues})}))},this.destroy=function(){i.remove()},this.focus=function(){i.focus()},this.getValue=function(){return i.val()},this.setValue=function(e){i.val(e)},this.loadValue=function(o){t=o[e.column.field]||\"\",i.val(t),i[0].defaultValue=t,i.select()},this.serializeValue=function(){return i.val()},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return!(\"\"===i.val()&&null==t)&&i.val()!=t},this.validate=function(){if(e.column.validator){var t=e.column.validator(i.val(),e);if(!t.valid)return t}return{valid:!0,msg:null}},this.init()},Integer:function(e){var i,t,o=this;this.args=e,this.init=function(){var t=e.grid.getOptions().editorCellNavOnLRKeys;i=a(\"<INPUT type=text class='editor-text' />\").appendTo(e.container).on(\"keydown.nav\",t?r:u).focus().select(),e.compositeEditorOptions&&i.on(\"change\",(function(){var i=e.grid.getActiveCell();o.validate().valid&&o.applyValue(o.args.item,o.serializeValue()),o.applyValue(o.args.compositeEditorOptions.formValues,o.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:o.args.item,column:o.args.column,formValues:o.args.compositeEditorOptions.formValues})}))},this.destroy=function(){i.remove()},this.focus=function(){i.focus()},this.loadValue=function(o){t=o[e.column.field],i.val(t),i[0].defaultValue=t,i.select()},this.serializeValue=function(){return parseInt(i.val(),10)||0},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return!(\"\"===i.val()&&null==t)&&i.val()!=t},this.validate=function(){if(isNaN(i.val()))return{valid:!1,msg:\"Please enter a valid integer\"};if(e.column.validator){var t=e.column.validator(i.val(),e);if(!t.valid)return t}return{valid:!0,msg:null}},this.init()},Float:s,Date:function(e){var i,t,o=this,n=!1;this.args=e,this.init=function(){(i=a(\"<INPUT type=text class='editor-text' />\")).appendTo(e.container),i.focus().select(),i.datepicker({showOn:\"button\",buttonImageOnly:!0,beforeShow:function(){n=!0},onClose:function(){if(n=!1,e.compositeEditorOptions){var i=e.grid.getActiveCell();o.validate().valid&&o.applyValue(o.args.item,o.serializeValue()),o.applyValue(o.args.compositeEditorOptions.formValues,o.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:o.args.item,column:o.args.column,formValues:o.args.compositeEditorOptions.formValues})}}}),i.width(i.width()-(e.compositeEditorOptions?28:18))},this.destroy=function(){a.datepicker.dpDiv.stop(!0,!0),i.datepicker(\"hide\"),i.datepicker(\"destroy\"),i.remove()},this.show=function(){n&&a.datepicker.dpDiv.stop(!0,!0).show()},this.hide=function(){n&&a.datepicker.dpDiv.stop(!0,!0).hide()},this.position=function(e){n&&a.datepicker.dpDiv.css(\"top\",e.top+30).css(\"left\",e.left)},this.focus=function(){i.focus()},this.loadValue=function(o){t=o[e.column.field],i.val(t),i[0].defaultValue=t,i.select()},this.serializeValue=function(){return i.val()},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return!(\"\"===i.val()&&null==t)&&i.val()!=t},this.validate=function(){if(e.column.validator){var t=e.column.validator(i.val(),e);if(!t.valid)return t}return{valid:!0,msg:null}},this.init()},YesNoSelect:function(e){var i,t,o=this;this.args=e,this.init=function(){(i=a(\"<SELECT tabIndex='0' class='editor-yesno'><OPTION value='yes'>Yes</OPTION><OPTION value='no'>No</OPTION></SELECT>\")).appendTo(e.container),i.focus(),e.compositeEditorOptions&&i.on(\"change\",(function(){var i=e.grid.getActiveCell();o.validate().valid&&o.applyValue(o.args.item,o.serializeValue()),o.applyValue(o.args.compositeEditorOptions.formValues,o.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:o.args.item,column:o.args.column,formValues:o.args.compositeEditorOptions.formValues})}))},this.destroy=function(){i.remove()},this.focus=function(){i.focus()},this.loadValue=function(o){i.val((t=o[e.column.field])?\"yes\":\"no\"),i.select()},this.serializeValue=function(){return\"yes\"==i.val()},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return i.val()!=t},this.validate=function(){return{valid:!0,msg:null}},this.init()},Checkbox:function(e){var i,t,o=this;this.args=e,this.init=function(){(i=a(\"<INPUT type=checkbox value='true' class='editor-checkbox' hideFocus>\")).appendTo(e.container),i.focus(),e.compositeEditorOptions&&i.on(\"change\",(function(){var i=e.grid.getActiveCell();o.validate().valid&&o.applyValue(o.args.item,o.serializeValue()),o.applyValue(o.args.compositeEditorOptions.formValues,o.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:o.args.item,column:o.args.column,formValues:o.args.compositeEditorOptions.formValues})}))},this.destroy=function(){i.remove()},this.focus=function(){i.focus()},this.loadValue=function(o){(t=!!o[e.column.field])?i.prop(\"checked\",!0):i.prop(\"checked\",!1)},this.preClick=function(){i.prop(\"checked\",!i.prop(\"checked\"))},this.serializeValue=function(){return i.prop(\"checked\")},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return this.serializeValue()!==t},this.validate=function(){return{valid:!0,msg:null}},this.init()},PercentComplete:function(e){var i,t,o,n=this;this.args=e,this.init=function(){(i=a(\"<INPUT type=text class='editor-percentcomplete' />\")).width(a(e.container).innerWidth()-25),i.appendTo(e.container),(t=a(\"<div class='editor-percentcomplete-picker' />\").appendTo(e.container)).append(\"<div class='editor-percentcomplete-helper'><div class='editor-percentcomplete-wrapper'><div class='editor-percentcomplete-slider' /><div class='editor-percentcomplete-buttons' /></div></div>\"),t.find(\".editor-percentcomplete-buttons\").append(\"<button val=0>Not started</button><br/><button val=50>In Progress</button><br/><button val=100>Complete</button>\"),i.focus().select(),t.find(\".editor-percentcomplete-slider\").slider({orientation:\"vertical\",range:\"min\",value:o,slide:function(e,t){i.val(t.value)},stop:function(i,t){if(e.compositeEditorOptions){var o=e.grid.getActiveCell();n.validate().valid&&n.applyValue(n.args.item,n.serializeValue()),n.applyValue(n.args.compositeEditorOptions.formValues,n.serializeValue()),e.grid.onCompositeEditorChange.notify({row:o.row,cell:o.cell,item:n.args.item,column:n.args.column,formValues:n.args.compositeEditorOptions.formValues})}}}),t.find(\".editor-percentcomplete-buttons button\").on(\"click\",(function(e){i.val(a(this).attr(\"val\")),t.find(\".editor-percentcomplete-slider\").slider(\"value\",a(this).attr(\"val\"))}))},this.destroy=function(){i.remove(),t.remove()},this.focus=function(){i.focus()},this.loadValue=function(t){i.val(o=t[e.column.field]),i.select()},this.serializeValue=function(){return parseInt(i.val(),10)||0},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return!(\"\"===i.val()&&null==o)&&(parseInt(i.val(),10)||0)!=o},this.validate=function(){return isNaN(parseInt(i.val(),10))?{valid:!1,msg:\"Please enter a valid positive number\"}:{valid:!0,msg:null}},this.init()},LongText:function(e){var i,t,o,n=this;this.args=e,this.init=function(){var o=e.compositeEditorOptions,l=(e.grid.getOptions().editorCellNavOnLRKeys,o?e.container:a(\"body\"));t=a(\"<DIV class='slick-large-editor-text' style='z-index:10000;background:white;padding:5px;border:3px solid gray; border-radius:10px;'/>\").appendTo(l),o?t.css({position:\"relative\",padding:0,border:0}):t.css({position:\"absolute\"}),i=a(\"<TEXTAREA hidefocus rows=5 style='background:white;width:250px;height:80px;border:0;outline:0'>\").appendTo(t),o?i.on(\"change\",(function(){var i=e.grid.getActiveCell();n.validate().valid&&n.applyValue(n.args.item,n.serializeValue()),n.applyValue(n.args.compositeEditorOptions.formValues,n.serializeValue()),e.grid.onCompositeEditorChange.notify({row:i.row,cell:i.cell,item:n.args.item,column:n.args.column,formValues:n.args.compositeEditorOptions.formValues})})):(a(\"<DIV style='text-align:right'><BUTTON>Save</BUTTON><BUTTON>Cancel</BUTTON></DIV>\").appendTo(t),t.find(\"button:first\").on(\"click\",this.save),t.find(\"button:last\").on(\"click\",this.cancel),i.on(\"keydown\",this.handleKeyDown),n.position(e.position)),i.focus().select()},this.handleKeyDown=function(i){if(i.which==l.keyCode.ENTER&&i.ctrlKey)n.save();else if(i.which==l.keyCode.ESCAPE)i.preventDefault(),n.cancel();else if(i.which==l.keyCode.TAB&&i.shiftKey)i.preventDefault(),e.grid.navigatePrev();else if(i.which==l.keyCode.TAB)i.preventDefault(),e.grid.navigateNext();else if((i.which==l.keyCode.LEFT||i.which==l.keyCode.RIGHT)&&e.grid.getOptions().editorCellNavOnLRKeys){var t=this.selectionStart,o=this.value.length;i.keyCode===l.keyCode.LEFT&&0===t&&e.grid.navigatePrev(),i.keyCode===l.keyCode.RIGHT&&t>=o-1&&e.grid.navigateNext()}},this.save=function(){e.commitChanges()},this.cancel=function(){i.val(o),e.cancelChanges()},this.hide=function(){t.hide()},this.show=function(){t.show()},this.position=function(e){t.css(\"top\",e.top-5).css(\"left\",e.left-5)},this.destroy=function(){t.remove()},this.focus=function(){i.focus()},this.loadValue=function(t){i.val(o=t[e.column.field]),i.select()},this.serializeValue=function(){return i.val()},this.applyValue=function(i,t){i[e.column.field]=t},this.isValueChanged=function(){return!(\"\"===i.val()&&null==o)&&i.val()!=o},this.validate=function(){if(e.column.validator){var t=e.column.validator(i.val(),e);if(!t.valid)return t}return{valid:!0,msg:null}},this.init()}}}},\n 637: function _(e,n,r,t,c){e(628);n.exports={Formatters:{PercentComplete:function(e,n,r,t,c){return null==r||\"\"===r?\"-\":r<50?\"<span style='color:red;font-weight:bold;'>\"+r+\"%</span>\":\"<span style='color:green'>\"+r+\"%</span>\"},PercentCompleteBar:function(e,n,r,t,c){return null==r||\"\"===r?\"\":\"<span class='percent-complete-bar' style='background:\"+(r<30?\"red\":r<70?\"silver\":\"green\")+\";width:\"+r+\"%'></span>\"},YesNo:function(e,n,r,t,c){return r?\"Yes\":\"No\"},Checkmark:function(e,n,r,t,c){return r?\"<img src='../images/tick.png'>\":\"\"},Checkbox:function(e,n,r,t,c){return'<img class=\"slick-edit-preclick\" src=\"../images/'+(r?\"CheckboxY\":\"CheckboxN\")+'.png\">'}}}},\n 638: function _(t,o,r,e,n){var a=t(626),l=t(628);o.exports={RemoteModel:function(){var t=50,o={length:0},r=\"\",e=null,n=1,i=null,s=null,u=new l.Event,f=new l.Event;function c(){for(var t in o)delete o[t];o.length=0}function h(l,c){if(s){s.abort();for(var h=s.fromPage;h<=s.toPage;h++)o[h*t]=void 0}l<0&&(l=0),o.length>0&&(c=Math.min(c,o.length-1));for(var v=Math.floor(l/t),m=Math.floor(c/t);void 0!==o[v*t]&&v<m;)v++;for(;void 0!==o[m*t]&&v<m;)m--;if(v>m||v==m&&void 0!==o[v*t])f.notify({from:l,to:c});else{var g=\"http://octopart.com/api/v3/parts/search?apikey=68b25f31&include[]=short_description&show[]=uid&show[]=manufacturer&show[]=mpn&show[]=brand&show[]=octopart_url&show[]=short_description&q=\"+r+\"&start=\"+v*t+\"&limit=\"+((m-v)*t+t);null!=e&&(g+=\"&sortby=\"+e+(n>0?\"+asc\":\"+desc\")),null!=i&&clearTimeout(i),i=setTimeout((function(){for(var r=v;r<=m;r++)o[r*t]=null;u.notify({from:l,to:c}),s=a.jsonp({url:g,callbackParameter:\"callback\",cache:!0,success:d,error:function(){!function(t,o){alert(\"error loading pages \"+t+\" to \"+o)}(v,m)}}),s.fromPage=v,s.toPage=m}),50)}}function d(t){var r=t.request.start,e=r+t.results.length;o.length=Math.min(parseInt(t.hits),1e3);for(var n=0;n<t.results.length;n++){var a=t.results[n].item;o[r+n]=a,o[r+n].index=r+n}s=null,f.notify({from:r,to:e})}return{data:o,clear:c,isDataLoaded:function(t,r){for(var e=t;e<=r;e++)if(null==o[e]||null==o[e])return!1;return!0},ensureData:h,reloadData:function(t,r){for(var e=t;e<=r;e++)delete o[e];h(t,r)},setSort:function(t,o){e=t,n=o,c()},setSearch:function(t){r=t,c()},onDataLoading:u,onDataLoaded:f}}}},\n 639: function _(e,s,t,o,l){var a=e(626),r=e(628);s.exports={GroupItemMetadataProvider:function(e){var s,t={checkboxSelect:!1,checkboxSelectCssClass:\"slick-group-select-checkbox\",checkboxSelectPlugin:null,groupCssClass:\"slick-group\",groupTitleCssClass:\"slick-group-title\",totalsCssClass:\"slick-group-totals\",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:\"slick-group-toggle\",toggleExpandedCssClass:\"expanded\",toggleCollapsedCssClass:\"collapsed\",enableExpandCollapse:!0,groupFormatter:function(e,s,t,l,a,r){if(!o.enableExpandCollapse)return a.title;var c=15*a.level+\"px\";return(o.checkboxSelect?'<span class=\"'+o.checkboxSelectCssClass+\" \"+(a.selectChecked?\"checked\":\"unchecked\")+'\"></span>':\"\")+\"<span class='\"+o.toggleCssClass+\" \"+(a.collapsed?o.toggleCollapsedCssClass:o.toggleExpandedCssClass)+\"' style='margin-left:\"+c+\"'></span><span class='\"+o.groupTitleCssClass+\"' level='\"+a.level+\"'>\"+a.title+\"</span>\"},totalsFormatter:function(e,s,t,o,l,a){return o.groupTotalsFormatter&&o.groupTotalsFormatter(l,o,a)||\"\"},includeHeaderTotals:!1},o=a.extend(!0,{},t,e);function l(e,t){var l=a(e.target),c=this.getDataItem(t.row);if(c&&c instanceof r.Group&&l.hasClass(o.toggleCssClass)){var n=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:n.top,ignoreDiffsAfter:n.bottom+1}),c.collapsed?this.getData().expandGroup(c.groupingKey):this.getData().collapseGroup(c.groupingKey),e.stopImmediatePropagation(),e.preventDefault()}if(c&&c instanceof r.Group&&l.hasClass(o.checkboxSelectCssClass)){c.selectChecked=!c.selectChecked,l.removeClass(c.selectChecked?\"unchecked\":\"checked\"),l.addClass(c.selectChecked?\"checked\":\"unchecked\");var i=s.getData().mapItemsToRows(c.rows);(c.selectChecked?o.checkboxSelectPlugin.selectRows:o.checkboxSelectPlugin.deSelectRows)(i)}}function c(e,t){if(o.enableExpandCollapse&&e.which==r.keyCode.SPACE){var l=this.getActiveCell();if(l){var a=this.getDataItem(l.row);if(a&&a instanceof r.Group){var c=s.getRenderedRange();this.getData().setRefreshHints({ignoreDiffsBefore:c.top,ignoreDiffsAfter:c.bottom+1}),a.collapsed?this.getData().expandGroup(a.groupingKey):this.getData().collapseGroup(a.groupingKey),e.stopImmediatePropagation(),e.preventDefault()}}}}return{init:function(e){(s=e).onClick.subscribe(l),s.onKeyDown.subscribe(c)},destroy:function(){s&&(s.onClick.unsubscribe(l),s.onKeyDown.unsubscribe(c))},getGroupRowMetadata:function(e){var s=e&&e.level;return{selectable:!1,focusable:o.groupFocusable,cssClasses:o.groupCssClass+\" slick-group-level-\"+s,formatter:o.includeHeaderTotals&&o.totalsFormatter,columns:{0:{colspan:o.includeHeaderTotals?\"1\":\"*\",formatter:o.groupFormatter,editor:null}}}},getTotalsRowMetadata:function(e){var s=e&&e.group&&e.group.level;return{selectable:!1,focusable:o.totalsFocusable,cssClasses:o.totalsCssClass+\" slick-group-level-\"+s,formatter:o.totalsFormatter,editor:null}},getOptions:function(){return o},setOptions:function(e){a.extend(!0,o,e)}}}}},\n 640: function _(t,e,i,s,r){s();const a=t(360),n=t(154);class d extends a.LayoutDOMView{update_style(){super.update_style(),this.style.append(\":host\",{margin:\"5px\"})}get child_models(){return[]}get provider(){return n.default_provider}async lazy_initialize(){await super.lazy_initialize(),\"not_started\"==this.provider.status&&await this.provider.fetch()}_after_layout(){super._after_layout(),\"loading\"==this.provider.status&&(this._has_finished=!1)}process_tex(t){if(null==this.provider.MathJax)return t;const e=this.provider.MathJax.find_tex(t),i=[];let s=0;for(const r of e)i.push(t.slice(s,r.start.n)),i.push(this.provider.MathJax.tex2svg(r.math,{display:r.display}).outerHTML),s=r.end.n;return s<t.length&&i.push(t.slice(s)),i.join(\"\")}contains_tex_string(t){return null!=this.provider.MathJax&&this.provider.MathJax.find_tex(t).length>0}}i.WidgetView=d,d.__name__=\"WidgetView\";class o extends a.LayoutDOM{constructor(t){super(t)}}i.Widget=o,o.__name__=\"Widget\"},\n 641: function _(e,n,t,a,o){var c;a();const i=e(640),u=e(104),r=e(215);class s extends i.Widget{constructor(e){super(e)}}t.TableWidget=s,c=s,s.__name__=\"TableWidget\",c.define((({Ref:e})=>({source:[e(u.ColumnDataSource),()=>new u.ColumnDataSource],view:[e(r.CDSView),()=>new r.CDSView]})))},\n 642: function _(t,e,i,r,l){var o;r();const d=t(621),n=t(618),a=t(38),s=t(19),u=t(50);class f extends u.Model{constructor(t){super(t)}toColumn(){var t;return{id:(0,a.unique_id)(),field:this.field,name:null!==(t=this.title)&&void 0!==t?t:this.field,width:this.width,formatter:this.formatter.doFormat.bind(this.formatter),model:this.editor,editor:this.editor.default_view,sortable:this.sortable,defaultSortAsc:\"ascending\"==this.default_sort}}}i.TableColumn=f,o=f,f.__name__=\"TableColumn\",o.define((({Boolean:t,Number:e,String:i,Nullable:r,Ref:l})=>({field:[i],title:[r(i),null],width:[e,300],formatter:[l(d.CellFormatter),()=>new d.StringFormatter],editor:[l(n.CellEditor),()=>new n.StringEditor],sortable:[t,!0],default_sort:[s.Sort,\"ascending\"],visible:[t,!0]})))},\n 643: function _(A,e,i,o,l){o(),i.default='.slick-header.ui-state-default,.slick-headerrow.ui-state-default,.slick-footerrow.ui-state-default,.slick-top-panel-scroller.ui-state-default,.slick-group-header.ui-state-default{width:100%;overflow:auto;position:relative;border-left:0px !important;}.slick-header.ui-state-default{overflow:inherit;}.slick-header::-webkit-scrollbar,.slick-headerrow::-webkit-scrollbar,.slick-footerrow::-webkit-scrollbar{display:none;}.slick-header-columns,.slick-headerrow-columns,.slick-footerrow-columns,.slick-group-header-columns{position:relative;white-space:nowrap;cursor:default;overflow:hidden;}.slick-header-column.ui-state-default,.slick-group-header-column.ui-state-default{position:relative;display:inline-block;box-sizing:content-box !important;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;height:16px;line-height:16px;margin:0;padding:4px;border-right:1px solid silver;border-left:0px !important;border-top:0px !important;border-bottom:0px !important;float:left;}.slick-footerrow-column.ui-state-default{-o-text-overflow:ellipsis;text-overflow:ellipsis;margin:0;padding:4px;border-right:1px solid silver;border-left:0px;border-top:0px;border-bottom:0px;float:left;line-height:20px;vertical-align:middle;}.slick-headerrow-column.ui-state-default,.slick-footerrow-column.ui-state-default{padding:4px;}.slick-header-column-sorted{font-style:italic;}.slick-sort-indicator{display:inline-block;width:8px;height:5px;margin-left:4px;margin-top:6px;float:left;}.slick-sort-indicator-numbered{display:inline-block;width:8px;height:5px;margin-left:4px;margin-top:0;line-height:20px;float:left;font-family:Arial;font-style:normal;font-weight:bold;color:#6190CD;}.slick-sort-indicator-desc{background:url(images/sort-desc.gif);}.slick-sort-indicator-asc{background:url(images/sort-asc.gif);}.slick-resizable-handle{position:absolute;font-size:0.1px;display:block;cursor:col-resize;width:9px;right:-5px;top:0;height:100%;z-index:1;}.slick-sortable-placeholder{background:silver;}.grid-canvas{position:relative;outline:0;}.slick-row.ui-widget-content,.slick-row.ui-state-active{position:absolute;border:0px;width:100%;}.slick-cell,.slick-headerrow-column,.slick-footerrow-column{position:absolute;border:1px solid transparent;border-right:1px dotted silver;border-bottom-color:silver;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;z-index:1;padding:1px 2px 2px 1px;margin:0;white-space:nowrap;cursor:default;}.slick-cell,.slick-headerrow-column{border-bottom-color:silver;}.slick-footerrow-column{border-top-color:silver;}.slick-group-toggle{display:inline-block;}.slick-cell.highlighted{background:lightskyblue;background:rgba(0, 0, 255, 0.2);-webkit-transition:all 0.5s;-moz-transition:all 0.5s;-o-transition:all 0.5s;transition:all 0.5s;}.slick-cell.flashing{border:1px solid red !important;}.slick-cell.editable{z-index:11;overflow:visible;background:white;border-color:black;border-style:solid;}.slick-cell:focus{outline:none;}.slick-reorder-proxy{display:inline-block;background:blue;opacity:0.15;cursor:move;}.slick-reorder-guide{display:inline-block;height:2px;background:blue;opacity:0.7;}.slick-selection{z-index:10;position:absolute;border:2px dashed black;}.slick-pane{position:absolute;outline:0;overflow:hidden;width:100%;}.slick-pane-header{display:block;}.slick-header{overflow:hidden;position:relative;}.slick-headerrow{overflow:hidden;position:relative;}.slick-top-panel-scroller{overflow:hidden;position:relative;}.slick-top-panel{width:10000px;}.slick-viewport{position:relative;outline:0;width:100%;}.slick-header-columns{background:url(\\'images/header-columns-bg.gif\\') repeat-x center bottom;border-bottom:1px solid silver;}.slick-header-column{background:url(\\'images/header-columns-bg.gif\\') repeat-x center bottom;border-right:1px solid silver;}.slick-header-column:hover,.slick-header-column-active{background:white url(\\'images/header-columns-over-bg.gif\\') repeat-x center bottom;}.slick-headerrow{background:#fafafa;}.slick-headerrow-column{background:#fafafa;border-bottom:0;height:100%;}.slick-row.ui-state-active{background:#F5F7D7;}.slick-row{position:absolute;background:white;border:0px;line-height:20px;}.slick-row.selected{z-index:10;background:#DFE8F6;}.slick-cell{padding-left:4px;padding-right:4px;}.slick-group{border-bottom:2px solid silver;}.slick-group-toggle{width:9px;height:9px;margin-right:5px;}.slick-group-toggle.expanded{background:url(images/collapse.gif) no-repeat center center;}.slick-group-toggle.collapsed{background:url(images/expand.gif) no-repeat center center;}.slick-group-totals{color:gray;background:white;}.slick-group-select-checkbox{width:13px;height:13px;margin:3px 10px 0 0;display:inline-block;}.slick-group-select-checkbox.checked{background:url(images/GrpCheckboxY.png) no-repeat center center;}.slick-group-select-checkbox.unchecked{background:url(images/GrpCheckboxN.png) no-repeat center center;}.slick-cell.selected{background-color:beige;}.slick-cell.active{border-color:gray;border-style:solid;}.slick-sortable-placeholder{background:silver !important;}.slick-row.odd{background:#fafafa;}.slick-row.ui-state-active{background:#F5F7D7;}.slick-row.loading{opacity:0.5;}.slick-cell.invalid{border-color:red;-moz-animation-duration:0.2s;-webkit-animation-duration:0.2s;-moz-animation-name:slickgrid-invalid-hilite;-webkit-animation-name:slickgrid-invalid-hilite;}@-moz-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red;}to{box-shadow:none;}}@-webkit-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red;}to{box-shadow:none;}}.slick-column-name,.slick-sort-indicator{display:inline-block;float:left;margin-bottom:100px;}.slick-header-button{display:inline-block;float:right;vertical-align:top;margin:1px;margin-bottom:100px;height:15px;width:15px;background-repeat:no-repeat;background-position:center center;cursor:pointer;}.slick-header-button-hidden{width:0;-webkit-transition:0.2s width;-ms-transition:0.2s width;transition:0.2s width;}.slick-header-column:hover > .slick-header-button{width:15px;}.slick-header-menubutton{position:absolute;right:0;top:0;bottom:0;width:14px;background-repeat:no-repeat;background-position:left center;background-image:url(../images/down.gif);cursor:pointer;display:none;border-left:thin ridge silver;}.slick-header-column:hover > .slick-header-menubutton,.slick-header-column-active .slick-header-menubutton{display:inline-block;}.slick-header-menu{position:absolute;display:inline-block;margin:0;padding:2px;cursor:default;}.slick-header-menuitem{list-style:none;margin:0;padding:0;cursor:pointer;display:block;}.slick-header-menuicon{display:inline-block;width:16px;height:16px;vertical-align:middle;margin-right:4px;background-repeat:no-repeat;background-position:center center;}.slick-header-menucontent{display:inline-block;vertical-align:middle;}.slick-header-menuitem-disabled{color:silver;}.slick-header-menuitem-hidden{display:none;}.slick-header-menuitem.slick-header-menuitem-divider{cursor:default;border:none;overflow:hidden;padding:0;height:1px;margin:8px 2px;background-color:#cecece;}.slick-header-menuitem-divider.slick-header-menuitem:hover{background-color:#cecece;}.slick-columnpicker{border:1px solid #718BB7;background:#f0f0f0;padding:6px;-moz-box-shadow:2px 2px 2px silver;-webkit-box-shadow:2px 2px 2px silver;box-shadow:2px 2px 2px silver;min-width:150px;cursor:default;position:absolute;z-index:20;overflow:auto;resize:both;}.slick-columnpicker > .close{float:right;}.slick-columnpicker .title{font-size:16px;width:60%;border-bottom:solid 1px #d6d6d6;margin-bottom:10px;}.slick-columnpicker li{list-style:none;margin:0;padding:0;background:none;}.slick-columnpicker input{margin:4px;}.slick-columnpicker li a{display:block;padding:4px;font-weight:bold;}.slick-columnpicker li a:hover{background:white;}.slick-columnpicker-list li.hidden{display:none;}.slick-pager{width:100%;height:26px;border:1px solid gray;border-top:0;background:url(\\'../images/header-columns-bg.gif\\') repeat-x center bottom;vertical-align:middle;}.slick-pager .slick-pager-status{display:inline-block;padding:6px;}.slick-pager .ui-icon-container{display:inline-block;margin:2px;border-color:gray;}.slick-pager .slick-pager-nav{display:inline-block;float:left;padding:2px;}.slick-pager .slick-pager-settings{display:block;float:right;padding:2px;}.slick-pager .slick-pager-settings *{vertical-align:middle;}.slick-pager .slick-pager-settings a{padding:2px;text-decoration:underline;cursor:pointer;}.slick-header-columns{border-bottom:1px solid silver;background-image:none;}.slick-header-column{border-right:1px solid transparent;background-image:none;}.slick-header-column:last-of-type{border-right-color:transparent;}.slick-header-column:hover,.slick-header-column-active{background-color:#F0F8FF;background-image:none;}.slick-group-toggle.expanded{background-image:url(\"data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7\");}.slick-group-toggle.collapsed{background-image:url(\"data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=\");}.slick-group-select-checkbox.checked{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAAEcSURBVChTjdI9S8NQFAbg/raQXVwCRRFE7GK7OXTwD+ikk066VF3a0ja0hQTyQdJrwNq0zrYSQRLEXMSWSlCIb8glqRcFD+9yz3nugXwU4n9XQqMoGjj36uBJsTwuaNo3EwBG4Yy7pe7Gv8YcvhJCGFVsjxsjxujj6OTSGlHv+U2WZUZbPWKOv1ZjT5a7pbIoiptbO5b73mwrjHa1B27l8VlTEIS1damlTnEE+EEN9/P8WrfH81qdAIGeXvTTmzltdCy46sEhxpKUINReZR9NnqZbr9puugxV3NjWh/k74WmmEdWhmUNy2jNmWRc6fZTVADCqao52u+DGWTACYNT3fRxwtatPufTNR4yCIGAUn5hS+vJHhWGY/ANx/A3tvdv+1tZmuwAAAABJRU5ErkJggg==\");}.slick-group-select-checkbox.unchecked{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAACXSURBVChT1dIxC4MwEAXg/v8/VOhQVDBNakV0KA6pxS4JhWRSIYPEJxwdDi1de7wleR+3JIf486w0hKCKRpSvvOhZcCmvNQBRuKqdah03U7UjNNH81rOaBYDo8SQaPX8JANFEaLaGBeAPaaY61rGksiN6TmR5H1j9CSoAosYYHLA7vTxYMvVEZa0liif23r93xjm3/oEYF8PiDn/I2FHCAAAAAElFTkSuQmCC\");}.slick-sort-indicator-desc{background-image:url(\"data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=\");}.slick-sort-indicator-asc{background-image:url(\"data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=\");}.slick-header-menubutton{background-image:url(\"data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=\");}.slick-pager{background-image:none;}'},\n 644: function _(t,e,s,r,a){var i;r();const n=t(631),{Avg:u,Min:g,Max:o,Sum:c}=n.Data.Aggregators,l=t(50);class _ extends l.Model{constructor(t){super(t)}}s.RowAggregator=_,i=_,_.__name__=\"RowAggregator\",i.define((({String:t})=>({field_:[t,\"\"]})));const m=new u;class h extends _{constructor(){super(...arguments),this.key=\"avg\",this.init=m.init,this.accumulate=m.accumulate,this.storeResult=m.storeResult}}s.AvgAggregator=h,h.__name__=\"AvgAggregator\";const A=new g;class R extends _{constructor(){super(...arguments),this.key=\"min\",this.init=A.init,this.accumulate=A.accumulate,this.storeResult=A.storeResult}}s.MinAggregator=R,R.__name__=\"MinAggregator\";const x=new o;class d extends _{constructor(){super(...arguments),this.key=\"max\",this.init=x.init,this.accumulate=x.accumulate,this.storeResult=x.storeResult}}s.MaxAggregator=d,d.__name__=\"MaxAggregator\";const M=new c;class w extends _{constructor(){super(...arguments),this.key=\"sum\",this.init=M.init,this.accumulate=M.accumulate,this.storeResult=M.storeResult}}s.SumAggregator=w,w.__name__=\"SumAggregator\"},\n 645: function _(e,t,s,o,r){var a,i;o();const l=e(56),n=e(8),u=e(631),g=e(619),c=e(624),p=e(104),h=e(644),d=e(50);function f(e,t,s,o,r){const{collapsed:a,level:i,title:n}=r,u=(0,l.span)({class:\"slick-group-toggle \"+(a?\"collapsed\":\"expanded\"),style:{\"margin-left\":15*i+\"px\"}}),g=(0,l.span)({class:\"slick-group-title\",level:i},n);return`${u.outerHTML}${g.outerHTML}`}function m(e,t){const s=this.getDataItem(t.row);s instanceof u.Group&&e.target.classList.contains(\"slick-group-toggle\")&&(s.collapsed?this.getData().expandGroup(s.groupingKey):this.getData().collapseGroup(s.groupingKey),e.stopImmediatePropagation(),e.preventDefault(),this.invalidate(),this.render())}class w extends d.Model{constructor(e){super(e)}get comparer(){return(e,t)=>e.value===t.value?0:e.value>t.value?1:-1}}s.GroupingInfo=w,a=w,w.__name__=\"GroupingInfo\",a.define((({Boolean:e,String:t,Array:s,Ref:o})=>({getter:[t,\"\"],aggregators:[s(o(h.RowAggregator)),[]],collapsed:[e,!1]})));class v extends c.TableDataProvider{constructor(e,t,s,o){super(e,t),this.columns=s,this.groupingInfos=[],this.groupingDelimiter=\":|:\",this.target=o}setGrouping(e){this.groupingInfos=e,this.toggledGroupsByLevel=e.map((()=>({}))),this.refresh()}extractGroups(e,t){const s=[],o=new Map,r=null!=t?t.level+1:0,{comparer:a,getter:i}=this.groupingInfos[r];return e.forEach((e=>{const a=this.source.data[i][e];let l=o.get(a);if(null==l){const e=null!=t?`${t.groupingKey}${this.groupingDelimiter}${a}`:`${a}`;l=Object.assign(new u.Group,{value:a,level:r,groupingKey:e}),s.push(l),o.set(a,l)}l.rows.push(e)})),r<this.groupingInfos.length-1&&s.forEach((e=>{e.groups=this.extractGroups(e.rows,e)})),s.sort(a),s}calculateTotals(e,t){const s={avg:{},max:{},min:{},sum:{}},{source:{data:o}}=this,r=Object.keys(o),a=e.rows.map((e=>r.reduce(((t,s)=>Object.assign(Object.assign({},t),{[s]:o[s][e]})),{})));return t.forEach((e=>{e.init(),a.forEach((t=>e.accumulate(t))),e.storeResult(s)})),s}addTotals(e,t=0){const{aggregators:s,collapsed:o}=this.groupingInfos[t],r=this.toggledGroupsByLevel[t];e.forEach((e=>{(0,n.is_nullish)(e.groups)||this.addTotals(e.groups,t+1),0!=s.length&&0!=e.rows.length&&(e.totals=this.calculateTotals(e,s)),e.collapsed=o!==r[e.groupingKey],e.title=e.value?`${e.value}`:\"\"}))}flattenedGroupedRows(e,t=0){const s=[];return e.forEach((e=>{if(s.push(e),!e.collapsed){const o=(0,n.is_nullish)(e.groups)?e.rows:this.flattenedGroupedRows(e.groups,t+1);s.push(...o)}})),s}refresh(){const e=this.extractGroups([...this.view.indices]),t=this.source.data[this.columns[0].field];0!=e.length&&(this.addTotals(e),this.rows=this.flattenedGroupedRows(e),this.target.data={row_indices:this.rows.map((e=>e instanceof u.Group?e.rows:e)),labels:this.rows.map((e=>e instanceof u.Group?e.title:t[e]))})}getLength(){return this.rows.length}getItem(e){const t=this.rows[e],{source:{data:s}}=this;return t instanceof u.Group?t:Object.keys(s).reduce(((e,o)=>Object.assign(Object.assign({},e),{[o]:s[o][t]})),{[g.DTINDEX_NAME]:t})}getItemMetadata(e){const t=this.rows[e],s=this.columns.slice(1),o=t instanceof u.Group?this.groupingInfos[t.level].aggregators:[];return t instanceof u.Group?{selectable:!1,focusable:!1,cssClasses:\"slick-group\",columns:[{formatter:f},...s.map((function(e){const{field:t,formatter:s}=e,r=o.find((({field_:e})=>e===t));if(null!=r){const{key:e}=r;return{formatter:(o,r,a,i,l)=>null!=s?s(o,r,l.totals[e][t],i,l):\"\"}}return{}}))]}:{}}collapseGroup(e){const t=e.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[t][e]=!this.groupingInfos[t].collapsed,this.refresh()}expandGroup(e){const t=e.split(this.groupingDelimiter).length-1;this.toggledGroupsByLevel[t][e]=this.groupingInfos[t].collapsed,this.refresh()}}s.DataCubeProvider=v,v.__name__=\"DataCubeProvider\";class _ extends c.DataTableView{_after_render(){super._after_render();const e={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:!1,autosizeColsMode:this.autosize,multiColumnSort:!1,editable:this.model.editable,autoEdit:this.model.auto_edit,rowHeight:this.model.row_height},t=this.model.columns.map((e=>e.toColumn()));var s,o;t[0].formatter=(s=t[0].formatter,o=this.model.grouping.length,(e,t,r,a,i)=>{const n=(0,l.span)({class:\"slick-group-toggle\",style:{\"margin-left\":15*(null!=o?o:0)+\"px\"}}),u=null!=s?s(e,t,r,a,i):`${r}`;return`${n.outerHTML}${u.replace(/^<div/,\"<span\").replace(/div>$/,\"span>\")}`}),delete t[0].editor,this.data=new v(this.model.source,this.model.view,t,this.model.target),this.data.setGrouping(this.model.grouping),this.el.style.width=`${this.model.width}px`,this.grid=new u.Grid(this.wrapper_el,this.data,t,e),this.grid.onClick.subscribe(m)}}s.DataCubeView=_,_.__name__=\"DataCubeView\";class b extends c.DataTable{constructor(e){super(e)}}s.DataCube=b,i=b,b.__name__=\"DataCube\",i.prototype.default_view=_,i.define((({Array:e,Ref:t})=>({grouping:[e(t(w)),[]],target:[t(p.ColumnDataSource)]})))},\n }, 616, {\"models/widgets/tables/main\":616,\"models/widgets/tables/index\":617,\"models/widgets/tables/cell_editors\":618,\"models/widgets/tables/definitions\":619,\"styles/widgets/tables.css\":620,\"models/widgets/tables/cell_formatters\":621,\"models/widgets/tables/data_table\":624,\"models/widgets/widget\":640,\"models/widgets/tables/table_widget\":641,\"models/widgets/tables/table_column\":642,\"styles/widgets/slickgrid.css\":643,\"models/widgets/tables/row_aggregators\":644,\"models/widgets/tables/data_cube\":645}, {});});\n\n /* END bokeh-tables.min.js */\n },\n function(Bokeh) {\n Bokeh.set_log_level(\"info\");\n },\n function(Bokeh) {\n /* BEGIN panel.min.js */\n /*!\n * Copyright (c) 2012 - 2023, 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(root, factory) {\n factory(root[\"Bokeh\"], undefined);\n })(this, function(Bokeh, version) {\n let define;\n return (function(modules, entry, aliases, externals) {\n const bokeh = typeof Bokeh !== \"undefined\" && (version != null ? Bokeh[version] : Bokeh);\n if (bokeh != null) {\n return bokeh.register_plugin(modules, entry, aliases);\n } else {\n throw new Error(\"Cannot find Bokeh \" + version + \". You have to load it prior to loading plugins.\");\n }\n })\n ({\n \"4e90918c0a\": function _(e,s,t,o,a){o();const b=e(\"tslib\").__importStar(e(\"6b2494dd1a\"));t.Panel=b;(0,e(\"@bokehjs/base\").register_models)(b)},\n \"6b2494dd1a\": function _(e,a,t,c,o){c();const d=e(\"tslib\");o(\"AcePlot\",e(\"7df2008a2e\").AcePlot),o(\"Audio\",e(\"78153b60aa\").Audio),o(\"BrowserInfo\",e(\"6df8bf1ac7\").BrowserInfo),o(\"Card\",e(\"0863f96bc3\").Card),o(\"CommManager\",e(\"5819a59e86\").CommManager),o(\"CustomSelect\",e(\"9c8629b48f\").CustomSelect),o(\"DataTabulator\",e(\"b1f71e1d72\").DataTabulator),o(\"DatetimePicker\",e(\"2114fa70c6\").DatetimePicker),o(\"DeckGLPlot\",e(\"991e3a226c\").DeckGLPlot),o(\"ECharts\",e(\"eded13f5d7\").ECharts),o(\"HTML\",e(\"3c5d08f9d8\").HTML),o(\"IPyWidget\",e(\"e3556c1e99\").IPyWidget),o(\"JSON\",e(\"172b3596d3\").JSON),o(\"JSONEditor\",e(\"4b8a56c700\").JSONEditor),o(\"FileDownload\",e(\"9c15016be8\").FileDownload),o(\"KaTeX\",e(\"921df82f50\").KaTeX),o(\"Location\",e(\"00a25cf872\").Location),o(\"MathJax\",e(\"9ec67eb09e\").MathJax),o(\"PDF\",e(\"d49a559fbc\").PDF),o(\"Perspective\",e(\"9f0456e5b5\").Perspective),o(\"Player\",e(\"c172556ad3\").Player),o(\"PlotlyPlot\",e(\"16c8f59cca\").PlotlyPlot),o(\"Progress\",e(\"b82925a928\").Progress),o(\"QuillInput\",e(\"371de13dfc\").QuillInput),o(\"ReactiveHTML\",e(\"6833ed7471\").ReactiveHTML),o(\"SingleSelect\",e(\"93d7c1ebd7\").SingleSelect),o(\"SpeechToText\",e(\"cd0c80cc4c\").SpeechToText),o(\"State\",e(\"66717cb841\").State),o(\"Tabs\",e(\"67a5649f75\").Tabs),o(\"Terminal\",e(\"cd4a941f8d\").Terminal),o(\"TextToSpeech\",e(\"eb4ae0acfa\").TextToSpeech),o(\"TrendIndicator\",e(\"8f4ab32d74\").TrendIndicator),o(\"VegaPlot\",e(\"5439695e7b\").VegaPlot),o(\"Video\",e(\"1faa6be6e8\").Video),o(\"VideoStream\",e(\"797fd61298\").VideoStream),o(\"VizzuChart\",e(\"2bf02809f1\").VizzuChart),d.__exportStar(e(\"c51f25e2a7\"),t)},\n \"7df2008a2e\": function _(e,t,i,o,n){var s;o();const a=e(\"@bokehjs/core/dom\"),d=e(\"35aaab0394\");class h extends d.HTMLBoxView{initialize(){super.initialize(),this._container=(0,a.div)({id:\"_\"+Math.random().toString(36).substr(2,9),style:{width:\"100%\",height:\"100%\",zIndex:0}})}connect_signals(){super.connect_signals(),this.connect(this.model.properties.code.change,(()=>this._update_code_from_model())),this.connect(this.model.properties.theme.change,(()=>this._update_theme())),this.connect(this.model.properties.language.change,(()=>this._update_language())),this.connect(this.model.properties.filename.change,(()=>this._update_filename())),this.connect(this.model.properties.print_margin.change,(()=>this._update_print_margin())),this.connect(this.model.properties.annotations.change,(()=>this._add_annotations())),this.connect(this.model.properties.readonly.change,(()=>{this._editor.setReadOnly(this.model.readonly)}))}render(){super.render(),this._container!==this.shadow_el.childNodes[0]&&this.shadow_el.append(this._container),this._container.textContent=this.model.code,this._editor=window.ace.edit(this._container),this._editor.renderer.attachToShadowRoot(),this._langTools=window.ace.require(\"ace/ext/language_tools\"),this._modelist=window.ace.require(\"ace/ext/modelist\"),this._editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,fontFamily:\"monospace\"}),this._update_theme(),this._update_filename(),this._update_language(),this._editor.setReadOnly(this.model.readonly),this._editor.setShowPrintMargin(this.model.print_margin),this._editor.on(\"change\",(()=>this._update_code_from_editor()))}_update_code_from_model(){this._editor&&this._editor.getValue()!=this.model.code&&this._editor.setValue(this.model.code)}_update_print_margin(){this._editor.setShowPrintMargin(this.model.print_margin)}_update_code_from_editor(){this._editor.getValue()!=this.model.code&&(this.model.code=this._editor.getValue())}_update_theme(){this._editor.setTheme(`ace/theme/${this.model.theme}`)}_update_filename(){if(this.model.filename){const e=this._modelist.getModeForPath(this.model.filename).mode;this.model.language=e.slice(9)}}_update_language(){null!=this.model.language&&this._editor.session.setMode(`ace/mode/${this.model.language}`)}_add_annotations(){this._editor.session.setAnnotations(this.model.annotations)}after_layout(){super.after_layout(),this._editor.resize()}}i.AcePlotView=h,h.__name__=\"AcePlotView\";class r extends d.HTMLBox{constructor(e){super(e)}}i.AcePlot=r,s=r,r.__name__=\"AcePlot\",r.__module__=\"panel.models.ace\",s.prototype.default_view=h,s.define((({Any:e,Array:t,Boolean:i,String:o,Nullable:n})=>({code:[o,\"\"],filename:[n(o),null],language:[o,\"\"],theme:[o,\"chrome\"],annotations:[t(e),[]],readonly:[i,!1],print_margin:[i,!1]}))),s.override({height:300,width:300})},\n \"35aaab0394\": function _(e,t,i,s,h){s();const a=e(\"@bokehjs/core/dom\"),l=e(\"@bokehjs/core/util/types\"),n=e(\"@bokehjs/models/widgets/widget\"),d=e(\"@bokehjs/models/layouts/layout_dom\");class r extends n.WidgetView{async lazy_initialize(){await super.lazy_initialize(),\"not_started\"!=this.provider.status&&\"loading\"!=this.provider.status||this.provider.ready.connect((()=>{this.contains_tex_string(this.model.text)&&this.render()}))}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.render()}))}has_math_disabled(){return this.model.disable_math||!this.contains_tex_string(this.model.text)}render(){super.render(),o(this.el,this.model),this.container=(0,a.div)(),o(this.container,this.model,!1),this.shadow_el.appendChild(this.container),\"failed\"!=this.provider.status&&\"loaded\"!=this.provider.status||(this._has_finished=!0)}}function o(e,t,i=!0){let s=null!=t.width?\"fixed\":\"fit\",h=null!=t.height?\"fixed\":\"fit\";const{sizing_mode:a,margin:n}=t;if(null!=a)if(\"fixed\"==a)s=h=\"fixed\";else if(\"stretch_both\"==a)s=h=\"max\";else if(\"stretch_width\"==a)s=\"max\";else if(\"stretch_height\"==a)h=\"max\";else switch(a){case\"scale_width\":s=\"max\",h=\"min\";break;case\"scale_height\":s=\"min\",h=\"max\";break;case\"scale_both\":s=\"max\",h=\"max\";break;default:throw new Error(\"unreachable\")}let d,r;i?(0,l.isArray)(n)?4===n.length?(r=n[0]+n[2],d=n[1]+n[3]):(r=2*n[0],d=2*n[1]):null==n?r=d=0:d=r=2*n:r=d=0,\"fixed\"==s&&t.width?e.style.width=t.width+\"px\":\"max\"==s&&(e.style.width=d?`calc(100% - ${d}px)`:\"100%\"),null!=t.min_width&&(e.style.minWidth=t.min_width+\"px\"),null!=t.max_width&&(e.style.maxWidth=t.max_width+\"px\"),\"fixed\"==h&&t.height?e.style.height=t.height+\"px\":\"max\"==h&&(e.style.height=r?`calc(100% - ${r}px)`:\"100%\"),null!=t.min_height&&(e.style.minHeight=t.min_height+\"px\"),null!=t.max_width&&(e.style.maxHeight=t.max_height+\"px\")}i.PanelMarkupView=r,r.__name__=\"PanelMarkupView\",i.set_size=o;class _ extends d.LayoutDOMView{render(){super.render(),o(this.el,this.model)}watch_stylesheets(){this._initialized_stylesheets={};for(const e of this._applied_stylesheets){const t=e.el;t instanceof HTMLLinkElement&&(this._initialized_stylesheets[t.href]=!1,t.addEventListener(\"load\",(()=>{this._initialized_stylesheets[t.href]=!0,Object.values(this._initialized_stylesheets).every(Boolean)&&this.style_redraw()})))}}style_redraw(){}get child_models(){return[]}}i.HTMLBoxView=_,_.__name__=\"HTMLBoxView\";class c extends d.LayoutDOM{constructor(e){super(e)}}i.HTMLBox=c,c.__name__=\"HTMLBox\"},\n \"78153b60aa\": function _(e,t,i,o,s){var l;o();const d=e(\"35aaab0394\");class u extends d.HTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,(()=>this.set_loop())),this.connect(this.model.properties.paused.change,(()=>this.set_paused())),this.connect(this.model.properties.time.change,(()=>this.set_time())),this.connect(this.model.properties.value.change,(()=>this.set_value())),this.connect(this.model.properties.volume.change,(()=>this.set_volume())),this.connect(this.model.properties.muted.change,(()=>this.set_muted())),this.connect(this.model.properties.autoplay.change,(()=>this.set_autoplay()))}render(){super.render(),this.audioEl=document.createElement(\"audio\"),this.audioEl.controls=!0,this.audioEl.src=this.model.value,this.audioEl.currentTime=this.model.time,this.audioEl.loop=this.model.loop,this.audioEl.muted=this.model.muted,this.audioEl.autoplay=this.model.autoplay,null!=this.model.volume?this.audioEl.volume=this.model.volume/100:this.model.volume=100*this.audioEl.volume,this.audioEl.onpause=()=>this.model.paused=!0,this.audioEl.onplay=()=>this.model.paused=!1,this.audioEl.ontimeupdate=()=>this.update_time(this),this.audioEl.onvolumechange=()=>this.update_volume(this),this.shadow_el.appendChild(this.audioEl),this.model.paused||this.audioEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.audioEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.audioEl.volume)}set_loop(){this.audioEl.loop=this.model.loop}set_muted(){this.audioEl.muted=this.model.muted}set_autoplay(){this.audioEl.autoplay=this.model.autoplay}set_paused(){!this.audioEl.paused&&this.model.paused&&this.audioEl.pause(),this.audioEl.paused&&!this.model.paused&&this.audioEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.audioEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.audioEl.currentTime=this.model.time)}set_value(){this.audioEl.src=this.model.value}}i.AudioView=u,u.__name__=\"AudioView\";class a extends d.HTMLBox{constructor(e){super(e)}}i.Audio=a,l=a,a.__name__=\"Audio\",a.__module__=\"panel.models.widgets\",l.prototype.default_view=u,l.define((({Any:e,Boolean:t,Number:i,Nullable:o})=>({loop:[t,!1],paused:[t,!0],muted:[t,!1],autoplay:[t,!1],time:[i,0],throttle:[i,250],value:[e,\"\"],volume:[o(i),null]})))},\n \"6df8bf1ac7\": function _(e,i,o,n,l){var t;n();const a=e(\"@bokehjs/core/view\"),r=e(\"@bokehjs/model\");class s extends a.View{initialize(){super.initialize(),null!=window.matchMedia&&(this.model.dark_mode=window.matchMedia(\"(prefers-color-scheme: dark)\").matches),this.model.device_pixel_ratio=window.devicePixelRatio,null!=navigator&&(this.model.language=navigator.language,this.model.webdriver=navigator.webdriver),this.model.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.model.timezone_offset=(new Date).getTimezoneOffset(),this._has_finished=!0,this.notify_finished()}}o.BrowserInfoView=s,s.__name__=\"BrowserInfoView\";class d extends r.Model{constructor(e){super(e)}}o.BrowserInfo=d,t=d,d.__name__=\"BrowserInfo\",d.__module__=\"panel.models.browser\",t.prototype.default_view=s,t.define((({Boolean:e,Nullable:i,Number:o,String:n})=>({dark_mode:[i(e),null],device_pixel_ratio:[i(o),null],language:[i(n),null],timezone:[i(n),null],timezone_offset:[i(o),null],webdriver:[i(e),null]})))},\n \"0863f96bc3\": function _(e,s,l,t,a){t();const o=e(\"tslib\");var d;const i=e(\"@bokehjs/models/layouts/column\"),h=o.__importStar(e(\"@bokehjs/core/dom\"));class n extends i.ColumnView{connect_signals(){super.connect_signals();const{active_header_background:e,children:s,collapsed:l,header_background:t,header_color:a,hide_header:o}=this.model.properties;this.on_change(s,(()=>this.render())),this.on_change(l,(()=>this._collapse())),this.on_change([a,o],(()=>this.render())),this.on_change([e,l,t],(()=>{const e=this.header_background;null!=e&&(this.child_views[0].el.style.backgroundColor=e,this.header_el.style.backgroundColor=e)}))}get header_background(){let e=this.model.header_background;return!this.model.collapsed&&this.model.active_header_background&&(e=this.model.active_header_background),e}render(){this.empty(),this._update_stylesheets(),this._update_css_classes(),this._apply_styles(),this._apply_visible(),this.class_list.add(...this.css_classes());const{button_css_classes:e,header_color:s,header_tag:l,header_css_classes:t}=this.model,a=this.header_background,o=this.child_views[0];let d;if(this.model.collapsible){this.button_el=h.createElement(\"button\",{type:\"button\",class:t});const s=h.createElement(\"div\",{class:e});s.innerHTML=this.model.collapsed?\"\\u25ba\":\"\\u25bc\",this.button_el.appendChild(s),this.button_el.style.backgroundColor=null!=a?a:\"\",o.el.style.backgroundColor=null!=a?a:\"\",this.button_el.appendChild(o.el),this.button_el.onclick=()=>this._toggle_button(),d=this.button_el}else d=h.createElement(l,{class:t}),d.style.backgroundColor=null!=a?a:\"\",d.appendChild(o.el);this.header_el=d,this.model.hide_header||(d.style.color=null!=s?s:\"\",this.shadow_el.appendChild(d),o.render(),o.after_render());for(const e of this.child_views.slice(1))this.model.collapsed||this.shadow_el.appendChild(e.el),e.render(),e.after_render()}async update_children(){await this.build_child_views(),this.render(),this.invalidate_layout()}_toggle_button(){this.model.collapsed=!this.model.collapsed}_collapse(){for(const e of this.child_views.slice(1))this.model.collapsed?this.shadow_el.removeChild(e.el):this.shadow_el.appendChild(e.el);this.button_el.children[0].innerHTML=this.model.collapsed?\"\\u25ba\":\"\\u25bc\",this.invalidate_layout()}_createElement(){return h.createElement(this.model.tag,{class:this.css_classes()})}}l.CardView=n,n.__name__=\"CardView\";class r extends i.Column{constructor(e){super(e)}}l.Card=r,d=r,r.__name__=\"Card\",r.__module__=\"panel.models.layout\",d.prototype.default_view=n,d.define((({Array:e,Boolean:s,Nullable:l,String:t})=>({active_header_background:[l(t),null],button_css_classes:[e(t),[]],collapsed:[s,!0],collapsible:[s,!0],header_background:[l(t),null],header_color:[l(t),null],header_css_classes:[e(t),[]],header_tag:[t,\"div\"],hide_header:[s,!1],tag:[t,\"div\"]})))},\n \"5819a59e86\": function _(e,t,s,n,i){var o;n();const c=e(\"@bokehjs/document\"),_=e(\"@bokehjs/core/view\"),l=e(\"@bokehjs/model\"),h=e(\"@bokehjs/protocol/message\"),a=e(\"@bokehjs/protocol/receiver\");s.comm_settings={debounce:!0};class r extends _.View{}s.CommManagerView=r,r.__name__=\"CommManagerView\";class d extends l.Model{constructor(e){super(e),this._document_listener=e=>this._document_changed(e)}initialize(){super.initialize(),this._receiver=new a.Receiver,this._event_buffer=[],this._blocked=!1,this._timeout=Date.now(),null!=window.PyViz&&window.PyViz.comm_manager?(this.ns=window.PyViz,this.ns.comm_manager.register_target(this.plot_id,this.comm_id,(e=>{for(const t of this.ns.shared_views.get(this.plot_id))t!==this&&t.msg_handler(e);this.msg_handler(e)})),this._client_comm=this.ns.comm_manager.get_client_comm(this.plot_id,this.client_comm_id,(e=>this.on_ack(e))),null==this.ns.shared_views&&(this.ns.shared_views=new Map),this.ns.shared_views.has(this.plot_id)?this.ns.shared_views.get(this.plot_id).push(this):this.ns.shared_views.set(this.plot_id,[this])):console.log(\"Could not find comm manager on window.PyViz, ensure the extension is loaded.\")}_doc_attached(){super._doc_attached(),null!=this.document&&this.document.on_change(this._document_listener)}_document_changed(e){e instanceof c.ModelChangedEvent&&!e.model.properties[e.attr].syncable||(this._event_buffer.push(e),s.comm_settings.debounce?(!this._blocked||Date.now()>this._timeout)&&(setTimeout((()=>this.process_events()),this.debounce),this._blocked=!0,this._timeout=Date.now()+this.timeout):this.process_events())}_extract_buffers(e,t){let s;if(e instanceof Array){s=[];for(const n of e)s.push(this._extract_buffers(n,t))}else if(e instanceof Object){s={};for(const n in e){if(\"buffer\"===n&&e[n]instanceof ArrayBuffer){s={id:Object.keys(t).length},t.push(e[n]);break}s[n]=this._extract_buffers(e[n],t)}}else s=e;return s}process_events(){if(null==this.document||null==this._client_comm)return;const e=this.document.create_json_patch(this._event_buffer);this._event_buffer=[];const t=Object.assign({},h.Message.create(\"PATCH-DOC\",{},e)),s=[];t.content=this._extract_buffers(t.content,s),this._client_comm.send(t,{},s);for(const t of this.ns.shared_views.get(this.plot_id))t!==this&&null!=t.document&&t.document.apply_json_patch(e,[],this.id)}disconnect_signals(){super.disconnect_signals(),this.ns.shared_views.shared_views.delete(this.plot_id)}on_ack(e){const t=e.metadata;this._event_buffer.length?(this._blocked=!0,this._timeout=Date.now()+this.timeout,this.process_events()):this._blocked=!1,\"Ready\"==t.msg_type&&t.content?console.log(\"Python callback returned following output:\",t.content):\"Error\"==t.msg_type&&console.log(\"Python failed with the following traceback:\",t.traceback)}msg_handler(e){const t=e.metadata,s=e.buffers,n=e.content.data,i=this.plot_id;if(\"Ready\"==t.msg_type)t.content?console.log(\"Python callback returned following output:\",t.content):\"Error\"==t.msg_type&&console.log(\"Python failed with the following traceback:\",t.traceback);else if(null!=i){let e=null;if(i in this.ns.plot_index&&null!=this.ns.plot_index[i]?e=this.ns.plot_index[i]:void 0!==window.Bokeh&&i in window.Bokeh.index&&(e=window.Bokeh.index[i]),null==e)return;null!=s&&s.length>0?this._receiver.consume(s[0].buffer):this._receiver.consume(n);const t=this._receiver.message;if(null!=t&&Object.keys(t.content).length>0&&null!=this.document){const e=t.content;this.document.apply_json_patch(e,t.buffers)}}}}s.CommManager=d,o=d,d.__name__=\"CommManager\",d.__module__=\"panel.models.comm_manager\",o.prototype.default_view=r,o.define((({Int:e,String:t,Nullable:s})=>({plot_id:[s(t),null],comm_id:[s(t),null],client_comm_id:[s(t),null],timeout:[e,5e3],debounce:[e,50]})))},\n \"9c8629b48f\": function _(e,t,s,o,i){var l;o();const d=e(\"@bokehjs/models/widgets/selectbox\");class n extends d.SelectView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.disabled_options.change,(()=>this._update_disabled_options()))}options_el(){let e=super.options_el();return e.forEach((e=>{this.model.disabled_options.includes(e.value)&&e.setAttribute(\"disabled\",\"true\")})),e}_update_disabled_options(){for(const e of this.input_el.options)this.model.disabled_options.includes(e.value)?e.setAttribute(\"disabled\",\"true\"):e.removeAttribute(\"disabled\")}}s.CustomSelectView=n,n.__name__=\"CustomSelectView\";class _ extends d.Select{constructor(e){super(e)}}s.CustomSelect=_,l=_,_.__name__=\"CustomSelect\",_.__module__=\"panel.models.widgets\",l.prototype.default_view=n,l.define((({Array:e,String:t})=>({disabled_options:[e(t),[]]})))},\n \"b1f71e1d72\": function _(t,e,i,o,s){var l,n,a;o();const r=t(\"@bokehjs/core/dom\"),d=t(\"@bokehjs/core/util/types\"),c=t(\"@bokehjs/core/build_views\"),h=t(\"@bokehjs/core/bokeh_events\"),u=t(\"@bokehjs/core/dom\"),m=t(\"@bokehjs/core/kinds\"),g=t(\"@bokehjs/models/sources/column_data_source\"),f=t(\"@bokehjs/models/widgets/tables\"),_=t(\"99a25e6992\"),p=t(\"5819a59e86\"),b=t(\"fd9108e30e\"),w=t(\"35aaab0394\");class y extends h.ModelEvent{constructor(t,e,i){super(),this.column=t,this.row=e,this.pre=i}get event_values(){return{model:this.origin,column:this.column,row:this.row,pre:this.pre}}}i.TableEditEvent=y,l=y,y.__name__=\"TableEditEvent\",l.prototype.event_name=\"table-edit\";class x extends h.ModelEvent{constructor(t,e){super(),this.column=t,this.row=e}get event_values(){return{model:this.origin,column:this.column,row:this.row}}}function v(t,e,i){for(const o of i)if(o[t]==e)return o;return null}function C(t,e,i,o=0){const s={};if(0==t.length)return s;const l=i[o];for(const n of t){const t=C(n._children,e,i,o+1);for(const e in t)(0,d.isArray)(t[e])?n[e]=t[e].reduce(((t,e)=>t+e),0)/t[e].length:n[e]=t[e];for(const t of e.slice(1)){const e=n[t.field];if(t.field in s){const i=s[t.field];\"min\"===l?s[t.field]=Math.min(e,i):\"max\"===l?s[t.field]=Math.max(e,i):\"sum\"===l?s[t.field]=e+i:\"mean\"===l&&((0,d.isArray)(s[t.field])?s[t.field].push(e):s[t.field]=[i,e])}else s[t.field]=e}}return s}function S(t,e,i,o){const s=[],l=e[0].field;for(const o of t){const t=o[i[0]];let n=v(l,t,s);null==n&&(n={_children:[]},n[l]=t,s.push(n));let a=n;const r={};for(const t of i.slice(1)){a=v(l,o[t],a._children),null==a&&(a={_children:[]},a[l]=o[t],n._children.push(a)),r[t]=n;for(const t of e.slice(1))a[t.field]=o[t];n=a}for(const t of e.slice(1))a[t.field]=o[t.field]}const n=[];for(const t of i)n.push(t in o?o[t]:\"sum\");return C(s,e,n),s}i.CellClickEvent=x,n=x,x.__name__=\"CellClickEvent\",n.prototype.event_name=\"cell-click\";const T=function(t,e,i,o,s,l,n){let a;a=0;const r={zone:new window.luxon.IANAZone(\"UTC\")};if(t=\"-9223372036854776\"==String(t)?window.luxon.DateTime.fromISO(\"invalid\"):window.luxon.DateTime.fromMillis(t,r),e=\"-9223372036854776\"==String(e)?window.luxon.DateTime.fromISO(\"invalid\"):window.luxon.DateTime.fromMillis(e,r),t.isValid){if(e.isValid)return t-e;a=1}else a=e.isValid?-1:0;return a*=-1,a},M=function(t,e,i,o){const s=t.getValue(),l={zone:new window.luxon.IANAZone(\"UTC\")};let n;n=\"NaN\"===s||null===s?null:window.luxon.DateTime.fromMillis(s,l).toFormat(\"yyyy-MM-dd\");const a=document.createElement(\"input\");function r(){const t=window.luxon.DateTime.fromFormat(a.value,\"yyyy-MM-dd\",l).toMillis();t!=n?i(t):o()}return a.setAttribute(\"type\",\"date\"),a.style.padding=\"4px\",a.style.width=\"100%\",a.style.boxSizing=\"border-box\",a.value=n,e((()=>{a.focus(),a.style.height=\"100%\"})),a.addEventListener(\"blur\",r),a.addEventListener(\"keydown\",(function(t){13==t.keyCode&&r(),27==t.keyCode&&o()})),a},k=function(t,e,i,o){const s=t.getValue(),l={zone:new window.luxon.IANAZone(\"UTC\")};let n;n=\"NaN\"===s||null===s?null:window.luxon.DateTime.fromMillis(s,l).toFormat(\"yyyy-MM-dd'T'T\");const a=document.createElement(\"input\");function r(){const t=window.luxon.DateTime.fromFormat(a.value,\"yyyy-MM-dd'T'T\",l).toMillis();t!=n?i(t):o()}return a.setAttribute(\"type\",\"datetime-local\"),a.style.padding=\"4px\",a.style.width=\"100%\",a.style.boxSizing=\"border-box\",a.value=n,e((()=>{a.focus(),a.style.height=\"100%\"})),a.addEventListener(\"blur\",r),a.addEventListener(\"keydown\",(function(t){13==t.keyCode&&r(),27==t.keyCode&&o()})),a};class z extends w.HTMLBoxView{constructor(){super(...arguments),this.columns=new Map,this._tabulator_cell_updating=!1,this._updating_page=!0,this._updating_sort=!1,this._selection_updating=!1,this._lastVerticalScrollbarTopPosition=0,this._applied_styles=!1,this._building=!1}connect_signals(){super.connect_signals();const t=this.model.properties,{configuration:e,layout:i,columns:o,groupby:s}=t;this.on_change([e,i,s],(0,_.debounce)((()=>this.invalidate_render()),20,!1)),this.on_change([o],(()=>{this.tabulator.setColumns(this.getColumns()),this.setHidden()})),this.connect(t.download.change,(()=>{const t=this.model.filename.endsWith(\".json\")?\"json\":\"csv\";this.tabulator.download(t,this.model.filename)})),this.connect(t.children.change,(()=>this.renderChildren())),this.connect(t.expanded.change,(()=>{for(const t of this.tabulator.rowManager.getRows())t.cells.length>0&&t.cells[0].layoutElement();for(const t of this.tabulator.rowManager.getRows())if(t.cells.length>0){const e=t.data._index,i=this.model.expanded.indexOf(e)<0?\"\\u25ba\":\"\\u25bc\";t.cells[1].element.innerText=i}})),this.connect(t.cell_styles.change,(()=>{this._applied_styles&&this.tabulator.redraw(!0),this.setStyles()})),this.connect(t.hidden_columns.change,(()=>{this.setHidden(),this.tabulator.redraw(!0)})),this.connect(t.page_size.change,(()=>this.setPageSize())),this.connect(t.page.change,(()=>{this._updating_page||this.setPage()})),this.connect(t.max_page.change,(()=>this.setMaxPage())),this.connect(t.frozen_rows.change,(()=>this.setFrozen())),this.connect(t.sorters.change,(()=>this.setSorters())),this.connect(this.model.source.properties.data.change,(()=>this.setData())),this.connect(this.model.source.streaming,(()=>this.addData())),this.connect(this.model.source.patching,(()=>{const t=this.model.source.selected.indices;this.updateOrAddData(),this.tabulator.rowManager.element.scrollTop=this._lastVerticalScrollbarTopPosition,this.model.source.selected.indices=t})),this.connect(this.model.source.selected.change,(()=>this.setSelection())),this.connect(this.model.source.selected.properties.indices.change,(()=>this.setSelection()))}get groupBy(){return!!this.model.groupby.length&&(t=>{const e=[];for(const i of this.model.groupby){const o=i+\": \"+t[i];e.push(o)}return e.join(\", \")})}get sorters(){const t=[];this.model.sorters.length&&t.push({column:\"_index\",dir:\"asc\"});for(const e of this.model.sorters.reverse())void 0===e.column&&(e.column=e.field),t.push(e);return t}invalidate_render(){this.tabulator.destroy(),this.tabulator=null,this.render()}redraw(){this._building||(null!=this.tabulator.columnManager.element&&this.tabulator.columnManager.redraw(!0),null!=this.tabulator.rowManager.renderer&&(this.tabulator.rowManager.redraw(!0),this.renderChildren(),this.setStyles()))}after_layout(){super.after_layout(),null!=this.tabulator&&this._initializing&&this.redraw(),this._initializing=!1}render(){super.render(),this._initializing=!0;const t=(0,u.div)({style:\"display: contents;\"}),e=(0,u.div)({class:\"pnx-tabulator\",style:\"width: 100%; height: 100%\"});t.appendChild(e),this.shadow_el.appendChild(t);let i=this.getConfiguration();this.tabulator=new Tabulator(e,i),this.watch_stylesheets(),this.init_callbacks()}style_redraw(){this._initializing||this._building||this.redraw()}tableInit(){this._building=!0;this.tabulator.modules.ajax.sendRequest=(t,e,i)=>this.requestPage(e.page,e.sort),this.tabulator.modules.page._parseRemoteData=()=>!1}init_callbacks(){this.tabulator.on(\"tableBuilding\",(()=>this.tableInit())),this.tabulator.on(\"tableBuilt\",(()=>this.tableBuilt())),this.tabulator.on(\"selectableCheck\",(t=>{const e=this.model.selectable_rows;return null==e||e.includes(t._row.data._index)})),this.tabulator.on(\"tooltips\",(t=>t.getColumn().getField()+\": \"+t.getValue())),this.tabulator.on(\"scrollVertical\",(0,_.debounce)((()=>{this.setStyles()}),50,!1)),this.tabulator.on(\"rowFormatter\",(t=>this._render_row(t))),this.tabulator.on(\"rowSelectionChanged\",((t,e)=>this.rowSelectionChanged(t,e))),this.tabulator.on(\"rowClick\",((t,e)=>this.rowClicked(t,e))),this.tabulator.on(\"cellEdited\",(t=>this.cellEdited(t))),this.tabulator.on(\"dataFiltering\",(t=>{this.model.filters=t})),this.tabulator.on(\"dataFiltered\",((t,e)=>{this._building||(0===e.length&&this.tabulator.rowManager.renderEmptyScroll(),this.updatePage(this.tabulator.getPage()))})),this.tabulator.on(\"pageLoaded\",(t=>{this.updatePage(t)})),this.tabulator.on(\"dataSorting\",(t=>{const e=[];for(const i of t)\"_index\"!==i.field&&e.push({field:i.field,dir:i.dir});\"remote\"!==this.model.pagination&&(this._updating_sort=!0,this.model.sorters=e,this._updating_sort=!1)}))}tableBuilt(){this._building=!1,this.setSelection(),this.renderChildren(),this.setStyles(),this.model.pagination&&(this.setMaxPage(),this.tabulator.setPage(this.model.page))}requestPage(t,e){return new Promise(((i,o)=>{try{if(null!=t&&null!=e){this._updating_sort=!0;const i=[];for(const t of e)\"_index\"!==t.field&&i.push({field:t.field,dir:t.dir});this.model.sorters=i,this._updating_sort=!1,this._updating_page=!0;try{this.model.page=t||1}finally{this._updating_page=!1}}i([])}catch(t){o(t)}}))}getLayout(){switch(this.model.layout){case\"fit_data\":return\"fitData\";case\"fit_data_fill\":return\"fitDataFill\";case\"fit_data_stretch\":return\"fitDataStretch\";case\"fit_data_table\":return\"fitDataTable\";case\"fit_columns\":return\"fitColumns\"}}getConfiguration(){let t=\"toggle\"===this.model.select_mode||NaN,e=Object.assign(Object.assign({},this.model.configuration),{index:\"_index\",nestedFieldSeparator:!1,movableColumns:!1,selectable:t,columns:this.getColumns(),initialSort:this.sorters,layout:this.getLayout(),pagination:null!=this.model.pagination,paginationMode:this.model.pagination,paginationSize:this.model.page_size,paginationInitialPage:1,groupBy:this.groupBy,frozenRows:t=>!!this.model.frozen_rows.length&&this.model.frozen_rows.includes(t._row.data._index)});\"remote\"===this.model.pagination&&(e.ajaxURL=\"http://panel.pyviz.org\",e.sortMode=\"remote\");const i=this.model.source;let o;return o=null===i||0===i.columns().length?[]:(0,b.transform_cds_to_records)(i,!0),e.dataTree&&(o=S(o,this.model.columns,this.model.indexes,this.model.aggregators)),Object.assign(Object.assign({},e),{data:o})}renderChildren(){new Promise((async t=>{const e=[];for(const t of this.model.expanded)this.model.children.has(t)&&e.push(this.model.children.get(t));await(0,c.build_views)(this._child_views,e,{parent:null}),t(null)})).then((()=>{for(const t of this.model.expanded){const e=this.tabulator.getRow(t);this._render_row(e)}}))}_render_row(t){var e;const i=null===(e=t._row)||void 0===e?void 0:e.data._index;if(!this.model.expanded.includes(i)||!this.model.children.has(i))return;const o=this.model.children.get(i),s=this._child_views.get(o);if(null==s)return;s._parent=this;const l=t.getElement();let n=l.children[l.children.length-1];if(\"bk\"===n.className){if(n.children.length)return}else n=null;if(null==n){const t=getComputedStyle(this.tabulator.element.children[1].children[0]).backgroundColor,e=\"-\"+l.style.paddingLeft;n=(0,u.div)({style:\"background-color: \"+t+\"; margin-left:\"+e})}l.appendChild(n),s.render_to(n)}_expand_render(t){const e=t._cell.row.data._index;return\"<i>\"+(this.model.expanded.indexOf(e)<0?\"\\u25ba\":\"\\u25bc\")+\"</i>\"}_update_expand(t){const e=t._cell.row.data._index,i=[...this.model.expanded],o=i.indexOf(e);if(o<0)i.push(e);else{const t=i.splice(o,1)[0];if(t in this.model.children){const e=this.model.children[t],i=this._child_views.get(e);void 0!==i&&null!=i.el&&(0,r.undisplay)(i.el)}}if(this.model.expanded=i,i.indexOf(e)<0)return;let s=!0;for(const t of this.model.expanded)if(!(t in this.model.children)){s=!1;break}s&&this.renderChildren()}getData(){let t=(0,b.transform_cds_to_records)(this.model.source,!0);return this.model.configuration.dataTree&&(t=S(t,this.model.columns,this.model.indexes,this.model.aggregators)),t}getColumns(){var t;this.columns=new Map;const e=null===(t=this.model.configuration)||void 0===t?void 0:t.columns;let i=[];if(i.push({field:\"_index\",frozen:!0,visible:!1}),null!=e)for(const t of e)if(null!=t.columns){const e=[];for(const i of t.columns)e.push(Object.assign({},i));i.push(Object.assign(Object.assign({},t),{columns:e}))}else if(\"expand\"===t.formatter){const t={hozAlign:\"center\",cellClick:(t,e)=>{this._update_expand(e)},formatter:t=>this._expand_render(t),width:40,frozen:!0};i.push(t)}else{const e=Object.assign({},t);\"rowSelection\"===e.formatter&&(e.cellClick=(t,e)=>{e.getRow().toggleSelect()}),i.push(e)}for(const t of this.model.columns){let o=null;if(null!=e)for(const e of i)if(null!=e.columns){for(const i of e.columns)if(t.field===i.field){o=i;break}if(null!=o)break}else if(t.field===e.field){o=e;break}if(null==o&&(o={field:t.field}),this.columns.set(t.field,o),null==o.title&&(o.title=t.title),null==o.width&&null!=t.width&&0!=t.width&&(o.width=t.width),null==o.formatter&&null!=t.formatter){const e=t.formatter.type;o.formatter=\"BooleanFormatter\"===e?\"tickCross\":e=>{const i=t.formatter.doFormat(e.getRow(),e,e.getValue(),null,null);if(\"HTMLTemplateFormatter\"===t.formatter.type)return i;const o=(0,u.div)();o.innerHTML=i;const s=o.children[0];return\"function(){return c.convert(arguments)}\"===s.innerHTML?\"\":s}}\"timestamp\"==o.sorter&&(o.sorter=T),void 0===o.sorter&&(o.sorter=\"string\");const s=t.editor,l=s.type;null!=o.editor?\"date\"===o.editor?o.editor=M:\"datetime\"===o.editor&&(o.editor=k):\"StringEditor\"===l?s.completions.length>0?(o.editor=\"list\",o.editorParams={values:s.completions,autocomplete:!0,listOnEmpty:!0}):o.editor=\"input\":\"TextEditor\"===l?o.editor=\"textarea\":\"IntEditor\"===l||\"NumberEditor\"===l?(o.editor=\"number\",o.editorParams={step:s.step},o.validator=\"IntEditor\"===l?\"integer\":\"numeric\"):\"CheckboxEditor\"===l?o.editor=\"tickCross\":\"DateEditor\"===l?o.editor=M:\"SelectEditor\"===l?(o.editor=\"list\",o.editorParams={values:s.options}):null!=s&&null!=s.default_view&&(o.editor=(e,i,o,s)=>{this.renderEditor(t,e,i,o,s)}),o.visible=0!=o.visible&&!this.model.hidden_columns.includes(t.field),o.editable=()=>this.model.editable&&null!=s.default_view,o.headerFilter&&\"boolean\"==typeof o.headerFilter&&\"string\"==typeof o.editor&&(o.headerFilter=o.editor,o.headerFilterParams=o.editorParams);for(const t of this.model.sorters)o.field===t.field&&(o.headerSortStartingDir=t.dir);o.cellClick=(e,i)=>{const o=i.getData()._index,s=new x(t.field,o);this.model.trigger_event(s)},null==e&&i.push(o)}for(const t in this.model.buttons){const e={formatter:()=>this.model.buttons[t],hozAlign:\"center\",cellClick:(e,i)=>{const o=i.getData()._index,s=new x(t,o);this.model.trigger_event(s)}};i.push(e)}return i}renderEditor(t,e,i,o,s){const l=t.editor,n=new l.default_view({column:t,model:l,parent:this,container:e._cell.element});return n.initialize(),n.connect_signals(),i((()=>{n.setValue(e.getValue())})),n.inputEl.addEventListener(\"input\",(()=>{const t=n.serializeValue(),i=e.getValue(),l=n.validate();l.valid||s(l.msg),null!=i&&typeof t!=typeof i?s(\"Mismatching type\"):o(n.serializeValue())})),n.inputEl}setData(){const t=this.getData();null!=this.model.pagination?this.tabulator.rowManager.setData(t,!0,!1):this.tabulator.setData(t),this.postUpdate()}addData(){const t=this.tabulator.rowManager.getRows(),e=t[t.length-1],i=(null==e?void 0:e.data._index)||0;this.setData(),this.postUpdate(),this.model.follow&&e&&this.tabulator.scrollToRow(i,\"top\",!1)}postUpdate(){this.setSelection()}updateOrAddData(){if(this._tabulator_cell_updating)return;let t=(0,b.transform_cds_to_records)(this.model.source,!0);this.tabulator.setData(t),this.postUpdate()}setFrozen(){for(const t of this.model.frozen_rows)this.tabulator.getRow(t).freeze()}updatePage(t){\"local\"===this.model.pagination&&this.model.page!==t&&(this._updating_page=!0,this.model.page=t,this._updating_page=!1,this.setStyles())}setGroupBy(){this.tabulator.setGroupBy(this.groupBy)}setSorters(){this._updating_sort||this.tabulator.setSort(this.sorters)}setStyles(){const t=this.model.cell_styles.data;if(null!=this.tabulator&&0!=this.tabulator.getDataCount()&&t.size){this._applied_styles=!1;for(const e of t.keys()){const i=t.get(e),o=this.tabulator.getRow(e);if(!o)continue;const s=o._row.cells;for(const t of i.keys()){const e=i.get(t),o=s[t];if(null==o||!e.length)continue;const l=o.element;for(const t of e){let e,i;if((0,d.isArray)(t))[e,i]=t;else{if(!t.includes(\":\"))continue;[e,i]=t.split(\":\")}l.style.setProperty(e,i.trimLeft()),this._applied_styles=!0}}}}}setHidden(){for(const t of this.tabulator.getColumns()){const e=t._column;\"_index\"==e.field||this.model.hidden_columns.includes(e.field)?t.hide():t.show()}}setMaxPage(){this.tabulator.setMaxPage(this.model.max_page),this.tabulator.modules.page.pagesElement&&this.tabulator.modules.page._setPageButtons()}setPage(){this.tabulator.setPage(Math.min(this.model.max_page,this.model.page)),\"local\"===this.model.pagination&&(this.renderChildren(),this.setStyles())}setPageSize(){this.tabulator.setPageSize(this.model.page_size),\"local\"===this.model.pagination&&(this.renderChildren(),this.setStyles())}setSelection(){if(null==this.tabulator||this._selection_updating)return;const t=this.model.source.selected.indices,e=this.tabulator.getSelectedData().map((t=>t._index));if(JSON.stringify(t)!=JSON.stringify(e)){this._selection_updating=!0,this.tabulator.deselectRow(),this.tabulator.selectRow(t);for(const e of t){this.tabulator.rowManager.findRow(e)&&this.tabulator.scrollToRow(e,\"center\",!1).catch((()=>{}))}this._selection_updating=!1}}rowClicked(t,e){var i;if(this._selection_updating||this._initializing||\"string\"==typeof this.model.select_mode||!1===this.model.select_mode||this.model.configuration.dataTree||\"\\u25ba\"===(null===(i=t.srcElement)||void 0===i?void 0:i.innerText))return;let o=[];const s=this.model.source.selected,l=e._row.data._index;if(t.ctrlKey||t.metaKey)o=[...this.model.source.selected.indices];else if(t.shiftKey&&s.indices.length){const t=s.indices[s.indices.length-1];if(l>t)for(let e=t;e<l;e++)o.push(e);else for(let e=t;e>l;e--)o.push(e)}if(o.indexOf(l)<0?o.push(l):o.splice(o.indexOf(l),1),\"number\"==typeof this.model.select_mode)for(;o.length>this.model.select_mode;)o.shift();const n=this._filter_selected(o);this.tabulator.deselectRow(),this.tabulator.selectRow(n),this._selection_updating=!0,s.indices=n,this._selection_updating=!1}_filter_selected(t){const e=[];for(const i of t)(null==this.model.selectable_rows||this.model.selectable_rows.indexOf(i)>=0)&&e.push(i);return e}rowSelectionChanged(t,e){if(this._selection_updating||this._initializing||\"boolean\"==typeof this.model.select_mode||\"number\"==typeof this.model.select_mode||this.model.configuration.dataTree)return;const i=t.map((t=>t._index)),o=this._filter_selected(i);this._selection_updating=i.length===o.length,this.model.source.selected.indices=o,this._selection_updating=!1}cellEdited(t){const e=t._cell.column.field,i=this.columns.get(e),o=t.getData()._index,s=t._cell.value;if(\"numeric\"!==i.validator||\"\"!==s){this._tabulator_cell_updating=!0,p.comm_settings.debounce=!1,this.model.trigger_event(new y(e,o,!0));try{this.model.source.patch({[e]:[[o,s]]})}finally{p.comm_settings.debounce=!0,this._tabulator_cell_updating=!1}this.model.trigger_event(new y(e,o,!1)),this.tabulator.scrollToRow(o,\"top\",!1)}else t.setValue(NaN,!0)}}i.DataTabulatorView=z,z.__name__=\"DataTabulatorView\",i.TableLayout=(0,m.Enum)(\"fit_data\",\"fit_data_fill\",\"fit_data_stretch\",\"fit_data_table\",\"fit_columns\");class D extends w.HTMLBox{constructor(t){super(t)}}i.DataTabulator=D,a=D,D.__name__=\"DataTabulator\",D.__module__=\"panel.models.tabulator\",a.prototype.default_view=z,a.define((({Any:t,Array:e,Boolean:o,Nullable:s,Number:l,Ref:n,String:a})=>({aggregators:[t,{}],buttons:[t,{}],children:[t,{}],configuration:[t,{}],columns:[e(n(f.TableColumn)),[]],download:[o,!1],editable:[o,!0],expanded:[e(l),[]],filename:[a,\"table.csv\"],filters:[e(t),[]],follow:[o,!0],frozen_rows:[e(l),[]],groupby:[e(a),[]],hidden_columns:[e(a),[]],indexes:[e(a),[]],layout:[i.TableLayout,\"fit_data\"],max_page:[l,0],pagination:[s(a),null],page:[l,0],page_size:[l,0],select_mode:[t,!0],selectable_rows:[s(e(l)),null],source:[n(g.ColumnDataSource)],sorters:[e(t),[]],cell_styles:[t,{}]})))},\n \"99a25e6992\": function _(n,l,u,t,e){function o(n,l,u){var t,e,o,a,r;function i(){var c=Date.now()-a;c<l&&c>=0?t=setTimeout(i,l-c):(t=null,u||(r=n.apply(o,e),o=e=null))}null==l&&(l=100);var c=function(){o=this,e=arguments,a=Date.now();var c=u&&!t;return t||(t=setTimeout(i,l)),c&&(r=n.apply(o,e),o=e=null),r};return c.clear=function(){t&&(clearTimeout(t),t=null)},c.flush=function(){t&&(r=n.apply(o,e),o=e=null,clearTimeout(t),t=null)},c}o.debounce=o,l.exports=o},\n \"fd9108e30e\": function _(n,t,e,o,l){o(),e.transform_cds_to_records=function(n,t=!1,e=0){const o=[],l=n.columns(),r=n.get_length();if(0===l.length||null===r)return[];for(let c=e;c<r;c++){const e={};for(const t of l){let o=n.get_array(t);const l=null==o[0]||null==o[0].shape?null:o[0].shape;null!=l&&l.length>1&&\"number\"==typeof l[0]?e[t]=o.slice(c*l[1],c*l[1]+l[1]):e[t]=o[c]}t&&(e._index=c),o.push(e)}return o},e.dict_to_records=function(n,t=!0){for(let e=0;e<n.index.length;e++){const o={};for(const l of n)(t||\"index\"!==l)&&(o[l]=n[l][e])}return[]}},\n \"2114fa70c6\": function _(e,t,i,n,s){n();const o=e(\"tslib\");var l;const a=o.__importDefault(e(\"1156ddcec2\")),r=e(\"@bokehjs/models/widgets/input_widget\"),d=e(\"@bokehjs/core/dom\"),c=e(\"@bokehjs/core/enums\"),h=e(\"@bokehjs/core/util/types\"),m=o.__importStar(e(\"@bokehjs/styles/widgets/inputs.css\")),u=o.__importDefault(e(\"@bokehjs/styles/widgets/flatpickr.css\"));function _(e){const t=[];for(const i of e)if((0,h.isString)(i))t.push(i);else{const[e,n]=i;t.push({from:e,to:n})}return t}class p extends r.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:i,disabled_dates:n,enabled_dates:s,inline:o,enable_time:l,enable_seconds:a,military_time:r,date_format:d,mode:c}=this.model.properties;this.connect(e.change,(()=>{var e;return this.model.value?null===(e=this._picker)||void 0===e?void 0:e.setDate(this.model.value):this._clear()})),this.connect(t.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"minDate\",this.model.min_date)})),this.connect(i.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"maxDate\",this.model.max_date)})),this.connect(n.change,(()=>{var e;const{disabled_dates:t}=this.model;null===(e=this._picker)||void 0===e||e.set(\"disable\",null!=t?_(t):void 0)})),this.connect(s.change,(()=>{var e;const{enabled_dates:t}=this.model;null===(e=this._picker)||void 0===e||e.set(\"enable\",null!=t?_(t):void 0)})),this.connect(o.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"inline\",this.model.inline)})),this.connect(l.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"enableTime\",this.model.enable_time)})),this.connect(a.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"enableSeconds\",this.model.enable_seconds)})),this.connect(r.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"time_24hr\",this.model.military_time)})),this.connect(c.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"mode\",this.model.mode)})),this.connect(d.change,(()=>{var e;return null===(e=this._picker)||void 0===e?void 0:e.set(\"dateFormat\",this.model.date_format)}))}remove(){var e;null===(e=this._picker)||void 0===e||e.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),u.default]}render(){if(null!=this._picker)return;super.render(),this.input_el=(0,d.input)({type:\"text\",class:m.input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el);const e={appendTo:this.group_el,positionElement:this.input_el,defaultDate:this.model.value,inline:this.model.inline,position:this._position.bind(this),enableTime:this.model.enable_time,enableSeconds:this.model.enable_seconds,time_24hr:this.model.military_time,dateFormat:this.model.date_format,mode:this.model.mode,onClose:(e,t,i)=>this._on_close(e,t,i)},{min_date:t,max_date:i,disabled_dates:n,enabled_dates:s}=this.model;null!=t&&(e.minDate=t),null!=i&&(e.maxDate=i),null!=n&&(e.disable=_(n)),null!=s&&(e.enable=_(s)),this._picker=(0,a.default)(this.input_el,e),this._picker.maxDateHasTime=!0,this._picker.minDateHasTime=!0}_clear(){var e;null===(e=this._picker)||void 0===e||e.clear(),this.model.value=null}_on_close(e,t,i){(\"range\"!=this.model.mode||t.includes(\"to\"))&&(this.model.value=t,this.change_input())}_position(e,t){const i=null!=t?t:e._positionElement,n=[...e.calendarContainer.children].reduce(((e,t)=>e+(0,d.bounding_box)(t).height),0),s=e.calendarContainer.offsetWidth,o=this.model.position.split(\" \"),l=o[0],a=o.length>1?o[1]:null,r=i.offsetTop,c=i.offsetTop+i.offsetHeight,h=i.offsetLeft,m=i.offsetLeft+i.offsetWidth,u=i.offsetWidth,_=window.innerHeight-c,p=\"above\"===l||\"below\"!==l&&_<n&&r>n,f=e.config.appendTo?r+(p?-n-2:i.offsetHeight+2):window.scrollY+r+(p?-n-2:i.offsetHeight+2);if(e.calendarContainer.classList.toggle(\"arrowTop\",!p),e.calendarContainer.classList.toggle(\"arrowBottom\",p),e.config.inline)return;let g=window.scrollX+h,v=!1,b=!1;\"center\"===a?(g-=(s-u)/2,v=!0):\"right\"===a&&(g-=s-u,b=!0),e.calendarContainer.classList.toggle(\"arrowLeft\",!v&&!b),e.calendarContainer.classList.toggle(\"arrowCenter\",v),e.calendarContainer.classList.toggle(\"arrowRight\",b);const k=window.document.body.offsetWidth-(window.scrollX+m),w=g+s>window.document.body.offsetWidth,y=k+s>window.document.body.offsetWidth;if(e.calendarContainer.classList.toggle(\"rightMost\",w),!e.config.static)if(e.calendarContainer.style.top=`${f}px`,w)if(y){const t=this.shadow_el.styleSheets[0],i=window.document.body.offsetWidth,n=Math.max(0,i/2-s/2),o=\".flatpickr-calendar.centerMost:before\",l=\".flatpickr-calendar.centerMost:after\",a=t.cssRules.length,r=`{left:${h}px;right:auto;}`;e.calendarContainer.classList.toggle(\"rightMost\",!1),e.calendarContainer.classList.toggle(\"centerMost\",!0),t.insertRule(`${o},${l}${r}`,a),e.calendarContainer.style.left=`${n}px`,e.calendarContainer.style.right=\"auto\"}else e.calendarContainer.style.left=\"auto\",e.calendarContainer.style.right=`${k}px`;else e.calendarContainer.style.left=`${g}px`,e.calendarContainer.style.right=\"auto\"}}i.DatetimePickerView=p,p.__name__=\"DatetimePickerView\";class f extends r.InputWidget{constructor(e){super(e)}}i.DatetimePicker=f,l=f,f.__name__=\"DatetimePicker\",f.__module__=\"panel.models.datetime_picker\",l.prototype.default_view=p,l.define((({Boolean:e,String:t,Array:i,Tuple:n,Or:s,Nullable:o})=>{const l=i(s(t,n(t,t)));return{value:[o(t),null],min_date:[o(t),null],max_date:[o(t),null],disabled_dates:[o(l),null],enabled_dates:[o(l),null],position:[c.CalendarPosition,\"auto\"],inline:[e,!1],enable_time:[e,!0],enable_seconds:[e,!0],military_time:[e,!0],date_format:[t,\"Y-m-d H:i:S\"],mode:[t,\"single\"]}}))},\n \"1156ddcec2\": function _(e,t,n,a,i){a();const o=e(\"tslib\");var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},l=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a};const c=e(\"651d495396\"),s=o.__importDefault(e(\"3bfa124fda\")),d=e(\"15458073ce\"),u=e(\"6b6749c6cf\"),f=e(\"1bb8c967d1\"),m=e(\"3d14787c35\");e(\"6f45019dc1\");var g=300;function p(e,t){var n={config:r(r({},c.defaults),v.defaultConfig),l10n:s.default};function a(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function i(e){return e.bind(n)}function o(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility=\"hidden\",n.calendarContainer.style.display=\"block\"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+\"px\",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+\"px\",n.calendarContainer.style.removeProperty(\"visibility\"),n.calendarContainer.style.removeProperty(\"display\")}}))}function p(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||(0,f.compareDates)(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),a=(0,f.getDefaultHours)(n.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&\"blur\"!==e.type&&function(e){e.preventDefault();var t=\"keydown\"===e.type,a=(0,u.getEventTarget)(e),i=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(i.getAttribute(\"min\")),r=parseFloat(i.getAttribute(\"max\")),l=parseFloat(i.getAttribute(\"step\")),c=parseInt(i.value,10),s=e.delta||(t?38===e.which?1:-1:0),f=c+l*s;if(void 0!==i.value&&2===i.value.length){var m=i===n.hourElement,g=i===n.minuteElement;f<o?(f=r+f+(0,d.int)(!m)+((0,d.int)(m)&&(0,d.int)(!n.amPM)),g&&x(void 0,-1,n.hourElement)):f>r&&(f=i===n.hourElement?f-r-(0,d.int)(!n.amPM):o,g&&x(void 0,1,n.hourElement)),n.amPM&&m&&(1===l?f+c===23:Math.abs(f-c)>l)&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]),i.value=(0,d.pad)(f)}}(e);var i=n._input.value;h(),se(),n._input.value!==i&&n._debouncedChange()}function h(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,a=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=a,t=n.amPM.textContent,a=e%12+12*(0,d.int)(t===n.l10n.amPM[1]));var r=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.minDate,!0),l=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var c=(0,f.calculateSecondsSinceMidnight)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),s=(0,f.calculateSecondsSinceMidnight)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),u=(0,f.calculateSecondsSinceMidnight)(a,i,o);if(u>s&&u<c){var m=(0,f.parseSeconds)(c);a=m[0],i=m[1],o=m[2]}}else{if(l){var g=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(a=Math.min(a,g.getHours()))===g.getHours()&&(i=Math.min(i,g.getMinutes())),i===g.getMinutes()&&(o=Math.min(o,g.getSeconds()))}if(r){var p=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(a=Math.max(a,p.getHours()))===p.getHours()&&i<p.getMinutes()&&(i=p.getMinutes()),i===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}C(a,i,o)}}function D(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&C(t.getHours(),t.getMinutes(),t.getSeconds())}function C(e,t,a){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,a||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=(0,d.pad)(n.config.time_24hr?e:(12+e)%12+12*(0,d.int)(e%12==0)),n.minuteElement.value=(0,d.pad)(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=(0,d.pad)(a)))}function b(e){var t=(0,u.getEventTarget)(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||\"Enter\"===e.key&&!/[^\\d]/.test(n.toString()))&&R(n)}function M(e,t,a,i){return t instanceof Array?t.forEach((function(t){return M(e,t,a,i)})):e instanceof Array?e.forEach((function(e){return M(e,t,a,i)})):(e.addEventListener(t,a,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,a,i)}}))}function y(){ie(\"onChange\")}function w(e,t){var a=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,o=n.currentMonth;try{void 0!==a&&(n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth())}catch(e){e.message=\"Invalid date supplied: \"+a,n.config.errorHandler(e)}t&&n.currentYear!==i&&(ie(\"onYearChange\"),N()),!t||n.currentYear===i&&n.currentMonth===o||ie(\"onMonthChange\"),n.redraw()}function E(e){var t=(0,u.getEventTarget)(e);~t.className.indexOf(\"arrow\")&&x(e,t.classList.contains(\"arrowUp\")?1:-1)}function x(e,t,n){var a=e&&(0,u.getEventTarget)(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=oe(\"increment\");o.delta=t,i&&i.dispatchEvent(o)}function k(e,t,a,i){var o=W(t,!0),r=(0,u.createElement)(\"span\",e,t.getDate().toString());return r.dateObj=t,r.$i=i,r.setAttribute(\"aria-label\",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf(\"hidden\")&&0===(0,f.compareDates)(t,n.now)&&(n.todayDateElem=r,r.classList.add(\"today\"),r.setAttribute(\"aria-current\",\"date\")),o?(r.tabIndex=-1,re(t)&&(r.classList.add(\"selected\"),n.selectedDateElem=r,\"range\"===n.config.mode&&((0,u.toggleClass)(r,\"startRange\",n.selectedDates[0]&&0===(0,f.compareDates)(t,n.selectedDates[0],!0)),(0,u.toggleClass)(r,\"endRange\",n.selectedDates[1]&&0===(0,f.compareDates)(t,n.selectedDates[1],!0)),\"nextMonthDay\"===e&&r.classList.add(\"inRange\")))):r.classList.add(\"flatpickr-disabled\"),\"range\"===n.config.mode&&function(e){return!(\"range\"!==n.config.mode||n.selectedDates.length<2)&&((0,f.compareDates)(e,n.selectedDates[0])>=0&&(0,f.compareDates)(e,n.selectedDates[1])<=0)}(t)&&!re(t)&&r.classList.add(\"inRange\"),n.weekNumbers&&1===n.config.showMonths&&\"prevMonthDay\"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML(\"beforeend\",\"<span class='flatpickr-day'>\"+n.config.getWeek(t)+\"</span>\"),ie(\"onDayCreate\",r),r}function T(e){e.focus(),\"range\"===n.config.mode&&J(e)}function _(e){for(var t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1,i=t;i!=a;i+=e)for(var o=n.daysContainer.children[i],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf(\"hidden\")&&W(s.dateObj))return s}}function I(e,t){var i=a(),o=B(i||document.body),r=void 0!==e?e:o?i:void 0!==n.selectedDateElem&&B(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&B(n.todayDateElem)?n.todayDateElem:_(t>0?1:-1);void 0===r?n._input.focus():o?function(e,t){for(var a=-1===e.className.indexOf(\"Month\")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,o=t>0?1:-1,r=a-n.currentMonth;r!=i;r+=o)for(var l=n.daysContainer.children[r],c=a-n.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d<s&&d!=(t>0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf(\"hidden\")&&W(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return T(u)}n.changeMonth(o),I(_(o),0)}(r,t):T(r)}function S(e,t){for(var a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=n.config.showMonths>1,c=l?\"prevMonthDay hidden\":\"prevMonthDay\",s=l?\"nextMonthDay hidden\":\"nextMonthDay\",d=i+1-a,f=0;d<=i;d++,f++)r.appendChild(k(\"flatpickr-day \"+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(k(\"flatpickr-day\",new Date(e,t,d),0,f));for(var m=o+1;m<=42-a&&(1===n.config.showMonths||f%7!=0);m++,f++)r.appendChild(k(\"flatpickr-day \"+s,new Date(e,t+1,m%o),0,f));var g=(0,u.createElement)(\"div\",\"dayContainer\");return g.appendChild(r),g}function O(){if(void 0!==n.daysContainer){(0,u.clearNode)(n.daysContainer),n.weekNumbers&&(0,u.clearNode)(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),e.appendChild(S(a.getFullYear(),a.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,\"range\"===n.config.mode&&1===n.selectedDates.length&&J()}}function N(){if(!(n.config.showMonths>1||\"dropdown\"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML=\"\";for(var t=0;t<12;t++)if(e(t)){var a=(0,u.createElement)(\"option\",\"flatpickr-monthDropdown-month\");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=(0,m.monthToStr)(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}}function A(){var e,t=(0,u.createElement)(\"div\",\"flatpickr-month\"),a=window.document.createDocumentFragment();n.config.showMonths>1||\"static\"===n.config.monthSelectorType?e=(0,u.createElement)(\"span\",\"cur-month\"):(n.monthsDropdownContainer=(0,u.createElement)(\"select\",\"flatpickr-monthDropdown-months\"),n.monthsDropdownContainer.setAttribute(\"aria-label\",n.l10n.monthAriaLabel),M(n.monthsDropdownContainer,\"change\",(function(e){var t=(0,u.getEventTarget)(e),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),ie(\"onMonthChange\")})),N(),e=n.monthsDropdownContainer);var i=(0,u.createNumberInput)(\"cur-year\",{tabindex:\"-1\"}),o=i.getElementsByTagName(\"input\")[0];o.setAttribute(\"aria-label\",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute(\"min\",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute(\"max\",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var r=(0,u.createElement)(\"div\",\"flatpickr-current-month\");return r.appendChild(e),r.appendChild(i),a.appendChild(r),t.appendChild(a),{container:t,yearElement:o,monthElement:e}}function P(){(0,u.clearNode)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=A();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?(0,u.clearNode)(n.weekdayContainer):n.weekdayContainer=(0,u.createElement)(\"div\",\"flatpickr-weekdays\");for(var e=n.config.showMonths;e--;){var t=(0,u.createElement)(\"div\",\"flatpickr-weekdaycontainer\");n.weekdayContainer.appendChild(t)}return F(),n.weekdayContainer}function F(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=l(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=l(t.splice(e,t.length),t.splice(0,e)));for(var a=n.config.showMonths;a--;)n.weekdayContainer.children[a].innerHTML=\"\\n <span class='flatpickr-weekday'>\\n \"+t.join(\"</span><span class='flatpickr-weekday'>\")+\"\\n </span>\\n \"}}function j(e,t){void 0===t&&(t=!0);var a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ie(\"onYearChange\"),N()),O(),ie(\"onMonthChange\"),le())}function L(e){return n.calendarContainer.contains(e)}function H(e){if(n.isOpen&&!n.config.inline){var t=(0,u.getEventTarget)(e),a=L(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!a&&!L(e.relatedTarget),o=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&\"\"!==n.input.value&&void 0!==n.input.value&&p(),n.close(),n.config&&\"range\"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function R(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,a=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),a&&(n.redraw(),ie(\"onYearChange\"),N())}}function W(e,t){var a;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&(0,f.compareDates)(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&(0,f.compareDates)(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,r=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable,l=0,c=void 0;l<r.length;l++){if(\"function\"==typeof(c=r[l])&&c(i))return o;if(c instanceof Date&&void 0!==i&&c.getTime()===i.getTime())return o;if(\"string\"==typeof c){var s=n.parseDate(c,void 0,!0);return s&&s.getTime()===i.getTime()?o:!o}if(\"object\"==typeof c&&void 0!==i&&c.from&&c.to&&i.getTime()>=c.from.getTime()&&i.getTime()<=c.to.getTime())return o}return!o}function B(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf(\"hidden\")&&-1===e.className.indexOf(\"flatpickr-disabled\")&&n.daysContainer.contains(e))}function K(e){var t=e.target===n._input,a=n._input.value.trimEnd()!==ce();!t||!a||e.relatedTarget&&L(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function q(t){var i=(0,u.getEventTarget)(t),o=n.config.wrap?e.contains(i):i===n._input,r=n.config.allowInput,l=n.isOpen&&(!r||!o),c=n.config.inline&&o&&!r;if(13===t.keyCode&&o){if(r)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(L(i)||l||c){var s=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:s?(t.preventDefault(),p(),G()):Z(t);break;case 27:t.preventDefault(),G();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var d=a();if(void 0!==n.daysContainer&&(!1===r||d&&B(d))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),j(f),I(_(1),0)):I(void 0,f)}}break;case 38:case 40:t.preventDefault();var m=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),R(n.currentYear-m),I(_(1),0)):s||I(void 0,7*m):i===n.currentYearElement?R(n.currentYear-m):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),p(t),n._debouncedChange());break;case 9:if(s){var g=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),v=g.indexOf(i);if(-1!==v){var D=g[v+(t.shiftKey?-1:1)];t.preventDefault(),(D||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],h(),se();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],h(),se()}(o||L(i))&&ie(\"onKeyDown\",t)}function J(e,t){if(void 0===t&&(t=\"flatpickr-day\"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains(\"flatpickr-disabled\"))){for(var a=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(a,n.selectedDates[0].getTime()),r=Math.max(a,n.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;d<r;d+=f.duration.DAY)W(new Date(d),!0)||(l=l||d>o&&d<r,d<i&&(!c||d>c)?c=d:d>i&&(!s||d<s)&&(s=d));Array.from(n.rContainer.querySelectorAll(\"*:nth-child(-n+\"+n.config.showMonths+\") > .\"+t)).forEach((function(t){var o=t.dateObj.getTime(),r=c>0&&o<c||s>0&&o>s;if(r)return t.classList.add(\"notAllowed\"),void[\"inRange\",\"startRange\",\"endRange\"].forEach((function(e){t.classList.remove(e)}));l&&!r||([\"startRange\",\"inRange\",\"endRange\",\"notAllowed\"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(a<=n.selectedDates[0].getTime()?\"startRange\":\"endRange\"),i<a&&o===i?t.classList.add(\"startRange\"):i>a&&o===i&&t.classList.add(\"endRange\"),o>=c&&(0===s||o<=s)&&(0,f.isBetween)(o,i,a)&&t.classList.add(\"inRange\")))}))}}function U(){!n.isOpen||n.config.static||n.config.inline||X()}function $(e){return function(t){var a=n.config[\"_\"+e+\"Date\"]=n.parseDate(t,n.config.dateFormat),i=n.config[\"_\"+(\"min\"===e?\"max\":\"min\")+\"Date\"];void 0!==a&&(n[\"min\"===e?\"minDateHasTime\":\"maxDateHasTime\"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return W(e)})),n.selectedDates.length||\"min\"!==e||D(a),se()),n.daysContainer&&(z(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==a&&i.getFullYear()===a.getFullYear())}}function Q(){return n.config.wrap?e.querySelector(\"[data-input]\"):e}function V(){\"object\"!=typeof n.config.locale&&void 0===v.l10ns[n.config.locale]&&n.config.errorHandler(new Error(\"flatpickr: invalid locale \"+n.config.locale)),n.l10n=r(r({},v.l10ns.default),\"object\"==typeof n.config.locale?n.config.locale:\"default\"!==n.config.locale?v.l10ns[n.config.locale]:void 0),m.tokenRegex.D=\"(\"+n.l10n.weekdays.shorthand.join(\"|\")+\")\",m.tokenRegex.l=\"(\"+n.l10n.weekdays.longhand.join(\"|\")+\")\",m.tokenRegex.M=\"(\"+n.l10n.months.shorthand.join(\"|\")+\")\",m.tokenRegex.F=\"(\"+n.l10n.months.longhand.join(\"|\")+\")\",m.tokenRegex.K=\"(\"+n.l10n.amPM[0]+\"|\"+n.l10n.amPM[1]+\"|\"+n.l10n.amPM[0].toLowerCase()+\"|\"+n.l10n.amPM[1].toLowerCase()+\")\",void 0===r(r({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===v.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=(0,f.createDateFormatter)(n),n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n})}function X(e){if(\"function\"!=typeof n.config.position){if(void 0!==n.calendarContainer){ie(\"onPreCalendarPosition\");var t=e||n._positionElement,a=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(\" \"),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,d=\"above\"===r||\"below\"!==r&&s<a&&c.top>a,f=window.pageYOffset+c.top+(d?-a-2:t.offsetHeight+2);if((0,u.toggleClass)(n.calendarContainer,\"arrowTop\",!d),(0,u.toggleClass)(n.calendarContainer,\"arrowBottom\",d),!n.config.inline){var m=window.pageXOffset+c.left,g=!1,p=!1;\"center\"===l?(m-=(i-c.width)/2,g=!0):\"right\"===l&&(m-=i-c.width,p=!0),(0,u.toggleClass)(n.calendarContainer,\"arrowLeft\",!g&&!p),(0,u.toggleClass)(n.calendarContainer,\"arrowCenter\",g),(0,u.toggleClass)(n.calendarContainer,\"arrowRight\",p);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+i>window.document.body.offsetWidth,D=h+i>window.document.body.offsetWidth;if((0,u.toggleClass)(n.calendarContainer,\"rightMost\",v),!n.config.static)if(n.calendarContainer.style.top=f+\"px\",v)if(D){var C=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(a=document.createElement(\"style\"),document.head.appendChild(a),a.sheet);var a}();if(void 0===C)return;var b=window.document.body.offsetWidth,M=Math.max(0,b/2-i/2),y=C.cssRules.length,w=\"{left:\"+c.left+\"px;right:auto;}\";(0,u.toggleClass)(n.calendarContainer,\"rightMost\",!1),(0,u.toggleClass)(n.calendarContainer,\"centerMost\",!0),C.insertRule(\".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after\"+w,y),n.calendarContainer.style.left=M+\"px\",n.calendarContainer.style.right=\"auto\"}else n.calendarContainer.style.left=\"auto\",n.calendarContainer.style.right=h+\"px\";else n.calendarContainer.style.left=m+\"px\",n.calendarContainer.style.right=\"auto\"}}}else n.config.position(n,e)}function z(){n.config.noCalendar||n.isMobile||(N(),le(),O())}function G(){n._input.focus(),-1!==window.navigator.userAgent.indexOf(\"MSIE\")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function Z(e){e.preventDefault(),e.stopPropagation();var t=(0,u.findParent)((0,u.getEventTarget)(e),(function(e){return e.classList&&e.classList.contains(\"flatpickr-day\")&&!e.classList.contains(\"flatpickr-disabled\")&&!e.classList.contains(\"notAllowed\")}));if(void 0!==t){var a=t,i=n.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&\"range\"!==n.config.mode;if(n.selectedDateElem=a,\"single\"===n.config.mode)n.selectedDates=[i];else if(\"multiple\"===n.config.mode){var r=re(i);r?n.selectedDates.splice(parseInt(r),1):n.selectedDates.push(i)}else\"range\"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==(0,f.compareDates)(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(h(),o){var l=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),l&&(ie(\"onYearChange\"),N()),ie(\"onMonthChange\")}if(le(),O(),se(),o||\"range\"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():T(a),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c=\"single\"===n.config.mode&&!n.config.enableTime,s=\"range\"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||s)&&G()}y()}}n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=M,n._setHoursFromDate=D,n._positionCalendar=X,n.changeMonth=j,n.changeYear=R,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value=\"\",void 0!==n.altInput&&(n.altInput.value=\"\");void 0!==n.mobileInput&&(n.mobileInput.value=\"\");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var a=(0,f.getDefaultHours)(n.config);C(a.hours,a.minutes,a.seconds)}n.redraw(),e&&ie(\"onChange\")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove(\"open\"),void 0!==n._input&&n._input.classList.remove(\"active\"));ie(\"onClose\")},n.onMouseOver=J,n._createElement=u.createElement,n.createDay=k,n.destroy=function(){void 0!==n.config&&ie(\"onDestroy\");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type=\"text\",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove(\"flatpickr-input\"),n.input.removeAttribute(\"readonly\"));[\"_showTimeInput\",\"latestSelectedDateObj\",\"_hideNextMonthArrow\",\"_hidePrevMonthArrow\",\"__hideNextMonthArrow\",\"__hidePrevMonthArrow\",\"isMobile\",\"isOpen\",\"selectedDateElem\",\"minDateHasTime\",\"maxDateHasTime\",\"days\",\"daysContainer\",\"_input\",\"_positionElement\",\"innerContainer\",\"rContainer\",\"monthNav\",\"todayDateElem\",\"calendarContainer\",\"weekdayContainer\",\"prevMonthNav\",\"nextMonthNav\",\"monthsDropdownContainer\",\"currentMonthElement\",\"currentYearElement\",\"navigationCurrentMonth\",\"selectedDateElem\",\"config\"].forEach((function(e){try{delete n[e]}catch(e){}}))},n.isEnabled=W,n.jumpToDate=w,n.updateValue=se,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var a=(0,u.getEventTarget)(e);a&&a.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ie(\"onOpen\")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add(\"open\"),n._input.classList.add(\"active\"),ie(\"onOpen\"),X(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=z,n.set=function(e,t){if(null!==e&&\"object\"==typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ee[a]&&ee[a].forEach((function(e){return e()}));else n.config[e]=t,void 0!==ee[e]?ee[e].forEach((function(e){return e()})):c.HOOKS.indexOf(e)>-1&&(n.config[e]=(0,d.arrayify)(t));n.redraw(),se(!0)},n.setDate=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);te(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),w(void 0,t),D(),0===n.selectedDates.length&&n.clear(!1);se(t),t&&ie(\"onChange\")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ee={locale:[V,F],showMonths:[P,o,Y],minDate:[w],maxDate:[w],positionElement:[ae],clickOpens:[function(){!0===n.config.clickOpens?(M(n._input,\"focus\",n.open),M(n._input,\"click\",n.open)):(n._input.removeEventListener(\"focus\",n.open),n._input.removeEventListener(\"click\",n.open))}]};function te(e,t){var a=[];if(e instanceof Array)a=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||\"number\"==typeof e)a=[n.parseDate(e,t)];else if(\"string\"==typeof e)switch(n.config.mode){case\"single\":case\"time\":a=[n.parseDate(e,t)];break;case\"multiple\":a=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case\"range\":a=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error(\"Invalid date supplied: \"+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?a:a.filter((function(e){return e instanceof Date&&W(e,!1)})),\"range\"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ne(e){return e.slice().map((function(e){return\"string\"==typeof e||\"number\"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&\"object\"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ae(){n._positionElement=n.config.positionElement||n._input}function ie(e,t){if(void 0!==n.config){var a=n.config[e];if(void 0!==a&&a.length>0)for(var i=0;a[i]&&i<a.length;i++)a[i](n.selectedDates,n.input.value,n,t);\"onChange\"===e&&(n.input.dispatchEvent(oe(\"change\")),n.input.dispatchEvent(oe(\"input\")))}}function oe(e){var t=document.createEvent(\"Event\");return t.initEvent(e,!0,!0),t}function re(e){for(var t=0;t<n.selectedDates.length;t++){var a=n.selectedDates[t];if(a instanceof Date&&0===(0,f.compareDates)(a,e))return\"\"+t}return!1}function le(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((function(e,t){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),n.config.showMonths>1||\"static\"===n.config.monthSelectorType?n.monthElements[t].textContent=(0,m.monthToStr)(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+\" \":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ce(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,a){return\"range\"!==n.config.mode||n.config.enableTime||a.indexOf(e)===t})).join(\"range\"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function se(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):\"\"),n.input.value=ce(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=ce(n.config.altFormat)),!1!==e&&ie(\"onValueUpdate\")}function de(e){var t=(0,u.getEventTarget)(e),a=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);a||i?j(a?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains(\"arrowUp\")?n.changeYear(n.currentYear+1):t.classList.contains(\"arrowDown\")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=[\"wrap\",\"weekNumbers\",\"allowInput\",\"allowInvalidPreload\",\"clickOpens\",\"time_24hr\",\"enableTime\",\"noCalendar\",\"altInput\",\"shorthandCurrentMonth\",\"inline\",\"static\",\"enableSeconds\",\"disableMobile\"],o=r(r({},JSON.parse(JSON.stringify(e.dataset||{}))),t),l={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,\"enable\",{get:function(){return n.config._enable},set:function(e){n.config._enable=ne(e)}}),Object.defineProperty(n.config,\"disable\",{get:function(){return n.config._disable},set:function(e){n.config._disable=ne(e)}});var s=\"time\"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var u=v.defaultConfig.dateFormat||c.defaults.dateFormat;l.dateFormat=o.noCalendar||s?\"H:i\"+(o.enableSeconds?\":S\":\"\"):u+\" H:i\"+(o.enableSeconds?\":S\":\"\")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var f=v.defaultConfig.altFormat||c.defaults.altFormat;l.altFormat=o.noCalendar||s?\"h:i\"+(o.enableSeconds?\":S K\":\" K\"):f+\" h:i\"+(o.enableSeconds?\":S\":\"\")+\" K\"}Object.defineProperty(n.config,\"minDate\",{get:function(){return n.config._minDate},set:$(\"min\")}),Object.defineProperty(n.config,\"maxDate\",{get:function(){return n.config._maxDate},set:$(\"max\")});var m=function(e){return function(t){n.config[\"min\"===e?\"_minTime\":\"_maxTime\"]=n.parseDate(t,\"H:i:S\")}};Object.defineProperty(n.config,\"minTime\",{get:function(){return n.config._minTime},set:m(\"min\")}),Object.defineProperty(n.config,\"maxTime\",{get:function(){return n.config._maxTime},set:m(\"max\")}),\"time\"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,o);for(var g=0;g<a.length;g++)n.config[a[g]]=!0===n.config[a[g]]||\"true\"===n.config[a[g]];c.HOOKS.filter((function(e){return void 0!==n.config[e]})).forEach((function(e){n.config[e]=(0,d.arrayify)(n.config[e]||[]).map(i)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&\"single\"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(g=0;g<n.config.plugins.length;g++){var p=n.config.plugins[g](n)||{};for(var h in p)c.HOOKS.indexOf(h)>-1?n.config[h]=(0,d.arrayify)(p[h]).map(i).concat(n.config[h]):void 0===o[h]&&(n.config[h]=p[h])}o.altInputClass||(n.config.altInputClass=Q().className+\" \"+n.config.altInputClass);ie(\"onParseConfig\")}(),V(),function(){if(n.input=Q(),!n.input)return void n.config.errorHandler(new Error(\"Invalid input element specified\"));n.input._type=n.input.type,n.input.type=\"text\",n.input.classList.add(\"flatpickr-input\"),n._input=n.input,n.config.altInput&&(n.altInput=(0,u.createElement)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type=\"text\",n.input.setAttribute(\"type\",\"hidden\"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute(\"readonly\",\"readonly\");ae()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||(\"INPUT\"!==n.input.nodeName&&\"TEXTAREA\"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&te(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,\"H:i\"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,\"H:i\"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=(0,u.createElement)(\"div\",\"flatpickr-calendar\"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=(0,u.createElement)(\"div\",\"flatpickr-months\"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=(0,u.createElement)(\"span\",\"flatpickr-prev-month\"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=(0,u.createElement)(\"span\",\"flatpickr-next-month\"),n.nextMonthNav.innerHTML=n.config.nextArrow,P(),Object.defineProperty(n,\"_hidePrevMonthArrow\",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&((0,u.toggleClass)(n.prevMonthNav,\"flatpickr-disabled\",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,\"_hideNextMonthArrow\",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&((0,u.toggleClass)(n.nextMonthNav,\"flatpickr-disabled\",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],le(),n.monthNav)),n.innerContainer=(0,u.createElement)(\"div\",\"flatpickr-innerContainer\"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add(\"hasWeeks\");var e=(0,u.createElement)(\"div\",\"flatpickr-weekwrapper\");e.appendChild((0,u.createElement)(\"span\",\"flatpickr-weekday\",n.l10n.weekAbbreviation));var t=(0,u.createElement)(\"div\",\"flatpickr-weeks\");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(a),n.weekNumbers=i,n.weekWrapper=a}n.rContainer=(0,u.createElement)(\"div\",\"flatpickr-rContainer\"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=(0,u.createElement)(\"div\",\"flatpickr-days\"),n.daysContainer.tabIndex=-1),O(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add(\"hasTime\"),n.config.noCalendar&&n.calendarContainer.classList.add(\"noCalendar\");var e=(0,f.getDefaultHours)(n.config);n.timeContainer=(0,u.createElement)(\"div\",\"flatpickr-time\"),n.timeContainer.tabIndex=-1;var t=(0,u.createElement)(\"span\",\"flatpickr-time-separator\",\":\"),a=(0,u.createNumberInput)(\"flatpickr-hour\",{\"aria-label\":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName(\"input\")[0];var i=(0,u.createNumberInput)(\"flatpickr-minute\",{\"aria-label\":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName(\"input\")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute(\"step\",n.config.hourIncrement.toString()),n.minuteElement.setAttribute(\"step\",n.config.minuteIncrement.toString()),n.hourElement.setAttribute(\"min\",n.config.time_24hr?\"0\":\"1\"),n.hourElement.setAttribute(\"max\",n.config.time_24hr?\"23\":\"12\"),n.hourElement.setAttribute(\"maxlength\",\"2\"),n.minuteElement.setAttribute(\"min\",\"0\"),n.minuteElement.setAttribute(\"max\",\"59\"),n.minuteElement.setAttribute(\"maxlength\",\"2\"),n.timeContainer.appendChild(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add(\"time24hr\");if(n.config.enableSeconds){n.timeContainer.classList.add(\"hasSeconds\");var o=(0,u.createNumberInput)(\"flatpickr-second\");n.secondElement=o.getElementsByTagName(\"input\")[0],n.secondElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute(\"step\",n.minuteElement.getAttribute(\"step\")),n.secondElement.setAttribute(\"min\",\"0\"),n.secondElement.setAttribute(\"max\",\"59\"),n.secondElement.setAttribute(\"maxlength\",\"2\"),n.timeContainer.appendChild((0,u.createElement)(\"span\",\"flatpickr-time-separator\",\":\")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=(0,u.createElement)(\"span\",\"flatpickr-am-pm\",n.l10n.amPM[(0,d.int)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());(0,u.toggleClass)(n.calendarContainer,\"rangeMode\",\"range\"===n.config.mode),(0,u.toggleClass)(n.calendarContainer,\"animate\",!0===n.config.animate),(0,u.toggleClass)(n.calendarContainer,\"multiMonth\",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?\"inline\":\"static\"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var r=(0,u.createElement)(\"div\",\"flatpickr-wrapper\");n.element.parentNode&&n.element.parentNode.insertBefore(r,n.element),r.appendChild(n.element),n.altInput&&r.appendChild(n.altInput),r.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&[\"open\",\"close\",\"toggle\",\"clear\"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll(\"[data-\"+e+\"]\"),(function(t){return M(t,\"click\",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?\"time\":\"datetime-local\":\"date\";n.mobileInput=(0,u.createElement)(\"input\",n.input.className+\" flatpickr-mobile\"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr=\"datetime-local\"===e?\"Y-m-d\\\\TH:i:S\":\"date\"===e?\"Y-m-d\":\"H:i:S\",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,\"Y-m-d\"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,\"Y-m-d\"));n.input.getAttribute(\"step\")&&(n.mobileInput.step=String(n.input.getAttribute(\"step\")));n.input.type=\"hidden\",void 0!==n.altInput&&(n.altInput.type=\"hidden\");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}M(n.mobileInput,\"change\",(function(e){n.setDate((0,u.getEventTarget)(e).value,!1,n.mobileFormatStr),ie(\"onChange\"),ie(\"onClose\")}))}();var e=(0,d.debounce)(U,50);n._debouncedChange=(0,d.debounce)(y,g),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(n.daysContainer,\"mouseover\",(function(e){\"range\"===n.config.mode&&J((0,u.getEventTarget)(e))}));M(n._input,\"keydown\",q),void 0!==n.calendarContainer&&M(n.calendarContainer,\"keydown\",q);n.config.inline||n.config.static||M(window,\"resize\",e);void 0!==window.ontouchstart?M(window.document,\"touchstart\",H):M(window.document,\"mousedown\",H);M(window.document,\"focus\",H,{capture:!0}),!0===n.config.clickOpens&&(M(n._input,\"focus\",n.open),M(n._input,\"click\",n.open));void 0!==n.daysContainer&&(M(n.monthNav,\"click\",de),M(n.monthNav,[\"keyup\",\"increment\"],b),M(n.daysContainer,\"click\",Z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return(0,u.getEventTarget)(e).select()};M(n.timeContainer,[\"increment\"],p),M(n.timeContainer,\"blur\",p,{capture:!0}),M(n.timeContainer,\"click\",E),M([n.hourElement,n.minuteElement],[\"focus\",\"click\"],t),void 0!==n.secondElement&&M(n.secondElement,\"focus\",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&M(n.amPM,\"click\",(function(e){p(e)}))}n.config.allowInput&&M(n._input,\"blur\",K)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&D(n.config.noCalendar?n.latestSelectedDateObj:void 0),se(!1)),o();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&X(),ie(\"onReady\")}(),n}function h(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute(\"data-fp-omit\"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=p(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}\"undefined\"!=typeof HTMLElement&&\"undefined\"!=typeof HTMLCollection&&\"undefined\"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return h(this,e)},HTMLElement.prototype.flatpickr=function(e){return h([this],e)});var v=function(e,t){return\"string\"==typeof e?h(window.document.querySelectorAll(e),t):e instanceof Node?h([e],t):h(e,t)};v.defaultConfig={},v.l10ns={en:r({},s.default),default:r({},s.default)},v.localize=function(e){v.l10ns.default=r(r({},v.l10ns.default),e)},v.setDefaults=function(e){v.defaultConfig=r(r({},v.defaultConfig),e)},v.parseDate=(0,f.createDateParser)({}),v.formatDate=(0,f.createDateFormatter)({}),v.compareDates=f.compareDates,\"undefined\"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return h(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(\"string\"==typeof e?parseInt(e,10):e))},\"undefined\"!=typeof window&&(window.flatpickr=v),n.default=v},\n \"651d495396\": function _(e,n,o,t,a){t(),o.HOOKS=[\"onChange\",\"onClose\",\"onDayCreate\",\"onDestroy\",\"onKeyDown\",\"onMonthChange\",\"onOpen\",\"onParseConfig\",\"onReady\",\"onValueUpdate\",\"onYearChange\",\"onPreCalendarPosition\"],o.defaults={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:\"F j, Y\",altInput:!1,altInputClass:\"form-control input\",animate:\"object\"==typeof window&&-1===window.navigator.userAgent.indexOf(\"MSIE\"),ariaDateFormat:\"F j, Y\",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:\", \",dateFormat:\"Y-m-d\",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return\"undefined\"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var o=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:\"default\",minuteIncrement:5,mode:\"single\",monthSelectorType:\"dropdown\",nextArrow:\"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>\",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:\"auto\",positionElement:void 0,prevArrow:\"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>\",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}},\n \"3bfa124fda\": function _(e,r,a,n,t){n(),a.english={weekdays:{shorthand:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],longhand:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},months:{shorthand:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],longhand:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return\"th\";switch(r%10){case 1:return\"st\";case 2:return\"nd\";case 3:return\"rd\";default:return\"th\"}},rangeSeparator:\" to \",weekAbbreviation:\"Wk\",scrollTitle:\"Scroll to increment\",toggleTitle:\"Click to toggle\",amPM:[\"AM\",\"PM\"],yearAriaLabel:\"Year\",monthAriaLabel:\"Month\",hourAriaLabel:\"Hour\",minuteAriaLabel:\"Minute\",time_24hr:!1},a.default=a.english},\n \"15458073ce\": function _(n,t,r,i,u){i();r.pad=function(n,t){return void 0===t&&(t=2),(\"000\"+n).slice(-1*t)};r.int=function(n){return!0===n?1:0},r.debounce=function(n,t){var r;return function(){var i=this,u=arguments;clearTimeout(r),r=setTimeout((function(){return n.apply(i,u)}),t)}};r.arrayify=function(n){return n instanceof Array?n:[n]}},\n \"6b6749c6cf\": function _(t,e,n,r,a){function i(t,e,n){var r=window.document.createElement(t);return e=e||\"\",n=n||\"\",r.className=e,void 0!==n&&(r.textContent=n),r}r(),n.toggleClass=function(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)},n.createElement=i,n.clearNode=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.findParent=function t(e,n){return n(e)?e:e.parentNode?t(e.parentNode,n):void 0},n.createNumberInput=function(t,e){var n=i(\"div\",\"numInputWrapper\"),r=i(\"input\",\"numInput \"+t),a=i(\"span\",\"arrowUp\"),o=i(\"span\",\"arrowDown\");if(-1===navigator.userAgent.indexOf(\"MSIE 9.0\")?r.type=\"number\":(r.type=\"text\",r.pattern=\"\\\\d*\"),void 0!==e)for(var d in e)r.setAttribute(d,e[d]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n},n.getEventTarget=function(t){try{return\"function\"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}},\n \"1bb8c967d1\": function _(e,t,n,a,r){a();const i=e(\"3d14787c35\"),o=e(\"651d495396\"),s=e(\"3bfa124fda\");n.createDateFormatter=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a,u=e.isMobile,f=void 0!==u&&u;return function(e,t,a){var o=a||r;return void 0===n.formatDate||f?t.split(\"\").map((function(t,a,r){return i.formats[t]&&\"\\\\\"!==r[a-1]?i.formats[t](e,o,n):\"\\\\\"!==t?t:\"\"})).join(\"\"):n.formatDate(e,t,o)}};n.createDateParser=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a;return function(e,t,a,s){if(0===e||e){var u,f=s||r,d=e;if(e instanceof Date)u=new Date(e.getTime());else if(\"string\"!=typeof e&&void 0!==e.toFixed)u=new Date(e);else if(\"string\"==typeof e){var c=t||(n||o.defaults).dateFormat,g=String(e).trim();if(\"today\"===g)u=new Date,a=!0;else if(n&&n.parseDate)u=n.parseDate(e,c);else if(/Z$/.test(g)||/GMT$/.test(g))u=new Date(e);else{for(var m=void 0,l=[],v=0,D=0,h=\"\";v<c.length;v++){var w=c[v],M=\"\\\\\"===w,p=\"\\\\\"===c[v-1]||M;if(i.tokenRegex[w]&&!p){h+=i.tokenRegex[w];var H=new RegExp(h).exec(e);H&&(m=!0)&&l[\"Y\"!==w?\"push\":\"unshift\"]({fn:i.revFormat[w],val:H[++D]})}else M||(h+=\".\")}u=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),l.forEach((function(e){var t=e.fn,n=e.val;return u=t(u,n,f)||u})),u=m?u:void 0}}if(u instanceof Date&&!isNaN(u.getTime()))return!0===a&&u.setHours(0,0,0,0),u;n.errorHandler(new Error(\"Invalid date provided: \"+d))}}},n.compareDates=function(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()},n.compareTimes=function(e,t){return 3600*(e.getHours()-t.getHours())+60*(e.getMinutes()-t.getMinutes())+e.getSeconds()-t.getSeconds()};n.isBetween=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)};n.calculateSecondsSinceMidnight=function(e,t,n){return 3600*e+60*t+n};n.parseSeconds=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},n.duration={DAY:864e5},n.getDefaultHours=function(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<i&&(n=i),t===r&&n===i&&a<o&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),u=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(u,n)),t===s&&n===u&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}},\n \"3d14787c35\": function _(t,n,e,o,r){o();const u=t(\"15458073ce\");var a=function(){};e.monthToStr=function(t,n,e){return e.months[n?\"shorthand\":\"longhand\"][t]},e.revFormat={D:a,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*(0,u.int)(new RegExp(e.amPM[1],\"i\").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(1e3*parseFloat(n))},W:function(t,n,e){var o=parseInt(n),r=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+e.firstDayOfWeek),r},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:a,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:a,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},e.tokenRegex={D:\"\",F:\"\",G:\"(\\\\d\\\\d|\\\\d)\",H:\"(\\\\d\\\\d|\\\\d)\",J:\"(\\\\d\\\\d|\\\\d)\\\\w+\",K:\"\",M:\"\",S:\"(\\\\d\\\\d|\\\\d)\",U:\"(.+)\",W:\"(\\\\d\\\\d|\\\\d)\",Y:\"(\\\\d{4})\",Z:\"(.+)\",d:\"(\\\\d\\\\d|\\\\d)\",h:\"(\\\\d\\\\d|\\\\d)\",i:\"(\\\\d\\\\d|\\\\d)\",j:\"(\\\\d\\\\d|\\\\d)\",l:\"\",m:\"(\\\\d\\\\d|\\\\d)\",n:\"(\\\\d\\\\d|\\\\d)\",s:\"(\\\\d\\\\d|\\\\d)\",u:\"(.+)\",w:\"(\\\\d\\\\d|\\\\d)\",y:\"(\\\\d{2})\"},e.formats={Z:function(t){return t.toISOString()},D:function(t,n,o){return n.weekdays.shorthand[e.formats.w(t,n,o)]},F:function(t,n,o){return(0,e.monthToStr)(e.formats.n(t,n,o)-1,!1,n)},G:function(t,n,o){return(0,u.pad)(e.formats.h(t,n,o))},H:function(t){return(0,u.pad)(t.getHours())},J:function(t,n){return void 0!==n.ordinal?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[(0,u.int)(t.getHours()>11)]},M:function(t,n){return(0,e.monthToStr)(t.getMonth(),!0,n)},S:function(t){return(0,u.pad)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return(0,u.pad)(t.getFullYear(),4)},d:function(t){return(0,u.pad)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return(0,u.pad)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return(0,u.pad)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}},\n \"6f45019dc1\": function _(n,t,o,r,e){\"function\"!=typeof Object.assign&&(Object.assign=function(n){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(!n)throw TypeError(\"Cannot convert undefined or null to object\");for(var r=function(t){t&&Object.keys(t).forEach((function(o){return n[o]=t[o]}))},e=0,c=t;e<c.length;e++){r(c[e])}return n})},\n \"991e3a226c\": function _(e,t,o,i,a){i();const n=e(\"tslib\");var s;const r=e(\"@bokehjs/core/dom\"),c=e(\"@bokehjs/models/sources/column_data_source\"),d=e(\"99a25e6992\"),l=e(\"fd9108e30e\"),_=e(\"@bokehjs/models/layouts/layout_dom\"),h=e(\"9588ab7c9e\"),p=n.__importDefault(e(\"093eb75864\"));function u(){const e={},t=window.deck,o=Object.keys(t).filter((e=>e.charAt(0)===e.charAt(0).toUpperCase()));for(const i of o)e[i]=t[i];return e}class w extends _.LayoutDOMView{connect_signals(){super.connect_signals();const{data:e,mapbox_api_key:t,tooltip:o,layers:i,initialViewState:a,data_sources:n}=this.model.properties;this.on_change([t,o],(()=>this.render())),this.on_change([e,a],(()=>this.updateDeck())),this.on_change([i],(()=>this._update_layers())),this.on_change([n],(()=>this._connect_sources(!0))),this._layer_map={},this._connected=[],this._connect_sources()}remove(){this.deckGL.finalize(),super.remove()}_update_layers(){this._layer_map={},this._update_data(!0)}_connect_sources(e=!1){for(const e of this.model.data_sources)this._connected.indexOf(e)<0&&(this.connect(e.properties.data.change,(()=>this._update_data(!0))),this._connected.push(e));this._update_data(e)}initialize(){if(super.initialize(),window.deck.JSONConverter){const{CSVLoader:e,Tiles3DLoader:t}=window.loaders;window.loaders.registerLoaders([t,e]);const o={classes:u(),enumerations:{COORDINATE_SYSTEM:window.deck.COORDINATE_SYSTEM,GL:p.default},constants:{Tiles3DLoader:t}};this.jsonConverter=new window.deck.JSONConverter({configuration:o})}}_update_data(e=!0){let t=0;for(const e of this.model.layers){let o;if(t+=1,t-1 in this._layer_map)o=this.model.data_sources[this._layer_map[t-1]];else{if(\"number\"!=typeof e.data)continue;this._layer_map[t-1]=e.data,o=this.model.data_sources[e.data]}e.data=(0,l.transform_cds_to_records)(o)}e&&this.updateDeck()}_on_click_event(e){const t={coordinate:e.coordinate,lngLat:e.coordinate,index:e.index};e.layer&&(t.layer=e.layer.id),this.model.clickState=t}_on_hover_event(e){if(null==e.coordinate)return;const t={coordinate:e.coordinate,lngLat:e.coordinate,index:e.index};e.layer&&(t.layer=e.layer.id),this.model.hoverState=t}_on_viewState_event(e){const t=Object.assign({},e.viewState);delete t.normalize;for(const e in t)e.startsWith(\"transition\")&&delete t[e];const o=new window.deck.WebMercatorViewport(t);t.nw=o.unproject([0,0]),t.se=o.unproject([o.width,o.height]),this.model.viewState=t}get child_models(){return[]}getData(){const e=this.model.throttle.view||200,t=this.model.throttle.hover||100,o=(0,d.debounce)((e=>this._on_viewState_event(e)),e,!1),i=(0,d.debounce)((e=>this._on_hover_event(e)),t,!1);return Object.assign(Object.assign({},this.model.data),{layers:this.model.layers,initialViewState:this.model.initialViewState,onViewStateChange:o,onClick:e=>this._on_click_event(e),onHover:i})}updateDeck(){if(!this.deckGL)return void this.render();const e=this.getData();if(window.deck.updateDeck)window.deck.updateDeck(e,this.deckGL);else{const t=this.jsonConverter.convert(e);this.deckGL.setProps(t)}}createDeck({mapboxApiKey:e,container:t,jsonInput:o,tooltip:i}){let a;try{const n=this.jsonConverter.convert(o),s=(0,h.makeTooltip)(i,n.layers);a=new window.deck.DeckGL(Object.assign(Object.assign({},n),{map:window.mapboxgl,mapboxApiAccessToken:e,container:t,getTooltip:s,width:\"100%\",height:\"100%\"}))}catch(e){console.error(e)}return a}render(){super.render();const e=(0,r.div)({class:\"deckgl\"}),t=this.model.mapbox_api_key,o=this.model.tooltip,i=this.getData();window.deck.createDeck?this.deckGL=window.deck.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}):this.deckGL=this.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}),this.shadow_el.appendChild(e)}after_layout(){super.after_layout(),this.deckGL.redraw(!0)}}o.DeckGLPlotView=w,w.__name__=\"DeckGLPlotView\";class m extends _.LayoutDOM{constructor(e){super(e)}}o.DeckGLPlot=m,s=m,m.__name__=\"DeckGLPlot\",m.__module__=\"panel.models.deckgl\",s.prototype.default_view=w,s.define((({Any:e,Array:t,String:o,Ref:i})=>({data:[e],data_sources:[t(i(c.ColumnDataSource)),[]],clickState:[e,{}],hoverState:[e,{}],initialViewState:[e,{}],layers:[t(e),[]],mapbox_api_key:[o,\"\"],throttle:[e,{}],tooltip:[e,!0],viewState:[e,{}]}))),s.override({height:400,width:600})},\n \"9588ab7c9e\": function _(t,e,n,i,l){\n /*\n This file was adapted from https://github.com/uber/deck.gl/ the LICENSE\n below is preserved to comply with the original license.\n \n Copyright (c) 2015 - 2017 Uber Technologies, Inc.\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n */\n let o,r;i();const c={fontFamily:'\"Helvetica Neue\", Helvetica, Arial, sans-serif',display:\"flex\",flex:\"wrap\",maxWidth:\"500px\",flexDirection:\"column\",zIndex:2};function s(){return document.createElement(\"div\")}function a(t){if(!t.picked)return null;if(t.object===o)return r;const e={html:u(t.object),style:c};return r=e,o=t.object,e}n.getTooltipDefault=a;const f=new Set([\"position\",\"index\"]);function u(t){const e=s();for(const n in t){if(f.has(n))continue;const i=s();i.className=\"header\",i.textContent=n;const l=s();l.className=\"value\",l.textContent=h(t[n]);const o=s();p(o,i,l),o.appendChild(i),o.appendChild(l),e.appendChild(o)}return e.innerHTML}function p(t,e,n){Object.assign(e.style,{fontWeight:700,marginRight:\"10px\",flex:\"1 1 0%\"}),Object.assign(n.style,{flex:\"none\",maxWidth:\"250px\",overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"}),Object.assign(t.style,{display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"stretch\"})}function h(t){let e;if(Array.isArray(t)&&t.length>4)e=`Array<${t.length}>`;else if(\"string\"==typeof t)e=t;else if(\"number\"==typeof t)e=String(t);else try{e=JSON.stringify(t)}catch(t){e=\"<Non-Serializable Object>\"}return e.length>50&&(e=e.slice(0,50)),e}function d(t,e){let n=t;for(const t in e){if(\"object\"==typeof e[t])for(const i in e[t])n=n.replace(`{${t}.${i}}`,e[t][i]);n=n.replace(`{${t}}`,e[t])}return n}n.tabularize=u,n.toText=h,n.substituteIn=d,n.makeTooltip=function(t,e){if(!t)return null;let n=!1;const i={};for(let l=0;l<e.length;l++){const o=e[l].id;\"boolean\"!=typeof t&&(l.toString()in t||o in t)&&(i[o]=o in t?t[o]:t[l.toString()],n=!0)}return t.html||t.text||n?e=>{if(!e.picked)return null;const l=n?i[e.layer.id]:t;if(null==l)return;if(\"boolean\"==typeof l)return l?a(e):null;const o={style:l.style||c};return l.html?o.html=d(l.html,e.object):o.text=d(l.text,e.object),o}:a}},\n \"093eb75864\": function _(E,_,R,T,A){_.exports={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},\n \"eded13f5d7\": function _(e,t,s,n,i){var o,h;n();const r=e(\"@bokehjs/core/bokeh_events\"),c=e(\"@bokehjs/core/dom\"),a=e(\"490942d778\"),l=e(\"35aaab0394\"),d=[\"click\",\"dblclick\",\"mousedown\",\"mousemove\",\"mouseup\",\"mouseover\",\"mouseout\",\"globalout\",\"contextmenu\"].concat([\"highlight\",\"downplay\",\"selectchanged\",\"legendselectchangedEvent\",\"legendselected\",\"legendunselected\",\"legendselectall\",\"legendinverseselect\",\"legendscroll\",\"datazoom\",\"datarangeselected\",\"timelineplaychanged\",\"restore\",\"dataviewchanged\",\"magictypechanged\",\"geoselectchanged\",\"geoselected\",\"geounselected\",\"axisareaselected\",\"brush\",\"brushEnd\",\"rushselected\",\"globalcursortaken\",\"rendered\",\"finished\"]);class _ extends r.ModelEvent{constructor(e,t,s){super(),this.type=e,this.data=t,this.query=s}get event_values(){return{model:this.origin,type:this.type,data:this.data,query:this.query}}}s.EChartsEvent=_,o=_,_.__name__=\"EChartsEvent\",o.prototype.event_name=\"echarts_event\";class u extends l.HTMLBoxView{constructor(){super(...arguments),this._callbacks=[]}connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,(()=>this._plot()));const{width:e,height:t,renderer:s,theme:n,event_config:i,js_events:o}=this.model.properties;this.on_change([e,t],(()=>this._resize())),this.on_change([n,s],(()=>this.render())),this.on_change([i,o],(()=>this._subscribe()))}render(){null!=this._chart&&window.echarts.dispose(this._chart),super.render(),this.container=(0,c.div)({style:\"height: 100%; width: 100%;\"});const e={width:this.model.width,height:this.model.height,renderer:this.model.renderer};this._chart=window.echarts.init(this.container,this.model.theme,e),this._plot(),this._subscribe(),this.shadow_el.append(this.container)}remove(){super.remove(),null!=this._chart&&window.echarts.dispose(this._chart)}after_layout(){super.after_layout(),this._chart.resize()}_plot(){null!=window.echarts&&this._chart.setOption(this.model.data)}_resize(){this._chart.resize({width:this.model.width,height:this.model.height})}_subscribe(){if(null!=window.echarts){for(const[e,t]of this._callbacks)this._chart.off(e,t);this._callbacks=[];for(const e in this.model.event_config){if(!d.includes(e)){console.warn(`Could not subscribe to unknown Echarts event: ${e}.`);continue}const t=this.model.event_config[e];for(const s of t){const t=t=>{var n;const i=Object.assign({},t);i.event=(0,a.serializeEvent)(null===(n=t.event)||void 0===n?void 0:n.event);const o=JSON.parse(JSON.stringify(i));this.model.trigger_event(new _(e,o,s))};null==s?this._chart.on(e,s,t):this._chart.on(e,t),this._callbacks.push([e,t])}}for(const e in this.model.js_events){if(!d.includes(e)){console.warn(`Could not subscribe to unknown Echarts event: ${e}.`);continue}const t=this.model.js_events[e];for(const s of t){const t=e=>{s.callback.execute(this._chart,e)};\"query\"in s?this._chart.on(e,s.query,t):this._chart.on(e,t),this._callbacks.push([e,t])}}}}}s.EChartsView=u,u.__name__=\"EChartsView\";class g extends l.HTMLBox{constructor(e){super(e)}}s.ECharts=g,h=g,g.__name__=\"ECharts\",g.__module__=\"panel.models.echarts\",h.prototype.default_view=u,h.define((({Any:e,String:t})=>({data:[e,{}],event_config:[e,{}],js_events:[e,{}],theme:[t,\"default\"],renderer:[t,\"canvas\"]})))},\n \"490942d778\": function _(e,t,a,r,n){function i(e){let t=null;return e&&(t=function(e){try{return{boundingClientRect:Object.assign({},e.getBoundingClientRect())}}catch(e){return{}}}(e),e.tagName in l&&l[e.tagName].forEach((a=>Object.assign(t,a(e))))),t}r(),a.serializeEvent=\n /*\n The MIT License (MIT)\n \n Copyright (c) 2019 Ryan S. Morshead\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n */\n function(e){const t={};return void 0!==e.detail&&Object.assign(t,{detail:JSON.parse(JSON.stringify(e.detail))}),e.type in d&&Object.assign(t,d[e.type](e)),t.target=i(e.target),t.currentTarget=e.target===e.currentTarget?t.target:i(e.currentTarget),t.relatedTarget=i(e.relatedTarget),t};const o={hasValue:e=>({value:e.value}),hasCurrentTime:e=>({currentTime:e.currentTime}),hasFiles:e=>\"file\"===(null==e?void 0:e.type)?{files:Array.from(e.files).map((e=>({lastModified:e.lastModified,name:e.name,size:e.size,type:e.type})))}:{}};const s={hasValue:[\"BUTTON\",\"INPUT\",\"OPTION\",\"LI\",\"METER\",\"PROGRESS\",\"PARAM\",\"SELECT\",\"TEXTAREA\"],hasCurrentTime:[\"AUDIO\",\"VIDEO\"],hasFiles:[\"INPUT\"]},l={};Object.keys(s).forEach((e=>{s[e].forEach((t=>{(l[t]||(l[t]=[])).push(o[e])}))}));class c{clipboard(e){return{clipboardData:e.clipboardData}}composition(e){return{data:e.data}}keyboard(e){return{altKey:e.altKey,charCode:e.charCode,ctrlKey:e.ctrlKey,key:e.key,keyCode:e.keyCode,locale:e.locale,location:e.location,metaKey:e.metaKey,repeat:e.repeat,shiftKey:e.shiftKey,which:e.which}}mouse(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey}}pointer(e){return Object.assign(Object.assign({},this.mouse(e)),{pointerId:e.pointerId,width:e.width,height:e.height,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY,pointerType:e.pointerType,isPrimary:e.isPrimary})}selection(){return{selectedText:window.getSelection().toString()}}touch(e){return{altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}}ui(e){return{detail:e.detail}}wheel(e){return{deltaMode:e.deltaMode,deltaX:e.deltaX,deltaY:e.deltaY,deltaZ:e.deltaZ}}animation(e){return{animationName:e.animationName,pseudoElement:e.pseudoElement,elapsedTime:e.elapsedTime}}transition(e){return{propertyName:e.propertyName,pseudoElement:e.pseudoElement,elapsedTime:e.elapsedTime}}}c.__name__=\"EventTransformCategories\";const u={clipboard:[\"copy\",\"cut\",\"paste\"],composition:[\"compositionend\",\"compositionstart\",\"compositionupdate\"],keyboard:[\"keydown\",\"keypress\",\"keyup\"],mouse:[\"click\",\"contextmenu\",\"doubleclick\",\"drag\",\"dragend\",\"dragenter\",\"dragexit\",\"dragleave\",\"dragover\",\"dragstart\",\"drop\",\"mousedown\",\"mouseenter\",\"mouseleave\",\"mousemove\",\"mouseout\",\"mouseover\",\"mouseup\"],pointer:[\"pointerdown\",\"pointermove\",\"pointerup\",\"pointercancel\",\"gotpointercapture\",\"lostpointercapture\",\"pointerenter\",\"pointerleave\",\"pointerover\",\"pointerout\"],selection:[\"select\"],touch:[\"touchcancel\",\"touchend\",\"touchmove\",\"touchstart\"],ui:[\"scroll\"],wheel:[\"wheel\"],animation:[\"animationstart\",\"animationend\",\"animationiteration\"],transition:[\"transitionend\"]},d={},p=new c;Object.keys(u).forEach((e=>{u[e].forEach((t=>{d[t]=p[e]}))}))},\n \"3c5d08f9d8\": function _(e,t,n,s,r){var i,o;s();const a=e(\"@bokehjs/core/bokeh_events\"),l=e(\"@bokehjs/models/widgets/markup\"),d=e(\"35aaab0394\"),_=e(\"490942d778\");class c extends a.ModelEvent{constructor(e,t){super(),this.node=e,this.data=t}get event_values(){return{model:this.origin,node:this.node,data:this.data}}}function h(e){return(new DOMParser).parseFromString(e,\"text/html\").documentElement.textContent}function u(e){Array.from(e.querySelectorAll(\"script\")).forEach((e=>{const t=document.createElement(\"script\");Array.from(e.attributes).forEach((e=>t.setAttribute(e.name,e.value))),t.appendChild(document.createTextNode(e.innerHTML)),e.parentNode&&e.parentNode.replaceChild(t,e)}))}n.DOMEvent=c,i=c,c.__name__=\"DOMEvent\",i.prototype.event_name=\"dom_event\",n.htmlDecode=h,n.runScripts=u;class p extends d.PanelMarkupView{constructor(){super(...arguments),this._event_listeners={}}connect_signals(){super.connect_signals(),this.connect(this.model.properties.events.change,(()=>{this._remove_event_listeners(),this._setup_event_listeners()}))}rerender(){this.render(),this.invalidate_layout()}render(){super.render(),this.shadow_el.appendChild(this.container),\"failed\"!=this.provider.status&&\"loaded\"!=this.provider.status||(this._has_finished=!0);const e=this.process_tex();e&&(this.container.innerHTML=e,this.model.run_scripts&&u(this.container),this._setup_event_listeners())}process_tex(){const e=h(this.model.text)||this.model.text;if(this.model.disable_math||!this.contains_tex(e))return e;const t=this.provider.MathJax.find_tex(e),n=[];let s=0;for(const r of t)n.push(e.slice(s,r.start.n)),n.push(this.provider.MathJax.tex2svg(r.math,{display:r.display}).outerHTML),s=r.end.n;return s<e.length&&n.push(e.slice(s)),n.join(\"\")}contains_tex(e){return!!this.provider.MathJax&&this.provider.MathJax.find_tex(e).length>0}_remove_event_listeners(){for(const e in this._event_listeners){const t=document.getElementById(e);if(null!=t)for(const n in this._event_listeners[e]){const s=this._event_listeners[e][n];t.removeEventListener(n,s)}else console.warn(`DOM node '${e}' could not be found. Cannot subscribe to DOM events.`)}this._event_listeners={}}_setup_event_listeners(){for(const e in this.model.events){const t=document.getElementById(e);if(null!=t)for(const n of this.model.events[e]){const s=t=>{this.model.trigger_event(new c(e,(0,_.serializeEvent)(t)))};t.addEventListener(n,s),e in this._event_listeners||(this._event_listeners[e]={}),this._event_listeners[e][n]=s}else console.warn(`DOM node '${e}' could not be found. Cannot subscribe to DOM events.`)}}}n.HTMLView=p,p.__name__=\"HTMLView\";class v extends l.Markup{constructor(e){super(e)}}n.HTML=v,o=v,v.__name__=\"HTML\",v.__module__=\"panel.models.markup\",o.prototype.default_view=p,o.define((({Any:e,Boolean:t})=>({events:[e,{}],run_scripts:[t,!0]})))},\n \"e3556c1e99\": function _(e,i,t,n,s){var l;n();const o=e(\"@bokehjs/core/dom\"),a=e(\"35aaab0394\"),d=window.Jupyter;class r extends a.HTMLBoxView{async lazy_initialize(){let e;if(await super.lazy_initialize(),null!=d&&null!=d.notebook)e=d.notebook.kernel.widget_manager;else{if(null==window.PyViz.widget_manager)return void console.warn(\"Panel IPyWidget model could not find a WidgetManager\");e=window.PyViz.widget_manager}this.manager=e,this.ipychildren=[];const{spec:i,state:t}=this.model.bundle,n=(await e.set_state(t)).find((e=>e.model_id==i.model_id));if(null!=n){const e=await this.manager.create_view(n,{el:this.el});if(this.ipyview=e,e.children_views)for(const i of e.children_views.views)this.ipychildren.push(await i)}}_ipy_stylesheets(){const e=[];for(const i of document.head.children)if(i instanceof HTMLStyleElement){const t=i.textContent;if(null!=t){const i=t.replace(/:root/g,\":host\");e.push(new o.InlineStyleSheet(i))}}return e}stylesheets(){return[...super.stylesheets(),...this._ipy_stylesheets()]}render(){if(super.render(),null!=this.ipyview){this.shadow_el.appendChild(this.ipyview.el),this.ipyview.trigger(\"displayed\",this.ipyview);for(const e of this.ipychildren)e.trigger(\"displayed\",e);this.invalidate_layout()}}}t.IPyWidgetView=r,r.__name__=\"IPyWidgetView\";class h extends a.HTMLBox{constructor(e){super(e)}}t.IPyWidget=h,l=h,h.__name__=\"IPyWidget\",h.__module__=\"panel.models.ipywidget\",l.prototype.default_view=r,l.define((({Any:e})=>({bundle:[e,{}]})))},\n \"172b3596d3\": function _(e,t,r,n,s){n();const o=e(\"tslib\");var i;const d=e(\"@bokehjs/core/kinds\"),a=e(\"@bokehjs/models/widgets/markup\"),l=o.__importDefault(e(\"18bba7b7e1\")),h=e(\"35aaab0394\");class p extends h.PanelMarkupView{connect_signals(){super.connect_signals();const{depth:e,hover_preview:t,theme:r}=this.model.properties;this.on_change([e,t,r],(()=>this.render()))}render(){super.render();const e=this.model.text.replace(/(\\r\\n|\\n|\\r)/gm,\"\");let t;try{t=window.JSON.parse(e)}catch(e){return void(this.container.innerHTML=\"<b>Invalid JSON:</b> \"+e.toString())}const r={hoverPreviewEnabled:this.model.hover_preview,theme:this.model.theme},n=null==this.model.depth?1/0:this.model.depth,s=new l.default(t,n,r).render();let o=\"border-radius: 5px; padding: 10px; width: 100%; height: 100%;\";\"dark\"==this.model.theme?s.style.cssText=\"background-color: rgb(30, 30, 30);\"+o:s.style.cssText=o,this.container.append(s)}}r.JSONView=p,p.__name__=\"JSONView\",r.JSONTheme=(0,d.Enum)(\"dark\",\"light\");class c extends a.Markup{constructor(e){super(e)}}r.JSON=c,i=c,c.__name__=\"JSON\",c.__module__=\"panel.models.markup\",i.prototype.default_view=p,i.define((({Array:e,Boolean:t,Int:n,Nullable:s,String:o})=>({css:[e(o),[]],depth:[s(n),1],hover_preview:[t,!1],theme:[r.JSONTheme,\"dark\"]})))},\n \"18bba7b7e1\": function _(t,e,r,n,o){function i(t){return null===t?\"null\":typeof t}function s(t){return!!t&&\"object\"==typeof t}function a(t){if(void 0===t)return\"\";if(null===t)return\"Object\";if(\"object\"==typeof t&&!t.constructor)return\"Object\";var e=/function ([^(]*)/.exec(t.constructor.toString());return e&&e.length>1?e[1]:\"\"}function f(t,e,r){return\"null\"===t||\"undefined\"===t?t:(\"string\"!==t&&\"stringifiable\"!==t||(r='\"'+r.replace(/\"/g,'\\\\\"')+'\"'),\"function\"===t?e.toString().replace(/[\\r\\n]/g,\"\").replace(/\\{.*\\}/,\"\")+\"{\\u2026}\":r)}function m(t){var e=\"\";return s(t)?(e=a(t),Array.isArray(t)&&(e+=\"[\"+t.length+\"]\")):e=f(i(t),t,t),e}function l(t){return\"json-formatter-\"+t}function d(t,e,r){var n=document.createElement(t);return e&&n.classList.add(l(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}n(),function(t){if(t&&\"undefined\"!=typeof window){var e=document.createElement(\"style\");e.setAttribute(\"media\",\"screen\"),e.innerHTML=t,document.head.appendChild(e)}}('.json-formatter-row {\\n font-family: monospace;\\n}\\n.json-formatter-row,\\n.json-formatter-row a,\\n.json-formatter-row a:hover {\\n color: black;\\n text-decoration: none;\\n}\\n.json-formatter-row .json-formatter-row {\\n margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty {\\n opacity: 0.5;\\n margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n display: none;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n content: \"No properties\";\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n content: \"[]\";\\n}\\n.json-formatter-row .json-formatter-string,\\n.json-formatter-row .json-formatter-stringifiable {\\n color: green;\\n white-space: pre;\\n word-wrap: break-word;\\n}\\n.json-formatter-row .json-formatter-number {\\n color: blue;\\n}\\n.json-formatter-row .json-formatter-boolean {\\n color: red;\\n}\\n.json-formatter-row .json-formatter-null {\\n color: #855A00;\\n}\\n.json-formatter-row .json-formatter-undefined {\\n color: #ca0b69;\\n}\\n.json-formatter-row .json-formatter-function {\\n color: #FF20ED;\\n}\\n.json-formatter-row .json-formatter-date {\\n background-color: rgba(0, 0, 0, 0.05);\\n}\\n.json-formatter-row .json-formatter-url {\\n text-decoration: underline;\\n color: blue;\\n cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-bracket {\\n color: blue;\\n}\\n.json-formatter-row .json-formatter-key {\\n color: #00008B;\\n padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler-link {\\n cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-toggler {\\n line-height: 1.2rem;\\n font-size: 0.7rem;\\n vertical-align: middle;\\n opacity: 0.6;\\n cursor: pointer;\\n padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler:after {\\n display: inline-block;\\n transition: transform 100ms ease-in;\\n content: \"\\u25ba\";\\n}\\n.json-formatter-row > a > .json-formatter-preview-text {\\n opacity: 0;\\n transition: opacity 0.15s ease-in;\\n font-style: italic;\\n}\\n.json-formatter-row:hover > a > .json-formatter-preview-text {\\n opacity: 0.6;\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n transform: rotate(90deg);\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n display: inline-block;\\n}\\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n display: none;\\n}\\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n display: block;\\n}\\n.json-formatter-dark.json-formatter-row {\\n font-family: monospace;\\n}\\n.json-formatter-dark.json-formatter-row,\\n.json-formatter-dark.json-formatter-row a,\\n.json-formatter-dark.json-formatter-row a:hover {\\n color: white;\\n text-decoration: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-row {\\n margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\\n opacity: 0.5;\\n margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n display: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n content: \"No properties\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n content: \"[]\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-string,\\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\\n color: #31F031;\\n white-space: pre;\\n word-wrap: break-word;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-number {\\n color: #66C2FF;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\\n color: #EC4242;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-null {\\n color: #EEC97D;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\\n color: #ef8fbe;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-function {\\n color: #FD48CB;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-date {\\n background-color: rgba(255, 255, 255, 0.05);\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-url {\\n text-decoration: underline;\\n color: #027BFF;\\n cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\\n color: #9494FF;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-key {\\n color: #23A0DB;\\n padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\\n cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\\n line-height: 1.2rem;\\n font-size: 0.7rem;\\n vertical-align: middle;\\n opacity: 0.6;\\n cursor: pointer;\\n padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\\n display: inline-block;\\n transition: transform 100ms ease-in;\\n content: \"\\u25ba\";\\n}\\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\\n opacity: 0;\\n transition: opacity 0.15s ease-in;\\n font-style: italic;\\n}\\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\\n opacity: 0.6;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n transform: rotate(90deg);\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n display: inline-block;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n display: none;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n display: block;\\n}\\n');var c=/(^\\d{1,4}[\\.|\\\\/|-]\\d{1,2}[\\.|\\\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/,p=/\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/,j=/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/,h=window.requestAnimationFrame||function(t){return t(),0},u={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null},g=function(){function t(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=u),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=u.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=u.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=u.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=u.useToJSON),\"\"===this.key&&(this.key='\"\"')}return Object.defineProperty(t.prototype,\"isOpen\",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isDate\",{get:function(){return this.json instanceof Date||\"string\"===this.type&&(c.test(this.json)||j.test(this.json)||p.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isUrl\",{get:function(){return\"string\"===this.type&&0===this.json.indexOf(\"http\")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isArray\",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isObject\",{get:function(){return s(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isEmptyObject\",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isEmpty\",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"useToJSON\",{get:function(){return this.config.useToJSON&&\"stringifiable\"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"hasKey\",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"constructorName\",{get:function(){return a(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"type\",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?\"stringifiable\":i(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"keys\",{get:function(){if(this.isObject){var t=Object.keys(this.json);return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!0,configurable:!0}),t.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(l(\"open\")))},t.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(l(\"open\")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(l(\"open\")))))},t.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?\"Array[\"+this.json.length+\"]\":\"[\"+this.json.map(m).join(\", \")+\"]\";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+\":\"+m(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?\"\\u2026\":\"\";return\"{\"+r.join(\", \")+n+\"}\"},t.prototype.render=function(){this.element=d(\"div\",\"row\");var t=this.isObject?d(\"a\",\"toggler-link\"):d(\"span\");if(this.isObject&&!this.useToJSON&&t.appendChild(d(\"span\",\"toggler\")),this.hasKey&&t.appendChild(d(\"span\",\"key\",this.key+\":\")),this.isObject&&!this.useToJSON){var e=d(\"span\",\"value\"),r=d(\"span\"),n=d(\"span\",\"constructor-name\",this.constructorName);if(r.appendChild(n),this.isArray){var o=d(\"span\");o.appendChild(d(\"span\",\"bracket\",\"[\")),o.appendChild(d(\"span\",\"number\",this.json.length)),o.appendChild(d(\"span\",\"bracket\",\"]\")),r.appendChild(o)}e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?d(\"a\"):d(\"span\")).classList.add(l(this.type)),this.isDate&&e.classList.add(l(\"date\")),this.isUrl&&(e.classList.add(l(\"url\")),e.setAttribute(\"href\",this.json));var i=f(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(i)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var s=d(\"span\",\"preview-text\");s.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(s)}var a=d(\"div\",\"children\");return this.isObject&&a.classList.add(l(\"object\")),this.isArray&&a.classList.add(l(\"array\")),this.isEmpty&&a.classList.add(l(\"empty\")),this.config&&this.config.theme&&this.element.classList.add(l(this.config.theme)),this.isOpen&&this.element.classList.add(l(\"open\")),this.element.appendChild(t),this.element.appendChild(a),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener(\"click\",this.toggleOpen.bind(this)),this.element},t.prototype.appendChildren=function(e){var r=this;void 0===e&&(e=!1);var n=this.element.querySelector(\"div.\"+l(\"children\"));if(n&&!this.isEmpty)if(e){var o=0,i=function(){var e=r.keys[o],s=new t(r.json[e],r.open-1,r.config,e);n.appendChild(s.render()),(o+=1)<r.keys.length&&(o>10?i():h(i))};h(i)}else this.keys.forEach((function(e){var o=new t(r.json[e],r.open-1,r.config,e);n.appendChild(o.render())}))},t.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector(\"div.\"+l(\"children\"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():h(n))};h(n)}else e&&(e.innerHTML=\"\")},t}();r.default=g},\n \"4b8a56c700\": function _(e,t,s,o,i){var n,d;o();const a=e(\"@bokehjs/core/dom\"),h=e(\"@bokehjs/core/bokeh_events\"),r=e(\"35aaab0394\");class m extends h.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}s.JSONEditEvent=m,n=m,m.__name__=\"JSONEditEvent\",n.prototype.event_name=\"json_edit\";class l extends r.HTMLBoxView{connect_signals(){super.connect_signals();const{data:e,disabled:t,templates:s,menu:o,mode:i,search:n,schema:d}=this.model.properties;this.on_change([e],(()=>this.editor.update(this.model.data))),this.on_change([s],(()=>{this.editor.options.templates=this.model.templates})),this.on_change([o],(()=>{this.editor.options.menu=this.model.menu})),this.on_change([n],(()=>{this.editor.options.search=this.model.search})),this.on_change([d],(()=>{this.editor.options.schema=this.model.schema})),this.on_change([t,i],(()=>{const e=this.model.disabled?\"view\":this.model.mode;this.editor.setMode(e)}))}stylesheets(){const e=super.stylesheets();for(const t of this.model.css)e.push(new a.ImportedStyleSheet(t));return e}remove(){super.remove(),this.editor.destroy()}render(){super.render();const e=this.model.disabled?\"view\":this.model.mode;this.editor=new window.JSONEditor(this.shadow_el,{menu:this.model.menu,mode:e,onChangeJSON:e=>{this.model.data=e},onSelectionChange:(e,t)=>{this.model.selection=[e,t]},search:this.model.search,schema:this.model.schema,templates:this.model.templates}),this.editor.set(this.model.data)}}s.JSONEditorView=l,l.__name__=\"JSONEditorView\";class c extends r.HTMLBox{constructor(e){super(e)}}s.JSONEditor=c,d=c,c.__name__=\"JSONEditor\",c.__module__=\"panel.models.jsoneditor\",d.prototype.default_view=l,d.define((({Any:e,Array:t,Boolean:s,String:o})=>({css:[t(o),[]],data:[e,{}],mode:[o,\"tree\"],menu:[s,!0],search:[s,!0],selection:[t(e),[]],schema:[e,null],templates:[t(e),[]]})))},\n \"9c15016be8\": function _(e,t,i,l,s){l();const o=e(\"tslib\");var n;const h=e(\"@bokehjs/core/build_views\"),a=e(\"@bokehjs/core/enums\"),_=e(\"@bokehjs/models/widgets/input_widget\"),d=e(\"@bokehjs/models/ui/icons/icon\"),r=o.__importStar(e(\"@bokehjs/styles/buttons.css\")),c=r,u=e(\"@bokehjs/core/dom\");class b extends _.InputWidgetView{constructor(){super(...arguments),this._downloadable=!1,this._prev_href=\"\",this._prev_download=\"\"}*children(){yield*super.children(),null!=this.icon_view&&(yield this.icon_view)}*controls(){yield this.anchor_el,yield this.button_el}connect_signals(){super.connect_signals(),this.connect(this.model.properties.button_type.change,(()=>this._update_button_style())),this.connect(this.model.properties.filename.change,(()=>this._update_download())),this.connect(this.model.properties._transfers.change,(()=>this._handle_click())),this.connect(this.model.properties.label.change,(()=>this._update_label()))}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}async lazy_initialize(){await super.lazy_initialize();const{icon:e}=this.model;null!=e&&(this.icon_view=await(0,h.build_view)(e,{parent:this}))}render(){if(super.render(),this.group_el.style.display=\"flex\",this.group_el.style.alignItems=\"stretch\",this.anchor_el=document.createElement(\"a\"),this.button_el=(0,u.button)({disabled:this.model.disabled,type:\"bk_btn, bk_btn_type\"}),null!=this.icon_view){const e=\"\"!=this.model.label?(0,u.nbsp)():(0,u.text)(\"\");(0,u.prepend)(this.button_el,this.icon_view.el,e),this.icon_view.render()}this._update_button_style(),this._update_label(),this.model.disabled?(this.anchor_el.setAttribute(\"disabled\",\"\"),this._downloadable=!1):(this.anchor_el.removeAttribute(\"disabled\"),this._prev_download&&(this.anchor_el.download=this._prev_download),this._prev_href&&(this.anchor_el.href=this._prev_href),this.anchor_el.download&&this.anchor_el.download&&(this._downloadable=!0)),this.model.embed?this._make_link_downloadable():(this._click_listener=this._increment_clicks.bind(this),this.anchor_el.addEventListener(\"click\",this._click_listener)),this.button_el.appendChild(this.anchor_el),this.group_el.appendChild(this.button_el)}stylesheets(){return[...super.stylesheets(),r.default]}_increment_clicks(){this.model.clicks=this.model.clicks+1}_handle_click(){!this.model.auto&&this._downloadable||this.anchor_el.hasAttribute(\"disabled\")||(this._make_link_downloadable(),!this.model.embed&&this.model.auto&&(this.anchor_el.removeEventListener(\"click\",this._click_listener),this.anchor_el.click(),this.anchor_el.removeAttribute(\"href\"),this.anchor_el.removeAttribute(\"download\"),this.anchor_el.addEventListener(\"click\",this._click_listener)),this._prev_href=this.anchor_el.getAttribute(\"href\"),this._prev_download=this.anchor_el.getAttribute(\"download\"))}_make_link_downloadable(){this._update_href(),this._update_download(),this.anchor_el.download&&this.anchor_el.href&&(this._downloadable=!0)}_update_href(){if(this.model.data){const e=function(e){const t=atob(e.split(\",\")[1]),i=e.split(\",\")[0].split(\":\")[1].split(\";\")[0],l=new ArrayBuffer(t.length),s=new Uint8Array(l);for(let e=0;e<t.length;e++)s[e]=t.charCodeAt(e);return new Blob([l],{type:i})}(this.model.data);this.anchor_el.href=URL.createObjectURL(e)}}_update_download(){this.model.filename&&(this.anchor_el.download=this.model.filename)}_update_label(){this.anchor_el.textContent=this.model.label}_update_button_style(){const e=c[`btn_${this.model.button_type}`];if(this.button_el.hasAttribute(\"class\")){const t=this.anchor_el.classList.item(1);t&&this.button_el.classList.replace(t,e)}else this.button_el.classList.add(c.btn),this.button_el.classList.add(e)}}i.FileDownloadView=b,b.__name__=\"FileDownloadView\";class p extends _.InputWidget{constructor(e){super(e)}}i.FileDownload=p,n=p,p.__name__=\"FileDownload\",p.__module__=\"panel.models.widgets\",n.prototype.default_view=b,n.define((({Boolean:e,Int:t,Nullable:i,Ref:l,String:s})=>({auto:[e,!1],clicks:[t,0],data:[i(s),null],embed:[e,!1],icon:[i(l(d.Icon)),null],label:[s,\"Download\"],filename:[i(s),null],button_type:[a.ButtonType,\"default\"],_transfers:[t,0]}))),n.override({title:\"\"})},\n \"921df82f50\": function _(e,t,a,n,r){var i;n();const s=e(\"@bokehjs/models/widgets/markup\"),l=e(\"35aaab0394\");class d extends l.PanelMarkupView{render(){super.render(),this.container.innerHTML=this.model.text,window.renderMathInElement&&window.renderMathInElement(this.shadow_el,{delimiters:[{left:\"$$\",right:\"$$\",display:!0},{left:\"\\\\[\",right:\"\\\\]\",display:!0},{left:\"$\",right:\"$\",display:!1},{left:\"\\\\(\",right:\"\\\\)\",display:!1}]})}}a.KaTeXView=d,d.__name__=\"KaTeXView\";class o extends s.Markup{constructor(e){super(e)}}a.KaTeX=o,i=o,o.__name__=\"KaTeX\",o.__module__=\"panel.models.katex\",i.prototype.default_view=d},\n \"00a25cf872\": function _(e,o,t,h,i){var a;h();const s=e(\"@bokehjs/core/view\"),n=e(\"@bokehjs/model\");class d extends s.View{initialize(){super.initialize(),this.model.pathname=window.location.pathname,this.model.search=window.location.search,this.model.hash=window.location.hash,this.model.href=window.location.href,this.model.hostname=window.location.hostname,this.model.protocol=window.location.protocol,this.model.port=window.location.port,this._hash_listener=()=>{this.model.hash=window.location.hash},window.addEventListener(\"hashchange\",this._hash_listener),this._has_finished=!0,this.notify_finished()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.pathname.change,(()=>this.update(\"pathname\"))),this.connect(this.model.properties.search.change,(()=>this.update(\"search\"))),this.connect(this.model.properties.hash.change,(()=>this.update(\"hash\"))),this.connect(this.model.properties.reload.change,(()=>this.update(\"reload\")))}remove(){super.remove(),window.removeEventListener(\"hashchange\",this._hash_listener)}update(e){this.model.reload&&\"reload\"!==e?(\"pathname\"==e&&(window.location.pathname=this.model.pathname),\"search\"==e&&(window.location.search=this.model.search),\"hash\"==e&&(window.location.hash=this.model.hash)):(window.history.pushState({},\"\",`${this.model.pathname}${this.model.search}${this.model.hash}`),this.model.href=window.location.href,\"reload\"===e&&window.location.reload())}}t.LocationView=d,d.__name__=\"LocationView\";class l extends n.Model{constructor(e){super(e)}}t.Location=l,a=l,l.__name__=\"Location\",l.__module__=\"panel.models.location\",a.prototype.default_view=d,a.define((({Boolean:e,String:o})=>({href:[o,\"\"],hostname:[o,\"\"],pathname:[o,\"\"],protocol:[o,\"\"],port:[o,\"\"],search:[o,\"\"],hash:[o,\"\"],reload:[e,!1]})))},\n \"9ec67eb09e\": function _(e,a,t,s,_){var n;s();const r=e(\"@bokehjs/models/widgets/markup\"),i=e(\"35aaab0394\");class o extends i.PanelMarkupView{render(){super.render(),this.container.innerHTML=this.has_math_disabled()?this.model.text:this.process_tex(this.model.text)}}t.MathJaxView=o,o.__name__=\"MathJaxView\";class d extends r.Markup{constructor(e){super(e)}}t.MathJax=d,n=d,d.__name__=\"MathJax\",d.__module__=\"panel.models.mathjax\",n.prototype.default_view=o},\n \"d49a559fbc\": function _(e,t,s,n,o){var a;n();const i=e(\"@bokehjs/models/widgets/markup\"),r=e(\"35aaab0394\"),d=e(\"3c5d08f9d8\");class l extends r.PanelMarkupView{connect_signals(){super.connect_signals();const e=this.model.properties,{text:t,width:s,height:n,embed:o,start_page:a}=e;this.on_change([t,s,n,o,a],(()=>{this.update()}))}render(){super.render(),this.update()}update(){if(this.model.embed){const e=this.convert_base64_to_blob(),t=URL.createObjectURL(e),s=this.model.width||\"100%\",n=this.model.height||\"100%\";this.container.innerHTML=`<embed src=\"${t}#page=${this.model.start_page}\" type=\"application/pdf\" width=\"${s}\" height=\"${n}\"></embed>`}else{const e=(0,d.htmlDecode)(this.model.text);this.container.innerHTML=e||\"\"}}convert_base64_to_blob(){const e=atob(this.model.text);var t=[];for(let s=0;s<e.length;s+=512){const n=e.slice(s,s+512),o=new Uint8Array(n.length);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);t.push(o)}return new Blob(t,{type:\"application/pdf\"})}}s.PDFView=l,l.__name__=\"PDFView\";class h extends i.Markup{constructor(e){super(e)}}s.PDF=h,a=h,h.__name__=\"PDF\",h.__module__=\"panel.models.markup\",a.prototype.default_view=l,a.define((({Number:e,Boolean:t})=>({embed:[t,!0],start_page:[e,1]})))},\n \"9f0456e5b5\": function _(e,t,s,i,r){var n;i();const o=e(\"@bokehjs/core/dom\"),l=e(\"@bokehjs/models/sources/column_data_source\"),c=e(\"35aaab0394\"),a={\"material-dark\":\"Material Dark\",material:\"Material Light\",vaporwave:\"Vaporwave\",solarized:\"Solarized\",\"solarized-dark\":\"Solarized Dark\",monokai:\"Monokai\"},h={datagrid:\"Datagrid\",d3_x_bar:\"X Bar\",d3_y_bar:\"Y Bar\",d3_xy_line:\"X/Y Line\",d3_y_line:\"Y Line\",d3_y_area:\"Y Area\",d3_y_scatter:\"Y Scatter\",d3_xy_scatter:\"X/Y Scatter\",d3_treemap:\"Treemap\",d3_candlestick:\"Candlestick\",d3_sunburst:\"Sunburst\",d3_heatmap:\"Heatmap\",d3_ohlc:\"OHLC\"};function p(e){const t={};return Object.keys(e).forEach((s=>{t[e[s]]=s})),t}const d=p(h),_=p(a);class m extends c.HTMLBoxView{constructor(){super(...arguments),this._updating=!1,this._config_listener=null,this._current_config=null,this._loaded=!1}connect_signals(){super.connect_signals(),this.connect(this.model.source.properties.data.change,(()=>this.setData())),this.connect(this.model.source.streaming,(()=>this.stream())),this.connect(this.model.source.patching,(()=>this.patch())),this.connect(this.model.properties.schema.change,(()=>{this.worker.table(this.model.schema).then((e=>{this.table=e,this.table.update(this.data),this.perspective_element.load(this.table)}))})),this.connect(this.model.properties.toggle_config.change,(()=>{this.perspective_element.toggleConfig()})),this.connect(this.model.properties.columns.change,(()=>{this.perspective_element.restore({columns:this.model.columns})})),this.connect(this.model.properties.expressions.change,(()=>{this.perspective_element.restore({expressions:this.model.expressions})})),this.connect(this.model.properties.split_by.change,(()=>{this.perspective_element.restore({split_by:this.model.split_by})})),this.connect(this.model.properties.group_by.change,(()=>{this.perspective_element.restore({group_by:this.model.group_by})})),this.connect(this.model.properties.aggregates.change,(()=>{this.perspective_element.restore({aggregates:this.model.aggregates})})),this.connect(this.model.properties.filters.change,(()=>{this.perspective_element.restore({filter:this.model.filters})})),this.connect(this.model.properties.sort.change,(()=>{this.perspective_element.restore({sort:this.model.sort})})),this.connect(this.model.properties.plugin.change,(()=>{this.perspective_element.restore({plugin:h[this.model.plugin]})})),this.connect(this.model.properties.selectable.change,(()=>{this.perspective_element.restore({plugin_config:Object.assign(Object.assign({},this._current_config),{selectable:this.model.selectable})})})),this.connect(this.model.properties.editable.change,(()=>{this.perspective_element.restore({plugin_config:Object.assign(Object.assign({},this._current_config),{editable:this.model.editable})})})),this.connect(this.model.properties.theme.change,(()=>{this.perspective_element.restore({theme:a[this.model.theme]}).catch((()=>{}))}))}disconnect_signals(){null!=this._config_listener&&this.perspective_element.removeEventListener(\"perspective-config-update\",this._config_listener),this._config_listener=null,super.disconnect_signals()}remove(){this.perspective_element.delete((()=>this.worker.terminate())),super.remove()}render(){super.render(),this.worker=window.perspective.worker();const e=(0,o.div)({class:\"pnx-perspective-viewer\",style:{zIndex:0}});e.innerHTML=\"<perspective-viewer style='height:100%; width:100%;'></perspective-viewer>\",this.perspective_element=e.children[0],this.perspective_element.resetThemes([...Object.values(a)]).catch((()=>{})),this.model.toggle_config&&this.perspective_element.toggleConfig(),(0,c.set_size)(this.perspective_element,this.model),this.shadow_el.appendChild(e),this.worker.table(this.model.schema).then((e=>{this.table=e,this.table.update(this.data),this.perspective_element.load(this.table);const t=Object.assign(Object.assign({},this.model.plugin_config),{editable:this.model.editable,selectable:this.model.selectable});this.perspective_element.restore({aggregates:this.model.aggregates,columns:this.model.columns,expressions:this.model.expressions,filter:this.model.filters,split_by:this.model.split_by,group_by:this.model.group_by,plugin:h[this.model.plugin],plugin_config:t,sort:this.model.sort,theme:a[this.model.theme]}).catch((()=>{})),this.perspective_element.save().then((e=>{this._current_config=e})),this._config_listener=()=>this.sync_config(),this.perspective_element.addEventListener(\"perspective-config-update\",this._config_listener),this._loaded=!0}))}sync_config(){return this._updating||this.perspective_element.save().then((e=>{this._current_config=e;const t={};for(let s in e){let i=e[s];void 0===i||\"plugin\"==s&&\"debug\"===i||\"settings\"===s||(\"filter\"===s?s=\"filters\":\"plugin\"===s?i=d[i]:\"theme\"===s&&(i=_[i]),t[s]=i)}this._updating=!0,this.model.setv(t),this._updating=!1})),!0}get data(){const e={};for(const t of this.model.source.columns())e[t]=this.model.source.get_array(t);return e}setData(){if(this._loaded){for(const e of this.model.source.columns())if(!(e in this.model.schema))return;this.table.replace(this.data)}}stream(){this._loaded&&this.table.replace(this.data)}patch(){this._loaded&&this.table.replace(this.data)}}s.PerspectiveView=m,m.__name__=\"PerspectiveView\";class g extends c.HTMLBox{constructor(e){super(e)}}s.Perspective=g,n=g,g.__name__=\"Perspective\",g.__module__=\"panel.models.perspective\",n.prototype.default_view=m,n.define((({Any:e,Array:t,Boolean:s,Ref:i,Nullable:r,String:n})=>({aggregates:[e,{}],columns:[t(r(n)),[]],expressions:[r(t(n)),null],split_by:[r(t(n)),null],editable:[s,!0],filters:[r(t(e)),null],group_by:[r(t(n)),null],plugin:[n],plugin_config:[e,{}],selectable:[s,!0],schema:[e,{}],toggle_config:[s,!0],sort:[r(t(t(n))),null],source:[i(l.ColumnDataSource)],theme:[n,\"material\"]})))},\n \"c172556ad3\": function _(e,t,i,s,o){var l;s();const n=e(\"@bokehjs/core/kinds\"),a=e(\"@bokehjs/core/dom\"),r=e(\"@bokehjs/models/widgets/widget\");function d(e){e.forEach((e=>e.style.borderStyle=\"inset\"))}function h(e){e.forEach((e=>e.style.borderStyle=\"outset\"))}class c extends r.WidgetView{constructor(){super(...arguments),this._changing=!1}connect_signals(){super.connect_signals(),this.connect(this.model.properties.direction.change,(()=>this.set_direction())),this.connect(this.model.properties.value.change,(()=>this.render())),this.connect(this.model.properties.loop_policy.change,(()=>this.set_loop_state(this.model.loop_policy))),this.connect(this.model.properties.disabled.change,(()=>this.toggle_disable())),this.connect(this.model.properties.show_loop_controls.change,(()=>{this.model.show_loop_controls&&this.loop_state.parentNode!=this.groupEl?this.groupEl.appendChild(this.loop_state):this.model.show_loop_controls||this.loop_state.parentNode!=this.groupEl||this.groupEl.removeChild(this.loop_state)}))}toggle_disable(){this.sliderEl.disabled=this.model.disabled;for(const e of this.buttonEl.children){e.disabled=this.model.disabled}for(const e of this.loop_state.children)if(\"input\"==e.tagName){e.disabled=this.model.disabled}}get_height(){return 250}render(){if(null!=this.sliderEl)return this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),void(this.sliderEl.value=String(this.model.value));super.render(),this.groupEl=(0,a.div)(),this.groupEl.style.display=\"flex\",this.groupEl.style.flexDirection=\"column\",this.groupEl.style.alignItems=\"center\",this.sliderEl=document.createElement(\"input\"),this.sliderEl.style.width=\"100%\",this.sliderEl.setAttribute(\"type\",\"range\"),this.sliderEl.value=String(this.model.value),this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.addEventListener(\"input\",(e=>{this.set_frame(parseInt(e.target.value),!1)})),this.sliderEl.addEventListener(\"change\",(e=>{this.set_frame(parseInt(e.target.value))}));const e=(0,a.div)();this.buttonEl=e,e.style.cssText=\"margin: 0 auto; display: flex; padding: 5px; align-items: stretch; width: 100%;\";const t=\"text-align: center; min-width: 20px; flex-grow: 1; margin: 2px\",i=\"text-align: center; min-width: 40px; flex-grow: 2; margin: 2px\",s=document.createElement(\"button\");s.style.cssText=t,s.appendChild(document.createTextNode(\"\\u2013\")),s.onclick=()=>this.slower(),e.appendChild(s);const o=document.createElement(\"button\");o.style.cssText=i,o.appendChild(document.createTextNode(\"\\u275a\\u25c0\\u25c0\")),o.onclick=()=>this.first_frame(),e.appendChild(o);const l=document.createElement(\"button\");l.style.cssText=i,l.appendChild(document.createTextNode(\"\\u275a\\u25c0\")),l.onclick=()=>this.previous_frame(),e.appendChild(l);const n=document.createElement(\"button\");n.style.cssText=i,n.appendChild(document.createTextNode(\"\\u25c0\")),n.onclick=()=>this.reverse_animation(),e.appendChild(n);const r=document.createElement(\"button\");r.style.cssText=i,r.appendChild(document.createTextNode(\"\\u275a\\u275a\")),r.onclick=()=>this.pause_animation(),e.appendChild(r);const c=document.createElement(\"button\");c.style.cssText=i,c.appendChild(document.createTextNode(\"\\u25b6\")),c.onclick=()=>this.play_animation(),e.appendChild(c);const p=document.createElement(\"button\");p.style.cssText=i,p.appendChild(document.createTextNode(\"\\u25b6\\u275a\")),p.onclick=()=>this.next_frame(),e.appendChild(p);const m=document.createElement(\"button\");m.style.cssText=i,m.appendChild(document.createTextNode(\"\\u25b6\\u25b6\\u275a\")),m.onclick=()=>this.last_frame(),e.appendChild(m);const _=document.createElement(\"button\");_.style.cssText=t,_.appendChild(document.createTextNode(\"+\")),_.onclick=()=>this.faster(),e.appendChild(_),this._toggle_reverse=()=>{h([r,c]),d([n])},this._toogle_pause=()=>{h([n,c]),d([r])},this._toggle_play=()=>{h([n,r]),d([c])},this.loop_state=document.createElement(\"form\"),this.loop_state.style.cssText=\"margin: 0 auto; display: table\";const u=document.createElement(\"input\");u.type=\"radio\",u.value=\"once\",u.name=\"state\";const g=document.createElement(\"label\");g.innerHTML=\"Once\",g.style.cssText=\"padding: 0 10px 0 5px; user-select:none;\";const f=document.createElement(\"input\");f.setAttribute(\"type\",\"radio\"),f.setAttribute(\"value\",\"loop\"),f.setAttribute(\"name\",\"state\");const v=document.createElement(\"label\");v.innerHTML=\"Loop\",v.style.cssText=\"padding: 0 10px 0 5px; user-select:none;\";const E=document.createElement(\"input\");E.setAttribute(\"type\",\"radio\"),E.setAttribute(\"value\",\"reflect\"),E.setAttribute(\"name\",\"state\");const x=document.createElement(\"label\");x.innerHTML=\"Reflect\",x.style.cssText=\"padding: 0 10px 0 5px; user-select:none;\",\"once\"==this.model.loop_policy?u.checked=!0:\"loop\"==this.model.loop_policy?f.checked=!0:E.checked=!0,this.loop_state.appendChild(u),this.loop_state.appendChild(g),this.loop_state.appendChild(f),this.loop_state.appendChild(v),this.loop_state.appendChild(E),this.loop_state.appendChild(x),this.groupEl.appendChild(this.sliderEl),this.groupEl.appendChild(e),this.model.show_loop_controls&&this.groupEl.appendChild(this.loop_state),this.toggle_disable(),this.shadow_el.appendChild(this.groupEl)}set_frame(e,t=!0){this.model.value=e,t&&(this.model.value_throttled=e),this.sliderEl.value!=String(e)&&(this.sliderEl.value=String(e))}get_loop_state(){for(var e=this.loop_state.state,t=0;t<e.length;t++){var i=e[t];if(i.checked)return i.value}return\"once\"}set_loop_state(e){for(var t=this.loop_state.state,i=0;i<t.length;i++){var s=t[i];s.value==e&&(s.checked=!0)}}next_frame(){this.set_frame(Math.min(this.model.end,this.model.value+this.model.step))}previous_frame(){this.set_frame(Math.max(this.model.start,this.model.value-this.model.step))}first_frame(){this.set_frame(this.model.start)}last_frame(){this.set_frame(this.model.end)}slower(){this.model.interval=Math.round(this.model.interval/.7),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}faster(){this.model.interval=Math.round(.7*this.model.interval),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}anim_step_forward(){if(this.model.value<this.model.end)this.next_frame();else{var e=this.get_loop_state();\"loop\"==e?this.first_frame():\"reflect\"==e?(this.last_frame(),this.reverse_animation()):(this.pause_animation(),this.last_frame())}}anim_step_reverse(){if(this.model.value>this.model.start)this.previous_frame();else{var e=this.get_loop_state();\"loop\"==e?this.last_frame():\"reflect\"==e?(this.first_frame(),this.play_animation()):(this.pause_animation(),this.first_frame())}}set_direction(){this._changing||(0===this.model.direction?this.pause_animation():1===this.model.direction?this.play_animation():-1===this.model.direction&&this.reverse_animation())}pause_animation(){this._toogle_pause(),this._changing=!0,this.model.direction=0,this._changing=!1,this.timer&&(clearInterval(this.timer),this.timer=null)}play_animation(){this.pause_animation(),this._toggle_play(),this._changing=!0,this.model.direction=1,this._changing=!1,this.timer||(this.timer=setInterval((()=>this.anim_step_forward()),this.model.interval))}reverse_animation(){this.pause_animation(),this._toggle_reverse(),this._changing=!0,this.model.direction=-1,this._changing=!1,this.timer||(this.timer=setInterval((()=>this.anim_step_reverse()),this.model.interval))}}i.PlayerView=c,c.__name__=\"PlayerView\",i.LoopPolicy=(0,n.Enum)(\"once\",\"loop\",\"reflect\");class p extends r.Widget{constructor(e){super(e)}}i.Player=p,l=p,p.__name__=\"Player\",p.__module__=\"panel.models.widgets\",l.prototype.default_view=c,l.define((({Boolean:e,Int:t})=>({direction:[t,0],interval:[t,500],start:[t,0],end:[t,10],step:[t,1],loop_policy:[i.LoopPolicy,\"once\"],value:[t,0],value_throttled:[t,0],show_loop_controls:[e,!0]}))),l.override({width:400})},\n \"16c8f59cca\": function _(t,e,o,i,s){var r;i();const n=t(\"@bokehjs/core/dom\"),l=t(\"@bokehjs/core/util/object\"),a=t(\"@bokehjs/core/util/eq\"),h=t(\"@bokehjs/models/sources/column_data_source\"),d=t(\"99a25e6992\"),c=t(\"990b5dd5c7\"),p=t(\"35aaab0394\"),_=(t,e,o)=>{let i=Array.isArray(e)?[]:{};if(\"click\"===o||\"hover\"===o||\"selected\"===o){const o=[];if(null==e)return null;const s=t.data;for(let t=0;t<e.points.length;t++){const i=e.points[t];let r={};for(let t in i){const e=i[t];!i.hasOwnProperty(t)||Array.isArray(e)||(0,c.isPlainObject)(e)||void 0===e||(r[t]=e)}null!=i&&(i.hasOwnProperty(\"curveNumber\")&&i.hasOwnProperty(\"pointNumber\")&&s[i.curveNumber].hasOwnProperty(\"customdata\")&&(r.customdata=s[i.curveNumber].customdata[i.pointNumber]),i.hasOwnProperty(\"pointNumbers\")&&(r.pointNumbers=i.pointNumbers)),o[t]=r}i.points=o}else if(\"relayout\"===o||\"restyle\"===o)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return e.hasOwnProperty(\"range\")&&(i.range=e.range),e.hasOwnProperty(\"lassoPoints\")&&(i.lassoPoints=e.lassoPoints),i};class u extends p.HTMLBoxView{constructor(){super(...arguments),this._settingViewport=!1,this._plotInitialized=!1,this._rendered=!1,this._reacting=!1,this._relayouting=!1,this._end_relayouting=(0,d.debounce)((()=>{this._relayouting=!1}),2e3,!1)}connect_signals(){super.connect_signals();const{data:t,data_sources:e,layout:o,relayout:i,restyle:s}=this.model.properties;this.on_change([t,e,o],(()=>{const t=this.model._render_count;setTimeout((()=>{this.model._render_count===t&&(this.model._render_count+=1)}),250)})),this.on_change([i],(()=>{null!=this.model.relayout&&(window.Plotly.relayout(this.container,this.model.relayout),this.model.relayout=null)})),this.on_change([s],(()=>{null!=this.model.restyle&&(window.Plotly.restyle(this.container,this.model.restyle.data,this.model.restyle.traces),this.model.restyle=null)})),this.connect(this.model.properties.viewport_update_policy.change,(()=>{this._updateSetViewportFunction()})),this.connect(this.model.properties.viewport_update_throttle.change,(()=>{this._updateSetViewportFunction()})),this.connect(this.model.properties._render_count.change,(()=>{this.plot()})),this.connect(this.model.properties.frames.change,(()=>{this.plot(!0)})),this.connect(this.model.properties.viewport.change,(()=>this._updateViewportFromProperty()))}remove(){window.Plotly.purge(this.container),super.remove()}render(){super.render(),this.container=(0,n.div)(),(0,p.set_size)(this.container,this.model),this._rendered=!1,this.shadow_el.appendChild(this.container),this.watch_stylesheets(),this.plot().then((()=>{this._rendered=!0,null!=this.model.relayout&&window.Plotly.relayout(this.container,this.model.relayout),window.Plotly.Plots.resize(this.container)}))}style_redraw(){this._rendered&&window.Plotly.Plots.resize(this.container)}after_layout(){super.after_layout(),this._rendered&&window.Plotly.Plots.resize(this.container)}_trace_data(){const t=[];for(let e=0;e<this.model.data.length;e++)t.push(this._get_trace(e,!1));return t}_layout_data(){const t=(0,c.deepCopy)(this.model.layout);if(this._relayouting){const{layout:e}=this.container;Object.keys(e).reduce(((e,o)=>{\"axis\"===o.slice(1,5)&&\"range\"in e&&(t[o].range=e.range)}),{})}return t}_install_callbacks(){this.container.on(\"plotly_relayout\",(t=>{!0!==t._update_from_property&&(this.model.relayout_data=_(this.container,t,\"relayout\"),this._updateViewportProperty(),this._end_relayouting())})),this.container.on(\"plotly_relayouting\",(()=>{\"mouseup\"!==this.model.viewport_update_policy&&(this._relayouting=!0,this._updateViewportProperty())})),this.container.on(\"plotly_restyle\",(t=>{this.model.restyle_data=_(this.container,t,\"restyle\"),this._updateViewportProperty()})),this.container.on(\"plotly_click\",(t=>{this.model.click_data=_(this.container,t,\"click\")})),this.container.on(\"plotly_hover\",(t=>{this.model.hover_data=_(this.container,t,\"hover\")})),this.container.on(\"plotly_selected\",(t=>{this.model.selected_data=_(this.container,t,\"selected\")})),this.container.on(\"plotly_clickannotation\",(t=>{delete t.event,delete t.fullAnnotation,this.model.clickannotation_data=t})),this.container.on(\"plotly_deselect\",(()=>{this.model.selected_data=null})),this.container.on(\"plotly_unhover\",(()=>{this.model.hover_data=null}))}async plot(t=!1){if(!window.Plotly)return;const e=this._trace_data(),o=this._layout_data();if(this._reacting=!0,t){const t={data:e,layout:o,config:this.model.config,frames:this.model.frames};await window.Plotly.newPlot(this.container,t)}else await window.Plotly.react(this.container,e,o,this.model.config),null!=this.model.frames&&await window.Plotly.addFrames(this.container,this.model.frames);var i,s;this._updateSetViewportFunction(),this._updateViewportProperty(),this._plotInitialized?(i=this.container,(s=window.getComputedStyle(i).display)&&\"none\"!==s&&window.Plotly.Plots.resize(this.container)):this._install_callbacks(),this._reacting=!1,this._plotInitialized=!0}_get_trace(t,e){const o=(0,l.clone)(this.model.data[t]),i=this.model.data_sources[t];for(const t of i.columns()){let s=i.get_array(t)[0];if(null!=s.shape&&s.shape.length>1){const t=[],e=s.shape;for(let o=0;o<e[0];o++)t.push(s.slice(o*e[1],(o+1)*e[1]));s=t}let r=t.split(\".\"),n=r[r.length-1],l=o;for(let t of r.slice(0,-1))l=l[t];e&&1==r.length?l[n]=[s]:l[n]=s}return o}_updateViewportFromProperty(){if(!window.Plotly||this._settingViewport||this._reacting||!this.model.viewport)return;const t=this.container._fullLayout;Object.keys(this.model.viewport).reduce(((e,o)=>{if((0,a.is_equal)((0,c.get)(t,o),e))return!0;{let t=(0,c.deepCopy)(this.model.viewport);return t._update_from_property=!0,this._settingViewport=!0,window.Plotly.relayout(this.el,t).then((()=>{this._settingViewport=!1})),!1}}),{})}_updateViewportProperty(){const t=this.container._fullLayout;let e={};for(let o in t){if(!t.hasOwnProperty(o))continue;let i=o.slice(0,5);\"xaxis\"!==i&&\"yaxis\"!==i||(e[o+\".range\"]=(0,c.deepCopy)(t[o].range))}(0,a.is_equal)(e,this.model.viewport)||this._setViewport(e)}_updateSetViewportFunction(){\"continuous\"===this.model.viewport_update_policy||\"mouseup\"===this.model.viewport_update_policy?this._setViewport=t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}:this._setViewport=(0,c.throttle)((t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}),this.model.viewport_update_throttle)}}o.PlotlyPlotView=u,u.__name__=\"PlotlyPlotView\";class y extends p.HTMLBox{constructor(t){super(t)}}o.PlotlyPlot=y,r=y,y.__name__=\"PlotlyPlot\",y.__module__=\"panel.models.plotly\",r.prototype.default_view=u,r.define((({Array:t,Any:e,Nullable:o,Number:i,Ref:s,String:r})=>({data:[t(e),[]],layout:[e,{}],config:[e,{}],frames:[o(t(e)),null],data_sources:[t(s(h.ColumnDataSource)),[]],relayout:[o(e),{}],restyle:[o(e),{}],relayout_data:[e,{}],restyle_data:[t(e),[]],click_data:[e,{}],hover_data:[e,{}],clickannotation_data:[e,{}],selected_data:[e,{}],viewport:[e,{}],viewport_update_policy:[r,\"mouseup\"],viewport_update_throttle:[i,200],_render_count:[i,0]})))},\n \"990b5dd5c7\": function _(t,n,e,r,o){r();e.get=(t,n,e=undefined)=>{const r=e=>String.prototype.split.call(n,e).filter(Boolean).reduce(((t,n)=>null!=t?t[n]:t),t),o=r(/[,[\\]]+?/)||r(/[,[\\].]+?/);return void 0===o||o===t?e:o},e.throttle=function(t,n){var e=0;return function(){var r=Number(new Date);r-e>=n&&(t(),e=r)}},e.deepCopy=function t(n){var e;if(null==n||\"object\"!=typeof n)return n;if(n instanceof Array){e=[];for(var r=0,o=n.length;r<o;r++)e[r]=t(n[r]);return e}if(n instanceof Object){const e={};for(const r in n){const o=r;n.hasOwnProperty(o)&&(e[o]=t(n[o]))}return e}throw new Error(\"Unable to copy obj! Its type isn't supported.\")},e.isPlainObject=function(t){return\"[object Object]\"===Object.prototype.toString.call(t)}},\n \"b82925a928\": function _(e,s,t,o,i){var r;o();const l=e(\"@bokehjs/core/dom\"),h=e(\"35aaab0394\");class n extends h.HTMLBoxView{connect_signals(){super.connect_signals();const e=()=>this.render();this.connect(this.model.properties.height.change,e),this.connect(this.model.properties.width.change,e),this.connect(this.model.properties.height_policy.change,e),this.connect(this.model.properties.width_policy.change,e),this.connect(this.model.properties.sizing_mode.change,e),this.connect(this.model.properties.active.change,(()=>this.setCSS())),this.connect(this.model.properties.bar_color.change,(()=>this.setCSS())),this.connect(this.model.properties.css_classes.change,(()=>this.setCSS())),this.connect(this.model.properties.value.change,(()=>this.setValue())),this.connect(this.model.properties.max.change,(()=>this.setMax()))}render(){super.render();const e=Object.assign(Object.assign({},this.model.styles),{display:\"inline-block\"});this.progressEl=document.createElement(\"progress\"),this.setValue(),this.setMax(),this.setCSS();for(const s in e)this.progressEl.style.setProperty(s,e[s]);this.shadow_el.appendChild(this.progressEl)}stylesheets(){const e=super.stylesheets();for(const s of this.model.css)e.push(new l.ImportedStyleSheet(s));return e}setCSS(){let e=this.model.css_classes.join(\" \")+\" \"+this.model.bar_color;this.model.active&&(e+=\" active\"),this.progressEl.className=e}setValue(){null==this.model.value?this.progressEl.value=0:this.model.value>=0?this.progressEl.value=this.model.value:this.model.value<0&&this.progressEl.removeAttribute(\"value\")}setMax(){null!=this.model.max&&(this.progressEl.max=this.model.max)}}t.ProgressView=n,n.__name__=\"ProgressView\";class c extends h.HTMLBox{constructor(e){super(e)}}t.Progress=c,r=c,c.__name__=\"Progress\",c.__module__=\"panel.models.widgets\",r.prototype.default_view=n,r.define((({Any:e,Array:s,Boolean:t,Number:o,String:i})=>({active:[t,!0],bar_color:[i,\"primary\"],css:[s(i),[]],max:[o,100],value:[e,null]})))},\n \"371de13dfc\": function _(e,t,l,i,o){var s;i();const n=e(\"@bokehjs/core/dom\"),d=e(\"35aaab0394\");class a extends d.HTMLBoxView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.disabled.change,(()=>this.quill.enable(!this.model.disabled))),this.connect(this.model.properties.text.change,(()=>{this._editing||(this._editing=!0,this.quill.enable(!1),this.quill.setContents([]),this.quill.clipboard.dangerouslyPasteHTML(this.model.text),this.quill.enable(!this.model.disabled),this._editing=!1)}));const{mode:e,toolbar:t,placeholder:l}=this.model.properties;this.on_change([l],(()=>{this.quill.root.setAttribute(\"data-placeholder\",this.model.placeholder)})),this.on_change([e,t],(()=>{this.render(),this._layout_toolbar()}))}_layout_toolbar(){if(null==this._toolbar)this.el.style.removeProperty(\"padding-top\");else{const e=this._toolbar.getBoundingClientRect().height+1;this.el.style.paddingTop=e+\"px\",this._toolbar.style.marginTop=-e+\"px\"}}render(){super.render(),this.container=(0,n.div)({}),this.shadow_el.appendChild(this.container);const e=\"bubble\"===this.model.mode?\"bubble\":\"snow\";this.quill=new window.Quill(this.container,{modules:{toolbar:this.model.toolbar},readOnly:!0,placeholder:this.model.placeholder,theme:e}),this._editor=this.shadow_el.querySelector(\".ql-editor\"),this._toolbar=this.shadow_el.querySelector(\".ql-toolbar\"),this.quill.clipboard.dangerouslyPasteHTML(this.model.text),this.quill.on(\"text-change\",(()=>{this._editing||(this._editing=!0,this.model.text=this._editor.innerHTML,this._editing=!1)})),this.model.disabled||this.quill.enable(!this.model.disabled),document.addEventListener(\"selectionchange\",((...e)=>{this.quill.selection.update()}))}after_layout(){super.after_layout(),this._layout_toolbar()}}l.QuillInputView=a,a.__name__=\"QuillInputView\";class h extends d.HTMLBox{constructor(e){super(e)}}l.QuillInput=h,s=h,h.__name__=\"QuillInput\",h.__module__=\"panel.models.quill\",s.prototype.default_view=a,s.define((({Any:e,String:t})=>({mode:[t,\"toolbar\"],placeholder:[t,\"\"],text:[t,\"\"],toolbar:[e,null]}))),s.override({height:300})},\n \"6833ed7471\": function _(e,t,n,s,i){var o;s();const r=e(\"1b70f5b1d3\"),l=e(\"283ce7811c\"),c=e(\"b3f51db71c\"),d=e(\"@bokehjs/core/dom\"),h=e(\"@bokehjs/core/build_views\"),a=e(\"@bokehjs/core/util/types\"),_=e(\"fd9108e30e\"),u=e(\"490942d778\"),p=e(\"3c5d08f9d8\"),m=e(\"35aaab0394\");function f(e,t,n){const s={};for(const e of n)s[`{${e}}`]=\"(.*)\";const i=[];let o=\"^\"+(e.replace(/[-\\/\\\\^$*+?.()|[\\]]/g,\"\\\\$&\")+\"$\");let r,l,c;for(const t in s)if(l=e.indexOf(t),l>-1){for(o=o.replace(t,s[t]),c={index:l,token:t},r=0;r<i.length&&i[r].index<l;r++);r<i.length?i.splice(r,0,c):i.push(c)}o=o.replace(/\\{[^{}]+\\}/g,\".*\");var d=new RegExp(o).exec(t);let h=null;if(d)for(h={},r=0;r<i.length;r++)h[i[r].token.slice(1,-1)]=d[r+1];return h}class v extends m.HTMLBoxView{constructor(){super(...arguments),this._parent=null,this._changing=!1,this._event_listeners={},this._mutation_observers=[],this._script_fns={},this._state={}}initialize(){super.initialize(),this.html=(0,p.htmlDecode)(this.model.html)||this.model.html}_recursive_connect(e,t,n){for(const s in e.properties){let i;i=n.length?`${n}.${s}`:s;const o=e[s];null!=o&&(null!=o.properties&&this._recursive_connect(o,!0,i),this.connect(e.properties[s].change,(()=>{if(t)for(const t in this.model.children)if(this.model.children[t]==s){let n=e[s];return(0,a.isArray)(n)||(n=[n]),void this._render_node(t,n)}this._changing||this._update(i)})))}}connect_signals(){super.connect_signals(),this.connect(this.model.properties.children.change,(async()=>{this.html=(0,p.htmlDecode)(this.model.html)||this.model.html,await this.rebuild()})),this._recursive_connect(this.model.data,!0,\"\"),this.connect(this.model.properties.events.change,(()=>{this._remove_event_listeners(),this._setup_event_listeners()})),this.connect_scripts()}connect_scripts(){const e=this.model.data.id;for(let t in this.model.scripts){const n=this.model.scripts[t];let s,i=this.model.data;if(t.indexOf(\".\")>=0){const e=t.split(\".\");s=e[e.length-1];for(const t of e.slice(0,-1))i=i[t]}else s=t;for(const o of n){const n=(0,p.htmlDecode)(o)||o,r=this._render_script(n,e);this._script_fns[t]=r;const l=i.properties[s];null!=l&&this.connect(l.change,(()=>{this._changing||this.run_script(t)}))}}}run_script(e,t=!1){const n=this._script_fns[e];if(void 0===n)return void(t||console.log(`Script '${e}' could not be found.`));const s={get_records:(e,t)=>this.get_records(e,t)};for(const e in this._script_fns)s[e]=()=>this.run_script(e);return n(this.model,this.model.data,this._state,this,(e=>this.run_script(e)),s)}get_records(e,t=!0){return(0,_.dict_to_records)(this.model.data[e],t)}disconnect_signals(){super.disconnect_signals(),this._remove_event_listeners(),this._remove_mutation_observers()}remove(){this.run_script(\"remove\",!0),super.remove()}get child_models(){const e=[];for(const t in this.model.children)for(const n of this.model.children[t])\"string\"!=typeof n&&e.push(n);return e}async build_child_views(){const{created:e,removed:t}=await(0,h.build_views)(this._child_views,this.child_models,{parent:null});for(const e of t)this._resize_observer.unobserve(e.el);for(const t of e)this._resize_observer.observe(t.el,{box:\"border-box\"});return e}_after_layout(){this.run_script(\"after_layout\",!0)}render(){this.empty(),this._update_stylesheets(),this._update_css_classes(),this._apply_styles(),this._apply_visible(),this.container=(0,d.div)({style:\"display: contents;\"}),this.shadow_el.append(this.container),this._update(),this._render_children(),this._setup_mutation_observers(),this._setup_event_listeners(),this.run_script(\"render\",!0)}_send_event(e,t,n){let s=(0,u.serializeEvent)(n);s.type=t;for(const e in s)void 0===s[e]&&delete s[e];this.model.trigger_event(new p.DOMEvent(e,s))}_render_child(e,t){const n=this._child_views.get(e);null==n?t.innerHTML=(0,p.htmlDecode)(e)||e:n.render_to(t)}_render_node(e,t){const n=this.model.data.id;if(this.model.looped.indexOf(e)>-1)for(let s=0;s<t.length;s++){let i=this.shadow_el.getElementById(`${e}-${s}-${n}`);null!=i?this._render_child(t[s],i):console.warn(`DOM node '${e}-${s}-${n}' could not be found. Cannot render children.`)}else{let s=this.shadow_el.getElementById(`${e}-${n}`);if(null==s)return void console.warn(`DOM node '${e}-${n}' could not be found. Cannot render children.`);for(const e of t)this._render_child(e,s)}}_render_children(){for(const e in this.model.children){let t=this.model.children[e];\"string\"==typeof t&&(t=this.model.data[t],(0,a.isArray)(t)||(t=[t])),this._render_node(e,t)}}_render_html(e,t={}){let n=e,s=\"\";const i=[];for(const e in this.model.callbacks)for(const t of this.model.callbacks[e]){const[o,r]=t;let l;if(n=n.replaceAll(\"${\"+r+\"}\",\"$--{\"+r+\"}\"),r.startsWith(\"script(\")){const e=r.replace(\"('\",\"_\").replace(\"')\",\"\").replace('(\"',\"_\").replace('\")',\"\").replace(\"-\",\"_\"),t=e.replaceAll(\"script_\",\"\");n=n.replaceAll(r,e),l=`\\n const ${e} = (event) => {\\n view._state.event = event\\n view.run_script(\"${t}\")\\n delete view._state.event\\n }\\n `}else l=`\\n const ${r} = (event) => {\\n let elname = \"${e}\"\\n if (RegExp(\"{{.*loop.index.*}}\").test(elname)) {\\n const pattern = RegExp(elname.replace(/{{(.+?)}}/g, String.fromCharCode(92) + \"d+\"))\\n for (const p of event.path) {\\n if (pattern.exec(p.id) != null) {\\n elname = p.id.split(\"-\").slice(null, -1).join(\"-\")\\n break\\n }\\n }\\n }\\n view._send_event(elname, \"${o}\", event)\\n }\\n `;i.indexOf(r)>-1||(i.push(r),s+=l)}return n=n.replaceAll(\"${model.\",\"$-{model.\").replaceAll(\"${\",\"${data.\").replaceAll(\"$-{model.\",\"${model.\").replaceAll(\"$--{\",\"${\"),new Function(\"view, model, data, state, html, useCallback\",s+\"return html`\"+n+\"`;\")(this,this.model,this.model.data,t,c.html,l.useCallback)}_render_script(e,t){const n=[];for(const s of this.model.nodes){const i=s.replace(\"-\",\"_\");if(-1===e.indexOf(i))continue;const o=`\\n const ${i} = view.shadow_el.getElementById('${s}-${t}')\\n if (${i} == null) {\\n console.warn(\"DOM node '${s}' could not be found. Cannot execute callback.\")\\n return\\n }\\n `;n.push(o)}return n.push(\"\\n let event = null\\n if (state.event !== undefined) {\\n event = state.event\\n }\\n \"),n.push(e),new Function(\"model, data, state, view, script, self\",n.join(\"\\n\"))}_remove_mutation_observers(){for(const e of this._mutation_observers)e.disconnect();this._mutation_observers=[]}_setup_mutation_observers(){const e=this.model.data.id;for(const t in this.model.attrs){const n=this.shadow_el.getElementById(`${t}-${e}`);if(null==n){console.warn(`DOM node '${t}-${e}' could not be found. Cannot set up MutationObserver.`);continue}const s=new MutationObserver((()=>{this._update_model(n,t)}));s.observe(n,{attributes:!0}),this._mutation_observers.push(s)}}_remove_event_listeners(){const e=this.model.data.id;for(const t in this._event_listeners){const n=this.shadow_el.getElementById(`${t}-${e}`);if(null!=n)for(const e in this._event_listeners[t]){const s=this._event_listeners[t][e];n.removeEventListener(e,s)}}this._event_listeners={}}_setup_event_listeners(){const e=this.model.data.id;for(const t in this.model.events){const n=this.shadow_el.getElementById(`${t}-${e}`);if(null==n){console.warn(`DOM node '${t}-${e}' could not be found. Cannot subscribe to DOM events.`);continue}const s=this.model.events[t];for(const e in s){const i=i=>{this._send_event(t,e,i),t in this.model.attrs&&s[e]&&this._update_model(n,t)};n.addEventListener(e,i),t in this._event_listeners||(this._event_listeners[t]={}),this._event_listeners[t][e]=i}}}_update(e=null){if(null==e||this.html.indexOf(`\\${${e}}`)>-1){const e=this._render_html(this.html);try{this._changing=!0,(0,r.render)(e,this.container)}finally{this._changing=!1}}}_update_model(e,t){if(this._changing)return;const n={};for(const s of this.model.attrs[t]){const[i,o,r]=s;let l=\"children\"===i?e.innerHTML:e[i];if(1===o.length&&`{${o[0]}}`===r)n[o[0]]=l;else if(\"string\"==typeof l)if(l=f(r,l,o),null==l)console.warn(`Could not resolve parameters in ${t} element ${i} attribute value ${l}.`);else for(const e in l)void 0===l[e]?console.warn(`Could not resolve ${e} in ${t} element ${i} attribute value ${l}.`):n[e]=l[e]}try{this._changing=!0,this.model.data.setv(function(e){const t={};for(const n in e){let s=e[n];\"string\"!=typeof s||(\"\"===s||\"NaN\"!==s&&isNaN(Number(s))?\"false\"!==s&&\"true\"!==s||(s=\"true\"===s):s=Number(s)),t[n]=s}return t}(n))}catch(e){console.log(\"Could not serialize\",n)}finally{this._changing=!1}}}n.ReactiveHTMLView=v,v.__name__=\"ReactiveHTMLView\";class g extends m.HTMLBox{constructor(e){super(e)}}n.ReactiveHTML=g,o=g,g.__name__=\"ReactiveHTML\",g.__module__=\"panel.models.reactive_html\",o.prototype.default_view=v,o.define((({Array:e,Any:t,String:n})=>({attrs:[t,{}],callbacks:[t,{}],children:[t,{}],data:[t],events:[t,{}],html:[n,\"\"],looped:[e(n),[]],nodes:[e(n),[]],scripts:[t,{}]})))},\n \"1b70f5b1d3\": function _(e,n,t,_,l){_();var o,r,i,u,s,c,f,p,a={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,n){for(var t in n)e[t]=n[t];return e}function y(e){var n=e.parentNode;n&&n.removeChild(e)}function m(e,n,t){var _,l,r,i={};for(r in n)\"key\"==r?_=n[r]:\"ref\"==r?l=n[r]:i[r]=n[r];if(arguments.length>2&&(i.children=arguments.length>3?o.call(arguments,2):t),\"function\"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===i[r]&&(i[r]=e.defaultProps[r]);return g(e,i,_,l,null)}function g(e,n,t,_,l){var o={type:e,props:n,key:t,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++i:l};return null==l&&null!=r.vnode&&r.vnode(o),o}function k(e){return e.children}function b(e,n){this.props=e,this.context=n}function x(e,n){if(null==n)return e.__?x(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return\"function\"==typeof e.type?x(e):null}function C(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return C(e)}}function S(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!P.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||f)(P)}function P(){var e,n,t,_,l,o,r,i;for(s.sort((function(e,n){return e.__v.__b-n.__v.__b}));e=s.shift();)e.__d&&(n=s.length,_=void 0,l=void 0,r=(o=(t=e).__v).__e,(i=t.__P)&&(_=[],(l=v({},o)).__v=o.__v+1,L(i,o,l,t.__n,void 0!==i.ownerSVGElement,null!=o.__h?[r]:null,_,null==r?x(o):r,o.__h),M(_,o),o.__e!=r&&C(o)),s.length>n&&s.sort((function(e,n){return e.__v.__b-n.__v.__b})));P.__r=0}function w(e,n,t,_,l,o,r,i,u,s){var c,f,p,h,v,y,m,b=_&&_.__k||d,C=b.length;for(t.__k=[],c=0;c<n.length;c++)if(null!=(h=t.__k[c]=null==(h=n[c])||\"boolean\"==typeof h?null:\"string\"==typeof h||\"number\"==typeof h||\"bigint\"==typeof h?g(null,h,null,null,h):Array.isArray(h)?g(k,{children:h},null,null,null):h.__b>0?g(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(p=b[c])||p&&h.key==p.key&&h.type===p.type)b[c]=void 0;else for(f=0;f<C;f++){if((p=b[f])&&h.key==p.key&&h.type===p.type){b[f]=void 0;break}p=null}L(e,h,p=p||a,l,o,r,i,u,s),v=h.__e,(f=h.ref)&&p.ref!=f&&(m||(m=[]),p.ref&&m.push(p.ref,null,h),m.push(f,h.__c||v,h)),null!=v?(null==y&&(y=v),\"function\"==typeof h.type&&h.__k===p.__k?h.__d=u=E(h,u,e):u=U(e,h,p,b,v,u),\"function\"==typeof t.type&&(t.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=x(p))}for(t.__e=y,c=C;c--;)null!=b[c]&&(\"function\"==typeof t.type&&null!=b[c].__e&&b[c].__e==t.__d&&(t.__d=A(_).nextSibling),O(b[c],b[c]));if(m)for(c=0;c<m.length;c++)H(m[c],m[++c],m[++c])}function E(e,n,t){for(var _,l=e.__k,o=0;l&&o<l.length;o++)(_=l[o])&&(_.__=e,n=\"function\"==typeof _.type?E(_,n,t):U(t,_,_,l,_.__e,n));return n}function U(e,n,t,_,l,o){var r,i,u;if(void 0!==n.__d)r=n.__d,n.__d=void 0;else if(null==t||l!=o||null==l.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(l),r=null;else{for(i=o,u=0;(i=i.nextSibling)&&u<_.length;u+=1)if(i==l)break e;e.insertBefore(l,o),r=o}return void 0!==r?r:l.nextSibling}function A(e){var n,t,_;if(null==e.type||\"string\"==typeof e.type)return e.__e;if(e.__k)for(n=e.__k.length-1;n>=0;n--)if((t=e.__k[n])&&(_=A(t)))return _;return null}function D(e,n,t){\"-\"===n[0]?e.setProperty(n,null==t?\"\":t):e[n]=null==t?\"\":\"number\"!=typeof t||h.test(n)?t:t+\"px\"}function T(e,n,t,_,l){var o;e:if(\"style\"===n)if(\"string\"==typeof t)e.style.cssText=t;else{if(\"string\"==typeof _&&(e.style.cssText=_=\"\"),_)for(n in _)t&&n in t||D(e.style,n,\"\");if(t)for(n in t)_&&t[n]===_[n]||D(e.style,n,t[n])}else if(\"o\"===n[0]&&\"n\"===n[1])o=n!==(n=n.replace(/Capture$/,\"\")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_||e.addEventListener(n,o?W:N,o):e.removeEventListener(n,o?W:N,o);else if(\"dangerouslySetInnerHTML\"!==n){if(l)n=n.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!==n&&\"height\"!==n&&\"href\"!==n&&\"list\"!==n&&\"form\"!==n&&\"tabIndex\"!==n&&\"download\"!==n&&n in e)try{e[n]=null==t?\"\":t;break e}catch(e){}\"function\"==typeof t||(null==t||!1===t&&-1==n.indexOf(\"-\")?e.removeAttribute(n):e.setAttribute(n,t))}}function N(e){return this.l[e.type+!1](r.event?r.event(e):e)}function W(e){return this.l[e.type+!0](r.event?r.event(e):e)}function L(e,n,t,_,l,o,i,u,s){var c,f,p,a,d,h,y,m,g,x,C,S,P,E,U,A=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(s=t.__h,u=n.__e=t.__e,n.__h=null,o=[u]),(c=r.__b)&&c(n);try{e:if(\"function\"==typeof A){if(m=n.props,g=(c=A.contextType)&&_[c.__c],x=c?g?g.props.value:c.__:_,t.__c?y=(f=n.__c=t.__c).__=f.__E:(\"prototype\"in A&&A.prototype.render?n.__c=f=new A(m,x):(n.__c=f=new b(m,x),f.constructor=A,f.render=R),g&&g.sub(f),f.props=m,f.state||(f.state={}),f.context=x,f.__n=_,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,A.getDerivedStateFromProps(m,f.__s))),a=f.props,d=f.state,f.__v=n,p)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&m!==a&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,x)||n.__v===t.__v){for(n.__v!==t.__v&&(f.props=m,f.state=f.__s,f.__d=!1),f.__e=!1,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),C=0;C<f._sb.length;C++)f.__h.push(f._sb[C]);f._sb=[],f.__h.length&&i.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(m,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(a,d,h)}))}if(f.context=x,f.props=m,f.__P=e,S=r.__r,P=0,\"prototype\"in A&&A.prototype.render){for(f.state=f.__s,f.__d=!1,S&&S(n),c=f.render(f.props,f.state,f.context),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[]}else do{f.__d=!1,S&&S(n),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(_=v(v({},_),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(h=f.getSnapshotBeforeUpdate(a,d)),U=null!=c&&c.type===k&&null==c.key?c.props.children:c,w(e,Array.isArray(U)?U:[U],n,t,_,l,o,i,u,s),f.base=n.__e,n.__h=null,f.__h.length&&i.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==o&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=F(t.__e,n,t,_,l,o,i,s);(c=r.diffed)&&c(n)}catch(e){n.__v=null,(s||null!=o)&&(n.__e=u,n.__h=!!s,o[o.indexOf(u)]=null),r.__e(e,n,t)}}function M(e,n){r.__c&&r.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){r.__e(e,n.__v)}}))}function F(e,n,t,_,l,r,i,u){var s,c,f,p=t.props,d=n.props,h=n.type,v=0;if(\"svg\"===h&&(l=!0),null!=r)for(;v<r.length;v++)if((s=r[v])&&\"setAttribute\"in s==!!h&&(h?s.localName===h:3===s.nodeType)){e=s,r[v]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=l?document.createElementNS(\"http://www.w3.org/2000/svg\",h):document.createElement(h,d.is&&d),r=null,u=!1}if(null===h)p===d||u&&e.data===d||(e.data=d);else{if(r=r&&o.call(e.childNodes),c=(p=t.props||a).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!u){if(null!=r)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(f||c)&&(f&&(c&&f.__html==c.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||\"\"))}if(function(e,n,t,_,l){var o;for(o in t)\"children\"===o||\"key\"===o||o in n||T(e,o,null,t[o],_);for(o in n)l&&\"function\"!=typeof n[o]||\"children\"===o||\"key\"===o||\"value\"===o||\"checked\"===o||t[o]===n[o]||T(e,o,n[o],t[o],_)}(e,d,p,l,u),f)n.__k=[];else if(v=n.props.children,w(e,Array.isArray(v)?v:[v],n,t,_,l&&\"foreignObject\"!==h,r,i,r?r[0]:t.__k&&x(t,0),u),null!=r)for(v=r.length;v--;)null!=r[v]&&y(r[v]);u||(\"value\"in d&&void 0!==(v=d.value)&&(v!==e.value||\"progress\"===h&&!v||\"option\"===h&&v!==p.value)&&T(e,\"value\",v,p.value,!1),\"checked\"in d&&void 0!==(v=d.checked)&&v!==e.checked&&T(e,\"checked\",v,p.checked,!1))}return e}function H(e,n,t){try{\"function\"==typeof e?e(n):e.current=n}catch(e){r.__e(e,t)}}function O(e,n,t){var _,l;if(r.unmount&&r.unmount(e),(_=e.ref)&&(_.current&&_.current!==e.__e||H(_,null,n)),null!=(_=e.__c)){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(e){r.__e(e,n)}_.base=_.__P=null,e.__c=void 0}if(_=e.__k)for(l=0;l<_.length;l++)_[l]&&O(_[l],n,t||\"function\"!=typeof e.type);t||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function R(e,n,t){return this.constructor(e,t)}function I(e,n,t){var _,l,i;r.__&&r.__(e,n),l=(_=\"function\"==typeof t)?null:t&&t.__k||n.__k,i=[],L(n,e=(!_&&t||n).__k=m(k,null,[e]),l||a,a,void 0!==n.ownerSVGElement,!_&&t?[t]:l?null:n.firstChild?o.call(n.childNodes):null,i,!_&&t?t:l?l.__e:n.firstChild,_),M(i,e)}t.options=r,t.isValidElement=u,t.createElement=m,t.h=m,t.createRef=function(){return{current:null}},t.Fragment=k,t.Component=b,t.toChildArray=function e(n,t){return t=t||[],null==n||\"boolean\"==typeof n||(Array.isArray(n)?n.some((function(n){e(n,t)})):t.push(n)),t},t.render=I,t.hydrate=function e(n,t){I(n,t,e)},t.cloneElement=function(e,n,t){var _,l,r,i=v({},e.props);for(r in n)\"key\"==r?_=n[r]:\"ref\"==r?l=n[r]:i[r]=n[r];return arguments.length>2&&(i.children=arguments.length>3?o.call(arguments,2):t),g(e.type,i,_||e.key,l||e.ref,null)},t.createContext=function(e,n){var t={__c:n=\"__cC\"+p++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,_;return this.getChildContext||(t=[],(_={})[n]=this,this.getChildContext=function(){return _},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some((function(e){e.__e=!0,S(e)}))},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},o=d.slice,t.options=r={__e:function(e,n,t,_){for(var l,o,r;n=n.__;)if((l=n.__c)&&!l.__)try{if((o=l.constructor)&&null!=o.getDerivedStateFromError&&(l.setState(o.getDerivedStateFromError(e)),r=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,_||{}),r=l.__d),r)return l.__E=l}catch(n){e=n}throw e}},i=0,t.isValidElement=u=function(e){return null!=e&&void 0===e.constructor},b.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),\"function\"==typeof e&&(e=e(v({},t),this.props)),e&&v(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),S(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},b.prototype.render=k,s=[],f=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,P.__r=0,p=0},\n \"283ce7811c\": function _(_,n,t,o,u){o();const i=_(\"1b70f5b1d3\");var r,e,c,f,a=0,s=[],h=[],p=i.options.__b,v=i.options.__r,l=i.options.diffed,m=i.options.__c,d=i.options.unmount;function H(_,n){i.options.__h&&i.options.__h(e,_,a||n),a=0;var t=e.__H||(e.__H={__:[],__h:[]});return _>=t.__.length&&t.__.push({__V:h}),t.__[_]}function E(_){return a=1,N(q,_)}function N(_,n,t){var o=H(r++,2);if(o.t=_,!o.__c&&(o.__=[t?t(n):q(void 0,n),function(_){var n=o.__N?o.__N[0]:o.__[0],t=o.t(n,_);n!==t&&(o.__N=[t,o.__[1]],o.__c.setState({}))}],o.__c=e,!e.u)){e.u=!0;var u=e.shouldComponentUpdate;e.shouldComponentUpdate=function(_,n,t){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(_){return _.__c}));if(i.every((function(_){return!_.__N})))return!u||u.call(this,_,n,t);var r=!1;return i.forEach((function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,n!==_.__[0]&&(r=!0)}})),!(!r&&o.__c.props===_)&&(!u||u.call(this,_,n,t))}}return o.__N||o.__}function y(_,n){var t=H(r++,4);!i.options.__s&&F(t.__H,n)&&(t.__=_,t.i=n,e.__h.push(t))}function V(_,n){var t=H(r++,7);return F(t.__H,n)?(t.__V=_(),t.i=n,t.__h=_,t.__V):t.__}function b(){for(var _;_=s.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(A),_.__H.__h.forEach(D),_.__H.__h=[]}catch(n){_.__H.__h=[],i.options.__e(n,_.__v)}}t.useState=E,t.useReducer=N,t.useEffect=function(_,n){var t=H(r++,3);!i.options.__s&&F(t.__H,n)&&(t.__=_,t.i=n,e.__H.__h.push(t))},t.useLayoutEffect=y,t.useRef=function(_){return a=5,V((function(){return{current:_}}),[])},t.useImperativeHandle=function(_,n,t){a=6,y((function(){return\"function\"==typeof _?(_(n()),function(){return _(null)}):_?(_.current=n(),function(){return _.current=null}):void 0}),null==t?t:t.concat(_))},t.useMemo=V,t.useCallback=function(_,n){return a=8,V((function(){return _}),n)},t.useContext=function(_){var n=e.context[_.__c],t=H(r++,9);return t.c=_,n?(null==t.__&&(t.__=!0,n.sub(e)),n.props.value):_.__},t.useDebugValue=function(_,n){i.options.useDebugValue&&i.options.useDebugValue(n?n(_):_)},t.useErrorBoundary=function(_){var n=H(r++,10),t=E();return n.__=_,e.componentDidCatch||(e.componentDidCatch=function(_,o){n.__&&n.__(_,o),t[1](_)}),[t[0],function(){t[1](void 0)}]},t.useId=function(){var _=H(r++,11);if(!_.__){for(var n=e.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);_.__=\"P\"+t[0]+\"-\"+t[1]++}return _.__},i.options.__b=function(_){e=null,p&&p(_)},i.options.__r=function(_){v&&v(_),r=0;var n=(e=_.__c).__H;n&&(c===e?(n.__h=[],e.__h=[],n.__.forEach((function(_){_.__N&&(_.__=_.__N),_.__V=h,_.__N=_.i=void 0}))):(n.__h.forEach(A),n.__h.forEach(D),n.__h=[])),c=e},i.options.diffed=function(_){l&&l(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==s.push(n)&&f===i.options.requestAnimationFrame||((f=i.options.requestAnimationFrame)||C)(b)),n.__H.__.forEach((function(_){_.i&&(_.__H=_.i),_.__V!==h&&(_.__=_.__V),_.i=void 0,_.__V=h}))),c=e=null},i.options.__c=function(_,n){n.some((function(_){try{_.__h.forEach(A),_.__h=_.__h.filter((function(_){return!_.__||D(_)}))}catch(t){n.some((function(_){_.__h&&(_.__h=[])})),n=[],i.options.__e(t,_.__v)}})),m&&m(_,n)},i.options.unmount=function(_){d&&d(_);var n,t=_.__c;t&&t.__H&&(t.__H.__.forEach((function(_){try{A(_)}catch(_){n=_}})),t.__H=void 0,n&&i.options.__e(n,t.__v))};var g=\"function\"==typeof requestAnimationFrame;function C(_){var n,t=function(){clearTimeout(o),g&&cancelAnimationFrame(n),setTimeout(_)},o=setTimeout(t,100);g&&(n=requestAnimationFrame(t))}function A(_){var n=e,t=_.__c;\"function\"==typeof t&&(_.__c=void 0,t()),e=n}function D(_){var n=e;_.__c=_.__(),e=n}function F(_,n){return!_||_.length!==n.length||n.some((function(n,t){return n!==_[t]}))}function q(_,n){return\"function\"==typeof n?n(_):n}},\n \"b3f51db71c\": function _(n,t,d,e,b){e();const o=n(\"tslib\"),r=n(\"1b70f5b1d3\");var f=n(\"1b70f5b1d3\");b(\"h\",f.h),b(\"render\",f.render),b(\"Component\",f.Component);var a=o.__importDefault(n(\"ab33dd3f38\")).default.bind(r.h);d.html=a},\n \"ab33dd3f38\": function _(n,t,s,u,r){u();var e=function(n,t,s,u){var r;t[0]=0;for(var h=1;h<t.length;h++){var p=t[h++],a=t[h]?(t[0]|=p?1:2,s[t[h++]]):t[++h];3===p?u[0]=a:4===p?u[1]=Object.assign(u[1]||{},a):5===p?(u[1]=u[1]||{})[t[++h]]=a:6===p?u[1][t[++h]]+=a+\"\":p?(r=n.apply(a,e(n,a,s,[\"\",null])),u.push(r),a[0]?t[0]|=2:(t[h-2]=0,t[h]=r)):u.push(a)}return u},h=new Map;s.default=function(n){var t=h.get(this);return t||(t=new Map,h.set(this,t)),(t=e(this,t.get(n)||(t.set(n,t=function(n){for(var t,s,u=1,r=\"\",e=\"\",h=[0],p=function(n){1===u&&(n||(r=r.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g,\"\")))?h.push(0,n,r):3===u&&(n||r)?(h.push(3,n,r),u=2):2===u&&\"...\"===r&&n?h.push(4,n,0):2===u&&r&&!n?h.push(5,0,!0,r):u>=5&&((r||!n&&5===u)&&(h.push(u,0,r,s),u=6),n&&(h.push(u,n,0,s),u=6)),r=\"\"},a=0;a<n.length;a++){a&&(1===u&&p(),p(a));for(var f=0;f<n[a].length;f++)t=n[a][f],1===u?\"<\"===t?(p(),h=[h],u=3):r+=t:4===u?\"--\"===r&&\">\"===t?(u=1,r=\"\"):r=t+r[0]:e?t===e?e=\"\":r+=t:'\"'===t||\"'\"===t?e=t:\">\"===t?(p(),u=1):u&&(\"=\"===t?(u=5,s=r,r=\"\"):\"/\"===t&&(u<5||\">\"===n[a][f+1])?(p(),3===u&&(h=h[0]),u=h,(h=h[0]).push(2,0,u),u=0):\" \"===t||\"\\t\"===t||\"\\n\"===t||\"\\r\"===t?(p(),u=2):r+=t),3===u&&\"!--\"===r&&(u=4,h=h[0])}return p(),h}(n)),t),arguments,[])).length>1?t:t[0]}},\n \"93d7c1ebd7\": function _(e,t,s,i,n){i();const l=e(\"tslib\");var o;const r=e(\"@bokehjs/core/dom\"),c=e(\"@bokehjs/core/util/types\"),d=e(\"@bokehjs/models/widgets/input_widget\"),h=l.__importStar(e(\"@bokehjs/styles/widgets/inputs.css\"));class p extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,(()=>this.render_selection())),this.connect(this.model.properties.options.change,(()=>this.render())),this.connect(this.model.properties.disabled_options.change,(()=>this.render())),this.connect(this.model.properties.size.change,(()=>this.render())),this.connect(this.model.properties.disabled.change,(()=>this.render()))}render(){super.render();const e=this.model.options.map((e=>{let t,s;(0,c.isString)(e)?t=s=e:[t,s]=e;let i=this.model.disabled_options.includes(t);return(0,r.option)({value:t,disabled:i},s)}));this.input_el=(0,r.select)({multiple:!1,class:h.input,name:this.model.name,disabled:this.model.disabled},e),this.input_el.style.backgroundImage=\"none\",this.input_el.addEventListener(\"change\",(()=>this.change_input())),this.group_el.appendChild(this.input_el),this.render_selection()}render_selection(){const e=this.model.value;for(const t of this.el.querySelectorAll(\"option\"))t.value===e&&(t.selected=!0);this.input_el.size=this.model.size}change_input(){const e=null!=this.el.querySelector(\"select:focus\");let t=null;for(const e of this.el.querySelectorAll(\"option\"))if(e.selected){t=e.value;break}this.model.value=t,super.change_input(),e&&this.input_el.focus()}}s.SingleSelectView=p,p.__name__=\"SingleSelectView\";class a extends d.InputWidget{constructor(e){super(e)}}s.SingleSelect=a,o=a,a.__name__=\"SingleSelect\",a.__module__=\"panel.models.widgets\",o.prototype.default_view=p,o.define((({Any:e,Array:t,Int:s,String:i})=>({disabled_options:[t(i),[]],options:[t(e),[]],size:[s,4],value:[i,\"\"]})))},\n \"cd0c80cc4c\": function _(t,e,i,o,n){var s;o();const r=t(\"35aaab0394\"),h=\"Click to START the speech recognition.\",{webkitSpeechRecognition:a}=window,{webkitSpeechGrammarList:l}=window;class c extends r.HTMLBoxView{initialize(){var t,e;super.initialize(),this.recognition=new a,this.recognition.lang=this.model.lang,this.recognition.continuous=this.model.continuous,this.recognition.interimResults=this.model.interim_results,this.recognition.maxAlternatives=this.model.max_alternatives,this.recognition.serviceURI=this.model.service_uri,this.setGrammars(),this.recognition.onresult=t=>{this.model.results=function(t){const e=[];for(let o of t){let t=[],n={is_final:o.isFinal,alternatives:t};for(let e=0;e<o.length;e++){let n={confidence:(i=o[e].confidence,Math.round(100*(i+Number.EPSILON))/100),transcript:o[e].transcript};t.push(n)}n.alternatives=t,e.push(n)}var i;return e}(t.results)},this.recognition.onerror=t=>{console.log(\"SpeechToText Error\"),console.log(t)},this.recognition.onnomatch=t=>{console.log(\"SpeechToText No Match\"),console.log(t)},this.recognition.onaudiostart=()=>this.model.audio_started=!0,this.recognition.onaudioend=()=>this.model.audio_started=!1,this.recognition.onsoundstart=()=>this.model.sound_started=!0,this.recognition.onsoundend=()=>this.model.sound_started=!1,this.recognition.onspeechstart=()=>this.model.speech_started=!0,this.recognition.onspeechend=()=>this.model.speech_started=!1,this.recognition.onstart=()=>{this.buttonEl.onclick=()=>{this.recognition.stop()},this.buttonEl.innerHTML=this.iconStarted(),this.buttonEl.setAttribute(\"title\",\"Click to STOP the speech recognition.\"),this.model.started=!0},this.recognition.onend=()=>{this.buttonEl.onclick=()=>{this.recognition.start()},this.buttonEl.innerHTML=this.iconNotStarted(),this.buttonEl.setAttribute(\"title\",h),this.model.started=!1},this.buttonEl=(t=`<button class=\"bk bk-btn bk-btn-${this.model.button_type}\" type=\"button\" title=\"${h}\"></button>`,e=document.createElement(\"template\"),t=t.trim(),e.innerHTML=t,e.content.firstChild),this.buttonEl.innerHTML=this.iconNotStarted(),this.buttonEl.onclick=()=>this.recognition.start()}iconStarted(){return\"\"!==this.model.button_started?this.model.button_started:'<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic\" viewBox=\"0 0 16 16\">\\n <path fill-rule=\"evenodd\" d=\"M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z\"/>\\n <path fill-rule=\"evenodd\" d=\"M10 8V3a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z\"/>\\n</svg>'}iconNotStarted(){return\"\"!==this.model.button_not_started?this.model.button_not_started:'<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic-mute\" viewBox=\"0 0 16 16\">\\n<path fill-rule=\"evenodd\" d=\"M12.734 9.613A4.995 4.995 0 0 0 13 8V7a.5.5 0 0 0-1 0v1c0 .274-.027.54-.08.799l.814.814zm-2.522 1.72A4 4 0 0 1 4 8V7a.5.5 0 0 0-1 0v1a5 5 0 0 0 4.5 4.975V15h-3a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-3v-2.025a4.973 4.973 0 0 0 2.43-.923l-.718-.719zM11 7.88V3a3 3 0 0 0-5.842-.963l.845.845A2 2 0 0 1 10 3v3.879l1 1zM8.738 9.86l.748.748A3 3 0 0 1 5 8V6.121l1 1V8a2 2 0 0 0 2.738 1.86zm4.908 3.494l-12-12 .708-.708 12 12-.708.707z\"/>\\n</svg>'}setIcon(){this.model.started?this.buttonEl.innerHTML=this.iconStarted():this.buttonEl.innerHTML=this.iconNotStarted()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.start.change,(()=>{this.model.start=!1,this.recognition.start()})),this.connect(this.model.properties.stop.change,(()=>{this.model.stop=!1,this.recognition.stop()})),this.connect(this.model.properties.abort.change,(()=>{this.model.abort=!1,this.recognition.abort()})),this.connect(this.model.properties.grammars.change,(()=>this.setGrammars())),this.connect(this.model.properties.lang.change,(()=>this.recognition.lang=this.model.lang)),this.connect(this.model.properties.continuous.change,(()=>this.recognition.continuous=this.model.continuous)),this.connect(this.model.properties.interim_results.change,(()=>this.recognition.interimResults=this.model.interim_results)),this.connect(this.model.properties.max_alternatives.change,(()=>this.recognition.maxAlternatives=this.model.max_alternatives)),this.connect(this.model.properties.service_uri.change,(()=>this.recognition.serviceURI=this.model.service_uri)),this.connect(this.model.properties.button_type.change,(()=>this.buttonEl.className=`bk bk-btn bk-btn-${this.model.button_type}`)),this.connect(this.model.properties.button_hide.change,(()=>this.render()));const{button_not_started:t,button_started:e}=this.model.properties;this.on_change([t,e],(()=>this.setIcon()))}setGrammars(){this.recognition.grammars=function(t){if(t){var e=new l;for(let i of t)i.src?e.addFromString(i.src,i.weight):i.uri&&e.addFromURI(i.uri,i.weight);return e}return null}(this.model.grammars)}render(){super.render(),this.model.button_hide||this.shadow_el.appendChild(this.buttonEl)}}i.SpeechToTextView=c,c.__name__=\"SpeechToTextView\";class d extends r.HTMLBox{constructor(t){super(t)}}i.SpeechToText=d,s=d,d.__name__=\"SpeechToText\",d.__module__=\"panel.models.speech_to_text\",s.prototype.default_view=c,s.define((({Any:t,Array:e,Boolean:i,Number:o,String:n})=>({start:[i,!1],stop:[i,!1],abort:[i,!1],grammars:[e(t),[]],lang:[n,\"\"],continuous:[i,!1],interim_results:[i,!1],max_alternatives:[o,1],service_uri:[n,\"\"],started:[i,!1],audio_started:[i,!1],sound_started:[i,!1],speech_started:[i,!1],button_type:[n,\"light\"],button_hide:[i,!1],button_not_started:[n,\"\"],button_started:[n,\"\"],results:[e(t),[]]})))},\n \"66717cb841\": function _(e,t,s,a,i){var o;a();const c=e(\"@bokehjs/core/view\"),n=e(\"@bokehjs/core/util/array\"),h=e(\"@bokehjs/model\"),_=e(\"@bokehjs/protocol/receiver\");class r extends c.View{}s.StateView=r,r.__name__=\"StateView\";class p extends h.Model{constructor(e){super(e),this._receiver=new _.Receiver,this._cache={}}apply_state(e){this._receiver.consume(e.header),this._receiver.consume(e.metadata),this._receiver.consume(e.content),this._receiver.message&&this.document&&this.document.apply_json_patch(this._receiver.message.content)}_receive_json(e,t){const s=JSON.parse(e);this._cache[t]=s;let a=this.state;for(const e of this.values)a=a instanceof Map?a.get(e):a[e];a===t?this.apply_state(s):this._cache[a]&&this.apply_state(this._cache[a])}set_state(e,t){let s=(0,n.copy)(this.values);s[this.widgets[e.id]]=t;let a=this.state;for(const e of s)a=a instanceof Map?a.get(e):a[e];var i,o,c;this.values=s,this.json?this._cache[a]?this.apply_state(this._cache[a]):(i=a,o=e=>this._receive_json(e,a),(c=new XMLHttpRequest).overrideMimeType(\"application/json\"),c.open(\"GET\",i,!0),c.onreadystatechange=function(){4==c.readyState&&200==c.status&&o(c.responseText)},c.send(null)):this.apply_state(a)}}s.State=p,o=p,p.__name__=\"State\",p.__module__=\"panel.models.state\",o.prototype.default_view=r,o.define((({Any:e,Boolean:t})=>({json:[t,!1],state:[e,{}],widgets:[e,{}],values:[e,[]]})))},\n \"67a5649f75\": function _(e,t,s,i,l){i();var o;const a=e(\"tslib\").__importStar(e(\"@bokehjs/styles/tabs.css\")),n=e(\"@bokehjs/core/layout/grid\"),c=e(\"@bokehjs/core/enums\"),d=e(\"@bokehjs/models/layouts/alignments\"),r=e(\"@bokehjs/models/layouts/tabs\"),_=e(\"@bokehjs/models/layouts/layout_dom\");function u(e){e.style.visibility=\"\",e.style.opacity=\"\"}function h(e){e.style.visibility=\"hidden\",e.style.opacity=\"0\"}class y extends r.TabsView{connect_signals(){super.connect_signals();let e=this;for(;null!=e;)e.model.type.endsWith(\"Tabs\")&&e.connect(e.model.properties.active.change,(()=>this.update_zindex())),e=e.parent||e._parent}get is_visible(){let e=this.parent,t=this;for(;null!=e;){if(e.model.type.endsWith(\"Tabs\")&&e.child_views.indexOf(t)!==e.model.active)return!1;t=e,e=e.parent||e._parent}return!0}render(){super.render(),this.update_zindex()}update_zindex(){const{child_views:e}=this;for(const t of e)null!=t&&null!=t.el&&(t.el.style.zIndex=\"\");if(this.is_visible){const t=e[this.model.active];null!=t&&null!=t.el&&(t.el.style.zIndex=\"1\")}}_after_layout(){_.LayoutDOMView.prototype._after_layout.call(this);const{child_views:e}=this;for(const t of e)void 0!==t&&h(t.el);const{active:t}=this.model;if(t in e){const s=e[t];void 0!==s&&u(s.el)}}_update_layout(){_.LayoutDOMView.prototype._update_layout.call(this);const e=this.model.tabs_location;this.class_list.remove([...c.Location].map((e=>a[e]))),this.class_list.add(a[e]);const t=new n.Container;for(const e of this.child_views)null!=e&&(e.style.append(\":host\",{grid_area:\"stack\"}),e instanceof _.LayoutDOMView&&null!=e.layout&&t.add({r0:0,c0:0,r1:1,c1:1},e));0!=t.size?(this.layout=new d.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}update_active(){const e=this.model.active,{header_els:t}=this;for(const e of t)e.classList.remove(a.active);e in t&&t[e].classList.add(a.active);const{child_views:s}=this;for(const e of s)h(e.el);if(e in s){const t=s[e];u(t.el),null==t.invalidate_render&&t.invalidate_render()}}}s.TabsView=y,y.__name__=\"TabsView\";class p extends r.Tabs{}s.Tabs=p,o=p,p.__name__=\"Tabs\",p.__module__=\"panel.models.tabs\",o.prototype.default_view=y},\n \"cd4a941f8d\": function _(e,t,n,s,i){var r,o;s();const a=e(\"@bokehjs/core/dom\"),l=e(\"@bokehjs/core/bokeh_events\"),h=e(\"35aaab0394\");class d extends l.ModelEvent{constructor(e){super(),this.key=e}get event_values(){return{model:this.origin,key:this.key}}}n.KeystrokeEvent=d,r=d,d.__name__=\"KeystrokeEvent\",r.prototype.event_name=\"keystroke\";class c extends h.HTMLBoxView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.output.change,this.write),this.connect(this.model.properties._clears.change,this.clear)}render(){super.render(),this.container=(0,a.div)({class:\"terminal-container\"}),(0,h.set_size)(this.container,this.model),this.term=this.getNewTerminal(),this.term.onData((e=>{this.handleOnData(e)})),this.webLinksAddon=this.getNewWebLinksAddon(),this.term.loadAddon(this.webLinksAddon),this.term.open(this.container),this.term.onRender((()=>{this._rendered||this.fit()})),this.write(),this.shadow_el.appendChild(this.container)}getNewTerminal(){const e=window;return e.Terminal?new e.Terminal(this.model.options):new e.xtermjs.Terminal(this.model.options)}getNewWebLinksAddon(){return new window.WebLinksAddon.WebLinksAddon}handleOnData(e){this.model.trigger_event(new d(e))}write(){const e=this.model.output;if(null==e||!e.length)return;const t=e.replace(/\\r?\\n/g,\"\\r\\n\");this.term.write(t)}clear(){this.term.clear()}fit(){const e=this.container.offsetWidth,t=this.container.offsetHeight,n=this.term._core._renderService,s=n.dimensions.actualCellWidth||9,i=n.dimensions.actualCellHeight||18;if(null==e||null==t||e<=0||t<=0)return;const r=Math.max(2,Math.floor(e/s)),o=Math.max(1,Math.floor(t/i));this.term.rows===o&&this.term.cols===r||this.term.resize(r,o),this.model.ncols=r,this.model.nrows=o,this._rendered=!0}after_layout(){super.after_layout(),this.fit()}}n.TerminalView=c,c.__name__=\"TerminalView\";class m extends h.HTMLBox{constructor(e){super(e)}}n.Terminal=m,o=m,m.__name__=\"Terminal\",m.__module__=\"panel.models.terminal\",o.prototype.default_view=c,o.define((({Any:e,Int:t,String:n})=>({_clears:[t,0],options:[e,{}],output:[n,\"\"],ncols:[t,0],nrows:[t,0]})))},\n \"eb4ae0acfa\": function _(e,s,i,t,n){var h;t();const o=e(\"35aaab0394\");function c(e){var s=[];for(let t of e){var i={default:t.default,lang:t.lang,local_service:t.localService,name:t.name,voice_uri:t.voiceURI};s.push(i)}return s}class p extends o.HTMLBoxView{initialize(){super.initialize(),this.model.paused=speechSynthesis.paused,this.model.pending=speechSynthesis.pending,this.model.speaking=speechSynthesis.speaking,this._callback=window.setInterval((function(){!speechSynthesis.paused&&speechSynthesis.speaking&&window.speechSynthesis.resume()}),1e4);const e=()=>{\"undefined\"!=typeof speechSynthesis&&(this.voices=speechSynthesis.getVoices(),this.voices&&(this.model.voices=c(this.voices)))};e(),\"undefined\"!=typeof speechSynthesis&&void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=e)}remove(){null!=this._callback&&clearInterval(this._callback),speechSynthesis.cancel(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.speak.change,(()=>{this.speak()})),this.connect(this.model.properties.pause.change,(()=>{this.model.pause=!1,speechSynthesis.pause()})),this.connect(this.model.properties.resume.change,(()=>{this.model.resume=!1,speechSynthesis.resume()})),this.connect(this.model.properties.cancel.change,(()=>{this.model.cancel=!1,speechSynthesis.cancel()}))}speak(){let e=new SpeechSynthesisUtterance(this.model.speak.text);if(e.pitch=this.model.speak.pitch,e.volume=this.model.speak.volume,e.rate=this.model.speak.rate,this.model.voices)for(let s of this.voices)s.name===this.model.speak.voice&&(e.voice=s);e.onpause=()=>this.model.paused=!0,e.onstart=()=>{this.model.speaking=!0,this.model.paused=!1,this.model.pending=speechSynthesis.pending},e.onresume=()=>this.model.paused=!1,e.onend=()=>{this.model.speaking=!1,this.model.paused=!1,this.model.pending=speechSynthesis.pending},speechSynthesis.speak(e),this.model.paused=speechSynthesis.paused,this.model.pending=speechSynthesis.pending}render(){super.render(),this.model.voices||(this.model.voices=c(this.voices)),null!=this.model.speak&&this.model.speak.text&&this.speak()}}i.TextToSpeechView=p,p.__name__=\"TextToSpeechView\";class a extends o.HTMLBox{constructor(e){super(e)}}i.TextToSpeech=a,h=a,a.__name__=\"TextToSpeech\",a.__module__=\"panel.models.text_to_speech\",h.prototype.default_view=p,h.define((({Any:e,Array:s,Boolean:i})=>({paused:[i,!1],pending:[i,!1],speaking:[i,!1],voices:[s(e),[]],cancel:[i,!1],pause:[i,!1],resume:[i,!1],speak:[e,{}]})))},\n \"8f4ab32d74\": function _(t,e,i,l,o){var s;l();const h=t(\"35aaab0394\"),a=t(\"@bokehjs/core/build_views\"),n=t(\"@bokehjs/models/plots\"),d=t(\"@bokehjs/models/glyphs\"),r=t(\"@bokehjs/core/dom\"),c=t(\"@bokehjs/models/sources/column_data_source\"),p=t(\"@bokehjs/models/formatters\");class _ extends h.HTMLBoxView{initialize(){super.initialize(),this.containerDiv=(0,r.div)({style:\"height:100%; width:100%;\"}),this.titleDiv=(0,r.div)({style:\"font-size: 1em; word-wrap: break-word;\"}),this.valueDiv=(0,r.div)({style:\"font-size: 2em\"}),this.value2Div=(0,r.div)({style:\"font-size: 1em; opacity: 0.5; display: inline\"}),this.changeDiv=(0,r.div)({style:\"font-size: 1em; opacity: 0.5; display: inline\"}),this.textDiv=(0,r.div)({},this.titleDiv,this.valueDiv,(0,r.div)({},this.changeDiv,this.value2Div)),this.updateTitle(),this.updateValue(),this.updateValue2(),this.updateValueChange(),this.updateTextFontSize(),this.plotDiv=(0,r.div)({}),this.containerDiv=(0,r.div)({style:\"height:100%; width:100%\"},this.textDiv,this.plotDiv),this.updateLayout()}connect_signals(){super.connect_signals();const{pos_color:t,neg_color:e}=this.model.properties;this.on_change([t,e],(()=>this.updateValueChange()));const{plot_color:i,plot_type:l,width:o,height:s,sizing_mode:h}=this.model.properties;this.on_change([i,l,o,s,h],(()=>this.render())),this.connect(this.model.properties.title.change,(()=>this.updateTitle(!0))),this.connect(this.model.properties.value.change,(()=>this.updateValue(!0))),this.connect(this.model.properties.value_change.change,(()=>this.updateValue2(!0))),this.connect(this.model.properties.layout.change,(()=>this.updateLayout()))}async render(){super.render(),this.shadow_el.appendChild(this.containerDiv),await this.setPlot()}async setPlot(){this.plot=new n.Plot({background_fill_color:null,border_fill_color:null,outline_line_color:null,min_border:0,sizing_mode:\"stretch_both\",toolbar_location:null});var t=this.model.source;if(\"line\"===this.model.plot_type){var e=new d.Line({x:{field:this.model.plot_x},y:{field:this.model.plot_y},line_width:4,line_color:this.model.plot_color});this.plot.add_glyph(e,t)}else if(\"step\"===this.model.plot_type){var i=new d.Step({x:{field:this.model.plot_x},y:{field:this.model.plot_y},line_width:3,line_color:this.model.plot_color});this.plot.add_glyph(i,t)}else if(\"area\"===this.model.plot_type){var l=new d.VArea({x:{field:this.model.plot_x},y1:{field:this.model.plot_y},y2:0,fill_color:this.model.plot_color,fill_alpha:.5});this.plot.add_glyph(l,t);e=new d.Line({x:{field:this.model.plot_x},y:{field:this.model.plot_y},line_width:3,line_color:this.model.plot_color});this.plot.add_glyph(e,t)}else{var o=new d.VBar({x:{field:this.model.plot_x},top:{field:this.model.plot_y},width:.9,line_color:null,fill_color:this.model.plot_color});this.plot.add_glyph(o,t)}const s=await(0,a.build_view)(this.plot);this.plotDiv.innerHTML=\"\",s.render_to(this.plotDiv)}after_layout(){super.after_layout(),this.updateTextFontSize()}updateTextFontSize(){this.updateTextFontSizeColumn()}updateTextFontSizeColumn(){let t=this.containerDiv.clientWidth,e=this.containerDiv.clientHeight;\"column\"===this.model.layout?e=Math.round(e/2):t=Math.round(t/2);const i=t/this.model.title.length*2,l=t/(2*this._value_format.length)*1.8,o=t/(this._value_change_format.length+1)*2,s=e/6,h=Math.min(i,l,o,s);this.textDiv.style.fontSize=Math.trunc(h)+\"px\",this.textDiv.style.lineHeight=\"1.3\"}updateTitle(t=!1){this.titleDiv.innerText=this.model.title,t&&this.updateTextFontSize()}updateValue(t=!1){this._value_format=this.model.formatter.doFormat([this.model.value],{loc:0})[0],this.valueDiv.innerText=this._value_format,t&&this.updateTextFontSize()}updateValue2(t=!1){this._value_change_format=this.model.change_formatter.doFormat([this.model.value_change],{loc:0})[0],this.value2Div.innerText=this._value_change_format,this.updateValueChange(),t&&this.updateTextFontSize()}updateValueChange(){this.model.value_change>0?(this.changeDiv.innerHTML=\"▲\",this.changeDiv.style.color=this.model.pos_color):this.model.value_change<0?(this.changeDiv.innerHTML=\"▼\",this.changeDiv.style.color=this.model.neg_color):(this.changeDiv.innerHTML=\" \",this.changeDiv.style.color=\"inherit\")}updateLayout(){\"column\"===this.model.layout?(this.containerDiv.style.display=\"block\",this.textDiv.style.height=\"50%\",this.textDiv.style.width=\"100%\",this.plotDiv.style.height=\"50%\",this.plotDiv.style.width=\"100%\"):(this.containerDiv.style.display=\"flex\",this.textDiv.style.height=\"100%\",this.textDiv.style.width=\"\",this.plotDiv.style.height=\"100%\",this.plotDiv.style.width=\"\",this.textDiv.style.flex=\"1\",this.plotDiv.style.flex=\"1\"),this._has_finished&&this.invalidate_layout()}}i.TrendIndicatorView=_,_.__name__=\"TrendIndicatorView\";class u extends h.HTMLBox{constructor(t){super(t)}}i.TrendIndicator=u,s=u,u.__name__=\"TrendIndicator\",u.__module__=\"panel.models.trend\",s.prototype.default_view=_,s.define((({Number:t,String:e,Ref:i})=>({description:[e,\"\"],formatter:[i(p.TickFormatter),()=>new p.BasicTickFormatter],change_formatter:[i(p.TickFormatter),()=>new p.NumeralTickFormatter],layout:[e,\"column\"],source:[i(c.ColumnDataSource)],plot_x:[e,\"x\"],plot_y:[e,\"y\"],plot_color:[e,\"#428bca\"],plot_type:[e,\"bar\"],pos_color:[e,\"#5cb85c\"],neg_color:[e,\"#d9534f\"],title:[e,\"\"],value:[t,0],value_change:[t,0]})))},\n \"5439695e7b\": function _(e,t,s,o,n){var a,i;o();const r=e(\"@bokehjs/core/dom\"),c=e(\"@bokehjs/core/bokeh_events\"),d=e(\"@bokehjs/core/util/types\"),h=e(\"@bokehjs/models/layouts/layout_dom\"),l=e(\"35aaab0394\"),_=e(\"99a25e6992\");class u extends c.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}s.VegaEvent=u,a=u,u.__name__=\"VegaEvent\",a.prototype.event_name=\"vega_event\";class v extends h.LayoutDOMView{constructor(){super(...arguments),this._rendered=!1}connect_signals(){super.connect_signals();const{data:e,show_actions:t,theme:s}=this.model.properties;this._replot=(0,_.debounce)((()=>this._plot()),20),this.on_change([e,t,s],(()=>{this._replot()})),this.connect(this.model.properties.data_sources.change,(()=>this._connect_sources())),this.connect(this.model.properties.events.change,(()=>{for(const e of this.model.events){if(this._callbacks.indexOf(e)>-1)continue;this._callbacks.push(e);const t=(e,t)=>this._dispatch_event(e,t),s=this.model.throttle[e]||20;this.vega_view.addSignalListener(e,(0,_.debounce)(t,s,!1))}})),this._connected=[],this._connect_sources()}_connect_sources(){for(const e in this.model.data_sources){const t=this.model.data_sources[e];this._connected.indexOf(e)<0&&(this.connect(t.properties.data.change,(()=>this._replot())),this._connected.push(e))}}remove(){this.vega_view&&this.vega_view.finalize(),super.remove()}_dispatch_event(e,t){if(\"vlPoint\"in t&&null!=t.vlPoint.or){const e=[];for(const s of t.vlPoint.or)e.push(s._vgsid_);t=e}this.model.trigger_event(new u({type:e,value:t}))}_fetch_datasets(){const e={};for(const t in this.model.data_sources){const s=this.model.data_sources[t],o=[],n=s.columns();for(let e=0;e<s.get_length();e++){const t={};for(const o of n)t[o]=s.data[o][e];o.push(t)}e[t]=o}return e}get child_models(){return[]}render(){super.render(),this._rendered=!1,this.container=(0,r.div)(),(0,l.set_size)(this.container,this.model),this._callbacks=[],this._plot(),this.shadow_el.append(this.container)}_plot(){const e=this.model.data;if(null==e||!window.vegaEmbed)return;if(this.model.data_sources&&Object.keys(this.model.data_sources).length>0){const t=this._fetch_datasets();if(\"data\"in t&&(e.data.values=t.data,delete t.data),null!=e.data){const s=(0,d.isArray)(e.data)?e.data:[e.data];for(const e of s)e.name in t&&(e.values=t[e.name],delete t[e.name])}this.model.data.datasets=t}const t={actions:this.model.show_actions,theme:this.model.theme};window.vegaEmbed(this.container,this.model.data,t).then((e=>{this.vega_view=e.view,this._resize=(0,_.debounce)((()=>this.resize_view(e.view)),50);const t=(e,t)=>this._dispatch_event(e,t);for(const e of this.model.events){this._callbacks.push(e);const s=this.model.throttle[e]||20;this.vega_view.addSignalListener(e,(0,_.debounce)(t,s,!1))}}))}after_layout(){super.after_layout(),null!=this.vega_view&&this._resize()}resize_view(e){const t=e._renderer.canvas();if(!this._rendered&&null!==t){for(const t of e._eventListeners)\"resize\"===t.type&&t.handler(new Event(\"resize\"));this._rendered=!0}}}s.VegaPlotView=v,v.__name__=\"VegaPlotView\";class m extends h.LayoutDOM{constructor(e){super(e)}}s.VegaPlot=m,i=m,m.__name__=\"VegaPlot\",m.__module__=\"panel.models.vega\",i.prototype.default_view=v,i.define((({Any:e,Array:t,Boolean:s,Nullable:o,String:n})=>({data:[e,{}],data_sources:[e,{}],events:[t(n),[]],show_actions:[s,!1],theme:[o(n),null],throttle:[e,{}]})))},\n \"1faa6be6e8\": function _(e,t,i,o,s){var l;o();const d=e(\"35aaab0394\");class h extends d.HTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.loop.change,(()=>this.set_loop())),this.connect(this.model.properties.paused.change,(()=>this.set_paused())),this.connect(this.model.properties.muted.change,(()=>this.set_muted())),this.connect(this.model.properties.autoplay.change,(()=>this.set_autoplay())),this.connect(this.model.properties.time.change,(()=>this.set_time())),this.connect(this.model.properties.value.change,(()=>this.set_value())),this.connect(this.model.properties.volume.change,(()=>this.set_volume()))}render(){super.render(),this.videoEl=document.createElement(\"video\"),this.model.sizing_mode&&\"fixed\"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit=\"fill\",this.videoEl.style.minWidth=\"100%\",this.videoEl.style.minHeight=\"100%\",this.videoEl.controls=!0,this.videoEl.src=this.model.value,this.videoEl.currentTime=this.model.time,this.videoEl.loop=this.model.loop,this.videoEl.muted=this.model.muted,this.videoEl.autoplay=this.model.autoplay,null!=this.model.volume?this.videoEl.volume=this.model.volume/100:this.model.volume=100*this.videoEl.volume,this.videoEl.onpause=()=>this.model.paused=!0,this.videoEl.onplay=()=>this.model.paused=!1,this.videoEl.ontimeupdate=()=>this.update_time(this),this.videoEl.onvolumechange=()=>this.update_volume(this),this.shadow_el.appendChild(this.videoEl),this.model.paused||this.videoEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.videoEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.videoEl.volume)}set_loop(){this.videoEl.loop=this.model.loop}set_muted(){this.videoEl.muted=this.model.muted}set_autoplay(){this.videoEl.autoplay=this.model.autoplay}set_paused(){!this.videoEl.paused&&this.model.paused&&this.videoEl.pause(),this.videoEl.paused&&!this.model.paused&&this.videoEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.videoEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.videoEl.currentTime=this.model.time)}set_value(){this.videoEl.src=this.model.value}}i.VideoView=h,h.__name__=\"VideoView\";class m extends d.HTMLBox{constructor(e){super(e)}}i.Video=m,l=m,m.__name__=\"Video\",m.__module__=\"panel.models.widgets\",l.prototype.default_view=h,l.define((({Any:e,Boolean:t,Int:i,Number:o,Nullable:s})=>({loop:[t,!1],paused:[t,!0],muted:[t,!1],autoplay:[t,!1],time:[o,0],throttle:[i,250],value:[e,\"\"],volume:[s(i),null]})))},\n \"797fd61298\": function _(e,t,i,s,o){var h;s();const l=e(\"35aaab0394\");class a extends l.HTMLBoxView{constructor(){super(...arguments),this.constraints={audio:!1,video:!0}}initialize(){super.initialize(),null!==this.model.timeout&&this.set_timeout()}connect_signals(){super.connect_signals(),this.connect(this.model.properties.timeout.change,(()=>this.set_timeout())),this.connect(this.model.properties.snapshot.change,(()=>this.snapshot())),this.connect(this.model.properties.paused.change,(()=>this.pause()))}pause(){this.model.paused?(null!=this.timer&&(clearInterval(this.timer),this.timer=null),this.videoEl.pause()):this.videoEl.play(),this.set_timeout()}set_timeout(){this.timer&&(clearInterval(this.timer),this.timer=null),null!=this.model.timeout&&this.model.timeout>0&&(this.timer=setInterval((()=>this.snapshot()),this.model.timeout))}snapshot(){this.canvasEl.width=this.videoEl.videoWidth,this.canvasEl.height=this.videoEl.videoHeight;const e=this.canvasEl.getContext(\"2d\");e&&e.drawImage(this.videoEl,0,0,this.canvasEl.width,this.canvasEl.height),this.model.value=this.canvasEl.toDataURL(\"image/\"+this.model.format,.95)}remove(){super.remove(),this.timer&&(clearInterval(this.timer),this.timer=null)}render(){super.render(),this.videoEl||(this.videoEl=document.createElement(\"video\"),this.model.sizing_mode&&\"fixed\"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit=\"fill\",this.videoEl.style.minWidth=\"100%\",this.videoEl.style.minHeight=\"100%\",this.canvasEl=document.createElement(\"canvas\"),this.shadow_el.appendChild(this.videoEl),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia(this.constraints).then((e=>{this.videoEl.srcObject=e,this.model.paused||this.videoEl.play()})).catch(console.error))}}i.VideoStreamView=a,a.__name__=\"VideoStreamView\";class n extends l.HTMLBox{constructor(e){super(e)}}i.VideoStream=n,h=n,n.__name__=\"VideoStream\",n.__module__=\"panel.models.widgets\",h.prototype.default_view=a,h.define((({Any:e,Boolean:t,Int:i,Nullable:s,String:o})=>({format:[o,\"png\"],paused:[t,!1],snapshot:[t,!1],timeout:[s(i),null],value:[e]}))),h.override({height:240,width:320})},\n \"2bf02809f1\": function _(e,t,i,s,n){var o;s();const a=e(\"@bokehjs/core/dom\"),c=e(\"@bokehjs/core/util/types\"),r=e(\"@bokehjs/models/sources/column_data_source\"),l=e(\"@bokehjs/core/bokeh_events\"),h=e(\"99a25e6992\"),d=e(\"35aaab0394\");class u extends l.ModelEvent{constructor(e){super(),this.data=e,this.event_name=\"vizzu_event\",this.publish=!0}get event_values(){return{model:this.origin,data:this.data}}}i.VizzuEvent=u,u.__name__=\"VizzuEvent\";const g=[\"x\",\"y\",\"color\",\"label\",\"lightness\",\"size\",\"splittedBy\",\"dividedBy\"];class m extends d.HTMLBoxView{constructor(){super(...arguments),this.update=[],this._animating=!1}connect_signals(){super.connect_signals();const e=(0,h.debounce)((()=>{if(this.valid_config){if(this.update.length&&!this._animating){let t={};for(const e of this.update)t=\"config\"===e?Object.assign(Object.assign({},t),{config:this.config()}):\"data\"===e?Object.assign(Object.assign({},t),{data:this.data()}):Object.assign(Object.assign({},t),{style:this.model.style});if(this.update.includes(\"data\")&&1===this.update.length)return void this.render();this._animating=!0,this.vizzu_view.animate(t,this.model.duration+\"ms\").then((()=>{this._animating=!1,this.update.length&&e()})),this.update=[]}}else console.warn(\"Vizzu config not valid given current data.\")}),20),t=t=>{this.update.includes(t)||this.update.push(t),e()};this.connect(this.model.properties.config.change,(()=>t(\"config\"))),this.connect(this.model.source.properties.data.change,(()=>t(\"data\"))),this.connect(this.model.source.streaming,(()=>t(\"data\"))),this.connect(this.model.source.patching,(()=>t(\"data\"))),this.connect(this.model.properties.style.change,(()=>t(\"style\")))}get valid_config(){const e=this.model.source.columns();if(\"channels\"in this.model.config){for(const t of Object.values(this.model.config.channels))if((0,c.isArray)(t)){for(const i of t)if(null!=t&&!e.includes(i))return!1}else if((0,c.isObject)(t)){for(const i of Object.keys(t))for(const s of t[i])if(null!=t&&!e.includes(s))return!1}else if(null!=t&&!e.includes(t))return!1}else for(const t of g)if(t in this.model.config&&!e.includes(this.model.config[t]))return!1;return!0}config(){let e=Object.assign({},this.model.config);return\"channels\"in e&&(e.channels=Object.assign({},e.channels)),null!=e.preset&&(e=window.Vizzu.presets[e.preset](e)),e}data(){const e=[];for(const t of this.model.columns){let i=[...this.model.source.get_array(t.name)];\"datetime\"!==t.type&&\"date\"!=t.type||(t.type=\"measure\"),\"dimension\"===t.type&&(i=i.map(String)),e.push(Object.assign(Object.assign({},t),{values:i}))}return{series:e}}render(){super.render(),this.container=(0,a.div)({style:\"display: contents;\"}),this.shadow_el.append(this.container);const e={config:this.config(),data:this.data(),style:this.model.style};this.vizzu_view=new window.Vizzu(this.container,e),this._animating=!0,this.vizzu_view.initializing.then((e=>{e.on(\"click\",(e=>{this.model.trigger_event(new u(e.data))})),this._animating=!1}))}remove(){this.vizzu_view&&this.vizzu_view.detach(),super.remove()}}i.VizzuChartView=m,m.__name__=\"VizzuChartView\";class f extends d.HTMLBox{constructor(e){super(e)}}i.VizzuChart=f,o=f,f.__name__=\"VizzuChart\",f.__module__=\"panel.models.vizzu\",o.prototype.default_view=m,o.define((({Any:e,Array:t,Number:i,Ref:s})=>({animation:[e,{}],config:[e,{}],columns:[t(e),[]],source:[s(r.ColumnDataSource)],duration:[i,500],style:[e,{}]})))},\n \"c51f25e2a7\": function _(o,V,c,e,l){e(),l(\"VTKJSPlot\",o(\"3bce7c9db6\").VTKJSPlot),l(\"VTKVolumePlot\",o(\"c2892117a7\").VTKVolumePlot),l(\"VTKAxes\",o(\"7cec459a06\").VTKAxes),l(\"VTKSynchronizedPlot\",o(\"40c4377615\").VTKSynchronizedPlot)},\n \"3bce7c9db6\": function _(e,t,n,i,s){var a;i();const r=e(\"d7ded264dc\"),_=e(\"a76a9b7c23\");class d extends r.AbstractVTKView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,(()=>{this.invalidate_render()}))}render(){super.render(),this._create_orientation_widget(),this._set_axes()}invalidate_render(){this._vtk_renwin=null,super.invalidate_render()}init_vtk_renwin(){this._vtk_renwin=_.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this._vtk_container,container:this._vtk_container})}plot(){if(null==this.model.data)return void this._vtk_renwin.getRenderWindow().render();const e=_.vtkns.DataAccessHelper.get(\"zip\",{zipContent:atob(this.model.data),callback:t=>{const n=_.vtkns.HttpSceneLoader.newInstance({renderer:this._vtk_renwin.getRenderer(),dataAccessHelper:e}),i=window.vtk.macro.debounce((()=>{setTimeout((()=>{null==this._axes&&this.model.axes&&this._set_axes(),this._set_camera_state(),this._get_camera_state(),this._vtk_renwin.getRenderWindow().render()}),100)}),100);n.setUrl(\"index.json\"),n.onReady(i)}})}}n.VTKJSPlotView=d,d.__name__=\"VTKJSPlotView\";class o extends r.AbstractVTKPlot{}n.VTKJSPlot=o,a=o,o.__name__=\"VTKJSPlot\",a.prototype.default_view=d,a.define((({Boolean:e,Nullable:t,String:n})=>({data:[t(n)],enable_keybindings:[e,!1]})))},\n \"d7ded264dc\": function _(e,t,i,n,a){var s;n();const r=e(\"@bokehjs/core/dom\"),o=e(\"@bokehjs/core/util/object\"),_=e(\"@bokehjs/models/mappers/color_mapper\"),d=e(\"@bokehjs/core/kinds\"),h=e(\"35aaab0394\"),c=e(\"a76a9b7c23\"),l=e(\"787f6aeecd\"),g=e(\"7cec459a06\"),p={padding:\"0px 2px 0px 2px\",maxHeight:\"150px\",height:\"auto\",backgroundColor:\"rgba(255, 255, 255, 0.4)\",borderRadius:\"10px\",margin:\"2px\",boxSizing:\"border-box\",overflow:\"hidden\",overflowY:\"auto\",transition:\"width 0.1s linear\",bottom:\"0px\",position:\"absolute\"},m=(0,d.Enum)(\"LowerLeft\",\"LowerRight\",\"UpperLeft\",\"UpperRight\",\"LowerEdge\",\"RightEdge\",\"LeftEdge\",\"UpperEdge\");class v extends h.HTMLBoxView{initialize(){super.initialize(),this._camera_callbacks=[],this._renderable=!0,this._setting_camera=!1}_add_colorbars(){const e=this.el.querySelector(\".vtk_info\");if(e&&this.el.removeChild(e),this.model.color_mappers.length<1)return;const t=document.createElement(\"div\"),i=\"350px\",n=\"30px\";t.classList.add(\"vtk_info\"),(0,c.applyStyle)(t,p),(0,c.applyStyle)(t,{width:i}),this.shadow_el.appendChild(t);const a=[];this.model.color_mappers.forEach((e=>{const i=new l.VTKColorBar(t,e);a.push(i)}));const s=document.createElement(\"div\");(0,c.applyStyle)(s,{textAlign:\"center\",fontSize:\"20px\"}),s.innerText=\"...\",t.addEventListener(\"click\",(()=>{t.style.width===n?(t.removeChild(s),(0,c.applyStyle)(t,{height:\"auto\",width:i}),a.forEach((e=>t.appendChild(e.canvas)))):(a.forEach((e=>t.removeChild(e.canvas))),(0,c.applyStyle)(t,{height:n,width:n}),t.appendChild(s))})),t.click()}_init_annotations_container(){this._annotations_container||(this._annotations_container=document.createElement(\"div\"),this._annotations_container.style.position=\"absolute\",this._annotations_container.style.width=\"100%\",this._annotations_container.style.height=\"100%\",this._annotations_container.style.top=\"0\",this._annotations_container.style.left=\"0\",this._annotations_container.style.pointerEvents=\"none\")}_clean_annotations(){if(this._annotations_container)for(;this._annotations_container.firstElementChild;)this._annotations_container.firstElementChild.remove()}_add_annotations(){this._clean_annotations();const{annotations:e}=this.model;if(null!=e)for(let t of e){const{viewport:e,color:i,fontSize:n,fontFamily:a}=t;m.values.forEach((s=>{const r=t[s];if(r){const t=document.createElement(\"div\");t.textContent=r;const{style:o}=t;o.position=\"absolute\",o.color=`rgb(${i.map((e=>255*e)).join(\",\")})`,o.fontSize=`${n}px`,o.padding=\"5px\",o.fontFamily=a,o.width=\"fit-content\",\"UpperLeft\"==s&&(o.top=100*(1-e[3])+\"%\",o.left=100*e[0]+\"%\"),\"UpperRight\"==s&&(o.top=100*(1-e[3])+\"%\",o.right=100*(1-e[2])+\"%\"),\"LowerLeft\"==s&&(o.bottom=100*e[1]+\"%\",o.left=100*e[0]+\"%\"),\"LowerRight\"==s&&(o.bottom=100*e[1]+\"%\",o.right=100*(1-e[2])+\"%\"),\"UpperEdge\"==s&&(o.top=100*(1-e[3])+\"%\",o.left=100*(e[0]+(e[2]-e[0])/2)+\"%\",o.transform=\"translateX(-50%)\"),\"LowerEdge\"==s&&(o.bottom=100*e[1]+\"%\",o.left=100*(e[0]+(e[2]-e[0])/2)+\"%\",o.transform=\"translateX(-50%)\"),\"LeftEdge\"==s&&(o.left=100*e[0]+\"%\",o.top=100*(1-e[3]+(e[3]-e[1])/2)+\"%\",o.transform=\"translateY(-50%)\"),\"RightEdge\"==s&&(o.right=100*(1-e[2])+\"%\",o.top=100*(1-e[3]+(e[3]-e[1])/2)+\"%\",o.transform=\"translateY(-50%)\"),this._annotations_container.appendChild(t)}}))}}connect_signals(){super.connect_signals(),this.on_change(this.model.properties.orientation_widget,(()=>{this._orientation_widget_visibility(this.model.orientation_widget)})),this.on_change(this.model.properties.camera,(()=>this._set_camera_state())),this.on_change(this.model.properties.axes,(()=>{this._delete_axes(),this.model.axes&&this._set_axes(),this._vtk_render()})),this.on_change(this.model.properties.color_mappers,(()=>this._add_colorbars())),this.on_change(this.model.properties.annotations,(()=>this._add_annotations()))}render(){super.render(),this._vtk_renwin&&this._vtk_container?this.shadow_el.appendChild(this._vtk_container):(this._orientationWidget=null,this._axes=null,this._vtk_container=(0,r.div)(),this.init_vtk_renwin(),this._init_annotations_container(),(0,h.set_size)(this._vtk_container,this.model),this.shadow_el.appendChild(this._vtk_container),this._vtk_renwin.getInteractor().onEndAnimation((()=>this._get_camera_state())),this._remove_default_key_binding(),this._bind_key_events(),this.plot(),this._add_colorbars(),this._add_annotations(),this.model.renderer_el=this._vtk_renwin),this.shadow_el.appendChild(this._annotations_container)}after_layout(){super.after_layout(),this._renderable&&this._vtk_renwin.resize(),this._vtk_render()}invalidate_render(){this._unsubscribe_camera_cb(),super.invalidate_render()}remove(){this._unsubscribe_camera_cb(),window.removeEventListener(\"resize\",this._vtk_renwin.resize),null!=this._orientationWidget&&this._orientationWidget.delete(),this._vtk_renwin.getRenderWindow().getInteractor().delete(),this._vtk_renwin.delete(),super.remove()}get _vtk_camera_state(){const e=this._vtk_renwin.getRenderer().getActiveCamera();let t;return e&&(t=(0,o.clone)(e.get()),delete t.cameraLightTransform,delete t.classHierarchy,delete t.vtkObject,delete t.vtkCamera,delete t.viewPlaneNormal,delete t.flattenedDepIds,delete t.managedInstanceId,delete t.directionOfProjection),t}get _axes_canvas(){let e=this._vtk_container.querySelector(\".axes-canvas\");return e||(e=(0,r.canvas)({style:{position:\"absolute\",top:\"0\",left:\"0\",width:\"100%\",height:\"100%\"}}),e.classList.add(\"axes-canvas\"),this._vtk_container.appendChild(e),this._vtk_renwin.setResizeCallback((()=>{if(this._axes_canvas){const e=this._vtk_container.getBoundingClientRect(),t=Math.floor(e.width*window.devicePixelRatio),i=Math.floor(e.height*window.devicePixelRatio);this._axes_canvas.setAttribute(\"width\",t.toFixed()),this._axes_canvas.setAttribute(\"height\",i.toFixed())}}))),e}_bind_key_events(){this.el.addEventListener(\"mouseenter\",(()=>{const e=this._vtk_renwin.getInteractor();this.model.enable_keybindings&&(document.querySelector(\"body\").addEventListener(\"keypress\",e.handleKeyPress),document.querySelector(\"body\").addEventListener(\"keydown\",e.handleKeyDown),document.querySelector(\"body\").addEventListener(\"keyup\",e.handleKeyUp))})),this.el.addEventListener(\"mouseleave\",(()=>{const e=this._vtk_renwin.getInteractor();document.querySelector(\"body\").removeEventListener(\"keypress\",e.handleKeyPress),document.querySelector(\"body\").removeEventListener(\"keydown\",e.handleKeyDown),document.querySelector(\"body\").removeEventListener(\"keyup\",e.handleKeyUp)}))}_create_orientation_widget(){const e=c.vtkns.AxesActor.newInstance();this._orientationWidget=c.vtkns.OrientationMarkerWidget.newInstance({actor:e,interactor:this._vtk_renwin.getInteractor()}),this._orientationWidget.setEnabled(!0),this._orientationWidget.setViewportCorner(c.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT),this._orientationWidget.setViewportSize(.15),this._orientationWidget.setMinPixelSize(75),this._orientationWidget.setMaxPixelSize(300),this.model.interactive_orientation_widget&&this._make_orientation_widget_interactive(),this._orientation_widget_visibility(this.model.orientation_widget)}_make_orientation_widget_interactive(){this._widgetManager=c.vtkns.WidgetManager.newInstance(),this._widgetManager.setRenderer(this._orientationWidget.getRenderer());const e=this._orientationWidget.getActor(),t=c.vtkns.InteractiveOrientationWidget.newInstance();t.placeWidget(e.getBounds()),t.setBounds(e.getBounds()),t.setPlaceFactor(1);this._widgetManager.addWidget(t).onOrientationChange((({direction:e})=>{const t=this._vtk_renwin.getRenderer().getActiveCamera(),i=t.getFocalPoint(),n=t.getPosition(),a=t.getViewUp(),s=Math.sqrt(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)+Math.pow(n[2]-i[2],2));t.setPosition(i[0]+e[0]*s,i[1]+e[1]*s,i[2]+e[2]*s),e[0]&&t.setViewUp((0,c.majorAxis)(a,1,2)),e[1]&&t.setViewUp((0,c.majorAxis)(a,0,2)),e[2]&&t.setViewUp((0,c.majorAxis)(a,0,1)),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_render(),this._get_camera_state()}))}_delete_axes(){if(this._axes){Object.keys(this._axes).forEach((e=>this._vtk_renwin.getRenderer().removeActor(this._axes[e]))),this._axes=null;const e=this._axes_canvas.getContext(\"2d\");e&&e.clearRect(0,0,this._axes_canvas.clientWidth*window.devicePixelRatio,this._axes_canvas.clientHeight*window.devicePixelRatio)}}_get_camera_state(){this._setting_camera||(this._setting_camera=!0,this.model.camera=this._vtk_camera_state,this._setting_camera=!1)}_orientation_widget_visibility(e){this._orientationWidget.setEnabled(e),null!=this._widgetManager&&(e?this._widgetManager.enablePicking():this._widgetManager.disablePicking()),this._vtk_render()}_remove_default_key_binding(){const e=this._vtk_renwin.getInteractor();document.querySelector(\"body\").removeEventListener(\"keypress\",e.handleKeyPress),document.querySelector(\"body\").removeEventListener(\"keydown\",e.handleKeyDown),document.querySelector(\"body\").removeEventListener(\"keyup\",e.handleKeyUp)}_set_axes(){if(this.model.axes&&this._vtk_renwin.getRenderer()){const{psActor:e,axesActor:t,gridActor:i}=this.model.axes.create_axes(this._axes_canvas);this._axes={psActor:e,axesActor:t,gridActor:i},e&&this._vtk_renwin.getRenderer().addActor(e),t&&this._vtk_renwin.getRenderer().addActor(t),i&&this._vtk_renwin.getRenderer().addActor(i)}}_set_camera_state(){this._setting_camera||void 0===this._vtk_renwin.getRenderer()||(this._setting_camera=!0,this.model.camera&&JSON.stringify(this.model.camera)!=JSON.stringify(this._vtk_camera_state)&&this._vtk_renwin.getRenderer().getActiveCamera().set(this.model.camera),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._setting_camera=!1)}_unsubscribe_camera_cb(){this._camera_callbacks.splice(0,this._camera_callbacks.length).map((e=>e.unsubscribe()))}_vtk_render(){this._renderable&&(this._orientationWidget&&this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderWindow().render())}}i.AbstractVTKView=v,v.__name__=\"AbstractVTKView\";class w extends h.HTMLBox{constructor(e){(0,c.setup_vtkns)(),super(e)}getActors(){return this.renderer_el.getRenderer().getActors()}}i.AbstractVTKPlot=w,s=w,w.__name__=\"AbstractVTKPlot\",w.__module__=\"panel.models.vtk\",s.define((({Any:e,Ref:t,Array:i,Boolean:n,Nullable:a})=>({axes:[a(t(g.VTKAxes)),null],camera:[e,{}],color_mappers:[i(t(_.ColorMapper)),[]],orientation_widget:[n,!1],interactive_orientation_widget:[n,!1],annotations:[a(i(e)),null]}))),s.override({height:300,width:300})},\n \"a76a9b7c23\": function _(e,n,t,r,o){r();const a=e(\"@bokehjs/core/util/array\"),i=e(\"@bokehjs/core/kinds\");function s(){if(null!=t.vtkns.Actor)return;const e=window.vtk;t.vtkns.Actor=e.Rendering.Core.vtkActor,t.vtkns.AxesActor=e.Rendering.Core.vtkAxesActor,t.vtkns.Base64=e.Common.Core.vtkBase64,t.vtkns.BoundingBox=e.Common.DataModel.vtkBoundingBox,t.vtkns.Camera=e.Rendering.Core.vtkCamera,t.vtkns.ColorTransferFunction=e.Rendering.Core.vtkColorTransferFunction,t.vtkns.CubeSource=e.Filters.Sources.vtkCubeSource,t.vtkns.DataAccessHelper=e.IO.Core.DataAccessHelper,t.vtkns.DataArray=e.Common.Core.vtkDataArray,t.vtkns.Follower=e.Rendering.Core.vtkFollower,t.vtkns.FullScreenRenderWindow=e.Rendering.Misc.vtkFullScreenRenderWindow,t.vtkns.Glyph3DMapper=e.Rendering.Core.vtkGlyph3DMapper,t.vtkns.HttpSceneLoader=e.IO.Core.vtkHttpSceneLoader,t.vtkns.ImageData=e.Common.DataModel.vtkImageData,t.vtkns.ImageMapper=e.Rendering.Core.vtkImageMapper,t.vtkns.ImageProperty=e.Rendering.Core.vtkImageProperty,t.vtkns.ImageSlice=e.Rendering.Core.vtkImageSlice,t.vtkns.InteractiveOrientationWidget=e.Widgets.Widgets3D.vtkInteractiveOrientationWidget,t.vtkns.InteractorStyleTrackballCamera=e.Interaction.Style.vtkInteractorStyleTrackballCamera,t.vtkns.Light=e.Rendering.Core.vtkLight,t.vtkns.LineSource=e.Filters.Sources.vtkLineSource,t.vtkns.LookupTable=e.Common.Core.vtkLookupTable,t.vtkns.macro=e.macro,t.vtkns.Mapper=e.Rendering.Core.vtkMapper,t.vtkns.OpenGLRenderWindow=e.Rendering.OpenGL.vtkRenderWindow,t.vtkns.OrientationMarkerWidget=e.Interaction.Widgets.vtkOrientationMarkerWidget,t.vtkns.OutlineFilter=e.Filters.General.vtkOutlineFilter,t.vtkns.PiecewiseFunction=e.Common.DataModel.vtkPiecewiseFunction,t.vtkns.PixelSpaceCallbackMapper=e.Rendering.Core.vtkPixelSpaceCallbackMapper,t.vtkns.PlaneSource=e.Filters.Sources.vtkPlaneSource,t.vtkns.PointSource=e.Filters.Sources.vtkPointSource,t.vtkns.PolyData=e.Common.DataModel.vtkPolyData,t.vtkns.Property=e.Rendering.Core.vtkProperty,t.vtkns.Renderer=e.Rendering.Core.vtkRenderer,t.vtkns.RenderWindow=e.Rendering.Core.vtkRenderWindow,t.vtkns.RenderWindowInteractor=e.Rendering.Core.vtkRenderWindowInteractor,t.vtkns.SphereMapper=e.Rendering.Core.vtkSphereMapper,t.vtkns.SynchronizableRenderWindow=e.Rendering.Misc.vtkSynchronizableRenderWindow,t.vtkns.Texture=e.Rendering.Core.vtkTexture,t.vtkns.Volume=e.Rendering.Core.vtkVolume,t.vtkns.VolumeController=e.Interaction.UI.vtkVolumeController,t.vtkns.VolumeMapper=e.Rendering.Core.vtkVolumeMapper,t.vtkns.VolumeProperty=e.Rendering.Core.vtkVolumeProperty,t.vtkns.WidgetManager=e.Widgets.Core.vtkWidgetManager;const{vtkObjectManager:n}=t.vtkns.SynchronizableRenderWindow;n.setTypeMapping(\"vtkVolumeMapper\",t.vtkns.VolumeMapper.newInstance,n.oneTimeGenericUpdater),n.setTypeMapping(\"vtkSmartVolumeMapper\",t.vtkns.VolumeMapper.newInstance,n.oneTimeGenericUpdater),n.setTypeMapping(\"vtkFollower\",t.vtkns.Follower.newInstance,n.genericUpdater),n.setTypeMapping(\"vtkOpenGLGlyph3DMapper\",t.vtkns.Glyph3DMapper.newInstance,n.genericUpdater)}function k(e){const n=Math.min(Math.max(Math.round(e),0),255).toString(16);return 2==n.length?n:\"0\"+n}function c(e,n,t){return\"#\"+k(e)+k(n)+k(t)}function l(e){for(var n=new ArrayBuffer(e.length),t=new Uint8Array(n),r=0,o=e.length;r<o;r++)t[r]=e.charCodeAt(r);return n}t.ARRAY_TYPES={uint8:Uint8Array,int8:Int8Array,uint16:Uint16Array,int16:Int16Array,uint32:Uint32Array,int32:Int32Array,float32:Float32Array,float64:Float64Array},t.vtkns={},t.setup_vtkns=s,window.vtk&&s(),t.Interpolation=(0,i.Enum)(\"fast_linear\",\"linear\",\"nearest\"),t.applyStyle=function(e,n){Object.keys(n).forEach((t=>{e.style[t]=n[t]}))},t.hexToRGB=function(e){return[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255]},t.rgbToHex=c,t.vtkLutToMapper=function(e){const{scale:n,nodes:r}=e.get(\"scale\",\"nodes\");if(n!==t.vtkns.ColorTransferFunction.Scale.LINEAR)throw\"Error transfer function scale not handle\";const o=r.map((e=>e.x)),i=Math.min(...o),s=Math.max(...o),k=(0,a.linspace)(i,s,255),l=[0,0,0];return{low:i,high:s,palette:k.map((n=>(e.getColor(n,l),c(255*l[0],255*l[1],255*l[2]))))}},t.data2VTKImageData=function(e){const n=t.vtkns.ImageData.newInstance({spacing:e.spacing});n.setDimensions(e.dims),n.setOrigin(null!=e.origin?e.origin:e.dims.map((e=>e/2)));const r=t.vtkns.DataArray.newInstance({name:\"scalars\",numberOfComponents:1,values:new t.ARRAY_TYPES[e.dtype](l(atob(e.buffer)))});return n.getPointData().setScalars(r),n},t.majorAxis=function(e,n,t){const r=[0,0,0],o=Math.abs(e[n])>Math.abs(e[t])?n:t,a=e[o]>0?1:-1;return r[o]=a,r},t.cartesian_product=function(...e){return e.reduce(((e,n)=>[...e].flatMap((e=>n.map((n=>[].concat(e,n)))))))}},\n \"787f6aeecd\": function _(t,i,e,s,h){s();const a=t(\"@bokehjs/models/mappers\"),n=t(\"@bokehjs/core/util/array\");class c{constructor(t,i,e={}){this.parent=t,this.mapper=i,this.options=e,e.ticksNum||(e.ticksNum=5),e.fontFamily||(e.fontFamily=\"Arial\"),e.fontSize||(e.fontSize=\"12px\"),e.ticksSize||(e.ticksSize=2),this.canvas=document.createElement(\"canvas\"),this.canvas.style.width=\"100%\",this.parent.appendChild(this.canvas),this.ctx=this.canvas.getContext(\"2d\"),this.ctx.font=`${this.options.fontSize} ${this.options.fontFamily}`,this.ctx.lineWidth=e.ticksSize,e.height||(e.height=4*(this.font_height+1)+\"px\"),this.canvas.style.height=e.height,this.draw_colorbar()}get values(){const{min:t,max:i}=this.mapper.metrics;return(0,n.linspace)(t,i,this.options.ticksNum)}get ticks(){return this.values.map((t=>t.toExponential(3)))}get title(){return this.mapper.name?this.mapper.name:\"scalars\"}get font_height(){let t=0;return this.values.forEach((i=>{const{actualBoundingBoxAscent:e,actualBoundingBoxDescent:s}=this.ctx.measureText(`${i}`),h=e+s;t<h&&(t=h)})),t}draw_colorbar(){this.canvas.width=this.canvas.clientWidth,this.canvas.height=this.canvas.clientHeight;const{palette:t}=this.mapper;this.ctx.font=`${this.options.fontSize} ${this.options.fontFamily}`;const i=this.font_height;this.ctx.save();const e=document.createElement(\"canvas\"),s=t.length;e.width=s,e.height=1;const h=e.getContext(\"2d\"),c=h.getImageData(0,0,s,1),o=new a.LinearColorMapper({palette:t}).rgba_mapper.v_compute((0,n.range)(0,t.length));c.data.set(o),h.putImageData(c,0,0),this.ctx.drawImage(e,0,2*(this.font_height+1)+1,this.canvas.width,this.canvas.height),this.ctx.restore(),this.ctx.save(),this.ctx.textAlign=\"center\",this.ctx.fillText(this.title,this.canvas.width/2,i+1),this.ctx.restore(),this.ctx.save();const r=(0,n.linspace)(0,this.canvas.width,5);r.forEach(((t,e)=>{let s=t;0==e?(s=t+Math.ceil(this.ctx.lineWidth/2),this.ctx.textAlign=\"left\"):e==r.length-1?(s=t-Math.ceil(this.ctx.lineWidth/2),this.ctx.textAlign=\"right\"):this.ctx.textAlign=\"center\",this.ctx.moveTo(s,2*(i+1)),this.ctx.lineTo(s,2*(i+1)+5),this.ctx.stroke(),this.ctx.fillText(`${this.ticks[e]}`,t,2*(i+1))})),this.ctx.restore()}}e.VTKColorBar=c,c.__name__=\"VTKColorBar\"},\n \"7cec459a06\": function _(t,i,s,e,n){var a;e();const r=t(\"@bokehjs/model\"),c=t(\"2f3fd5db07\"),l=t(\"a76a9b7c23\");class h extends r.Model{constructor(t){super(t)}get xticks(){return this.xticker?this.xticker.ticks:[]}get yticks(){return this.yticker?this.yticker.ticks:[]}get zticks(){return this.zticker?this.zticker.ticks:[]}get xlabels(){var t;return(null===(t=this.xticker)||void 0===t?void 0:t.labels)?this.xticker.labels:this.xticks.map((t=>t.toFixed(this.digits)))}get ylabels(){var t;return(null===(t=this.yticker)||void 0===t?void 0:t.labels)?this.yticker.labels:this.yticks.map((t=>t.toFixed(this.digits)))}get zlabels(){var t;return(null===(t=this.zticker)||void 0===t?void 0:t.labels)?this.zticker.labels:this.zticks.map((t=>t.toFixed(this.digits)))}_make_grid_lines(t,i,s){const e=[];for(let n=0;n<t-1;n++)for(let t=0;t<i-1;t++){const a=n*i+t+s,r=[5,a,n*i+t+1+s,(n+1)*i+t+1+s,(n+1)*i+t+s,a];e.push(r)}return e}_create_grid_axes(){const t=[];t.push((0,l.cartesian_product)(this.xticks,this.yticks,[this.origin[2]])),t.push((0,l.cartesian_product)([this.origin[0]],this.yticks,this.zticks)),t.push((0,l.cartesian_product)(this.xticks,[this.origin[1]],this.zticks));const i=[];let s=0;i.push(this._make_grid_lines(this.xticks.length,this.yticks.length,s)),s+=this.xticks.length*this.yticks.length,i.push(this._make_grid_lines(this.yticks.length,this.zticks.length,s)),s+=this.yticks.length*this.zticks.length,i.push(this._make_grid_lines(this.xticks.length,this.zticks.length,s));const e=window.vtk({vtkClass:\"vtkPolyData\",points:{vtkClass:\"vtkPoints\",dataType:\"Float32Array\",numberOfComponents:3,values:t.flat(2)},lines:{vtkClass:\"vtkCellArray\",dataType:\"Uint32Array\",values:i.flat(2)}}),n=l.vtkns.Mapper.newInstance(),a=l.vtkns.Actor.newInstance();return n.setInputData(e),a.setMapper(n),a.getProperty().setOpacity(this.grid_opacity),a.setVisibility(this.show_grid),a}create_axes(t){if(null==this.origin)return{psActor:null,axesActor:null,gridActor:null};const i=[this.xticks,this.yticks,this.zticks].map(((t,i)=>{let s=null;switch(i){case 0:s=(0,l.cartesian_product)(t,[this.origin[1]],[this.origin[2]]);break;case 1:s=(0,l.cartesian_product)([this.origin[0]],t,[this.origin[2]]);break;case 2:s=(0,l.cartesian_product)([this.origin[0]],[this.origin[1]],t)}return s})).flat(2),s=window.vtk({vtkClass:\"vtkPolyData\",points:{vtkClass:\"vtkPoints\",dataType:\"Float32Array\",numberOfComponents:3,values:i},lines:{vtkClass:\"vtkCellArray\",dataType:\"Uint32Array\",values:[2,0,this.xticks.length-1,2,this.xticks.length,this.xticks.length+this.yticks.length-1,2,this.xticks.length+this.yticks.length,this.xticks.length+this.yticks.length+this.zticks.length-1]}}),e=l.vtkns.PixelSpaceCallbackMapper.newInstance();e.setInputData(s),e.setUseZValues(!0),e.setCallback(((i,s,n)=>{const a=t.getContext(\"2d\");if(a){const r={height:t.clientHeight*window.devicePixelRatio,width:t.clientWidth*window.devicePixelRatio},l=e.getInputData().getPoints(),h=s.getViewMatrix();c.mat4.transpose(h,h);const o=s.getProjectionMatrix(n,-1,1);c.mat4.transpose(o,o),a.clearRect(0,0,r.width,r.height),i.forEach(((t,i)=>{const s=l.getPoint(i),e=c.vec3.fromValues(s[0],s[1],s[2]);if(c.vec3.transformMat4(e,e,h),e[2]+=.05,c.vec3.transformMat4(e,e,o),e[2]-.001<t[3]){let s;a.font=\"30px serif\",a.textAlign=\"center\",a.textBaseline=\"alphabetic\",a.fillText(\".\",t[0],r.height-t[1]+2),a.font=this.fontsize*window.devicePixelRatio+\"px serif\",a.textAlign=\"right\",a.textBaseline=\"top\",s=i<this.xticks.length?this.xlabels[i]:i>=this.xticks.length&&i<this.xticks.length+this.yticks.length?this.ylabels[i-this.xticks.length]:this.zlabels[i-(this.xticks.length+this.yticks.length)],a.fillText(`${s}`,t[0],r.height-t[1])}}))}}));const n=l.vtkns.Actor.newInstance();n.setMapper(e);const a=l.vtkns.Mapper.newInstance();a.setInputData(s);const r=l.vtkns.Actor.newInstance();r.setMapper(a),r.getProperty().setOpacity(this.axes_opacity);return{psActor:n,axesActor:r,gridActor:this._create_grid_axes()}}}s.VTKAxes=h,a=h,h.__name__=\"VTKAxes\",h.__module__=\"panel.models.vtk\",a.define((({Any:t,Array:i,Boolean:s,Number:e})=>({origin:[i(e),[0,0,0]],xticker:[t,null],yticker:[t,null],zticker:[t,null],digits:[e,1],show_grid:[s,!0],grid_opacity:[e,.1],axes_opacity:[e,1],fontsize:[e,12]})))},\n \"2f3fd5db07\": function _(t,c,a,o,r){o();const _=t(\"tslib\"),m=_.__importStar(t(\"68ca94c15c\"));a.glMatrix=m;const i=_.__importStar(t(\"7c0b8e6048\"));a.mat2=i;const n=_.__importStar(t(\"dc03f0a621\"));a.mat2d=n;const s=_.__importStar(t(\"0285c50a7e\"));a.mat3=s;const p=_.__importStar(t(\"a427635f32\"));a.mat4=p;const S=_.__importStar(t(\"eb06fc032a\"));a.quat=S;const e=_.__importStar(t(\"277615c682\"));a.quat2=e;const f=_.__importStar(t(\"c56d9ff837\"));a.vec2=f;const b=_.__importStar(t(\"2c5eb22089\"));a.vec3=b;const d=_.__importStar(t(\"c1aa33d719\"));a.vec4=d},\n \"68ca94c15c\": function _(t,a,r,n,o){n(),r.EPSILON=1e-6,r.ARRAY_TYPE=\"undefined\"!=typeof Float32Array?Float32Array:Array,r.RANDOM=Math.random,r.setMatrixArrayType=function(t){r.ARRAY_TYPE=t};var h=Math.PI/180;r.toRadian=function(t){return t*h},r.equals=function(t,a){return Math.abs(t-a)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))},Math.hypot||(Math.hypot=function(){for(var t=0,a=arguments.length;a--;)t+=arguments[a]*arguments[a];return Math.sqrt(t)})},\n \"7c0b8e6048\": function _(t,n,r,a,u){a();const e=t(\"tslib\").__importStar(t(\"68ca94c15c\"));function o(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1],f=r[2],s=r[3];return t[0]=a*c+e*i,t[1]=u*c+o*i,t[2]=a*f+e*s,t[3]=u*f+o*s,t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}r.create=function(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},r.clone=function(t){var n=new e.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},r.fromValues=function(t,n,r,a){var u=new e.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=r,u[3]=a,u},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.transpose=function(t,n){if(t===n){var r=n[1];t[1]=n[2],t[2]=r}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},r.invert=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*e-u*a;return o?(o=1/o,t[0]=e*o,t[1]=-a*o,t[2]=-u*o,t[3]=r*o,t):null},r.adjoint=function(t,n){var r=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=r,t},r.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},r.multiply=o,r.rotate=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=Math.sin(r),i=Math.cos(r);return t[0]=a*i+e*c,t[1]=u*i+o*c,t[2]=a*-c+e*i,t[3]=u*-c+o*i,t},r.scale=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],c=r[0],i=r[1];return t[0]=a*c,t[1]=u*c,t[2]=e*i,t[3]=o*i,t},r.fromRotation=function(t,n){var r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=-r,t[3]=a,t},r.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},r.str=function(t){return\"mat2(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},r.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},r.LDU=function(t,n,r,a){return t[2]=a[2]/a[0],r[0]=a[0],r[1]=a[1],r[3]=a[3]-t[2]*r[1],[t,n,r]},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=c,r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],a=t[1],u=t[2],o=t[3],c=n[0],i=n[1],f=n[2],s=n[3];return Math.abs(r-c)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(a-i)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(i))&&Math.abs(u-f)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(o-s)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))},r.multiplyScalar=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.multiplyScalarAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.mul=o,r.sub=c},\n \"dc03f0a621\": function _(t,n,a,r,u){r();const o=t(\"tslib\").__importStar(t(\"68ca94c15c\"));function e(t,n,a){var r=n[0],u=n[1],o=n[2],e=n[3],c=n[4],i=n[5],s=a[0],h=a[1],f=a[2],M=a[3],b=a[4],l=a[5];return t[0]=r*s+o*h,t[1]=u*s+e*h,t[2]=r*f+o*M,t[3]=u*f+e*M,t[4]=r*b+o*l+c,t[5]=u*b+e*l+i,t}function c(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}a.create=function(){var t=new o.ARRAY_TYPE(6);return o.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},a.clone=function(t){var n=new o.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},a.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},a.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},a.fromValues=function(t,n,a,r,u,e){var c=new o.ARRAY_TYPE(6);return c[0]=t,c[1]=n,c[2]=a,c[3]=r,c[4]=u,c[5]=e,c},a.set=function(t,n,a,r,u,o,e){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t},a.invert=function(t,n){var a=n[0],r=n[1],u=n[2],o=n[3],e=n[4],c=n[5],i=a*o-r*u;return i?(i=1/i,t[0]=o*i,t[1]=-r*i,t[2]=-u*i,t[3]=a*i,t[4]=(u*c-o*e)*i,t[5]=(r*e-a*c)*i,t):null},a.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},a.multiply=e,a.rotate=function(t,n,a){var r=n[0],u=n[1],o=n[2],e=n[3],c=n[4],i=n[5],s=Math.sin(a),h=Math.cos(a);return t[0]=r*h+o*s,t[1]=u*h+e*s,t[2]=r*-s+o*h,t[3]=u*-s+e*h,t[4]=c,t[5]=i,t},a.scale=function(t,n,a){var r=n[0],u=n[1],o=n[2],e=n[3],c=n[4],i=n[5],s=a[0],h=a[1];return t[0]=r*s,t[1]=u*s,t[2]=o*h,t[3]=e*h,t[4]=c,t[5]=i,t},a.translate=function(t,n,a){var r=n[0],u=n[1],o=n[2],e=n[3],c=n[4],i=n[5],s=a[0],h=a[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=r*s+o*h+c,t[5]=u*s+e*h+i,t},a.fromRotation=function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},a.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},a.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},a.str=function(t){return\"mat2d(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\")\"},a.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},a.add=function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},a.subtract=c,a.multiplyScalar=function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},a.multiplyScalarAndAdd=function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},a.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},a.equals=function(t,n){var a=t[0],r=t[1],u=t[2],e=t[3],c=t[4],i=t[5],s=n[0],h=n[1],f=n[2],M=n[3],b=n[4],l=n[5];return Math.abs(a-s)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(r-h)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(u-f)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(e-M)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(c-b)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(i-l)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))},a.mul=e,a.sub=c},\n \"0285c50a7e\": function _(t,a,n,r,u){r();const o=t(\"tslib\").__importStar(t(\"68ca94c15c\"));function e(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1],l=n[2],m=n[3],v=n[4],E=n[5],P=n[6],S=n[7],A=n[8];return t[0]=f*r+b*e+l*s,t[1]=f*u+b*i+l*M,t[2]=f*o+b*c+l*h,t[3]=m*r+v*e+E*s,t[4]=m*u+v*i+E*M,t[5]=m*o+v*c+E*h,t[6]=P*r+S*e+A*s,t[7]=P*u+S*i+A*M,t[8]=P*o+S*c+A*h,t}function i(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t}n.create=function(){var t=new o.ARRAY_TYPE(9);return o.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[4],t[4]=a[5],t[5]=a[6],t[6]=a[8],t[7]=a[9],t[8]=a[10],t},n.clone=function(t){var a=new o.ARRAY_TYPE(9);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromValues=function(t,a,n,r,u,e,i,c,s){var M=new o.ARRAY_TYPE(9);return M[0]=t,M[1]=a,M[2]=n,M[3]=r,M[4]=u,M[5]=e,M[6]=i,M[7]=c,M[8]=s,M},n.set=function(t,a,n,r,u,o,e,i,c,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t[6]=i,t[7]=c,t[8]=s,t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],u=a[5];t[1]=a[3],t[2]=a[6],t[3]=n,t[5]=a[7],t[6]=r,t[7]=u}else t[0]=a[0],t[1]=a[3],t[2]=a[6],t[3]=a[1],t[4]=a[4],t[5]=a[7],t[6]=a[2],t[7]=a[5],t[8]=a[8];return t},n.invert=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=M*e-i*s,f=-M*o+i*c,b=s*o-e*c,l=n*h+r*f+u*b;return l?(l=1/l,t[0]=h*l,t[1]=(-M*r+u*s)*l,t[2]=(i*r-u*e)*l,t[3]=f*l,t[4]=(M*n-u*c)*l,t[5]=(-i*n+u*o)*l,t[6]=b*l,t[7]=(-s*n+r*c)*l,t[8]=(e*n-r*o)*l,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8];return t[0]=e*M-i*s,t[1]=u*s-r*M,t[2]=r*i-u*e,t[3]=i*c-o*M,t[4]=n*M-u*c,t[5]=u*o-n*i,t[6]=o*s-e*c,t[7]=r*c-n*s,t[8]=n*e-r*o,t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],u=t[3],o=t[4],e=t[5],i=t[6],c=t[7],s=t[8];return a*(s*o-e*c)+n*(-s*u+e*i)+r*(c*u-o*i)},n.multiply=e,n.translate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=n[0],b=n[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=i,t[5]=c,t[6]=f*r+b*e+s,t[7]=f*u+b*i+M,t[8]=f*o+b*c+h,t},n.rotate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],c=a[5],s=a[6],M=a[7],h=a[8],f=Math.sin(n),b=Math.cos(n);return t[0]=b*r+f*e,t[1]=b*u+f*i,t[2]=b*o+f*c,t[3]=b*e-f*r,t[4]=b*i-f*u,t[5]=b*c-f*o,t[6]=s,t[7]=M,t[8]=h,t},n.scale=function(t,a,n){var r=n[0],u=n[1];return t[0]=r*a[0],t[1]=r*a[1],t[2]=r*a[2],t[3]=u*a[3],t[4]=u*a[4],t[5]=u*a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=a[0],t[7]=a[1],t[8]=1,t},n.fromRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=a[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=0,t[3]=a[2],t[4]=a[3],t[5]=0,t[6]=a[4],t[7]=a[5],t[8]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=n+n,i=r+r,c=u+u,s=n*e,M=r*e,h=r*i,f=u*e,b=u*i,l=u*c,m=o*e,v=o*i,E=o*c;return t[0]=1-h-l,t[3]=M-E,t[6]=f+v,t[1]=M+E,t[4]=1-s-l,t[7]=b-m,t[2]=f-v,t[5]=b+m,t[8]=1-s-h,t},n.normalFromMat4=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],c=a[6],s=a[7],M=a[8],h=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],E=a[15],P=n*i-r*e,S=n*c-u*e,A=n*s-o*e,x=r*c-u*i,d=r*s-o*i,I=u*s-o*c,L=M*m-h*l,N=M*v-f*l,O=M*E-b*l,R=h*v-f*m,p=h*E-b*m,Y=f*E-b*v,y=P*Y-S*p+A*R+x*O-d*N+I*L;return y?(y=1/y,t[0]=(i*Y-c*p+s*R)*y,t[1]=(c*O-e*Y-s*N)*y,t[2]=(e*p-i*O+s*L)*y,t[3]=(u*p-r*Y-o*R)*y,t[4]=(n*Y-u*O+o*N)*y,t[5]=(r*O-n*p-o*L)*y,t[6]=(m*I-v*d+E*x)*y,t[7]=(v*A-l*I-E*S)*y,t[8]=(l*d-m*A+E*P)*y,t):null},n.projection=function(t,a,n){return t[0]=2/a,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return\"mat3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\")\"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t},n.subtract=i,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]},n.equals=function(t,a){var n=t[0],r=t[1],u=t[2],e=t[3],i=t[4],c=t[5],s=t[6],M=t[7],h=t[8],f=a[0],b=a[1],l=a[2],m=a[3],v=a[4],E=a[5],P=a[6],S=a[7],A=a[8];return Math.abs(n-f)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-b)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(u-l)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(e-m)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(i-v)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-E)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(s-P)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(M-S)<=o.EPSILON*Math.max(1,Math.abs(M),Math.abs(S))&&Math.abs(h-A)<=o.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))},n.mul=e,n.sub=i},\n \"a427635f32\": function _(t,a,n,r,h){r();const o=t(\"tslib\").__importStar(t(\"68ca94c15c\"));function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],s=a[5],e=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],m=a[12],v=a[13],P=a[14],E=a[15],S=n[0],I=n[1],O=n[2],L=n[3];return t[0]=S*r+I*M+O*c+L*m,t[1]=S*h+I*s+O*f+L*v,t[2]=S*o+I*e+O*b+L*P,t[3]=S*u+I*i+O*l+L*E,S=n[4],I=n[5],O=n[6],L=n[7],t[4]=S*r+I*M+O*c+L*m,t[5]=S*h+I*s+O*f+L*v,t[6]=S*o+I*e+O*b+L*P,t[7]=S*u+I*i+O*l+L*E,S=n[8],I=n[9],O=n[10],L=n[11],t[8]=S*r+I*M+O*c+L*m,t[9]=S*h+I*s+O*f+L*v,t[10]=S*o+I*e+O*b+L*P,t[11]=S*u+I*i+O*l+L*E,S=n[12],I=n[13],O=n[14],L=n[15],t[12]=S*r+I*M+O*c+L*m,t[13]=S*h+I*s+O*f+L*v,t[14]=S*o+I*e+O*b+L*P,t[15]=S*u+I*i+O*l+L*E,t}function s(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],M=r+r,s=h+h,e=o+o,i=r*M,c=r*s,f=r*e,b=h*s,l=h*e,m=o*e,v=u*M,P=u*s,E=u*e;return t[0]=1-(b+m),t[1]=c+E,t[2]=f-P,t[3]=0,t[4]=c-E,t[5]=1-(i+m),t[6]=l+v,t[7]=0,t[8]=f+P,t[9]=l-v,t[10]=1-(i+b),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function e(t,a){var n=a[0],r=a[1],h=a[2],o=a[4],u=a[5],M=a[6],s=a[8],e=a[9],i=a[10];return t[0]=Math.hypot(n,r,h),t[1]=Math.hypot(o,u,M),t[2]=Math.hypot(s,e,i),t}function i(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t[9]=a[9]-n[9],t[10]=a[10]-n[10],t[11]=a[11]-n[11],t[12]=a[12]-n[12],t[13]=a[13]-n[13],t[14]=a[14]-n[14],t[15]=a[15]-n[15],t}n.create=function(){var t=new o.ARRAY_TYPE(16);return o.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var a=new o.ARRAY_TYPE(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.fromValues=function(t,a,n,r,h,u,M,s,e,i,c,f,b,l,m,v){var P=new o.ARRAY_TYPE(16);return P[0]=t,P[1]=a,P[2]=n,P[3]=r,P[4]=h,P[5]=u,P[6]=M,P[7]=s,P[8]=e,P[9]=i,P[10]=c,P[11]=f,P[12]=b,P[13]=l,P[14]=m,P[15]=v,P},n.set=function(t,a,n,r,h,o,u,M,s,e,i,c,f,b,l,m,v){return t[0]=a,t[1]=n,t[2]=r,t[3]=h,t[4]=o,t[5]=u,t[6]=M,t[7]=s,t[8]=e,t[9]=i,t[10]=c,t[11]=f,t[12]=b,t[13]=l,t[14]=m,t[15]=v,t},n.identity=u,n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],h=a[3],o=a[6],u=a[7],M=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=n,t[6]=a[9],t[7]=a[13],t[8]=r,t[9]=o,t[11]=a[14],t[12]=h,t[13]=u,t[14]=M}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t},n.invert=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],s=a[6],e=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],P=a[15],E=n*M-r*u,S=n*s-h*u,I=n*e-o*u,O=r*s-h*M,L=r*e-o*M,N=h*e-o*s,p=i*m-c*l,R=i*v-f*l,x=i*P-b*l,A=c*v-f*m,y=c*P-b*m,Y=f*P-b*v,g=E*Y-S*y+I*A+O*x-L*R+N*p;return g?(g=1/g,t[0]=(M*Y-s*y+e*A)*g,t[1]=(h*y-r*Y-o*A)*g,t[2]=(m*N-v*L+P*O)*g,t[3]=(f*L-c*N-b*O)*g,t[4]=(s*x-u*Y-e*R)*g,t[5]=(n*Y-h*x+o*R)*g,t[6]=(v*I-l*N-P*S)*g,t[7]=(i*N-f*I+b*S)*g,t[8]=(u*y-M*x+e*p)*g,t[9]=(r*x-n*y-o*p)*g,t[10]=(l*L-m*I+P*E)*g,t[11]=(c*I-i*L-b*E)*g,t[12]=(M*R-u*A-s*p)*g,t[13]=(n*A-r*R+h*p)*g,t[14]=(m*S-l*O-v*E)*g,t[15]=(i*O-c*S+f*E)*g,t):null},n.adjoint=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],M=a[5],s=a[6],e=a[7],i=a[8],c=a[9],f=a[10],b=a[11],l=a[12],m=a[13],v=a[14],P=a[15];return t[0]=M*(f*P-b*v)-c*(s*P-e*v)+m*(s*b-e*f),t[1]=-(r*(f*P-b*v)-c*(h*P-o*v)+m*(h*b-o*f)),t[2]=r*(s*P-e*v)-M*(h*P-o*v)+m*(h*e-o*s),t[3]=-(r*(s*b-e*f)-M*(h*b-o*f)+c*(h*e-o*s)),t[4]=-(u*(f*P-b*v)-i*(s*P-e*v)+l*(s*b-e*f)),t[5]=n*(f*P-b*v)-i*(h*P-o*v)+l*(h*b-o*f),t[6]=-(n*(s*P-e*v)-u*(h*P-o*v)+l*(h*e-o*s)),t[7]=n*(s*b-e*f)-u*(h*b-o*f)+i*(h*e-o*s),t[8]=u*(c*P-b*m)-i*(M*P-e*m)+l*(M*b-e*c),t[9]=-(n*(c*P-b*m)-i*(r*P-o*m)+l*(r*b-o*c)),t[10]=n*(M*P-e*m)-u*(r*P-o*m)+l*(r*e-o*M),t[11]=-(n*(M*b-e*c)-u*(r*b-o*c)+i*(r*e-o*M)),t[12]=-(u*(c*v-f*m)-i*(M*v-s*m)+l*(M*f-s*c)),t[13]=n*(c*v-f*m)-i*(r*v-h*m)+l*(r*f-h*c),t[14]=-(n*(M*v-s*m)-u*(r*v-h*m)+l*(r*s-h*M)),t[15]=n*(M*f-s*c)-u*(r*f-h*c)+i*(r*s-h*M),t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],h=t[3],o=t[4],u=t[5],M=t[6],s=t[7],e=t[8],i=t[9],c=t[10],f=t[11],b=t[12],l=t[13],m=t[14],v=t[15];return(a*u-n*o)*(c*v-f*m)-(a*M-r*o)*(i*v-f*l)+(a*s-h*o)*(i*m-c*l)+(n*M-r*u)*(e*v-f*b)-(n*s-h*u)*(e*m-c*b)+(r*s-h*M)*(e*l-i*b)},n.multiply=M,n.translate=function(t,a,n){var r,h,o,u,M,s,e,i,c,f,b,l,m=n[0],v=n[1],P=n[2];return a===t?(t[12]=a[0]*m+a[4]*v+a[8]*P+a[12],t[13]=a[1]*m+a[5]*v+a[9]*P+a[13],t[14]=a[2]*m+a[6]*v+a[10]*P+a[14],t[15]=a[3]*m+a[7]*v+a[11]*P+a[15]):(r=a[0],h=a[1],o=a[2],u=a[3],M=a[4],s=a[5],e=a[6],i=a[7],c=a[8],f=a[9],b=a[10],l=a[11],t[0]=r,t[1]=h,t[2]=o,t[3]=u,t[4]=M,t[5]=s,t[6]=e,t[7]=i,t[8]=c,t[9]=f,t[10]=b,t[11]=l,t[12]=r*m+M*v+c*P+a[12],t[13]=h*m+s*v+f*P+a[13],t[14]=o*m+e*v+b*P+a[14],t[15]=u*m+i*v+l*P+a[15]),t},n.scale=function(t,a,n){var r=n[0],h=n[1],o=n[2];return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*h,t[5]=a[5]*h,t[6]=a[6]*h,t[7]=a[7]*h,t[8]=a[8]*o,t[9]=a[9]*o,t[10]=a[10]*o,t[11]=a[11]*o,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.rotate=function(t,a,n,r){var h,u,M,s,e,i,c,f,b,l,m,v,P,E,S,I,O,L,N,p,R,x,A,y,Y=r[0],g=r[1],T=r[2],d=Math.hypot(Y,g,T);return d<o.EPSILON?null:(Y*=d=1/d,g*=d,T*=d,h=Math.sin(n),M=1-(u=Math.cos(n)),s=a[0],e=a[1],i=a[2],c=a[3],f=a[4],b=a[5],l=a[6],m=a[7],v=a[8],P=a[9],E=a[10],S=a[11],I=Y*Y*M+u,O=g*Y*M+T*h,L=T*Y*M-g*h,N=Y*g*M-T*h,p=g*g*M+u,R=T*g*M+Y*h,x=Y*T*M+g*h,A=g*T*M-Y*h,y=T*T*M+u,t[0]=s*I+f*O+v*L,t[1]=e*I+b*O+P*L,t[2]=i*I+l*O+E*L,t[3]=c*I+m*O+S*L,t[4]=s*N+f*p+v*R,t[5]=e*N+b*p+P*R,t[6]=i*N+l*p+E*R,t[7]=c*N+m*p+S*R,t[8]=s*x+f*A+v*y,t[9]=e*x+b*A+P*y,t[10]=i*x+l*A+E*y,t[11]=c*x+m*A+S*y,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t)},n.rotateX=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[4],u=a[5],M=a[6],s=a[7],e=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=o*h+e*r,t[5]=u*h+i*r,t[6]=M*h+c*r,t[7]=s*h+f*r,t[8]=e*h-o*r,t[9]=i*h-u*r,t[10]=c*h-M*r,t[11]=f*h-s*r,t},n.rotateY=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],s=a[3],e=a[8],i=a[9],c=a[10],f=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h-e*r,t[1]=u*h-i*r,t[2]=M*h-c*r,t[3]=s*h-f*r,t[8]=o*r+e*h,t[9]=u*r+i*h,t[10]=M*r+c*h,t[11]=s*r+f*h,t},n.rotateZ=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],M=a[2],s=a[3],e=a[4],i=a[5],c=a[6],f=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=o*h+e*r,t[1]=u*h+i*r,t[2]=M*h+c*r,t[3]=s*h+f*r,t[4]=e*h-o*r,t[5]=i*h-u*r,t[6]=c*h-M*r,t[7]=f*h-s*r,t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,a,n){var r,h,u,M=n[0],s=n[1],e=n[2],i=Math.hypot(M,s,e);return i<o.EPSILON?null:(M*=i=1/i,s*=i,e*=i,r=Math.sin(a),u=1-(h=Math.cos(a)),t[0]=M*M*u+h,t[1]=s*M*u+e*r,t[2]=e*M*u-s*r,t[3]=0,t[4]=M*s*u-e*r,t[5]=s*s*u+h,t[6]=e*s*u+M*r,t[7]=0,t[8]=M*e*u+s*r,t[9]=s*e*u-M*r,t[10]=e*e*u+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},n.fromXRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotationTranslation=s,n.fromQuat2=function(t,a){var n=new o.ARRAY_TYPE(3),r=-a[0],h=-a[1],u=-a[2],M=a[3],e=a[4],i=a[5],c=a[6],f=a[7],b=r*r+h*h+u*u+M*M;return b>0?(n[0]=2*(e*M+f*r+i*u-c*h)/b,n[1]=2*(i*M+f*h+c*r-e*u)/b,n[2]=2*(c*M+f*u+e*h-i*r)/b):(n[0]=2*(e*M+f*r+i*u-c*h),n[1]=2*(i*M+f*h+c*r-e*u),n[2]=2*(c*M+f*u+e*h-i*r)),s(t,a,n),t},n.getTranslation=function(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t},n.getScaling=e,n.getRotation=function(t,a){var n=new o.ARRAY_TYPE(3);e(n,a);var r=1/n[0],h=1/n[1],u=1/n[2],M=a[0]*r,s=a[1]*h,i=a[2]*u,c=a[4]*r,f=a[5]*h,b=a[6]*u,l=a[8]*r,m=a[9]*h,v=a[10]*u,P=M+f+v,E=0;return P>0?(E=2*Math.sqrt(P+1),t[3]=.25*E,t[0]=(b-m)/E,t[1]=(l-i)/E,t[2]=(s-c)/E):M>f&&M>v?(E=2*Math.sqrt(1+M-f-v),t[3]=(b-m)/E,t[0]=.25*E,t[1]=(s+c)/E,t[2]=(l+i)/E):f>v?(E=2*Math.sqrt(1+f-M-v),t[3]=(l-i)/E,t[0]=(s+c)/E,t[1]=.25*E,t[2]=(b+m)/E):(E=2*Math.sqrt(1+v-M-f),t[3]=(s-c)/E,t[0]=(l+i)/E,t[1]=(b+m)/E,t[2]=.25*E),t},n.fromRotationTranslationScale=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=a[3],s=h+h,e=o+o,i=u+u,c=h*s,f=h*e,b=h*i,l=o*e,m=o*i,v=u*i,P=M*s,E=M*e,S=M*i,I=r[0],O=r[1],L=r[2];return t[0]=(1-(l+v))*I,t[1]=(f+S)*I,t[2]=(b-E)*I,t[3]=0,t[4]=(f-S)*O,t[5]=(1-(c+v))*O,t[6]=(m+P)*O,t[7]=0,t[8]=(b+E)*L,t[9]=(m-P)*L,t[10]=(1-(c+l))*L,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,a,n,r,h){var o=a[0],u=a[1],M=a[2],s=a[3],e=o+o,i=u+u,c=M+M,f=o*e,b=o*i,l=o*c,m=u*i,v=u*c,P=M*c,E=s*e,S=s*i,I=s*c,O=r[0],L=r[1],N=r[2],p=h[0],R=h[1],x=h[2],A=(1-(m+P))*O,y=(b+I)*O,Y=(l-S)*O,g=(b-I)*L,T=(1-(f+P))*L,d=(v+E)*L,_=(l+S)*N,q=(v-E)*N,w=(1-(f+m))*N;return t[0]=A,t[1]=y,t[2]=Y,t[3]=0,t[4]=g,t[5]=T,t[6]=d,t[7]=0,t[8]=_,t[9]=q,t[10]=w,t[11]=0,t[12]=n[0]+p-(A*p+g*R+_*x),t[13]=n[1]+R-(y*p+T*R+q*x),t[14]=n[2]+x-(Y*p+d*R+w*x),t[15]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=n+n,M=r+r,s=h+h,e=n*u,i=r*u,c=r*M,f=h*u,b=h*M,l=h*s,m=o*u,v=o*M,P=o*s;return t[0]=1-c-l,t[1]=i+P,t[2]=f-v,t[3]=0,t[4]=i-P,t[5]=1-e-l,t[6]=b+m,t[7]=0,t[8]=f+v,t[9]=b-m,t[10]=1-e-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,a,n,r,h,o,u){var M=1/(n-a),s=1/(h-r),e=1/(o-u);return t[0]=2*o*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*s,t[6]=0,t[7]=0,t[8]=(n+a)*M,t[9]=(h+r)*s,t[10]=(u+o)*e,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*e,t[15]=0,t},n.perspective=function(t,a,n,r,h){var o,u=1/Math.tan(a/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=(h+r)*o,t[14]=2*h*r*o):(t[10]=-1,t[14]=-2*r),t},n.perspectiveFromFieldOfView=function(t,a,n,r){var h=Math.tan(a.upDegrees*Math.PI/180),o=Math.tan(a.downDegrees*Math.PI/180),u=Math.tan(a.leftDegrees*Math.PI/180),M=Math.tan(a.rightDegrees*Math.PI/180),s=2/(u+M),e=2/(h+o);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=-(u-M)*s*.5,t[9]=(h-o)*e*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},n.ortho=function(t,a,n,r,h,o,u){var M=1/(a-n),s=1/(r-h),e=1/(o-u);return t[0]=-2*M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*e,t[11]=0,t[12]=(a+n)*M,t[13]=(h+r)*s,t[14]=(u+o)*e,t[15]=1,t},n.lookAt=function(t,a,n,r){var h,M,s,e,i,c,f,b,l,m,v=a[0],P=a[1],E=a[2],S=r[0],I=r[1],O=r[2],L=n[0],N=n[1],p=n[2];return Math.abs(v-L)<o.EPSILON&&Math.abs(P-N)<o.EPSILON&&Math.abs(E-p)<o.EPSILON?u(t):(f=v-L,b=P-N,l=E-p,h=I*(l*=m=1/Math.hypot(f,b,l))-O*(b*=m),M=O*(f*=m)-S*l,s=S*b-I*f,(m=Math.hypot(h,M,s))?(h*=m=1/m,M*=m,s*=m):(h=0,M=0,s=0),e=b*s-l*M,i=l*h-f*s,c=f*M-b*h,(m=Math.hypot(e,i,c))?(e*=m=1/m,i*=m,c*=m):(e=0,i=0,c=0),t[0]=h,t[1]=e,t[2]=f,t[3]=0,t[4]=M,t[5]=i,t[6]=b,t[7]=0,t[8]=s,t[9]=c,t[10]=l,t[11]=0,t[12]=-(h*v+M*P+s*E),t[13]=-(e*v+i*P+c*E),t[14]=-(f*v+b*P+l*E),t[15]=1,t)},n.targetTo=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],M=r[0],s=r[1],e=r[2],i=h-n[0],c=o-n[1],f=u-n[2],b=i*i+c*c+f*f;b>0&&(i*=b=1/Math.sqrt(b),c*=b,f*=b);var l=s*f-e*c,m=e*i-M*f,v=M*c-s*i;return(b=l*l+m*m+v*v)>0&&(l*=b=1/Math.sqrt(b),m*=b,v*=b),t[0]=l,t[1]=m,t[2]=v,t[3]=0,t[4]=c*v-f*m,t[5]=f*l-i*v,t[6]=i*m-c*l,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=h,t[13]=o,t[14]=u,t[15]=1,t},n.str=function(t){return\"mat4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\", \"+t[9]+\", \"+t[10]+\", \"+t[11]+\", \"+t[12]+\", \"+t[13]+\", \"+t[14]+\", \"+t[15]+\")\"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t[9]=a[9]+n[9],t[10]=a[10]+n[10],t[11]=a[11]+n[11],t[12]=a[12]+n[12],t[13]=a[13]+n[13],t[14]=a[14]+n[14],t[15]=a[15]+n[15],t},n.subtract=i,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t[9]=a[9]*n,t[10]=a[10]*n,t[11]=a[11]*n,t[12]=a[12]*n,t[13]=a[13]*n,t[14]=a[14]*n,t[15]=a[15]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t[9]=a[9]+n[9]*r,t[10]=a[10]+n[10]*r,t[11]=a[11]+n[11]*r,t[12]=a[12]+n[12]*r,t[13]=a[13]+n[13]*r,t[14]=a[14]+n[14]*r,t[15]=a[15]+n[15]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]},n.equals=function(t,a){var n=t[0],r=t[1],h=t[2],u=t[3],M=t[4],s=t[5],e=t[6],i=t[7],c=t[8],f=t[9],b=t[10],l=t[11],m=t[12],v=t[13],P=t[14],E=t[15],S=a[0],I=a[1],O=a[2],L=a[3],N=a[4],p=a[5],R=a[6],x=a[7],A=a[8],y=a[9],Y=a[10],g=a[11],T=a[12],d=a[13],_=a[14],q=a[15];return Math.abs(n-S)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(r-I)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(I))&&Math.abs(h-O)<=o.EPSILON*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(u-L)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(L))&&Math.abs(M-N)<=o.EPSILON*Math.max(1,Math.abs(M),Math.abs(N))&&Math.abs(s-p)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(e-R)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(R))&&Math.abs(i-x)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-A)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(f-y)<=o.EPSILON*Math.max(1,Math.abs(f),Math.abs(y))&&Math.abs(b-Y)<=o.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(l-g)<=o.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(m-T)<=o.EPSILON*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(v-d)<=o.EPSILON*Math.max(1,Math.abs(v),Math.abs(d))&&Math.abs(P-_)<=o.EPSILON*Math.max(1,Math.abs(P),Math.abs(_))&&Math.abs(E-q)<=o.EPSILON*Math.max(1,Math.abs(E),Math.abs(q))},n.mul=M,n.sub=i},\n \"eb06fc032a\": function _(t,a,r,n,e){n();const o=t(\"tslib\"),s=o.__importStar(t(\"68ca94c15c\")),u=o.__importStar(t(\"0285c50a7e\")),c=o.__importStar(t(\"2c5eb22089\")),i=o.__importStar(t(\"c1aa33d719\"));function h(){var t=new s.ARRAY_TYPE(4);return s.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function M(t,a,r){r*=.5;var n=Math.sin(r);return t[0]=n*a[0],t[1]=n*a[1],t[2]=n*a[2],t[3]=Math.cos(r),t}function l(t,a,r){var n=a[0],e=a[1],o=a[2],s=a[3],u=r[0],c=r[1],i=r[2],h=r[3];return t[0]=n*h+s*u+e*i-o*c,t[1]=e*h+s*c+o*u-n*i,t[2]=o*h+s*i+n*c-e*u,t[3]=s*h-n*u-e*c-o*i,t}function f(t,a){var r=a[0],n=a[1],e=a[2],o=a[3],s=Math.sqrt(r*r+n*n+e*e),u=Math.exp(o),c=s>0?u*Math.sin(s)/s:0;return t[0]=r*c,t[1]=n*c,t[2]=e*c,t[3]=u*Math.cos(s),t}function v(t,a){var r=a[0],n=a[1],e=a[2],o=a[3],s=Math.sqrt(r*r+n*n+e*e),u=s>0?Math.atan2(s,o)/s:0;return t[0]=r*u,t[1]=n*u,t[2]=e*u,t[3]=.5*Math.log(r*r+n*n+e*e+o*o),t}function m(t,a,r,n){var e,o,u,c,i,h=a[0],M=a[1],l=a[2],f=a[3],v=r[0],m=r[1],q=r[2],d=r[3];return(o=h*v+M*m+l*q+f*d)<0&&(o=-o,v=-v,m=-m,q=-q,d=-d),1-o>s.EPSILON?(e=Math.acos(o),u=Math.sin(e),c=Math.sin((1-n)*e)/u,i=Math.sin(n*e)/u):(c=1-n,i=n),t[0]=c*h+i*v,t[1]=c*M+i*m,t[2]=c*l+i*q,t[3]=c*f+i*d,t}function q(t,a){var r,n=a[0]+a[4]+a[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(a[5]-a[7])*r,t[1]=(a[6]-a[2])*r,t[2]=(a[1]-a[3])*r;else{var e=0;a[4]>a[0]&&(e=1),a[8]>a[3*e+e]&&(e=2);var o=(e+1)%3,s=(e+2)%3;r=Math.sqrt(a[3*e+e]-a[3*o+o]-a[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(a[3*o+s]-a[3*s+o])*r,t[o]=(a[3*o+e]+a[3*e+o])*r,t[s]=(a[3*s+e]+a[3*e+s])*r}return t}var d,p,A,g,_,P;r.create=h,r.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},r.setAxisAngle=M,r.getAxisAngle=function(t,a){var r=2*Math.acos(a[3]),n=Math.sin(r/2);return n>s.EPSILON?(t[0]=a[0]/n,t[1]=a[1]/n,t[2]=a[2]/n):(t[0]=1,t[1]=0,t[2]=0),r},r.getAngle=function(t,a){var n=(0,r.dot)(t,a);return Math.acos(2*n*n-1)},r.multiply=l,r.rotateX=function(t,a,r){r*=.5;var n=a[0],e=a[1],o=a[2],s=a[3],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*u,t[1]=e*c+o*u,t[2]=o*c-e*u,t[3]=s*c-n*u,t},r.rotateY=function(t,a,r){r*=.5;var n=a[0],e=a[1],o=a[2],s=a[3],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c-o*u,t[1]=e*c+s*u,t[2]=o*c+n*u,t[3]=s*c-e*u,t},r.rotateZ=function(t,a,r){r*=.5;var n=a[0],e=a[1],o=a[2],s=a[3],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+e*u,t[1]=e*c-n*u,t[2]=o*c+s*u,t[3]=s*c-o*u,t},r.calculateW=function(t,a){var r=a[0],n=a[1],e=a[2];return t[0]=r,t[1]=n,t[2]=e,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-e*e)),t},r.exp=f,r.ln=v,r.pow=function(t,a,n){return v(t,a),(0,r.scale)(t,t,n),f(t,t),t},r.slerp=m,r.random=function(t){var a=s.RANDOM(),r=s.RANDOM(),n=s.RANDOM(),e=Math.sqrt(1-a),o=Math.sqrt(a);return t[0]=e*Math.sin(2*Math.PI*r),t[1]=e*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},r.invert=function(t,a){var r=a[0],n=a[1],e=a[2],o=a[3],s=r*r+n*n+e*e+o*o,u=s?1/s:0;return t[0]=-r*u,t[1]=-n*u,t[2]=-e*u,t[3]=o*u,t},r.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t},r.fromMat3=q,r.fromEuler=function(t,a,r,n){var e=.5*Math.PI/180;a*=e,r*=e,n*=e;var o=Math.sin(a),s=Math.cos(a),u=Math.sin(r),c=Math.cos(r),i=Math.sin(n),h=Math.cos(n);return t[0]=o*c*h-s*u*i,t[1]=s*u*h+o*c*i,t[2]=s*c*i-o*u*h,t[3]=s*c*h+o*u*i,t},r.str=function(t){return\"quat(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},r.clone=i.clone,r.fromValues=i.fromValues,r.copy=i.copy,r.set=i.set,r.add=i.add,r.mul=l,r.scale=i.scale,r.dot=i.dot,r.lerp=i.lerp,r.length=i.length,r.len=r.length,r.squaredLength=i.squaredLength,r.sqrLen=r.squaredLength,r.normalize=i.normalize,r.exactEquals=i.exactEquals,r.equals=i.equals,r.rotationTo=(d=c.create(),p=c.fromValues(1,0,0),A=c.fromValues(0,1,0),function(t,a,n){var e=c.dot(a,n);return e<-.999999?(c.cross(d,p,a),c.len(d)<1e-6&&c.cross(d,A,a),c.normalize(d,d),M(t,d,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(c.cross(d,a,n),t[0]=d[0],t[1]=d[1],t[2]=d[2],t[3]=1+e,(0,r.normalize)(t,t))}),r.sqlerp=(g=h(),_=h(),function(t,a,r,n,e,o){return m(g,a,e,o),m(_,r,n,o),m(t,g,_,2*o*(1-o)),t}),r.setAxes=(P=u.create(),function(t,a,n,e){return P[0]=n[0],P[3]=n[1],P[6]=n[2],P[1]=e[0],P[4]=e[1],P[7]=e[2],P[2]=-a[0],P[5]=-a[1],P[8]=-a[2],(0,r.normalize)(t,q(t,P))})},\n \"2c5eb22089\": function _(t,n,r,a,u){a();const e=t(\"tslib\").__importStar(t(\"68ca94c15c\"));function o(){var t=new e.ARRAY_TYPE(3);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var n=t[0],r=t[1],a=t[2];return Math.hypot(n,r,a)}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function h(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function M(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function s(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return Math.hypot(r,a,u)}function f(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return r*r+a*a+u*u}function v(t){var n=t[0],r=t[1],a=t[2];return n*n+r*r+a*a}function l(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var m;r.create=o,r.clone=function(t){var n=new e.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},r.length=i,r.fromValues=function(t,n,r){var a=new e.ARRAY_TYPE(3);return a[0]=t,a[1]=n,a[2]=r,a},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},r.set=function(t,n,r,a){return t[0]=n,t[1]=r,t[2]=a,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t},r.subtract=c,r.multiply=h,r.divide=M,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t},r.distance=s,r.squaredDistance=f,r.squaredLength=v,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=r*r+a*a+u*u;return e>0&&(e=1/Math.sqrt(e)),t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},r.dot=l,r.cross=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2];return t[0]=u*c-e*i,t[1]=e*o-a*c,t[2]=a*i-u*o,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t},r.hermite=function(t,n,r,a,u,e){var o=e*e,i=o*(2*e-3)+1,c=o*(e-2)+e,h=o*(e-1),M=o*(3-2*e);return t[0]=n[0]*i+r[0]*c+a[0]*h+u[0]*M,t[1]=n[1]*i+r[1]*c+a[1]*h+u[1]*M,t[2]=n[2]*i+r[2]*c+a[2]*h+u[2]*M,t},r.bezier=function(t,n,r,a,u,e){var o=1-e,i=o*o,c=e*e,h=i*o,M=3*e*i,s=3*c*o,f=c*e;return t[0]=n[0]*h+r[0]*M+a[0]*s+u[0]*f,t[1]=n[1]*h+r[1]*M+a[1]*s+u[1]*f,t[2]=n[2]*h+r[2]*M+a[2]*s+u[2]*f,t},r.random=function(t,n){n=n||1;var r=2*e.RANDOM()*Math.PI,a=2*e.RANDOM()-1,u=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*n,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[3]*a+r[7]*u+r[11]*e+r[15];return o=o||1,t[0]=(r[0]*a+r[4]*u+r[8]*e+r[12])/o,t[1]=(r[1]*a+r[5]*u+r[9]*e+r[13])/o,t[2]=(r[2]*a+r[6]*u+r[10]*e+r[14])/o,t},r.transformMat3=function(t,n,r){var a=n[0],u=n[1],e=n[2];return t[0]=a*r[0]+u*r[3]+e*r[6],t[1]=a*r[1]+u*r[4]+e*r[7],t[2]=a*r[2]+u*r[5]+e*r[8],t},r.transformQuat=function(t,n,r){var a=r[0],u=r[1],e=r[2],o=r[3],i=n[0],c=n[1],h=n[2],M=u*h-e*c,s=e*i-a*h,f=a*c-u*i,v=u*f-e*s,l=e*M-a*f,m=a*s-u*M,d=2*o;return M*=d,s*=d,f*=d,v*=2,l*=2,m*=2,t[0]=i+M+v,t[1]=c+s+l,t[2]=h+f+m,t},r.rotateX=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0],e[1]=u[1]*Math.cos(a)-u[2]*Math.sin(a),e[2]=u[1]*Math.sin(a)+u[2]*Math.cos(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateY=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[2]*Math.sin(a)+u[0]*Math.cos(a),e[1]=u[1],e[2]=u[2]*Math.cos(a)-u[0]*Math.sin(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateZ=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0]*Math.cos(a)-u[1]*Math.sin(a),e[1]=u[0]*Math.sin(a)+u[1]*Math.cos(a),e[2]=u[2],t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.angle=function(t,n){var r=t[0],a=t[1],u=t[2],e=n[0],o=n[1],i=n[2],c=Math.sqrt(r*r+a*a+u*u)*Math.sqrt(e*e+o*o+i*i),h=c&&l(t,n)/c;return Math.acos(Math.min(Math.max(h,-1),1))},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},r.str=function(t){return\"vec3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\")\"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},r.equals=function(t,n){var r=t[0],a=t[1],u=t[2],o=n[0],i=n[1],c=n[2];return Math.abs(r-o)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-i)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(i))&&Math.abs(u-c)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))},r.sub=c,r.mul=h,r.div=M,r.dist=s,r.sqrDist=f,r.len=i,r.sqrLen=v,r.forEach=(m=o(),function(t,n,r,a,u,e){var o,i;for(n||(n=3),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)m[0]=t[o],m[1]=t[o+1],m[2]=t[o+2],u(m,m,e),t[o]=m[0],t[o+1]=m[1],t[o+2]=m[2];return t})},\n \"c1aa33d719\": function _(t,n,r,a,u){a();const e=t(\"tslib\").__importStar(t(\"68ca94c15c\"));function o(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function i(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function c(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function M(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return Math.hypot(r,a,u,e)}function f(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return r*r+a*a+u*u+e*e}function s(t){var n=t[0],r=t[1],a=t[2],u=t[3];return Math.hypot(n,r,a,u)}function l(t){var n=t[0],r=t[1],a=t[2],u=t[3];return n*n+r*r+a*a+u*u}var m;r.create=o,r.clone=function(t){var n=new e.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.fromValues=function(t,n,r,a){var u=new e.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=r,u[3]=a,u},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=i,r.multiply=c,r.divide=h,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.distance=M,r.squaredDistance=f,r.length=s,r.squaredLength=l,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*r+a*a+u*u+e*e;return o>0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=a*o,t[2]=u*o,t[3]=e*o,t},r.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},r.cross=function(t,n,r,a){var u=r[0]*a[1]-r[1]*a[0],e=r[0]*a[2]-r[2]*a[0],o=r[0]*a[3]-r[3]*a[0],i=r[1]*a[2]-r[2]*a[1],c=r[1]*a[3]-r[3]*a[1],h=r[2]*a[3]-r[3]*a[2],M=n[0],f=n[1],s=n[2],l=n[3];return t[0]=f*h-s*c+l*i,t[1]=-M*h+s*o-l*e,t[2]=M*c-f*o+l*u,t[3]=-M*i+f*e-s*u,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t[3]=i+a*(r[3]-i),t},r.random=function(t,n){var r,a,u,o,i,c;n=n||1;do{i=(r=2*e.RANDOM()-1)*r+(a=2*e.RANDOM()-1)*a}while(i>=1);do{c=(u=2*e.RANDOM()-1)*u+(o=2*e.RANDOM()-1)*o}while(c>=1);var h=Math.sqrt((1-i)/c);return t[0]=n*r,t[1]=n*a,t[2]=n*u*h,t[3]=n*o*h,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3];return t[0]=r[0]*a+r[4]*u+r[8]*e+r[12]*o,t[1]=r[1]*a+r[5]*u+r[9]*e+r[13]*o,t[2]=r[2]*a+r[6]*u+r[10]*e+r[14]*o,t[3]=r[3]*a+r[7]*u+r[11]*e+r[15]*o,t},r.transformQuat=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2],h=r[3],M=h*a+i*e-c*u,f=h*u+c*a-o*e,s=h*e+o*u-i*a,l=-o*a-i*u-c*e;return t[0]=M*h+l*-o+f*-c-s*-i,t[1]=f*h+l*-i+s*-o-M*-c,t[2]=s*h+l*-c+M*-i-f*-o,t[3]=n[3],t},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},r.str=function(t){return\"vec4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],a=t[1],u=t[2],o=t[3],i=n[0],c=n[1],h=n[2],M=n[3];return Math.abs(r-i)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-c)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-h)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(o-M)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))},r.sub=i,r.mul=c,r.div=h,r.dist=M,r.sqrDist=f,r.len=s,r.sqrLen=l,r.forEach=(m=o(),function(t,n,r,a,u,e){var o,i;for(n||(n=4),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)m[0]=t[o],m[1]=t[o+1],m[2]=t[o+2],m[3]=t[o+3],u(m,m,e),t[o]=m[0],t[o+1]=m[1],t[o+2]=m[2],t[o+3]=m[3];return t})},\n \"277615c682\": function _(t,a,n,r,e){r();const u=t(\"tslib\"),o=u.__importStar(t(\"68ca94c15c\")),i=u.__importStar(t(\"eb06fc032a\")),s=u.__importStar(t(\"a427635f32\"));function c(t,a,n){var r=.5*n[0],e=.5*n[1],u=.5*n[2],o=a[0],i=a[1],s=a[2],c=a[3];return t[0]=o,t[1]=i,t[2]=s,t[3]=c,t[4]=r*c+e*s-u*i,t[5]=e*c+u*o-r*s,t[6]=u*c+r*i-e*o,t[7]=-r*o-e*i-u*s,t}function h(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t}function f(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[4],s=n[5],c=n[6],h=n[7],f=a[4],M=a[5],b=a[6],l=a[7],v=n[0],m=n[1],R=n[2],A=n[3];return t[0]=r*A+o*v+e*R-u*m,t[1]=e*A+o*m+u*v-r*R,t[2]=u*A+o*R+r*m-e*v,t[3]=o*A-r*v-e*m-u*R,t[4]=r*h+o*i+e*c-u*s+f*A+l*v+M*R-b*m,t[5]=e*h+o*s+u*i-r*c+M*A+l*m+b*v-f*R,t[6]=u*h+o*c+r*s-e*i+b*A+l*R+f*m-M*v,t[7]=o*h-r*i-e*s-u*c+l*A-f*v-M*m-b*R,t}n.create=function(){var t=new o.ARRAY_TYPE(8);return o.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},n.clone=function(t){var a=new o.ARRAY_TYPE(8);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a},n.fromValues=function(t,a,n,r,e,u,i,s){var c=new o.ARRAY_TYPE(8);return c[0]=t,c[1]=a,c[2]=n,c[3]=r,c[4]=e,c[5]=u,c[6]=i,c[7]=s,c},n.fromRotationTranslationValues=function(t,a,n,r,e,u,i){var s=new o.ARRAY_TYPE(8);s[0]=t,s[1]=a,s[2]=n,s[3]=r;var c=.5*e,h=.5*u,f=.5*i;return s[4]=c*r+h*n-f*a,s[5]=h*r+f*t-c*n,s[6]=f*r+c*a-h*t,s[7]=-c*t-h*a-f*n,s},n.fromRotationTranslation=c,n.fromTranslation=function(t,a){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*a[0],t[5]=.5*a[1],t[6]=.5*a[2],t[7]=0,t},n.fromRotation=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,a){var n=i.create();s.getRotation(n,a);var r=new o.ARRAY_TYPE(3);return s.getTranslation(r,a),c(t,n,r),t},n.copy=h,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,a,n,r,e,u,o,i,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=e,t[4]=u,t[5]=o,t[6]=i,t[7]=s,t},n.getReal=i.copy,n.getDual=function(t,a){return t[0]=a[4],t[1]=a[5],t[2]=a[6],t[3]=a[7],t},n.setReal=i.copy,n.setDual=function(t,a){return t[4]=a[0],t[5]=a[1],t[6]=a[2],t[7]=a[3],t},n.getTranslation=function(t,a){var n=a[4],r=a[5],e=a[6],u=a[7],o=-a[0],i=-a[1],s=-a[2],c=a[3];return t[0]=2*(n*c+u*o+r*s-e*i),t[1]=2*(r*c+u*i+e*o-n*s),t[2]=2*(e*c+u*s+n*i-r*o),t},n.translate=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=.5*n[0],s=.5*n[1],c=.5*n[2],h=a[4],f=a[5],M=a[6],b=a[7];return t[0]=r,t[1]=e,t[2]=u,t[3]=o,t[4]=o*i+e*c-u*s+h,t[5]=o*s+u*i-r*c+f,t[6]=o*c+r*s-e*i+M,t[7]=-r*i-e*s-u*c+b,t},n.rotateX=function(t,a,n){var r=-a[0],e=-a[1],u=-a[2],o=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*o+f*r+c*u-h*e,b=c*o+f*e+h*r-s*u,l=h*o+f*u+s*e-c*r,v=f*o-s*r-c*e-h*u;return i.rotateX(t,a,n),r=t[0],e=t[1],u=t[2],o=t[3],t[4]=M*o+v*r+b*u-l*e,t[5]=b*o+v*e+l*r-M*u,t[6]=l*o+v*u+M*e-b*r,t[7]=v*o-M*r-b*e-l*u,t},n.rotateY=function(t,a,n){var r=-a[0],e=-a[1],u=-a[2],o=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*o+f*r+c*u-h*e,b=c*o+f*e+h*r-s*u,l=h*o+f*u+s*e-c*r,v=f*o-s*r-c*e-h*u;return i.rotateY(t,a,n),r=t[0],e=t[1],u=t[2],o=t[3],t[4]=M*o+v*r+b*u-l*e,t[5]=b*o+v*e+l*r-M*u,t[6]=l*o+v*u+M*e-b*r,t[7]=v*o-M*r-b*e-l*u,t},n.rotateZ=function(t,a,n){var r=-a[0],e=-a[1],u=-a[2],o=a[3],s=a[4],c=a[5],h=a[6],f=a[7],M=s*o+f*r+c*u-h*e,b=c*o+f*e+h*r-s*u,l=h*o+f*u+s*e-c*r,v=f*o-s*r-c*e-h*u;return i.rotateZ(t,a,n),r=t[0],e=t[1],u=t[2],o=t[3],t[4]=M*o+v*r+b*u-l*e,t[5]=b*o+v*e+l*r-M*u,t[6]=l*o+v*u+M*e-b*r,t[7]=v*o-M*r-b*e-l*u,t},n.rotateByQuatAppend=function(t,a,n){var r=n[0],e=n[1],u=n[2],o=n[3],i=a[0],s=a[1],c=a[2],h=a[3];return t[0]=i*o+h*r+s*u-c*e,t[1]=s*o+h*e+c*r-i*u,t[2]=c*o+h*u+i*e-s*r,t[3]=h*o-i*r-s*e-c*u,i=a[4],s=a[5],c=a[6],h=a[7],t[4]=i*o+h*r+s*u-c*e,t[5]=s*o+h*e+c*r-i*u,t[6]=c*o+h*u+i*e-s*r,t[7]=h*o-i*r-s*e-c*u,t},n.rotateByQuatPrepend=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[0],s=n[1],c=n[2],h=n[3];return t[0]=r*h+o*i+e*c-u*s,t[1]=e*h+o*s+u*i-r*c,t[2]=u*h+o*c+r*s-e*i,t[3]=o*h-r*i-e*s-u*c,i=n[4],s=n[5],c=n[6],h=n[7],t[4]=r*h+o*i+e*c-u*s,t[5]=e*h+o*s+u*i-r*c,t[6]=u*h+o*c+r*s-e*i,t[7]=o*h-r*i-e*s-u*c,t},n.rotateAroundAxis=function(t,a,n,r){if(Math.abs(r)<o.EPSILON)return h(t,a);var e=Math.hypot(n[0],n[1],n[2]);r*=.5;var u=Math.sin(r),i=u*n[0]/e,s=u*n[1]/e,c=u*n[2]/e,f=Math.cos(r),M=a[0],b=a[1],l=a[2],v=a[3];t[0]=M*f+v*i+b*c-l*s,t[1]=b*f+v*s+l*i-M*c,t[2]=l*f+v*c+M*s-b*i,t[3]=v*f-M*i-b*s-l*c;var m=a[4],R=a[5],A=a[6],E=a[7];return t[4]=m*f+E*i+R*c-A*s,t[5]=R*f+E*s+A*i-m*c,t[6]=A*f+E*c+m*s-R*i,t[7]=E*f-m*i-R*s-A*c,t},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t},n.multiply=f,n.mul=f,n.scale=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t},n.dot=i.dot,n.lerp=function(t,a,r,e){var u=1-e;return(0,n.dot)(a,r)<0&&(e=-e),t[0]=a[0]*u+r[0]*e,t[1]=a[1]*u+r[1]*e,t[2]=a[2]*u+r[2]*e,t[3]=a[3]*u+r[3]*e,t[4]=a[4]*u+r[4]*e,t[5]=a[5]*u+r[5]*e,t[6]=a[6]*u+r[6]*e,t[7]=a[7]*u+r[7]*e,t},n.invert=function(t,a){var r=(0,n.squaredLength)(a);return t[0]=-a[0]/r,t[1]=-a[1]/r,t[2]=-a[2]/r,t[3]=a[3]/r,t[4]=-a[4]/r,t[5]=-a[5]/r,t[6]=-a[6]/r,t[7]=a[7]/r,t},n.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t[4]=-a[4],t[5]=-a[5],t[6]=-a[6],t[7]=a[7],t},n.length=i.length,n.len=n.length,n.squaredLength=i.squaredLength,n.sqrLen=n.squaredLength,n.normalize=function(t,a){var r=(0,n.squaredLength)(a);if(r>0){r=Math.sqrt(r);var e=a[0]/r,u=a[1]/r,o=a[2]/r,i=a[3]/r,s=a[4],c=a[5],h=a[6],f=a[7],M=e*s+u*c+o*h+i*f;t[0]=e,t[1]=u,t[2]=o,t[3]=i,t[4]=(s-e*M)/r,t[5]=(c-u*M)/r,t[6]=(h-o*M)/r,t[7]=(f-i*M)/r}return t},n.str=function(t){return\"quat2(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\")\"},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]},n.equals=function(t,a){var n=t[0],r=t[1],e=t[2],u=t[3],i=t[4],s=t[5],c=t[6],h=t[7],f=a[0],M=a[1],b=a[2],l=a[3],v=a[4],m=a[5],R=a[6],A=a[7];return Math.abs(n-f)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-M)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(e-b)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(u-l)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(i-v)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-m)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-R)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(h-A)<=o.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))}},\n \"c56d9ff837\": function _(n,t,r,a,u){a();const e=n(\"tslib\").__importStar(n(\"68ca94c15c\"));function o(){var n=new e.ARRAY_TYPE(2);return e.ARRAY_TYPE!=Float32Array&&(n[0]=0,n[1]=0),n}function c(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n}function i(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n}function f(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n}function s(n,t){var r=t[0]-n[0],a=t[1]-n[1];return Math.hypot(r,a)}function h(n,t){var r=t[0]-n[0],a=t[1]-n[1];return r*r+a*a}function M(n){var t=n[0],r=n[1];return Math.hypot(t,r)}function l(n){var t=n[0],r=n[1];return t*t+r*r}var v;r.create=o,r.clone=function(n){var t=new e.ARRAY_TYPE(2);return t[0]=n[0],t[1]=n[1],t},r.fromValues=function(n,t){var r=new e.ARRAY_TYPE(2);return r[0]=n,r[1]=t,r},r.copy=function(n,t){return n[0]=t[0],n[1]=t[1],n},r.set=function(n,t,r){return n[0]=t,n[1]=r,n},r.add=function(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n},r.subtract=c,r.multiply=i,r.divide=f,r.ceil=function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n},r.floor=function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n},r.min=function(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n},r.max=function(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n},r.round=function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n},r.scale=function(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n},r.scaleAndAdd=function(n,t,r,a){return n[0]=t[0]+r[0]*a,n[1]=t[1]+r[1]*a,n},r.distance=s,r.squaredDistance=h,r.length=M,r.squaredLength=l,r.negate=function(n,t){return n[0]=-t[0],n[1]=-t[1],n},r.inverse=function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n},r.normalize=function(n,t){var r=t[0],a=t[1],u=r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=t[0]*u,n[1]=t[1]*u,n},r.dot=function(n,t){return n[0]*t[0]+n[1]*t[1]},r.cross=function(n,t,r){var a=t[0]*r[1]-t[1]*r[0];return n[0]=n[1]=0,n[2]=a,n},r.lerp=function(n,t,r,a){var u=t[0],e=t[1];return n[0]=u+a*(r[0]-u),n[1]=e+a*(r[1]-e),n},r.random=function(n,t){t=t||1;var r=2*e.RANDOM()*Math.PI;return n[0]=Math.cos(r)*t,n[1]=Math.sin(r)*t,n},r.transformMat2=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u,n[1]=r[1]*a+r[3]*u,n},r.transformMat2d=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u+r[4],n[1]=r[1]*a+r[3]*u+r[5],n},r.transformMat3=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[3]*u+r[6],n[1]=r[1]*a+r[4]*u+r[7],n},r.transformMat4=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[4]*u+r[12],n[1]=r[1]*a+r[5]*u+r[13],n},r.rotate=function(n,t,r,a){var u=t[0]-r[0],e=t[1]-r[1],o=Math.sin(a),c=Math.cos(a);return n[0]=u*c-e*o+r[0],n[1]=u*o+e*c+r[1],n},r.angle=function(n,t){var r=n[0],a=n[1],u=t[0],e=t[1],o=Math.sqrt(r*r+a*a)*Math.sqrt(u*u+e*e),c=o&&(r*u+a*e)/o;return Math.acos(Math.min(Math.max(c,-1),1))},r.zero=function(n){return n[0]=0,n[1]=0,n},r.str=function(n){return\"vec2(\"+n[0]+\", \"+n[1]+\")\"},r.exactEquals=function(n,t){return n[0]===t[0]&&n[1]===t[1]},r.equals=function(n,t){var r=n[0],a=n[1],u=t[0],o=t[1];return Math.abs(r-u)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-o)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(o))},r.len=M,r.sub=c,r.mul=i,r.div=f,r.dist=s,r.sqrDist=h,r.sqrLen=l,r.forEach=(v=o(),function(n,t,r,a,u,e){var o,c;for(t||(t=2),r||(r=0),c=a?Math.min(a*t+r,n.length):n.length,o=r;o<c;o+=t)v[0]=n[o],v[1]=n[o+1],u(v,v,e),n[o]=v[0],n[o+1]=v[1];return n})},\n \"c2892117a7\": function _(e,t,i,s,n){var r;s();const o=e(\"d7ded264dc\"),a=e(\"a76a9b7c23\");class l extends o.AbstractVTKView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.data.change,(()=>{this._vtk_image_data=(0,a.data2VTKImageData)(this.model.data),this.invalidate_render()})),this.connect(this.model.properties.colormap.change,(()=>{this.colormap_selector.value=this.model.colormap;const e=new Event(\"change\");this.colormap_selector.dispatchEvent(e)})),this.connect(this.model.properties.shadow.change,(()=>{this.shadow_selector.value=this.model.shadow?\"1\":\"0\";const e=new Event(\"change\");this.shadow_selector.dispatchEvent(e)})),this.connect(this.model.properties.sampling.change,(()=>{this.sampling_slider.value=this.model.sampling.toFixed(2);const e=new Event(\"input\");this.sampling_slider.dispatchEvent(e)})),this.connect(this.model.properties.edge_gradient.change,(()=>{this.edge_gradient_slider.value=this.model.edge_gradient.toFixed(2);const e=new Event(\"input\");this.edge_gradient_slider.dispatchEvent(e)})),this.connect(this.model.properties.rescale.change,(()=>{this._controllerWidget.setRescaleColorMap(this.model.rescale),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.ambient.change,(()=>{this.volume.getProperty().setAmbient(this.model.ambient),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.diffuse.change,(()=>{this.volume.getProperty().setDiffuse(this.model.diffuse),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.camera.change,(()=>{this._setting_camera||(this._set_camera_state(),this._vtk_renwin.getRenderWindow().render())})),this.connect(this.model.properties.specular.change,(()=>{this.volume.getProperty().setSpecular(this.model.specular),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.specular_power.change,(()=>{this.volume.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.display_volume.change,(()=>{this._set_volume_visibility(this.model.display_volume),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.display_slices.change,(()=>{this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.slice_i.change,(()=>{void 0!==this.image_actor_i&&(this.image_actor_i.getMapper().setISlice(this.model.slice_i),this._vtk_renwin.getRenderWindow().render())})),this.connect(this.model.properties.slice_j.change,(()=>{void 0!==this.image_actor_j&&(this.image_actor_j.getMapper().setJSlice(this.model.slice_j),this._vtk_renwin.getRenderWindow().render())})),this.connect(this.model.properties.slice_k.change,(()=>{void 0!==this.image_actor_k&&(this.image_actor_k.getMapper().setKSlice(this.model.slice_k),this._vtk_renwin.getRenderWindow().render())})),this.connect(this.model.properties.render_background.change,(()=>{this._vtk_renwin.getRenderer().setBackground(...(0,a.hexToRGB)(this.model.render_background)),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.interpolation.change,(()=>{this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderWindow().render()})),this.connect(this.model.properties.controller_expanded.change,(()=>{null!=this._controllerWidget&&this._controllerWidget.setExpanded(this.model.controller_expanded)})),this.connect(this.model.properties.nan_opacity.change,(()=>{const e=this.image_actor_i.getProperty().getScalarOpacity();e.get([\"nodes\"]).nodes[0].y=this.model.nan_opacity,e.modified(),this._vtk_renwin.getRenderWindow().render()}))}render(){this._vtk_renwin=null,this._orientationWidget=null,this._axes=null,super.render(),this._create_orientation_widget(),this._set_axes(),this._vtk_renwin.getRenderer().resetCamera(),Object.keys(this.model.camera).length&&this._set_camera_state(),this._get_camera_state()}invalidate_render(){this._vtk_renwin=null,super.invalidate_render()}init_vtk_renwin(){this._vtk_renwin=a.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this.shadow_el,container:this._vtk_container})}plot(){this._controllerWidget=a.vtkns.VolumeController.newInstance({size:[400,150],rescaleColorMap:this.model.rescale}),this._plot_volume(),this._plot_slices(),this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(),this.volume,!0),this._controllerWidget.setContainer(this.el),this._controllerWidget.setExpanded(this.model.controller_expanded),this._connect_js_controls(),this._vtk_renwin.getRenderWindow().getInteractor(),this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45),this._set_volume_visibility(this.model.display_volume),this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderer().setBackground(...(0,a.hexToRGB)(this.model.render_background)),this._set_interpolation(this.model.interpolation),this._set_camera_state()}get vtk_image_data(){return this._vtk_image_data||(this._vtk_image_data=(0,a.data2VTKImageData)(this.model.data)),this._vtk_image_data}get volume(){return this._vtk_renwin.getRenderer().getVolumes()[0]}get image_actor_i(){return this._vtk_renwin.getRenderer().getActors()[0]}get image_actor_j(){return this._vtk_renwin.getRenderer().getActors()[1]}get image_actor_k(){return this._vtk_renwin.getRenderer().getActors()[2]}get shadow_selector(){return this.el.querySelector(\".js-shadow\")}get edge_gradient_slider(){return this.el.querySelector(\".js-edge\")}get sampling_slider(){return this.el.querySelector(\".js-spacing\")}get colormap_selector(){return this.el.querySelector(\".js-color-preset\")}_connect_js_controls(){const{el:e}=this._controllerWidget.get(\"el\");if(void 0!==e){e.querySelector(\".js-button\").addEventListener(\"click\",(()=>this.model.controller_expanded=this._controllerWidget.getExpanded()))}this.colormap_selector.addEventListener(\"change\",(()=>{this.model.colormap=this.colormap_selector.value})),this.model.colormap?this.model.properties.colormap.change.emit():this.model.colormap=this.colormap_selector.value,this.shadow_selector.addEventListener(\"change\",(()=>{this.model.shadow=!!Number(this.shadow_selector.value)})),(this.model.shadow=!!Number(this.shadow_selector.value))&&this.model.properties.shadow.change.emit(),this.sampling_slider.addEventListener(\"input\",(()=>{const e=Number(this.sampling_slider.value);Math.abs(this.model.sampling-e)>=.005&&(this.model.sampling=e)})),Math.abs(this.model.sampling-Number(this.shadow_selector.value))>=.005&&this.model.properties.sampling.change.emit(),this.edge_gradient_slider.addEventListener(\"input\",(()=>{const e=Number(this.edge_gradient_slider.value);Math.abs(this.model.edge_gradient-e)>=.005&&(this.model.edge_gradient=e)})),Math.abs(this.model.edge_gradient-Number(this.edge_gradient_slider.value))>=.005&&this.model.properties.edge_gradient.change.emit()}_plot_slices(){const e=this._vtk_image_data,t=a.vtkns.ImageSlice.newInstance(),i=a.vtkns.ImageSlice.newInstance(),s=a.vtkns.ImageSlice.newInstance(),n=a.vtkns.ImageMapper.newInstance(),r=a.vtkns.ImageMapper.newInstance(),o=a.vtkns.ImageMapper.newInstance();n.setInputData(e),n.setISlice(this.model.slice_i),t.setMapper(n),r.setInputData(e),r.setJSlice(this.model.slice_j),i.setMapper(r),o.setInputData(e),o.setKSlice(this.model.slice_k),s.setMapper(o);const l=a.vtkns.PiecewiseFunction.newInstance(),d=this.volume.getProperty().getRGBTransferFunction(0),c=this.volume.getMapper().getInputData().getPointData().getScalars().getRange();l.removeAllPoints(),l.addPoint(c[0]-1,this.model.nan_opacity),l.addPoint(c[0],1),l.addPoint(c[1],1);const h=t.getProperty();i.setProperty(h),s.setProperty(h),h.setRGBTransferFunction(d),h.setScalarOpacity(l);const _=this._vtk_renwin.getRenderer();_.addActor(t),_.addActor(i),_.addActor(s)}_plot_volume(){const e=this.vtk_image_data,t=a.vtkns.Volume.newInstance(),i=a.vtkns.VolumeMapper.newInstance();t.setMapper(i),i.setInputData(e);const s=(e.getPointData().getScalars()||e.getPointData().getArrays()[0]).getRange(),n=a.vtkns.ColorTransferFunction.newInstance();if(null!=this.model.colormap){const e=a.vtkns.ColorTransferFunction.vtkColorMaps.getPresetByName(this.model.colormap);n.applyColorMap(e)}n.onModified((()=>this.model.mapper=(0,a.vtkLutToMapper)(n)));const r=a.vtkns.PiecewiseFunction.newInstance(),o=.7*Math.sqrt(e.getSpacing().map((e=>e*e)).reduce(((e,t)=>e+t),0));i.setSampleDistance(o),t.getProperty().setRGBTransferFunction(0,n),t.getProperty().setScalarOpacity(0,r),t.getProperty().setInterpolationTypeToFastLinear(),t.getProperty().setScalarOpacityUnitDistance(0,a.vtkns.BoundingBox.getDiagonalLength(e.getBounds())/Math.max(...e.getDimensions())),t.getProperty().setGradientOpacityMinimumValue(0,0),t.getProperty().setGradientOpacityMaximumValue(0,.05*(s[1]-s[0])),t.getProperty().setShade(this.model.shadow),t.getProperty().setUseGradientOpacity(0,!0),t.getProperty().setGradientOpacityMinimumOpacity(0,0),t.getProperty().setGradientOpacityMaximumOpacity(0,1),t.getProperty().setAmbient(this.model.ambient),t.getProperty().setDiffuse(this.model.diffuse),t.getProperty().setSpecular(this.model.specular),t.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderer().addVolume(t)}_set_interpolation(e){\"fast_linear\"==e?(this.volume.getProperty().setInterpolationTypeToFastLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):\"linear\"==e?(this.volume.getProperty().setInterpolationTypeToLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):(this.volume.getProperty().setInterpolationTypeToNearest(),this.image_actor_i.getProperty().setInterpolationTypeToNearest())}_set_slices_visibility(e){this.image_actor_i.setVisibility(e),this.image_actor_j.setVisibility(e),this.image_actor_k.setVisibility(e)}_set_volume_visibility(e){this.volume.setVisibility(e)}}i.VTKVolumePlotView=l,l.__name__=\"VTKVolumePlotView\";class d extends o.AbstractVTKPlot{constructor(e){super(e)}}i.VTKVolumePlot=d,r=d,d.__name__=\"VTKVolumePlot\",r.prototype.default_view=l,r.define((({Any:e,Array:t,Boolean:i,Int:s,Number:n,String:r,Struct:o})=>({ambient:[n,.2],colormap:[r],data:[e],diffuse:[n,.7],display_slices:[i,!1],display_volume:[i,!0],edge_gradient:[n,.2],interpolation:[a.Interpolation,\"fast_linear\"],mapper:[o({palette:t(r),low:n,high:n}),{palette:[],low:0,high:0}],nan_opacity:[n,1],render_background:[r,\"#52576e\"],rescale:[i,!1],sampling:[n,.4],shadow:[i,!0],slice_i:[s,0],slice_j:[s,0],slice_k:[s,0],specular:[n,.3],specular_power:[n,8],controller_expanded:[i,!0]}))),r.override({height:300,width:300})},\n \"40c4377615\": function _(e,t,n,i,r){var s;i();const o=e(\"@bokehjs/core/util/object\"),_=e(\"99a25e6992\"),c=e(\"d7ded264dc\"),a=e(\"877619fe71\"),h=e(\"a76a9b7c23\"),d=\"panel\";class l extends c.AbstractVTKView{initialize(){super.initialize(),this._renderable=!1,this._synchronizer_context=h.vtkns.SynchronizableRenderWindow.getSynchronizerContext(`${d}-{this.model.id}`)}connect_signals(){super.connect_signals();const e=(0,_.debounce)((()=>{this._vtk_renwin.delete(),this._vtk_renwin=null,this.invalidate_render()}),20);this.connect(this.model.properties.arrays.change,e),this.connect(this.model.properties.scene.change,e),this.connect(this.model.properties.one_time_reset.change,(()=>{this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters()}))}init_vtk_renwin(){this._vtk_renwin=h.vtkns.FullScreenRenderWindowSynchronized.newInstance({rootContainer:this.el,container:this._vtk_container,synchronizerContext:this._synchronizer_context})}remove(){this._vtk_renwin&&this._vtk_renwin.delete(),super.remove()}plot(){this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();const e=(0,o.clone)(this.model.scene);this._sync_plot(e,(()=>this._on_scene_ready())).then((()=>{this._set_camera_state(),this._get_camera_state()}))}_on_scene_ready(){this._renderable=!0,this._camera_callbacks.push(this._vtk_renwin.getRenderer().getActiveCamera().onModified((()=>this._vtk_render()))),this._orientationWidget||this._create_orientation_widget(),this._axes||this._set_axes(),this._vtk_renwin.resize(),this._vtk_render()}_sync_plot(e,t){this._renderable=!1,this._unsubscribe_camera_cb(),this._synchronizer_context.setFetchArrayFunction((e=>Promise.resolve(this.model.arrays[e])));const n=this._synchronizer_context.getInstance(this.model.scene.dependencies[0].id);return n&&!this._vtk_renwin.getRenderer()&&this._vtk_renwin.getRenderWindow().addRenderer(n),this._vtk_renwin.getRenderWindow().synchronize(e).then(t)}}n.VTKSynchronizedPlotView=l,l.__name__=\"VTKSynchronizedPlotView\";class v extends c.AbstractVTKPlot{constructor(e){super(e),(0,a.initialize_fullscreen_render)(),this.outline=h.vtkns.OutlineFilter.newInstance();const t=h.vtkns.Mapper.newInstance();t.setInputConnection(this.outline.getOutputPort()),this.outline_actor=h.vtkns.Actor.newInstance(),this.outline_actor.setMapper(t)}getActors(e){let t=this.renderer_el.getRenderer().getActors();if(e){const n=this.renderer_el.getSynchronizerContext(d);t=t.filter((t=>{const i=n.getInstanceId(t);return!!i&&i.slice(-16)==e.slice(1,17)}))}return t}}n.VTKSynchronizedPlot=v,s=v,v.__name__=\"VTKSynchronizedPlot\",v.__module__=\"panel.models.vtk\",s.prototype.default_view=l,s.define((({Any:e,Array:t,Boolean:n,Bytes:i,Dict:r,String:s})=>({arrays:[r(i),{}],arrays_processed:[t(s),[]],enable_keybindings:[n,!1],one_time_reset:[n,!1],rebuild:[n,!1],scene:[e,{}]}))),s.override({height:300,width:300})},\n \"877619fe71\": function _(e,n,o,t,r){t();const i=e(\"a76a9b7c23\"),l={containerStyle:null,controlPanelStyle:null,listenWindowResize:!0,resizeCallback:null,controllerVisibility:!0,synchronizerContextName:\"default\"},a={position:\"absolute\",left:\"25px\",top:\"25px\",backgroundColor:\"white\",borderRadius:\"5px\",listStyle:\"none\",padding:\"5px 10px\",margin:\"0\",display:\"block\",border:\"solid 1px black\",maxWidth:\"calc(100vw - 70px)\",maxHeight:\"calc(100vh - 60px)\",overflow:\"auto\"};o.initialize_fullscreen_render=function(){let e={newInstance:window.vtk.macro.newInstance(((e,n,o={})=>{Object.assign(n,l,o),window.vtk.macro.obj(e,n),window.vtk.macro.get(e,n,[\"renderWindow\",\"openGLRenderWindow\",\"interactor\",\"rootContainer\",\"container\",\"controlContainer\",\"synchronizerContext\"]),function(e,n){n.renderWindow=i.vtkns.SynchronizableRenderWindow.newInstance({synchronizerContext:n.synchronizerContext}),n.openGLRenderWindow=i.vtkns.OpenGLRenderWindow.newInstance(),n.openGLRenderWindow.setContainer(n.container),n.renderWindow.addView(n.openGLRenderWindow),n.interactor=i.vtkns.RenderWindowInteractor.newInstance(),n.interactor.setInteractorStyle(i.vtkns.InteractorStyleTrackballCamera.newInstance()),n.interactor.setView(n.openGLRenderWindow),n.interactor.initialize(),n.interactor.bindEvents(n.container),e.getRenderer=()=>n.renderWindow.getRenderers()[0],e.removeController=()=>{const e=n.controlContainer;e&&e.parentNode.removeChild(e)},e.setControllerVisibility=e=>{n.controllerVisibility=e,n.controlContainer&&(n.controlContainer.style.display=e?\"block\":\"none\")},e.toggleControllerVisibility=()=>{e.setControllerVisibility(!n.controllerVisibility)},e.addController=o=>{n.controlContainer=document.createElement(\"div\"),(0,i.applyStyle)(n.controlContainer,n.controlPanelStyle||a),n.rootContainer.appendChild(n.controlContainer),n.controlContainer.innerHTML=o,e.setControllerVisibility(n.controllerVisibility),n.rootContainer.addEventListener(\"keypress\",(n=>{\"c\"===String.fromCharCode(n.charCode)&&e.toggleControllerVisibility()}))},e.delete=window.vtk.macro.chain(e.setContainer,n.openGLRenderWindow.delete,e.delete),e.resize=()=>{const e=n.container.getBoundingClientRect(),o=window.devicePixelRatio||1;n.openGLRenderWindow.setSize(Math.floor(e.width*o),Math.floor(e.height*o)),n.resizeCallback&&n.resizeCallback(e),n.renderWindow.render()},e.setResizeCallback=o=>{n.resizeCallback=o,e.resize()},n.listenWindowResize&&window.addEventListener(\"resize\",e.resize),e.resize()}(e,n)}))};i.vtkns.FullScreenRenderWindowSynchronized=e}},\n }, \"4e90918c0a\", {\"index\":\"4e90918c0a\",\"models/index\":\"6b2494dd1a\",\"models/ace\":\"7df2008a2e\",\"models/layout\":\"35aaab0394\",\"models/audio\":\"78153b60aa\",\"models/browser\":\"6df8bf1ac7\",\"models/card\":\"0863f96bc3\",\"models/comm_manager\":\"5819a59e86\",\"models/customselect\":\"9c8629b48f\",\"models/tabulator\":\"b1f71e1d72\",\"models/data\":\"fd9108e30e\",\"models/datetime_picker\":\"2114fa70c6\",\"models/deckgl\":\"991e3a226c\",\"models/tooltips\":\"9588ab7c9e\",\"models/echarts\":\"eded13f5d7\",\"models/event-to-object\":\"490942d778\",\"models/html\":\"3c5d08f9d8\",\"models/ipywidget\":\"e3556c1e99\",\"models/json\":\"172b3596d3\",\"models/jsoneditor\":\"4b8a56c700\",\"models/file_download\":\"9c15016be8\",\"models/katex\":\"921df82f50\",\"models/location\":\"00a25cf872\",\"models/mathjax\":\"9ec67eb09e\",\"models/pdf\":\"d49a559fbc\",\"models/perspective\":\"9f0456e5b5\",\"models/player\":\"c172556ad3\",\"models/plotly\":\"16c8f59cca\",\"models/util\":\"990b5dd5c7\",\"models/progress\":\"b82925a928\",\"models/quill\":\"371de13dfc\",\"models/reactive_html\":\"6833ed7471\",\"models/singleselect\":\"93d7c1ebd7\",\"models/speech_to_text\":\"cd0c80cc4c\",\"models/state\":\"66717cb841\",\"models/tabs\":\"67a5649f75\",\"models/terminal\":\"cd4a941f8d\",\"models/text_to_speech\":\"eb4ae0acfa\",\"models/trend\":\"8f4ab32d74\",\"models/vega\":\"5439695e7b\",\"models/video\":\"1faa6be6e8\",\"models/videostream\":\"797fd61298\",\"models/vizzu\":\"2bf02809f1\",\"models/vtk/index\":\"c51f25e2a7\",\"models/vtk/vtkjs\":\"3bce7c9db6\",\"models/vtk/vtklayout\":\"d7ded264dc\",\"models/vtk/util\":\"a76a9b7c23\",\"models/vtk/vtkcolorbar\":\"787f6aeecd\",\"models/vtk/vtkaxes\":\"7cec459a06\",\"models/vtk/vtkvolume\":\"c2892117a7\",\"models/vtk/vtksynchronized\":\"40c4377615\",\"models/vtk/panel_fullscreen_renwin_sync\":\"877619fe71\"}, {});});\n\n /* END panel.min.js */\n },\nfunction(Bokeh) {} // ensure no trailing comma for IE\n ];\n\n function run_inline_js() {\n if ((root.Bokeh !== undefined) || (force === true)) {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i].call(root, root.Bokeh);\n }\n // Cache old bokeh versions\n if (Bokeh != undefined && !reloading) {\n\tvar NewBokeh = root.Bokeh;\n\tif (Bokeh.versions === undefined) {\n\t Bokeh.versions = new Map();\n\t}\n\tif (NewBokeh.version !== Bokeh.version) {\n\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n\t}\n\troot.Bokeh = Bokeh;\n }} else if (Date.now() < root._bokeh_timeout) {\n setTimeout(run_inline_js, 100);\n } else if (!root._bokeh_failed_load) {\n console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n root._bokeh_failed_load = true;\n }\n root._bokeh_is_initializing = false\n }\n\n function load_or_wait() {\n // Implement a backoff loop that tries to ensure we do not load multiple\n // versions of Bokeh and its dependencies at the same time.\n // In recent versions we use the root._bokeh_is_initializing flag\n // to determine whether there is an ongoing attempt to initialize\n // bokeh, however for backward compatibility we also try to ensure\n // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n // before older versions are fully initialized.\n if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n root._bokeh_is_initializing = false;\n root._bokeh_onload_callbacks = undefined;\n console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n load_or_wait();\n } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n setTimeout(load_or_wait, 100);\n } else {\n Bokeh = root.Bokeh;\n bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n root._bokeh_is_initializing = true\n root._bokeh_onload_callbacks = []\n if (!reloading && (!bokeh_loaded || is_dev)) {\n\troot.Bokeh = undefined;\n }\n load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n\trun_inline_js();\n });\n }\n }\n // Give older versions of the autoload script a head-start to ensure\n // they initialize before we start loading newer version.\n setTimeout(load_or_wait, 100)\n}(window));", "application/vnd.holoviews_load.v0+json": "" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/javascript": "\nif ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n}\n\n\n function JupyterCommManager() {\n }\n\n JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n comm_manager.register_target(comm_id, function(comm) {\n comm.on_msg(msg_handler);\n });\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n comm.onMsg = msg_handler;\n });\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n console.log(message)\n var content = {data: message.data, comm_id};\n var buffers = []\n for (var buffer of message.buffers || []) {\n buffers.push(new DataView(buffer))\n }\n var metadata = message.metadata || {};\n var msg = {content, buffers, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n })\n }\n }\n\n JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n if (comm_id in window.PyViz.comms) {\n return window.PyViz.comms[comm_id];\n } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n if (msg_handler) {\n comm.on_msg(msg_handler);\n }\n } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n comm.open();\n if (msg_handler) {\n comm.onMsg = msg_handler;\n }\n } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n var comm_promise = google.colab.kernel.comms.open(comm_id)\n comm_promise.then((comm) => {\n window.PyViz.comms[comm_id] = comm;\n if (msg_handler) {\n var messages = comm.messages[Symbol.asyncIterator]();\n function processIteratorResult(result) {\n var message = result.value;\n var content = {data: message.data};\n var metadata = message.metadata || {comm_id};\n var msg = {content, metadata}\n msg_handler(msg);\n return messages.next().then(processIteratorResult);\n }\n return messages.next().then(processIteratorResult);\n }\n }) \n var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n return comm_promise.then((comm) => {\n comm.send(data, metadata, buffers, disposeOnDone);\n });\n };\n var comm = {\n send: sendClosure\n };\n }\n window.PyViz.comms[comm_id] = comm;\n return comm;\n }\n window.PyViz.comm_manager = new JupyterCommManager();\n \n\n\nvar JS_MIME_TYPE = 'application/javascript';\nvar HTML_MIME_TYPE = 'text/html';\nvar EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\nvar CLASS_NAME = 'output';\n\n/**\n * Render data to the DOM node\n */\nfunction render(props, node) {\n var div = document.createElement(\"div\");\n var script = document.createElement(\"script\");\n node.appendChild(div);\n node.appendChild(script);\n}\n\n/**\n * Handle when a new output is added\n */\nfunction handle_add_output(event, handle) {\n var output_area = handle.output_area;\n var output = handle.output;\n if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n return\n }\n var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n if (id !== undefined) {\n var nchildren = toinsert.length;\n var html_node = toinsert[nchildren-1].children[0];\n html_node.innerHTML = output.data[HTML_MIME_TYPE];\n var scripts = [];\n var nodelist = html_node.querySelectorAll(\"script\");\n for (var i in nodelist) {\n if (nodelist.hasOwnProperty(i)) {\n scripts.push(nodelist[i])\n }\n }\n\n scripts.forEach( function (oldScript) {\n var newScript = document.createElement(\"script\");\n var attrs = [];\n var nodemap = oldScript.attributes;\n for (var j in nodemap) {\n if (nodemap.hasOwnProperty(j)) {\n attrs.push(nodemap[j])\n }\n }\n attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n oldScript.parentNode.replaceChild(newScript, oldScript);\n });\n if (JS_MIME_TYPE in output.data) {\n toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n }\n output_area._hv_plot_id = id;\n if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n window.PyViz.plot_index[id] = Bokeh.index[id];\n } else {\n window.PyViz.plot_index[id] = null;\n }\n } else 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].childNodes[1].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/**\n * Handle when an output is cleared or removed\n */\nfunction handle_clear_output(event, handle) {\n var id = handle.cell.output_area._hv_plot_id;\n var server_id = handle.cell.output_area._bokeh_server_id;\n if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n if (server_id !== null) {\n comm.send({event_type: 'server_delete', 'id': server_id});\n return;\n } else if (comm !== null) {\n comm.send({event_type: 'delete', 'id': id});\n }\n delete PyViz.plot_index[id];\n if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n var doc = window.Bokeh.index[id].model.document\n doc.clear();\n const i = window.Bokeh.documents.indexOf(doc);\n if (i > -1) {\n window.Bokeh.documents.splice(i, 1);\n }\n }\n}\n\n/**\n * Handle kernel restart event\n */\nfunction handle_kernel_cleanup(event, handle) {\n delete PyViz.comms[\"hv-extension-comm\"];\n window.PyViz.plot_index = {}\n}\n\n/**\n * Handle update_display_data messages\n */\nfunction handle_update_output(event, handle) {\n handle_clear_output(event, {cell: {output_area: handle.output_area}})\n handle_add_output(event, handle)\n}\n\nfunction register_renderer(events, OutputArea) {\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[0]);\n element.append(toinsert);\n return toinsert\n }\n\n events.on('output_added.OutputArea', handle_add_output);\n events.on('output_updated.OutputArea', handle_update_output);\n events.on('clear_output.CodeCell', handle_clear_output);\n events.on('delete.Cell', handle_clear_output);\n events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n\n OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n safe: true,\n index: 0\n });\n}\n\nif (window.Jupyter !== undefined) {\n try {\n var events = require('base/js/events');\n var OutputArea = require('notebook/js/outputarea').OutputArea;\n if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n register_renderer(events, OutputArea);\n }\n } catch(err) {\n }\n}\n", "application/vnd.holoviews_load.v0+json": "" }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "<style>*[data-root-id],\n", "*[data-root-id] > * {\n", " box-sizing: border-box;\n", " font-family: var(--jp-ui-font-family);\n", " font-size: var(--jp-ui-font-size1);\n", " color: var(--vscode-editor-foreground, var(--jp-ui-font-color1));\n", "}\n", "\n", "/* Override VSCode background color */\n", ".cell-output-ipywidget-background:has(> .cell-output-ipywidget-background\n", " > .lm-Widget\n", " > *[data-root-id]),\n", ".cell-output-ipywidget-background:has(> .lm-Widget > *[data-root-id]) {\n", " background-color: transparent !important;\n", "}\n", "</style>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", "<div class=\"logo-block\">\n", "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n", "AAAB+wAAAfsBxc2miwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA6zSURB\n", "VHic7ZtpeFRVmsf/5966taWqUlUJ2UioBBJiIBAwCZtog9IOgjqACsogKtqirT2ttt069nQ/zDzt\n", "tI4+CrJIREFaFgWhBXpUNhHZQoKBkIUASchWla1S+3ar7r1nPkDaCAnZKoQP/D7mnPOe9/xy76n3\n", "nFSAW9ziFoPFNED2LLK5wcyBDObkb8ZkxuaoSYlI6ZcOKq1eWFdedqNzGHQBk9RMEwFAASkk0Xw3\n", "ETacDNi2vtvc7L0ROdw0AjoSotQVkKSvHQz/wRO1lScGModBFbDMaNRN1A4tUBCS3lk7BWhQkgpD\n", "lG4852/+7DWr1R3uHAZVQDsbh6ZPN7CyxUrCzJMRouusj0ipRwD2uKm0Zn5d2dFwzX1TCGhnmdGo\n", "G62Nna+isiUqhkzuKrkQaJlPEv5mFl2fvGg2t/VnzkEV8F5ioioOEWkLG86fvbpthynjdhXYZziQ\n", "x1hC9J2NFyi8vCTt91Fh04KGip0AaG9zuCk2wQCVyoNU3Hjezee9bq92duzzTmxsRJoy+jEZZZYo\n", "GTKJ6SJngdJqAfRzpze0+jHreUtPc7gpBLQnIYK6BYp/uGhw9YK688eu7v95ysgshcg9qSLMo3JC\n", "4jqLKQFBgdKDPoQ+Pltb8dUyQLpeDjeVgI6EgLIQFT5tEl3rn2losHVsexbZ3EyT9wE1uGdkIPcy\n", "BGxn8QUq1QrA5nqW5i2tLqvrrM9NK6AdkVIvL9E9bZL/oyfMVd/jqvc8LylzRBKDJSzIExwhQzuL\n", "QYGQj4rHfFTc8mUdu3E7yoLtbTe9gI4EqVgVkug2i5+uXGo919ixbRog+3fTbQ8qJe4ZOYNfMoTI\n", "OoshUNosgO60AisX15aeI2PSIp5KiFLI9ubb1vV3Qb2ltwLakUCDAkWX7/nHKRmmGIl9VgYsUhJm\n", "2NXjKYADtM1ygne9QQDIXlk49FBstMKx66D1v4+XuQr7vqTe0VcBHQlRWiOCbmmSYe2SqtL6q5rJ\n", "zsTb7lKx3FKOYC4DoqyS/B5bvLPxvD9Qtf6saxYLQGJErmDOdOMr/zo96km1nElr8bmPOBwI9COv\n", "HnFPRIwmkSOv9kcAS4heRsidOkpeWBgZM+UBrTFAXNYL5Vf2ii9c1trNzpYdaoVil3WIc+wdk+gQ\n", "noie3ecCcxt9ITcLAPWt/laGEO/9U6PmzZkenTtsSMQ8uYywJVW+grCstAvCIaAdArAsIWkRDDs/\n", "KzLm2YcjY1Lv0UdW73HabE9n6V66cxSzfEmuJssTpKGVp+0vHq73FwL46eOjpMpbRAnNmJFrGJNu\n", "Ukf9Yrz+3rghiumCKNXXWPhLYcjxGsIpoCMsIRoFITkW8AuyM8jC1+/QLx4bozCEJIq38+1rtpR6\n", "V/yzb8eBlRb3fo5l783N0CWolAzJHaVNzkrTzlEp2bQ2q3TC5gn6wpnoQAmwSiGh2GitnTmVMc5O\n", "UyfKWUKCIsU7+fZDKwqdT6DDpvkzAX4/+AMFjk0tDp5GRXLpQ2MUmhgDp5gxQT8+Y7hyPsMi8uxF\n", "71H0oebujHALECjFKaW9Lm68n18wXp2kVzIcABytD5iXFzg+WVXkegpAsOOYziqo0OkK76GyquC3\n", "ltZAzMhhqlSNmmWTE5T6e3IN05ITFLM4GdN0vtZ3ob8Jh1NAKXFbm5PtLU/eqTSlGjkNAJjdgn/N\n", "aedXa0tdi7+t9G0FIF49rtMSEgAs1kDLkTPO7ebm4IUWeyh1bKomXqlgMG6kJmHcSM0clYLJ8XtR\n", "1GTnbV3F6I5wCGikAb402npp1h1s7LQUZZSMIfALFOuL3UUrfnS8+rez7v9qcold5tilgHbO1fjK\n", "9ubb17u9oshxzMiUBKXWqJNxd+fqb0tLVs4lILFnK71H0Ind7uiPgACVcFJlrb0tV6DzxqqTIhUM\n", "CwDf1/rrVhTa33/3pGPxJYdQ2l2cbgVcQSosdx8uqnDtbGjh9SlDVSMNWhlnilfqZk42Th2ZpLpf\n", "xrHec5e815zrr0dfBZSwzkZfqsv+1FS1KUknUwPARVvItfKUY+cn57yP7qv07UE3p8B2uhUwLk09\n", "e0SCOrK+hbdYHYLjRIl71wWzv9jpEoeOHhGRrJAzyEyNiJuUqX0g2sBN5kGK6y2Blp5M3lsB9Qh4\n", "y2Ja6x6+i0ucmKgwMATwhSjdUu49tKrQ/pvN5d53ml2CGwCmJipmKjgmyuaXzNeL2a0AkQ01Th5j\n", "2DktO3Jyk8f9vcOBQHV94OK+fPumJmvQHxJoWkaKWq9Vs+yUsbq0zGT1I4RgeH2b5wef7+c7bl8F\n", "eKgoHVVZa8ZPEORzR6sT1BzDUAD/d9F78e2Tzv99v8D+fLVTqAKAsbGamKey1Mt9Ann4eH3gTXTz\n", "idWtAJ8PQWOk7NzSeQn/OTHDuEikVF1R4z8BQCy+6D1aWRfY0tTGG2OM8rRoPaeIj5ZHzJxszElN\n", "VM8K8JS5WOfv8mzRnQAKoEhmt8gyPM4lU9SmBK1MCQBnW4KONT86v1hZ1PbwSXPw4JWussVjtH9Y\n", "NCoiL9UoH/6PSu8jFrfY2t36erQHXLIEakMi1SydmzB31h3GGXFDFNPaK8Rme9B79Ixrd0WN+1ij\n", "NRQ/doRmuFLBkHSTOm5GruG+pFjFdAmorG4IXH1Qua6ASniclfFtDYt+oUjKipPrCQB7QBQ2lrgP\n", "fFzm+9XWUtcqJ3/5vDLDpJ79XHZk3u8nGZ42qlj1+ydtbxysCezrydp6ugmipNJ7WBPB5tydY0jP\n", "HaVNzs3QzeE4ZpTbI+ZbnSFPbVOw9vsfnVvqWnirPyCNGD08IlqtYkh2hjZ5dErEQzoNm+6ykyOt\n", "Lt5/PQEuSRRKo22VkydK+vvS1XEKlhCJAnsqvcVvH7f/ZU2R67eXbMEGAMiIV5oWZWiWvz5Fv2xG\n", "sjqNJQRvn3Rs2lji/lNP19VjAQDgD7FHhujZB9OGqYxRkZxixgRDVlqS6uEOFaJUVu0rPFzctrnF\n", "JqijImVp8dEKVWyUXDk92zAuMZ6bFwpBU1HrOw6AdhQgUooChb0+ItMbWJitSo5Ws3IAOGEOtL53\n", "0vHZih9sC4vtofZ7Qu6523V/fmGcds1TY3V36pUsBwAbSlxnVh2xLfAD/IAIMDf7XYIkNmXfpp2l\n", "18rkAJAy9HKFaIr/qULkeQQKy9zf1JgDB2uaeFNGijo5QsUyacNUUTOnGO42xSnv4oOwpDi1zYkc\n", "efUc3I5Gk6PhyTuVKaOGyLUAYPGIoY9Pu/atL/L92+4q9wbflRJ2Trpm/jPjdBtfnqB/dIThcl8A\n", "KG7hbRuKnb8qsQsVvVlTrwQAQMUlf3kwJI24Z4JhPMtcfng5GcH49GsrxJpGvvHIaeem2ma+KSjQ\n", "lIwUdYyCY8j4dE1KzijNnIP2llF2wcXNnsoapw9XxsgYAl6k+KzUXbi2yP3KR2ecf6z3BFsBICdW\n", "nvnIaG3eHybqX7vbpEqUMT+9OL4Qpe8VON7dXuFd39v19FoAABRVePbGGuXTszO0P7tu6lghUonE\n", "llRdrhArLvmKdh9u29jcFiRRkfLUxBiFNiqSU9icoZQHo5mYBI1MBgBH6wMNb+U7Pnw337H4gi1Y\n", "ciWs+uks3Z9fztUvfzxTm9Ne8XXkvQLHNytOOZeiD4e0PgkAIAYCYknKUNUDSXEKzdWNpnil7r4p\n", "xqkjTarZMtk/K8TQ6Qve78qqvXurGwIJqcOUKfUWHsm8KGvxSP68YudXq4pcj39X49uOK2X142O0\n", "Tz5/u/7TVybqH0rSya6ZBwD21/gubbrgWdDgEOx9WUhfBaC2ibcEBYm7a7x+ukrBMNcEZggyR0TE\n", "T8zUPjikQ4VosQZbTpS4vqizBKvqmvjsqnpfzaZyx9JPiz1/bfGKdgD45XB1zoIMzYbfTdS/NClB\n", "Gct0USiY3YL/g0LHy/uq/Ef6uo5+n0R/vyhp17Klpge763f8rMu6YU/zrn2nml+2WtH+Z+5IAAFc\n", "2bUTdTDOSNa9+cQY7YLsOIXhevEkCvzph7a8laecz/Un/z4/Ae04XeL3UQb57IwU9ZDr9UuKVajv\n", "nxp1+1UVIo/LjztZkKH59fO3G/JemqCfmaCRqbqbd90ZZ8FfjtkfAyD0J/9+C2h1hDwsSxvGjNDc\n", "b4zk5NfrSwiQblLHzZhg+Jf4aPlUwpDqkQqa9nimbt1/TDH8OitGMaQnj+RJS6B1fbF7SY1TqO5v\n", "/v0WAADl1f7zokgS7s7VT2DZ7pegUjBM7mjtiDZbcN4j0YrHH0rXpCtY0qPX0cVL0rv5jv/ZXend\n", "0u/EESYBAFBU4T4Qa5TflZOhTe7pmKpaP8kCVUVw1+yhXfJWvn1P3hnXi33JsTN6PnP3hHZ8Z3/h\n", "aLHzmkNPuPj7Bc/F/Q38CwjTpSwQXgE4Vmwry9tpfq/ZFgqFMy4AVDtCvi8rvMvOmv0N4YwbVgEA\n", "sPM72/KVnzfspmH7HQGCRLG2yL1+z8XwvPcdCbsAANh+xPzstgMtxeGKt+6MK3/tacfvwhWvIwMi\n", "oKEBtm0H7W+UVfkc/Y1V0BhoPlDr/w1w/eu1vjIgAgDg22OtX6/eYfnEz/focrZTHAFR+PSs56/7\n", "q32nwpjazxgwAQCwcU/T62t3WL7r6/jVRa6/byp1rei+Z98ZUAEAhEPHPc8fKnTU9nbgtnOe8h0l\n", "9hcGIqmODLQAHCy2Xti6v/XNRivf43f4fFvIteu854+VHnR7q9tfBlwAAGz+pnndB9vM26UebAe8\n", "SLHujPOTPVW+rwY+sxskAAC2HrA8t2Vvc7ffP1r9o+vwR2dcr92InIAbKKC1FZ5tB1tf+/G8p8sv\n", "N/9Q5zd/XR34LYCwV5JdccMEAMDBk45DH243r/X4xGvqxFa/GNpS7n6rwOwNWwHVE26oAADYurf1\n", "zx/utOzt+DMKYM0p17YtZZ5VNzqfsB2HewG1WXE8PoZ7gOclbTIvynZf9JV+fqZtfgs/8F/Nu5rB\n", "EIBmJ+8QRMmpU7EzGRsf2FzuePqYRbzh/zE26EwdrT10f6r6o8HOYzCJB9Dpff8tbnGLG8L/A/WE\n", "roTBs2RqAAAAAElFTkSuQmCC'\n", " style='height:25px; border-radius:12px; display: inline-block; float: left; vertical-align: middle'></img>\n", "\n", "\n", " <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg=='\n", " style='height:15px; border-radius:12px; display: inline-block; float: left'></img>\n", " \n", "\n", "\n", "\n", "\n", "</div>\n" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import holoviews as hv\n", "from holoviews import opts\n", "from bokeh.palettes import Blues, Viridis\n", "\n", "hv.extension('bokeh')" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " source target value color source_element target_element\n", "1866 21 27 1.0 5.0 Sc Co\n", "1840 21 1 1.0 5.0 Sc H\n", "1906 21 67 1.0 5.0 Sc Ho\n", "1930 21 91 1.0 5.0 Sc Pa\n", "92 2 1 1.0 5.0 He H\n" ] } ], "source": [ "# Compute the number of connections for each element\n", "num_connections = connections_df.sum(axis=1)\n", "\n", "# Create the source data for the chord diagram\n", "data = connections_df.stack().reset_index()\n", "data.columns = ['source', 'target', 'value']\n", "color = [str(num_connections[i]) for i in data['source']]\n", "data['color'] = color\n", "\n", "# Create a dictionary to map the atomic numbers to element names\n", "atomic_number_to_element = {row[0]: row[1] for row in evo_table}\n", "\n", "# Map the atomic numbers to element names in the data DataFrame\n", "data['source_element'] = data['source'].map(atomic_number_to_element)\n", "data['target_element'] = data['target'].map(atomic_number_to_element)\n", "\n", "data = data[data['value'] != 0]\n", "data = data.sort_values(by=['color'], ascending=False)\n", "print(data.head())\n", "\n", "plot_data = data[['source_element', 'target_element']]\n" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:55:23.135604Z", "start_time": "2023-05-30T19:55:23.113647Z" } }, "outputs": [], "source": [ "labels = list(set(data['source_element'].unique().tolist() + data['target_element'].unique().tolist()))\n", "labels = hv.Dataset(pd.DataFrame(labels, columns=['element']))" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "ExecuteTime": { "end_time": "2023-05-30T19:56:14.724245Z", "start_time": "2023-05-30T19:56:13.421699Z" } }, "outputs": [ { "data": {}, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.holoviews_exec.v0+json": "", "text/html": [ "<div id='p1001'>\n", " <div id=\"ff863f56-7e22-4d2c-8182-4b06f402f98f\" data-root-id=\"p1001\" style=\"display: contents;\"></div>\n", "</div>\n", "<script type=\"application/javascript\">(function(root) {\n", " var docs_json = {\"89f64604-367d-4fca-96e2-707aa3dca98c\":{\"version\":\"3.1.1\",\"title\":\"Bokeh Application\",\"defs\":[{\"type\":\"model\",\"name\":\"ReactiveHTML1\"},{\"type\":\"model\",\"name\":\"FlexBox1\",\"properties\":[{\"name\":\"align_content\",\"kind\":\"Any\",\"default\":\"flex-start\"},{\"name\":\"align_items\",\"kind\":\"Any\",\"default\":\"flex-start\"},{\"name\":\"flex_direction\",\"kind\":\"Any\",\"default\":\"row\"},{\"name\":\"flex_wrap\",\"kind\":\"Any\",\"default\":\"wrap\"},{\"name\":\"justify_content\",\"kind\":\"Any\",\"default\":\"flex-start\"}]},{\"type\":\"model\",\"name\":\"FloatPanel1\",\"properties\":[{\"name\":\"config\",\"kind\":\"Any\",\"default\":{\"type\":\"map\"}},{\"name\":\"contained\",\"kind\":\"Any\",\"default\":true},{\"name\":\"position\",\"kind\":\"Any\",\"default\":\"right-top\"},{\"name\":\"offsetx\",\"kind\":\"Any\",\"default\":null},{\"name\":\"offsety\",\"kind\":\"Any\",\"default\":null},{\"name\":\"theme\",\"kind\":\"Any\",\"default\":\"primary\"},{\"name\":\"status\",\"kind\":\"Any\",\"default\":\"normalized\"}]},{\"type\":\"model\",\"name\":\"GridStack1\",\"properties\":[{\"name\":\"mode\",\"kind\":\"Any\",\"default\":\"warn\"},{\"name\":\"ncols\",\"kind\":\"Any\",\"default\":null},{\"name\":\"nrows\",\"kind\":\"Any\",\"default\":null},{\"name\":\"allow_resize\",\"kind\":\"Any\",\"default\":true},{\"name\":\"allow_drag\",\"kind\":\"Any\",\"default\":true},{\"name\":\"state\",\"kind\":\"Any\",\"default\":[]}]},{\"type\":\"model\",\"name\":\"drag1\",\"properties\":[{\"name\":\"slider_width\",\"kind\":\"Any\",\"default\":5},{\"name\":\"slider_color\",\"kind\":\"Any\",\"default\":\"black\"},{\"name\":\"value\",\"kind\":\"Any\",\"default\":50}]},{\"type\":\"model\",\"name\":\"click1\",\"properties\":[{\"name\":\"terminal_output\",\"kind\":\"Any\",\"default\":\"\"},{\"name\":\"debug_name\",\"kind\":\"Any\",\"default\":\"\"},{\"name\":\"clears\",\"kind\":\"Any\",\"default\":0}]},{\"type\":\"model\",\"name\":\"FastWrapper1\",\"properties\":[{\"name\":\"object\",\"kind\":\"Any\",\"default\":null},{\"name\":\"style\",\"kind\":\"Any\",\"default\":null}]},{\"type\":\"model\",\"name\":\"NotificationAreaBase1\",\"properties\":[{\"name\":\"position\",\"kind\":\"Any\",\"default\":\"bottom-right\"},{\"name\":\"_clear\",\"kind\":\"Any\",\"default\":0}]},{\"type\":\"model\",\"name\":\"NotificationArea1\",\"properties\":[{\"name\":\"notifications\",\"kind\":\"Any\",\"default\":[]},{\"name\":\"position\",\"kind\":\"Any\",\"default\":\"bottom-right\"},{\"name\":\"_clear\",\"kind\":\"Any\",\"default\":0},{\"name\":\"types\",\"kind\":\"Any\",\"default\":[{\"type\":\"map\",\"entries\":[[\"type\",\"warning\"],[\"background\",\"#ffc107\"],[\"icon\",{\"type\":\"map\",\"entries\":[[\"className\",\"fas fa-exclamation-triangle\"],[\"tagName\",\"i\"],[\"color\",\"white\"]]}]]},{\"type\":\"map\",\"entries\":[[\"type\",\"info\"],[\"background\",\"#007bff\"],[\"icon\",{\"type\":\"map\",\"entries\":[[\"className\",\"fas fa-info-circle\"],[\"tagName\",\"i\"],[\"color\",\"white\"]]}]]}]}]},{\"type\":\"model\",\"name\":\"Notification\",\"properties\":[{\"name\":\"background\",\"kind\":\"Any\",\"default\":null},{\"name\":\"duration\",\"kind\":\"Any\",\"default\":3000},{\"name\":\"icon\",\"kind\":\"Any\",\"default\":null},{\"name\":\"message\",\"kind\":\"Any\",\"default\":\"\"},{\"name\":\"notification_type\",\"kind\":\"Any\",\"default\":null},{\"name\":\"_destroyed\",\"kind\":\"Any\",\"default\":false}]},{\"type\":\"model\",\"name\":\"TemplateActions1\",\"properties\":[{\"name\":\"open_modal\",\"kind\":\"Any\",\"default\":0},{\"name\":\"close_modal\",\"kind\":\"Any\",\"default\":0}]},{\"type\":\"model\",\"name\":\"BootstrapTemplateActions1\",\"properties\":[{\"name\":\"open_modal\",\"kind\":\"Any\",\"default\":0},{\"name\":\"close_modal\",\"kind\":\"Any\",\"default\":0}]},{\"type\":\"model\",\"name\":\"MaterialTemplateActions1\",\"properties\":[{\"name\":\"open_modal\",\"kind\":\"Any\",\"default\":0},{\"name\":\"close_modal\",\"kind\":\"Any\",\"default\":0}]}],\"roots\":[{\"type\":\"object\",\"name\":\"Row\",\"id\":\"p1001\",\"attributes\":{\"name\":\"Row01062\",\"tags\":[\"embedded\"],\"stylesheets\":[\"\\n:host(.pn-loading.pn-arc):before, .pn-loading.arc:before {\\n background-image: url(\\\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJtYXJnaW46IGF1dG87IGJhY2tncm91bmQ6IG5vbmU7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzNjM2MzIiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij4gICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjFzIiB2YWx1ZXM9IjAgNTAgNTA7MzYwIDUwIDUwIiBrZXlUaW1lcz0iMDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+ICA8L2NpcmNsZT48L3N2Zz4=\\\");\\n background-size: auto calc(min(50%, 400px));\\n}\",{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1004\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.0.3/dist/css/loading.css\"}},{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1168\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.0.3/dist/css/listpanel.css\"}},{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1002\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.0.3/dist/bundled/theme/default.css\"}},{\"type\":\"object\",\"name\":\"ImportedStyleSheet\",\"id\":\"p1003\",\"attributes\":{\"url\":\"https://cdn.holoviz.org/panel/1.0.3/dist/bundled/theme/native.css\"}}],\"min_width\":0,\"margin\":0,\"sizing_mode\":\"stretch_width\",\"align\":\"start\",\"children\":[{\"type\":\"object\",\"name\":\"Spacer\",\"id\":\"p1005\",\"attributes\":{\"name\":\"HSpacer01073\",\"stylesheets\":[\"\\n:host(.pn-loading.pn-arc):before, .pn-loading.arc:before {\\n background-image: url(\\\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJtYXJnaW46IGF1dG87IGJhY2tncm91bmQ6IG5vbmU7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzNjM2MzIiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij4gICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjFzIiB2YWx1ZXM9IjAgNTAgNTA7MzYwIDUwIDUwIiBrZXlUaW1lcz0iMDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+ICA8L2NpcmNsZT48L3N2Zz4=\\\");\\n background-size: auto calc(min(50%, 400px));\\n}\",{\"id\":\"p1004\"},{\"id\":\"p1002\"},{\"id\":\"p1003\"}],\"margin\":0,\"sizing_mode\":\"stretch_width\",\"align\":\"start\"}},{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1009\",\"attributes\":{\"width\":1000,\"height\":1000,\"margin\":[5,10],\"sizing_mode\":\"fixed\",\"align\":\"start\",\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1006\",\"attributes\":{\"tags\":[[[\"x\",\"x\",null]]],\"start\":-1.4,\"end\":1.4,\"reset_start\":-1.4,\"reset_end\":1.4}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1007\",\"attributes\":{\"tags\":[[[\"y\",\"y\",null]]],\"start\":-1.4,\"end\":1.4,\"reset_start\":-1.4,\"reset_end\":1.4}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1021\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1023\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1012\",\"attributes\":{\"text_color\":\"black\",\"text_font_size\":\"12pt\"}},\"outline_line_alpha\":0,\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1112\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1056\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1057\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1058\"},\"data\":{\"type\":\"map\",\"entries\":[[\"index\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAAAARAAAAEgAAABMAAAAUAAAAFQAAABYAAAAXAAAAGAAAABkAAAAaAAAAGwAAABwAAAAdAAAAHgAAAB8AAAAgAAAAIQAAACIAAAAjAAAAJAAAACUAAAAmAAAAJwAAACgAAAApAAAAKgAAACsAAAAsAAAALQAAAC4AAAAvAAAAMAAAADEAAAAyAAAAMwAAADQAAAA1AAAANgAAADcAAAA4AAAAOQAAADoAAAA7AAAAPAAAAD0AAAA+AAAAPwAAAEAAAABBAAAAQgAAAEMAAABEAAAARQAAAEYAAABHAAAASAAAAEkAAABKAAAASwAAAEwAAABNAAAATgAAAE8AAABQAAAAUQAAAFIAAABTAAAAVAAAAFUAAABWAAAAVwAAAFgAAABZAAAAWgAAAFsAAAA=\"},\"shape\":[92],\"dtype\":\"int32\",\"order\":\"little\"}],[\"index_hover\",[\"B\",\"Po\",\"Au\",\"Sb\",\"Ge\",\"Co\",\"Ac\",\"Pm\",\"H\",\"Zn\",\"Tm\",\"Ir\",\"Ni\",\"Sn\",\"F\",\"Ru\",\"Br\",\"Dy\",\"Ra\",\"Cs\",\"Hg\",\"Y\",\"Gd\",\"I\",\"S\",\"Ga\",\"Nb\",\"Tc\",\"Pa\",\"Cl\",\"Kr\",\"Ce\",\"Ba\",\"Th\",\"Be\",\"Hf\",\"Al\",\"N\",\"Cd\",\"Pr\",\"Tb\",\"Si\",\"Zr\",\"Pd\",\"V\",\"Eu\",\"Se\",\"Sc\",\"Na\",\"Ne\",\"Ca\",\"Cr\",\"Os\",\"Nd\",\"Cu\",\"Fe\",\"Tl\",\"Ta\",\"Bi\",\"Mg\",\"In\",\"As\",\"W\",\"Mo\",\"Rn\",\"Sr\",\"Sm\",\"La\",\"Xe\",\"Yb\",\"Er\",\"Mn\",\"Te\",\"Rb\",\"Pt\",\"K\",\"He\",\"Re\",\"Lu\",\"Pb\",\"O\",\"Rh\",\"Ar\",\"P\",\"U\",\"Fr\",\"Ho\",\"C\",\"Ti\",\"At\",\"Li\",\"Ag\"]],[\"arc_xs\",[{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAA8D+hqHFk+v/vP6eZyJHp/+8/c7gKiM3/7z+q2EFHpv/vPyq8e89z/+8/DBPKIDb/7z+Xe0I77f7vPz+C/h6Z/u8/lqEbzDn+7z9HQrtCz/3vPwW7AoNZ/e8/hVAbjdj87z9nNTJhTPzvPyyKeP+0++8/JF0jaBL77z9bqmubZPrvP4Nbjpmr+e8/4UfMYuf47z82NGr3F/jvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NjRq9xf47z+m0rBXPffvP5/C7INX9u8/v5BufGb17z+1topBavTvPymbmdNi8+8/lZH3MlDy7z8r2gRgMvHvP7KhJVsJ8O8/YAHCJNXu7z+7/kW9le3vP22LISVL7O8/IIXIXPXq7z9VtbJklOnvPzvRWz0o6O8/gXlD57Dm7z8tOu1iLuXvP2mK4LCg4+8/Wcyo0Qfi7z/nTNXFY+DvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"50zVxWPg7z+PQ/mNtN7vPy/Sqyr63O8/0gSInDTb7z930SzkY9nvP9oXPQKI1+8/PaFf96DV7z8sID/ErtPvPz4wimmx0e8/4FXz56jP7z8P/jBAlc3vPxp+/XJ2y+8/YRMXgUzJ7z8W4z9rF8fvP/D5PTLXxO8/8Uvb1ovC7z8VtOVZNcDvPw/0LrzTve8/AbSM/ma77z8rgtgh77jvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"K4LYIe+47z/QEG5+JrXvP0hGCtpEse8/CrK8N0qt7z/GmKiaNqnvP+/xBAYKpe8/LWUcfcSg7z/KR00DZpzvPweaCZzul+8/ZQTXSl6T7z/d1E4TtY7vPwv8Hfnyie8/SAoFABiF7z+0LNgrJIDvPzAqf4AXe+8/S2D1AfJ17z8ewEm0s3DvPxnLnptca+8/wI8qvOxl7z9XpjYaZGDvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6Y2GmRg7z9cRaAS9FbvPxZo7GQ/Te8/tbFdJkZD7z+S9sxsCDnvP1gMqU6GLu8/4Jj24r8j7z/B309BtRjvP6KO5IFmDe8/PYh5vdMB7z8brmgN/fXuPxCpoIvi6e4/bLCkUoTd7j/lT4x94tDuP0QsAyj9w+4/w8ZIbtS27j8wPzBtaKnuP8kUIEK5m+4/0uURC8eN7j/yLZLmkX/uPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8i2S5pF/7j/pDRYoLW7uP5jhJm1oXO4/vajQ7UNK7j/Ydk3jvzfuP6q+BIjcJO4//JmKF5oR7j+uDZ/O+P3tPx5KLev46e0/0edKrJrV7T99IDdS3sDtP18EWh7Eq+0/66tDU0yW7T/YZas0d4DtP4bhbgdFau0/xlWREbZT7T8DpDqayjztP9B3tumCJe0/3GJzSd8N7T9V9QEE4PXsPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VfUBBOD17D8vHPQavunsP7HSE2WF3ew/IVEE7DXR7D/vwnq5z8TsPxE/PtdSuOw/RsAnT7+r7D9aHSIrFZ/sP0wBKnVUkuw/deNNN32F7D+V/617j3jsP9hNfEyLa+w/z3r8s3Be7D9R34O8P1HsP154eXD4Q+w/4t5V2po27D96P6MEJynsPyBS/fmcG+w/0VERxfwN7D8e9J1wRgDsPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HvSdcEYA7D/ZKHOUl+TrPz/tzryQyOs/usMYQjKs6z9bncx9fI/rP5O/ecpvcus/jqbBgwxV6z8v5FYGUzfrP6T7+69DGes/rTmC39766j+Ficj0JNzqP3pGulAWveo/OApOVbOd6j/Id4Rl/H3qP0QDZ+XxXeo/U7YGOpQ96j9X8XrJ4xzqP2op4Prg++k/H6NWNoza6T8QKgHl5bjpPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ECoB5eW46T9JY87/iYvpP8Kyd9ueXek/ekR7eSUv6T+45XTeHgDpP6dPGBKM0Og/nmArH26g6D8lRIATxm/oP+6J7/+UPug/zitS+NsM6D/ognsTnNrnPyEsM2vWp+c/ANwuHIx05z8tIgxGvkDnP5EcSgtuDOc/YRpDkZzX5j8bLyYAS6LmP5218IJ6bOY/ksNnRyw25j84jRF+Yf/lPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"OI0RfmH/5T8ukyLEzePlP7e5LlobyOU/AB0KZ0qs5T8zqLMRW5DlP8veVIFNdOU/rqVB3SFY5T8IDPhM2DvlP+8TIPhwH+U/znqLBuwC5T+MgTWgSebkP4W0Qu2JyeQ/QbMAFq2s5D/x9+VCs4/kP7mekZyccuQ/vSzLS2lV5D/1VoJ5GTjkP8jIzk6tGuQ/curv9CT94z8yp0yVgN/jPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MqdMlYDf4z88M3NZwMHjP3rRGGvko+M/EpkZ9OyF4z+2Onge2mfjP8TFXRSsSeM/I20ZAGMr4z/7SyAM/wzjPykqDWOA7uI/h0CgL+fP4j8B/b6cM7HiP2zGc9VlkuI/MMDtBH5z4j/DjYBWfFTiP+YVpPVgNeI/t0X0DSwW4j+O0zDL3fbhP6gBPVl21+E/oWAf5PW34T+6kQGYXJjhPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"upEBmFyY4T/IIimvhojhP+8IMKGqeOE/bDmlc8ho4T/gzhks4FjhP2IHIdDxSOE/hUJQZf044T9j/z7xAinhP7DahnkCGeE/tIzDA/wI4T9n55KV7/jgP2TUlDTd6OA/BVNr5sTY4D9adrqwpsjgPzdjKJmCuOA/Nk5dpVio4D++eQPbKJjgPwI0xz/zh+A/C9VW2bd34D+yvGKtdmfgPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"srxirXZn4D8naJQlCk/gP4MlcsGQNuA/Va5IlAoe4D8p0W6xdwXgP7PEiliw2d8/eVluMFio3z+txHER53bfPwoakiJdRd8/Lv7firoT3z/kh39x/+HePzQhqP0rsN4/hGikVkB+3j+FEdKjPEzeP0TGoQwhGt4/AAiXuO3n3T8FEEjPorXdP3awXXhAg90/+jST28ZQ3T9+Q7YgNh7dPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fkO2IDYe3T/McqyKc/zcP68I78um2tw/5ZxW8M+43D+OUr8D75bcP+zTCBIEddw/VE4WJw9T3D/lbc5OEDHcP3tZG5UHD9w/Za7qBfXs2z9UfC2t2MrbPw1B2JayqNs/VuTizoKG2z+qs0hhSWTbPx5eCFoGQts/EvAjxbkf2z8bz6CuY/3aP6y1hyIE29o//q7kLJu42j+2EsfZKJbaPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"thLH2SiW2j/KgEE1rXPaPzfdaUsoUdo/uUtZKJou2j+sKyzYAgzaP6sTAmdi6dk/b8394LjG2T9yUUVSBqTZP8vCAcdKgdk/ympfS4Ze2T/UtI3ruDvZPwIqv7PiGNk/8mwpsAP22D9pNQXtG9PYPyNMjnYrsNg/b4YDWTKN2D//waagMGrYP4HgvFkmR9g/cMONkBMk2D+mR2RR+ADYPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pkdkUfgA2D/PdlyiqLrXP+9VN683dNc/xm+12qUt1z91Z8WH8+bWP8ptgxkhoNY/TrY48y5Z1j8V7Fp4HRLWP0+miwztytU/nNyXE56D1T8gW3fxMDzVP2g2TAqm9NQ/+T5iwv2s1D+/dC5+OGXUPzl6TqJWHdQ/ZgeIk1jV0z+CXMi2Po3TP4i0I3EJRdM/f7fUJ7n80j+O7DtATrTSPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"juw7QE600j8jPMzwDpDSP94r3x/Ja9I/CjQr2nxH0j9HEGksKiPSP++6UyPR/tE/x2ioy3Ha0T9hhCYyDLbRP8upj2OgkdE/8aGnbC5t0T9EXjRatkjRPyX0/Tg4JNE/hpjOFbT/0D9Nm3L9KdvQP/1iuPyZttA/FWhwIASS0D+yMG11aG3QP/VLgwjHSNA/nk2J5h8k0D/fkq845v7PPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"35KvOOb+zz+UnZJtgbXPPznIdIURbM8/tQQTmpYizz8gIS7FENnOP4i+iiCAj84/HkjxxeRFzj/26S3PPvzNPzaIEFaOss0/zrVsdNNozT+mqxlEDh/NP1c/8t4+1cw/VdrUXmWLzD+fcKPdgUHMP+53Q3WU98s/Y96dP52tyz+vAZ9WnGPLP7+lNtSRGcs/5etX0n3Pyj99SflqYIXKPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fUn5amCFyj8SfxS4OTvKPyOPptMJ8ck/97Sv19CmyT+xWzPejlzJP/oUOAFEEsk/GpDHWvDHyD+ekO4ElH3IP3HlvBkvM8g/gV9Fs8Hoxz/UyJ3rS57HPynb3tzNU8c/EDckoUcJxz+EWoxSub7GPwSYOAsjdMY/Kg1N5YQpxj/CmfD63t7FP2DWTGYxlMU/cwuOQXxJxT/aJ+Omv/7EPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"2ifjpr/+xD/vt32w+7PEP0DckXgwacQ/SUBWGV4exD96EQSthNPDP8j11k2kiMM/vQINFr09wz8AtOYfz/LCP2fipoXap8I/gbqSYd9cwj+fs/HN3RHCP2KGDeXVxsE/wiMywcd7wT+Uq618szDBP5lj0DGZ5cA//63s+niawD9oAFfyUk/AP3HaZTInBMA/dHnjqutxvz/FPqrrfdu+Pw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xT6q633bvj8Z0thbBUW+PwXLKzCCrr0/yHhjnfQXvT8/0EPYXIG8P+FYlBW76rs/xRogig9Uuz+hi7VqWr26P8R8JuybJro/FwhIQ9SPuT8WfvKkA/m4P81SAUYqYrg/0QtTW0jLtz81LckZXjS3P4gnSLZrnbY/xES3ZXEGtj9KlgBdb2+1P9LhENFl2LQ/X4/X9lRBtD81lkYDPaqzPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NZZGAz2qsz8PMEA6jMeyP2NPHqLM5LE/ncev7f4BsT+LjM7PIx+wP2BLvvZ3eK4/7UGgRpCyrD9HCzP1keyqP4yOeGh+Jqk/nXCDBldgpz+B+nU1HZqlP3n+gFvS06M/zb3i3ncNoj/KzeUlD0egP+v7vy0zAZ0/AHpiMDF0mT+K/IQgG+eVP5s+CcvzWZI/jDK9+XuZjT+Zn/8F+X6GPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"mZ//Bfl+hj9yJ1yWXwx6P4N6GXGialw/s0LOpjCuZ79HaMOpyMh+v41l/usm3Yi/0IffU+Mqkb9n/YQgG+eVvz51hDg0o5q/8tyd+Cdfn788vuLedw2iv4ShlnJCa6S/FgsnZvDIpr/6jnhofiapv/WInCjpg6u/rsLVVS3hrb/CjM7PIx+wvxAS01qaTbG/2uvxo/h7sr9slkYDPaqzvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"bJZGAz2qs79AXG5K3oy0v4GWAF1vb7W/VSFTiO9Rtr9sLckZXjS3v3zM0166Fri/TX7ypAP5uL9tvbM5Odu5v9iLtWpavbq/4v+lhWafu7910EPYXIG8v+XhXrA8Y72/UNLYWwVFvr9UhqUotia/v43aZTInBMC/dboyr+Z0wL+1Y9AxmeXAv98SYGE+VsG/foYN5dXGwb/tRA9kXzfCvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"7UQPZF83wr+M7zLDXYLCv7y2paVVzcK/eUch8UYYw7/YnWGLMWPDv4UOJVoVrsO/sU8sQ/L4w7+FgjosyEPEvxs8FfuWjsS/5I6ElV7ZxL+iE1PhHiTFv9TyTcTXbsW/pO1EJIm5xb9UZwrnMgTGvy5uc/LUTsa/7MRXLG+Zxr+m65F6AeTGvzwp/8KLLse/OZR/6w15x79FHPbZh8PHvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"RRz22YfDx78INSdEw6LIvwTiAfmwgcm/sOxXOU5gyr+15fhGmD7LvxbMumSMHMy/n7CC1if6zL9zVk3hZ9fNv7nPN8tJtM6/KBeI28qQz7+90lotdDbQv8kBOclPpNC/JazY5vYR0b9geVksaH/RvwvohECi7NG/vo7SyqNZ0r+6Wmxza8bSv5vMMuP3MtO/fzLBw0ef078x4HG/WQvUvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MeBxv1kL1L/rkOgcS0HUv65kYoEsd9S/Aj9iwv2s1L9yvXe1vuLUv/FYPzBvGNW/UIdiCA9O1b+l3JcTnoPVv5ssoyccudW/0KtVGonu1b8CEY7B5CPWv1e2OPMuWda/h7pPhWeO1r8JIttNjsPWvxj48CKj+Na/z2+12qUt178oBVtLlmLXv+2dIkt0l9e/tqpbsD/M17+vR2RR+ADYvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"r0dkUfgA2L9+XakEnjXYvwjCpqAwati/KFnn+6+e2L9yNQXtG9PYv8G4qUp0B9m/3bSN67g72b8JjHmm6W/Zv3tRRVIGpNm/4enYxQ7Y2b+1KyzYAgzav6P/RmDiP9q/04BBNa1z2r89HUQuY6fav7m1hyIE29q/Q75V6Y8O278jXghaBkLbv9GPCkxnddu/FkHYlrKo27/xcv4R6Nvbvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8XL+Eejb27/ubc5OEDHcv/7bycr6hdy/tQjvy6ba3L8JHMWYEy/dv36wXXhAg92/aGhWsizX3b+wgdqO1yrev4lopFZAft6/5Uj/UmbR3r+znsjNSCTfv7nEcRHndt+/cIIBaUDJ378rzAoQqg3gv4glcsGQNuC/oPYe71Nf4L8INMc/84fgvx5hb1pusOC/ClNr5sTY4L/q8l6L9gDhvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6vJei/YA4b9TyAz+/xDhv10afnUDIeG/oiMW7AAx4b9pOTpc+EDhv43NUcDpUOG/enDGEtVg4b8Y0wNOunDhv87Id2yZgOG/cUmSaHKQ4b8zc8U8RaDhv5GMheMRsOG/VAZJV9i/4b93fYiSmM/hvxu9vo9S3+G/asBoSQbv4b+ctAW6s/7hv9P6FtxaDuK/Eyogqvsd4r8eEaceli3ivw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HhGnHpYt4r90uDM0Kj3ivzRkUOW3TOK//ZWJLD9c4r/pDm4EwGviv2jRjmc6e+K/MCN/UK6K4r8Xj9S5G5rivwrnJp6CqeK/5EUQ+OK44r9fES3CPMjiv+X7G/eP1+K/hgZ+kdzm4r/SgvaLIvbiv7wUK+FhBeO/bLTDi5oU4785sGqGzCPjv3OuzMv3MuO/Ta+YVhxC47+nDoAhOlHjvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pw6AITpR4783g3vy5nbjvwgFhSBpnOO/PzNzWcDB47/2xXpL7Objv1hBL6XsC+S/DqiDFcEw5L/CLMtLaVXkv9PiuffkeeS/PW5lyTOe5L+oskVxVcLkv5KBNaBJ5uS/wEdzBxAK5b+0uaFYqC3lv1p/yEUSUeW/z95UgU105b9UZhq+WZflv0yVU682uuW/e4SiCOTc5b89jRF+Yf/lvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PY0RfmH/5b+pr/DMHw3mvxeRUmHWGua/ZtBoNoUo5r+Yw2dHLDbmv3J5ho/LQ+a/NLv+CWNR5r80Dg2y8l7mv6K18IJ6bOa/HrTrd/p55r9uzUKMcofmvxmIPbvilOa/Hy8mAEui5r+W00lWq6/mv1NO+LgDvea/hUGEI1TK5r9mGkORnNfmv9sSjf3c5Oa/ETO9YxXy5r8YUzG/Rf/mvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"GFMxv0X/5r+VHEoLbgznv1QMa0OOGee/33P6YqYm578se2FltjPnvzEiDEa+QOe/e0JpAL5N57/GkOqPtVrnv6SeBPCkZ+e/BNwuHIx057/YmOMPa4Hnv5cGoMZBjue/5znkOxCb578lLDNr1qfnv/u8ElCUtOe/6rML5knB57/qwako983nv+yCexOc2ue/c38Sojjn578SLgPQzPPnvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ei4D0Mzz57/VK1L42wzov8wFR2nJJei/9Inv/5Q+6L+a+4iZPlfovytEgBPGb+i/mSNySyuI6L+kYCsfbqDov7f4qGyOuOi/rk8YEozQ6L8lX9ftZujov77ldN4eAOm/45WwwrMX6b+ARHt5JS/pv0QX9+FzRum/yLJ3255d6b9LaIJFpnTpv05jzv+Ji+m/wdZE6kmi6b8WKgHl5bjpvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FioB5eW46b8BKKk4w8npvyWjVjaM2um/qBzN0EDr6b9xKeD64Pvpv4J8c6dsDOq/XPF6yeMc6r86lvpTRi3qv1i2BjqUPeq/H+TDbs1N6r9JA2fl8V3qv/xSNZEBbuq/zXeEZfx96r/ChbpV4o3qvz8KTlWzneq/5xXGV2+t6r9/RrpQFr3qv6HQ0jOozOq/ionI9CTc6r+/8GSHjOvqvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"v/Bkh4zr6r+LTmLJxfXqv+kYdZj1/+q/WFUL8RsK679lWpbPOBTrv+HQijBMHuu/JbVgEFYo679CWJNrVjLrv01hoT5NPOu/kM4MhjpG67/I9lo+HlDrv1SKFGT4Weu/eJTF88hj67+NfP3pj23rvzYHT0NNd+u/kFdQ/ACB679r8JoRq4rrv3i1y39LlOu/euyCQ+Kd679tPmRZb6frvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"bT5kWW+n67/AuBa+8rDrv3zORG5suuu/aFmcZtzD679Am86jQs3rv9Q+kCKf1uu/N1mZ3/Hf67/YaqXXOunrv7lgcwd68uu/hpXFa6/767/B0mEB2wTsv9ZREcX8Dey/S72gsxQX7L/WMeDJIiDsv38/owQnKey/turAYCEy7L94rRPbETvsv2J4eXD4Q+y/0bPTHdVM7L/uQAfgp1Xsvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"7kAH4KdV7L/TevyzcF7sv5o3n5YvZ+y/a8nehORv7L+a/617j3jsv7MnA3gwgey/jA7YdseJ7L9RASp1VJLsv5jO+W/Xmuy/aMdLZFCj7L9MwCdPv6vsv1ESmS0ktOy/Hpyu/H687L/zwnq5z8Tsv7NzE2EWzey/4SOS8FLV7L+10hNlhd3svxEKubut5ey/iN+l8cvt7L9a9QEE4PXsvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WvUBBOD17L98e/jv6f3sv5EwuLLpBe2/4WJzSd8N7b9h8V+xyhXtv6NMt+erHe2/1Xe26YIl7b+yCZ60Ty3tv4ItskUSNe2/B6Q6mso87b94xIKveETtv2l92YIcTO2/ylWREbZT7b/PbQBZRVvtv+J/gFbKYu2/iuFuB0Vq7b9jhCxptXHtvwH3HXkbee2/3WWrNHeA7b84nECZyIftvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"OJxAmciH7b+4u3NHr5Ltv/E9m6N+ne2/ON4wpTao7b9wwsBD17Ltv62B6XZgve2/3CpcNtLH7b9CS9x5LNLtvwT1Pzlv3O2/l8VvbJrm7b8b7GYLrvDtv7QvMw6q+u2/zvX0bI4E7r9MSN8fWw7uv7fbNx8QGO6/TxVXY60h7r8dEajkMivuv+KnqJugNO6/DXXpgPY97r+S3A2NNEfuvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ktwNjTRH7r+5EMy4WlDuv+EX7fxoWe6/LNJMUl9i7r8i/9mxPWvuv0VDlhQEdO6/lS2Wc7J87r8DPQHISIXuv9blEQvHje6/BpcVNi2W7r+Cv2xCe57uv2fTiimxpu6/L1H25M6u7r/Hxkhu1Lbuv57WLr/Bvu6/nzxo0ZbG7r8m08eeU87uv9eXMyH41e6/b7CkUoTd7r+Jbyct+OTuvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"iW8nLfjk7r93AzvILfHuv/l+IJwf/e6/J8atjs0I77/SbU2GNxTvv4nz/mldH++/ZPRWIT8q779/Yn+U3DTvvy+5N6w1P++/8i/VUUpJ778Z7EJvGlPvvx4xAu+lXO+/w48qvOxl77/ZE2rC7m7vv8RwBe6rd++/tizYKySA77+ZylRpV4jvv7XyhJRFkO+/CpoJnO6X779aKBtvUp/vvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Wigbb1Kf77/zhK7FM6Lvv/HxBAYKpe+/beYfL9Wn77+XvARAlarvvwuyvDdKre+/LehUFfSv7793ZN7XkrLvv9IQbn4mte+/57scCK+3779yGQd0LLrvv4vCTcGevO+//DUV7wW/77+M2IX8YcHvv0f1y+iyw++/y70Xs/jF77+QSp1aM8jvvzKblN5iyu+/tJY5PofM77/EC8x4oM7vvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xAvMeKDO778CsY+NrtDvvz8lzHux0u+/we/MQqnU7798gOHhldbvv1cwXVh32O+/ZEGXpU3a778d3+rIGNzvv50et8HY3e+/2P5ej43f77/VaEkxN+Hvv94v4abV4u+/uRGV72jk77/bttcK8eXvv5ayH/ht5++/TIPntt/o77+ekq1GRurvv5Y19Kah6++/16xB1/Hs77/HJCDXNu7vvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xyQg1zbu778s2gRgMvHvv3Uj7vDn8++/oMLsg1f27797yqoTgfjvv1yqa5tk+u+/ezgMFwL8778GuwKDWf3vv9/vXtxq/u+/DBPKIDb/77/Y44ZOu//vv6GocWT6/++/VzEAYvP/77+p2EFHpv/vv+qD3xQT/++/lqEbzDn+77+WJtJuGv3vvyuKeP+0+++/jcAdgQn67781NGr3F/jvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NTRq9xf477+l0rBXPffvv57C7INX9u+/vpBufGb177+1topBavTvvyibmdNi8++/lJH3MlDy778q2gRgMvHvv7GhJVsJ8O+/YAHCJNXu77+6/kW9le3vv2yLISVL7O+/H4XIXPXq779UtbJklOnvvznRWz0o6O+/gHlD57Dm778rOu1iLuXvv2iK4LCg4++/WMyo0Qfi77/lTNXFY+Dvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"5UzVxWPg77/RBIicNNvvvzyhX/eg1e+/31Xz56jP779gExeBTMnvv+9L29aLwu+//7OM/ma7778R/7MO3rPvv6WYFR/xq++/QFmxSKCj77+RN8Kl65rvv7T1vVHTke+/lMpUaVeI779uB3EKeH7vv3O5NlQ1dO+/kkcDZ49p779bDG1khl7vvxPsQm8aU++/5OaLq0tH7789p4Y+Gjvvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PaeGPho77794Yn+U3DTvv1QMqU6GLu+/Ee0Cchco77/YsJ8DkCHvv8VjpQjwGu+/y21NhjcU77+fjuSBZg3vv4bZygB9Bu+/GbFzCHv/7r/4wmWeYPjuv28DO8gt8e6/C6mgi+Lp7r8gKFfufuLuvz8uMvYC2+6/oJ0YqW7T7r92iAQNwsvuv0AsAyj9w+6/+uw0ACC87r9SUM2bKrTuvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"UlDNmyq07r8nUfbkzq7uvys/MG1oqe6/gqBfNvej7r95v2xCe57uv+KpQ5P0mO6/YzDUKmOT7r/N5RELx43uv2ge9DUgiO6/Re91rW6C7r+MLZZzsnzuv8ttV4rrdu6/PgPA8xlx7r8Z/9mxPWvuv9Uvs8ZWZe6/eSBdNGVf7r/XF+38aFnuv9wXfCJiU+6/y9wmp1BN7r+I3A2NNEfuvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"iNwNjTRH7r/X3qguRxvuv8Ae7spU7e2/pIHpdmC97b9WzyBqbYvtv8dzXP5+V+2/PvRtr5gh7b8nHPQavunsv1jlHADzr+y/CSBlPzt07L/a3lXamjbsvzmrP/MV9+u/84bzzLC167+Kv3nKb3Lrv2CYxm5XLeu/n9BsXGzm6r8uCk5Vs53qv/gWSToxU+q/AzLmCusG6r8GKgHl5bjpvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"BioB5eW46b+klpZnnK3pv7LWROpJoum/NMUDce6W6b8+Y87/iYvpv5PWopocgOm/O2iCRaZ06b8ng3EEJ2npv7iyd9ueXem/YKGfzg1S6b80F/fhc0bpv4f4jhnROum/cER7eSUv6b9oE9MFcSPpv9OVsMKzF+m/mhIxtO0L6b+u5XTeHgDpv5t+n0VH9Oi/FV/X7Wbo6L+KGUbbfdzovw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ihlG233c6L+dTxgSjNDov7uwfZaRxOi/p/iobI646L/07c+Ygqzov5RgKx9uoOi/Wij3A1GU6L+JI3JLK4jov0M13vn8e+i/G0SAE8Zv6L+NOKCchmPov4r7iJk+V+i/5nSIDu5K6L/jie//lD7ov6YbEnIzMui/uwVHackl6L+GHOjpVhnov8QrUvjbDOi/+vTkmFgA6L8BLgPQzPPnvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AS4D0Mzz579ifxKiOOfnv9uCexOc2ue/2cGpKPfN57/ZswvmScHnv+m8ElCUtOe/Eywza9an57/WOeQ7EJvnv4UGoMZBjue/xpjjD2uB57/z2y4cjHTnv5KeBPCkZ+e/tZDqj7Va579pQmkAvk3nvx8iDEa+QOe/G3thZbYz57/Nc/pipibnv0IMa0OOGee/gxxKC24M578GUzG/Rf/mvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"BlMxv0X/5r//Mr1jFfLmv8kSjf3c5Oa/VBpDkZzX5r9yQYQjVMrmv0FO+LgDvea/hNNJVquv5r8NLyYAS6LmvweIPbvilOa/XM1CjHKH5r8LtOt3+nnmv5C18IJ6bOa/Ig4NsvJe5r8hu/4JY1Hmv195ho/LQ+a/hcNnRyw25r9T0Gg2hSjmvwSRUmHWGua/lq/wzB8N5r8qjRF+Yf/lvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ko0RfmH/5b9DQIZ5m/Hlvx+TIsTN4+W/DAK9YvjV5b+puS5aG8jlvzqVU682uuW/8BwKZ0qs5b9DhDOGVp7lvyWosxFbkOW/Wg1xDliC5b+83lSBTXTlv4rrSm87ZuW/oKVB3SFY5b/IHyrQAErlv/gL+EzYO+W/obmhWKgt5b/hEyD4cB/lv9GfbjAyEeW/vnqLBuwC5b95WHd/nvTkvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eVh3f5705L97gTWgSebkv0bRy23t1+S/drRC7YnJ5L8sJ6UjH7vkvzOzABatrOS/KW5lyTOe5L/k9+VCs4/kv3x4l4crgeS/qJ6RnJxy5L/qne6GBmTkv64sy0tpVeS/pIJG8MRG5L/nVoJ5GTjkvxfeouxmKeS/u8jOTq0a5L9DQS+l7Avkv2Hq7/Qk/eO/Jt0+Q1bu478ip0yVgN/jvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"IqdMlYDf47/bRvnV1bLjvwCZGfTsheO/8xNWfcZY478QbRkAYyvjv37XjgvD/eK/ekCgL+fP4r+JifT8z6HivyDA7QR+c+K/D1On2fFE4r+lRfQNLBbiv5RgXTUt5+G/jmAf5PW34b+0Iimvhojhv8zOGSzgWOG/Vf8+8QIp4b9X55KV7/jgv0p2urCmyOC/rHkD2yiY4L+gvGKtdmfgvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"oLxirXZn4L8YaJQlCk/gv3ElcsGQNuC/RK5IlAoe4L8V0W6xdwXgv5LEiliw2d+/UVluMFio37+MxHER53bfv+wZkiJdRd+/Cf7firoT37/Gh39x/+HevxAhqP0rsN6/YmikVkB+3r9qEdKjPEzevyLGoQwhGt6/5geXuO3n3b/kD0jPorXdv1iwXXhAg92/1TST28ZQ3b9fQ7YgNh7dvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"X0O2IDYe3b+pvKZvjuvcv8ecVvDPuNy/3tvJyvqF3L8yThYnD1Pcv/qEYy0NINy/Q67qBfXs27+tdfbYxrnbvz/k4s6Chtu/v0AdEClT27/77yPFuR/bv3ZUhhY17Nq/467kLJu42r+v/e8w7ITavxzdaUsoUdq/RmckpU8d2r+PEwJnYunZv9SW9blgtdm/rMIBx0qB2b+KZTm3IE3Zvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"imU5tyBN2b9LwuLpTirZv6S4qUp0B9m/MHbF5ZDk2L/IO3DHpMHYvwtZ5/uvnti/4ydrj7J72L+pCD+OrFjYv11dqQSeNdi/woXz/oYS2L/i2mmJZ+/Xv5WqW7A/zNe/hjMbgA+p17+3oP0E14XXvwMFW0uWYte/L1eOX00/178hbfVN/BvXv/P38CKj+Na/bn/k6kHV1r+IXTay2LHWvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"iF02stix1r8u2Cj3q3zWv5V8i4BtR9a/AOxaeB0S1r8joqEIvNzVv3HUd1tJp9W/dVADm8Vx1b8LW3fxMDzVv7OOFImLBtW/aLoojNXQ1L92wA4lD5vUv6d0Ln44ZdS/Snv8wVEv1L9TJ/oaW/nTv/9YtbNUw9O/dVzItj6N07/Cx9lOGVfTv7VZnKbkINO/stfO6KDq0r997DtATrTSvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"few7QE600r8PBrrX7H3Sv/kzK9p8R9K/xgV9cv4Q0r+yaKjLcdrRv0GGsRDXo9G/3KGnbC5t0b9U96QKeDbRv3yYzhW0/9C/TktUueLI0L8LaHAgBJLQv762Z3YYW9C/kU2J5h8k0L983Fw4NdrPvx7IdIURbM+/qMM0C9X9zr9tvooggI/Ov+XtdxwTIc6/FIgQVo6yzb/Xf3sk8kPNvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"1397JPJDzb9psILWJ/rMv8ZBpGBTsMy/jGPA3HRmzL/Zy7pkjBzMv9utehKa0su/YLDq/52Iy7+X5fhGmD7LvwTBlgGJ9Mq/Qg+5SXCqyr+K7Fc5TmDKvz27buoiFsq/hxv8du7Lyb/e4QH5sIHJv44NhYpqN8m/csCNRRvtyL/aNCdEw6LIv0W1X6BiWMi/5JJIdPkNyL8XHPbZh8PHvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Fxz22YfDx78m297czVPHv3jrkXoB5Ma/+Jc4CyN0xr8dZwrnMgTGv1XWTGYxlMW/bBNT4R4kxb/kt32w+7PEv2eCOizIQ8S/ZhEErYTTw7+5nWGLMWPDv+yz5h/P8sK/Ze8yw12Cwr+js/HN3RHCv7Tm2ZhPocG/mautfLMwwb9vGzrSCcDAv2QAV/JST8C/VR3Nax69v7++Pqrrfdu+vw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vj6q633bvr8C0thbBUW+vw3LKzCCrr2/wXhjnfQXvb8Y0EPYXIG8v+lYlBW76ru/rhogig9Uu7+6i7VqWr26v718JuybJrq/AAhIQ9SPub8ffvKkA/m4v8ZSAUYqYri/qgtTW0jLt78+LckZXjS3v3EnSLZrnba/3US3ZXEGtr9DlgBdb2+1v7vhENFl2LS/aI/X9lRBtL8ulkYDPaqzvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LpZGAz2qs7+s6/Gj+Huyv7IR01qaTbG/dIzOzyMfsL8xwtVVLeGtv5mInCjpg6u/PY54aH4mqb96Cidm8MimvwehlnJCa6S/373i3ncNor+42534J1+fv0V0hDg0o5q/rvyEIBvnlb9Xh99T4yqRvxtj/usm3Yi/YWTDqcjIfr/nPM6mMK5nvxmCGXGialw/WCxcll8Mej+Mof8F+X6GPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jKH/Bfl+hj93LUekUjuLP0TwQ7ei948/lD8Jy/NZkj9Lq+nLD7iUP5K61YkkFpc/OXtiMDF0mT8KzSfrNNKbPze0wOUuMJ4/Zs7lJQ9HoD8RVHUkAXahPyP9YQTtpKI/Nv+AW9LToz8p2qm/sAKlP9t+tsaHMaY/2XCDBldgpz+V7+8UHo+oPxQY3ofcvak/pAsz9ZHsqj+HFtfyPRusPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hxbX8j0brD8m0rUW4EmtP7xLvvZ3eK4/BSvjKAWnrz8zao2hw2qwP8zHr+3+AbE/KdfXQzSZsT/51gZvYzCyP00wQDqMx7I/cYeJcK5esz82z+rcyfWzP0dcbkrejLQ/OPYghOsjtT/V6hFV8bq1P2whU4jvUbY/oiv56OXotj/2WRtC1H+3P5PM0166Frg/mIY/CpituD9dgX4PbUS5Pw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"XYF+D21EuT+EvbM5Odu5PzdWBVT8cbo/cpScKbYIuz8JAKaFZp+7P+lyUTMNNrw/XSzS/anMvD/N4V6wPGO9Pz3TMRbF+b0/E9yI+kKQvj9LhqUotia/P7odzWsevb8/g2Ckx70pwD9xujKv5nTAP6EbOtIJwMA/DAhlFicLwT/jEmBhPlbBP+bm2ZhPocE/BVCDolrswT/xRA9kXzfCPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8UQPZF83wj+4tqWlVc3CP+ydYYsxY8M/vE8sQ/L4wz8ePBX7lo7EP54TU+EeJMU/t+1EJIm5xT85bnPy1E7GP6rrkXoB5MY/NZR/6w15xz8Wk0h0+Q3IPww1J0TDosg/wA2Fimo3yT+4G/x27svJP7vsVzlOYMo/NsGWAYn0yj+RsOr/nYjLPwrMumSMHMw/+EGkYFOwzD8IgHsk8kPNPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"CIB7JPJDzT9FiBBWjrLNPxbudxwTIc4/nr6KIICPzj/ZwzQL1f3OP1DIdIURbM8/rdxcODXazz+pTYnmHyTQP9e2Z3YYW9A/JGhwIASS0D9mS1S54sjQP5WYzhW0/9A/bfekCng20T/0oadsLm3RP1mGsRDXo9E/ymioy3Ha0T/fBX1y/hDSPxI0K9p8R9I/Jwa61+x90j+V7DtATrTSPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"lew7QE600j+Dt9QnufzSP5e0I3EJRdM/jVzItj6N0z9tB4iTWNXTPz16TqJWHdQ/znQufjhl1D8EP2LC/azUP282TAqm9NQ/I1t38TA81T+n3JcTnoPVP1amiwztytU/GOxaeB0S1j9OtjjzLlnWP9VtgxkhoNY/fGfFh/Pm1j/Jb7XapS3XP+5VN683dNc/2nZcoqi61z+tR2RR+ADYPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"rUdkUfgA2D97w42QEyTYP4XgvFkmR9g/BsKmoDBq2D99hgNZMo3YPyZMjnYrsNg/dDUF7RvT2D/ybCmwA/bYPwkqv7PiGNk/37SN67g72T/Nal9Lhl7ZP9LCAcdKgdk/gFFFUgak2T9yzf3guMbZP7UTAmdi6dk/rCss2AIM2j/AS1komi7aP0HdaUsoUdo/zoBBNa1z2j+9EsfZKJbaPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vRLH2SiW2j8Ir+Qsm7jaP7C1hyIE29o/Is+grmP92j8g8CPFuR/bPyFeCFoGQts/tbNIYUlk2z9W5OLOgobbPxRB2JayqNs/XnwtrdjK2z9oruoF9ezbP4JZG5UHD9w/823OThAx3D9XThYnD1PcP/fTCBIEddw/jlK/A++W3D/snFbwz7jcP7oI78um2tw/z3KsinP83D+EQ7YgNh7dPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hEO2IDYe3T+CcjeC7j/dPxaLXqOcYd0/fLBdeECD3T+zoWr12aTdP8O9vg5pxt0/CgiXuO3n3T/9KzTnZwneP66B2o7XKt4/jxHSozxM3j+xmGYal23ePwyN5+bmjt4/QiGo/Suw3j/jSP9SZtHeP6m8R9uV8t4/Lv7firoT3z9uXCpW1DTfP3v3jDHjVd8/sMRxEed23z/zkkbq35ffPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"85JG6t+X3z8gKenWh/rfPxLZcHJlLuA/ovYe71Nf4D/DyybHDpDgP6Yc02CVwOA/I3gTI+fw4D9ZGn51AyHhP4zNUcDpUOE/zsh3bJmA4T+QjIXjEbDhPxq9vo9S3+E/1voW3FoO4j93uDM0Kj3iP+sObgTAa+I/E4/UuRua4j9bES3CPMjiP9KC9osi9uI/OLBqhswj4z+mDoAhOlHjPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pg6AITpR4z9XLnJiYW/jP/pdXWRtjeM/SiAi/V2r4z95ZccCM8njP/LFekvs5uM/Br2QrYkE5D8944T/CiLkP7Eo+hdwP+Q/8g67zbhc5D/V4rn35HnkP+z1EG30luQ/AdgCBeez5D8WkPqWvNDkP1zVi/p07eQ/v0dzBxAK5T+EqJaVjSblP2MSBX3tQuU/kzH3lS9f5T95e8+4U3vlPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eXvPuFN75T/aL5yBWonlP1BmGr5Zl+U/30ZiaVGl5T9soI5+QbPlP4nqvPgpweU/N0cN0wrP5T93hKII5NzlPy0eopS16uU/pz80cn/45T9kxYOcQQbmP9Y+vg78E+Y/8u8TxK4h5j/u0re3WS/mPwCa3+T8POY/6rDDRphK5j/PPp/YK1jmP7YnsJW3ZeY/Sw43eTtz5j+YVXd+t4DmPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"mFV3freA5j+IIregK47mP6ddP9uXm+Y/1LRbKfyo5j/InFqGWLbmP85Sje2sw+Y/c95HWvnQ5j8EE+HHPd7mP2CRsjF66+Y/b8kYk6745j/R+3Ln2gXnP5Q7Iyr/Euc/rG+OVhsg5z+hVBxoLy3nPz5+N1o7Ouc/BllNKD9H5z/3K87NOlTnP/8ZLUYuYec/pyPgjBlu5z+2KGCd/HrnPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"tihgnfx65z+o6Shz14fnP1YJuQmqlOc/mQ6SXHSh5z+7ZThnNq7nPxtiMyXwuuc/0D8NkqHH5z8RJVOpStTnP+8jlWbr4Oc/vjtmxYPt5z+2WlzBE/rnP4hfEFabBug/zhoefxoT6D+lUCQ4kR/oP0K6xHz/K+g/WgekSGU46D/Q32mXwkToPxXlwGQXUeg/wLNWrGNd6D8f5dtpp2noPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"H+Xbaadp6D9QNd75/HvoP32zGjs/jug/oWArH26g6D/ngrmXibLoP8uwfZaRxOg/iNw/DYbW6D8lX9ftZujoP8IDKyo0+ug/qhIxtO0L6T9QXO99kx3pP39Ee3klL+k/Js35mKNA6T9qoZ/ODVLpP3ggsQxkY+k/SGiCRaZ06T+MYHdr1IXpP0HFA3Huluk/hDGrSPSn6T8SKgHl5bjpPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EioB5eW46T9e3Y9eJsTpP9wlUdBdz+k/IqNWNoza6T9VILWMseXpP5aVhM/N8Ok/bing+uD76T8NMuYK6wbqP8k2uPvrEeo/W/F6yeMc6j9FT1Zw0ifqPzpzdey3Muo/V7YGOpQ96j+PqTtVZ0jqPwQXSToxU+o/RANn5fFd6j+9rtBSqWjqP+6WxH5Xc+o/yHeEZfx96j8MTVUDmIjqPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"DE1VA5iI6j88QC3/b5jqPxk0EAIzqOo/5UCQ/+C36j+RElDrecfqP13yArn91uo/rdBsXGzm6j+JTmLJxfXqP1nHyPMJBes/YlqWzzgU6z819NFQUiPrPz9Yk2tWMus/DioDFEVB6z/B9lo+HlDrP0Y+5d7hXus/iHz96Y9t6z++MhBUKHzrP2bwmhGrius/f1wsFxiZ6z9oPmRZb6frPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aD5kWW+n6z+9uBa+8rDrP3XORG5suus/ZFmcZtzD6z8+m86jQs3rP9A+kCKf1us/MlmZ3/Hf6z/SaqXXOunrP7Rgcwd68us/hJXFa6/76z+70mEB2wTsP9JREcX8Dew/Sb2gsxQX7D/SMeDJIiDsP3s/owQnKew/sOrAYCEy7D9zrRPbETvsP2B4eXD4Q+w/y7PTHdVM7D/qQAfgp1XsPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6kAH4KdV7D/RevyzcF7sP5Q3n5YvZ+w/ZsnehORv7D+X/617j3jsP64nA3gwgew/iA7YdseJ7D9LASp1VJLsP5TO+W/Xmuw/ZsdLZFCj7D9GwCdPv6vsP00SmS0ktOw/HJyu/H687D/vwnq5z8TsP69zE2EWzew/3COS8FLV7D+x0hNlhd3sPw4Kubut5ew/gt+l8cvt7D9W9QEE4PXsPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VvUBBOD17D+liuqSvBntPwWkOprKPO0/4JcoIQlf7T/YZas0d4DtP5BzgecToe0/fiA3Ut7A7T+fMC2T1d/tP7ANn874/e0/3t6oLkcb7j/Ydk3jvzfuP+AXfCJiU+4/6g0WKC1u7j9tHvQ1IIjuPwTO65M6oe4/a3vUj3u57j/lT4x94tDuP/AE/bZu5+4/934gnB/97j8APQWT9BHvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AD0Fk/QR7z8YI3fAdxbvP8hjpQjwGu8/hvP+aV0f7z/hmPbivyPvPxTtAnIXKO8/llyeFWQs7z+RJ0fMpTDvP3xif5TcNO8/kvbMbAg57z9forlTKT3vP0X60kc/Qe8/82iqR0pF7z/wL9VRSknvPxdo7GQ/Te8/EQKNfylR7z/axlegCFXvPzFY8cXcWO8/GzEC76Vc7z9XpjYaZGDvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6Y2GmRg7z/W5j5GF2TvPy/8znG/Z+8/Gsuem1xr7z/XE2rC7m7vP6py8OR1cu8/S2D1AfJ17z9LMkAYY3nvP5AbnCbJfO8/tCzYKySA7z92VMcmdIPvPyhgQBa5hu8/DPwd+fKJ7z/Csz7OIY3vP7PyhJRFkO8/ZQTXSl6T7z/uFB/wa5bvP04xS4Nume8/ykdNA2ac7z9YKBtvUp/vPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WCgbb1Kf7z/xhK7FM6LvP+7xBAYKpe8/a+YfL9Wn7z+WvARAlarvPwqyvDdKre8/K+hUFfSv7z90ZN7XkrLvP9AQbn4mte8/5rscCK+37z9vGQd0LLrvP4nCTcGevO8/+zUV7wW/7z+K2IX8YcHvP0b1y+iyw+8/yb0Xs/jF7z+PSp1aM8jvPzGblN5iyu8/spY5PofM7z/CC8x4oM7vPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wgvMeKDO7z8+MIppsdHvP7/vzEKp1O8/2hc9AojX7z9jQZelTdrvPy/Sqyr63O8/1/5ej43f7z9ZzKjRB+LvP7gRle9o5O8/gXlD57Dm7z9Lg+e23+jvPyCFyFz16u8/1qxB1/Hs7z9gAcIk1e7vPwdkzEOf8O8/lJH3MlDy7z90I+7w5/PvP7+Qbnxm9e8/Ni9L1Mv27z82NGr3F/jvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NjRq9xf47z/hR8xi5/jvP4Nbjpmr+e8/W6prm2T67z8kXSNoEvvvPyyKeP+0++8/ZjUyYUz87z+FUBuN2PzvPwW7AoNZ/e8/R0K7Qs/97z+WoRvMOf7vPz+C/h6Z/u8/l3tCO+3+7z8ME8ogNv/vPyq8e89z/+8/qthBR6b/7z9zuAqIzf/vP6eZyJHp/+8/oahxZPr/7z8AAAAAAADwPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"}]],[\"arc_ys\",[{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAAACTWMskwfFiP8fm7dK98XI/h2e8b5RqfD8onXuLsPGCPz70YzsQroc/Z1GunmdqjD/TWjqGWpOQP8RP6m178ZI/DND3sZVPlT/a9/V9qK2XP4SBev2yC5o/8Q8eXLRpnD8ReXzFq8eePySImjLMkqA/cXh1s7zBoT89pCL7pvCiP7bQd5+KH6Q/oRZNNmdOpT+KB31VPH2mPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"igd9VTx9pj/50uSSCaynP6prZITO2qg/t6zev4oJqj/NfjnbPTirP179XWznZqw/y5s4CYeVrT+TSrlHHMSuP32c072m8q8/5XW/AJOQsD+sP1vUzCexP+XXvKQAv7E/WgbmPC5Wsj/ewNpnVe2yP949ofB1hLM/+AZCoo8btD+AC8hHorK0PxyzQKytSbU/TfC7mrHgtT/3UkzerXe2Pw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"91JM3q13tj/5GgdCog63P7JKBJGOpbc/i7lelnI8uD+EJjQdTtO4P75KpfAgark//OvV2+oAuj8y7+ypq5e6PwZrFCZjLrs/V7p5GxHFuz+8jk1VtVu8PwoDxJ5P8rw/1a0Uw9+IvT/vs3qNZR++P+XaNMngtb4/gJuFQVFMvz8+NLPBtuK/P+bdg4qIPMA/wJloA7CHwD/rzDCx0dLAPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"68wwsdHSwD8tSW4feUPBPwLXlvAStME/9yvfy54kwj/Y/4ZYHJXCP7hS2T2LBcM/2bIsI+t1wz+hguOvO+bDP3I+bIt8VsQ/iMJBXa3GxD/FkOvMzTbFP3UW/oHdpsU/BvIaJNwWxj++OPFayYbGP1W8Pc6k9sY/mFDLJW5mxz/2EHMJJdbHPwOmHCHJRcg/7Iq+FFq1yD/qUl6M1yTJPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6lJejNckyT9FmtltfN7JP7ZV6aTol8o//l1jmxpRyz+aJZ27EArMP1Qxb3DJwsw/wo84JUN7zT+dT+JFfDPOP+P04j5z684/zexBfSajzz88gE03Si3QPzLjkMDdiNA/QYnSEU3k0D+JMslilz/RPwSsfOu7mtE/lIVH5Ln10T9Rx9iFkFDSPyCmNQk/q9I/lTe7p8QF0z8LJSCbIGDTPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"CyUgmyBg0z9AaCHbVszTPzP3I6hOONQ/E/eXrQak1D/ZuraXfQ/VPwnzhhOyetU/7trgzqLl1T84Y3J4TlDWPwJaw7+zutY/I5A5VdEk1z/A+xzqpY7XPyLYmzAw+Nc/n8LO225h2D+71LyfYMrYP0C7XzEEM9k/asqnRlib2T8AD4CWWwPaP1dc0tgMa9o/OFeLxmrS2j+LfZ4ZdDnbPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"i32eGXQ52z/h1I6j2GzbP88qCo0noNs/laWarWDT2z9DmdvcgwbcP5KnefKQOdw/tt8yxods3D8V3tYvaJ/cP/3rRgcy0tw/Sh92JOUE3T/weWlfgTfdP5MJOJAGat0/7wYLj3Sc3T9O9R00y87dP9/BvlcKAd4/BONN0jEz3j+Sdz58QWXePwFmFi45l94/j3tuwBjJ3j9Ki/IL4PrePw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"SovyC+D63j/TvI0xJV7fPwChx2UHwd8/K/tbuMIR4D+qNdkNz0LgPzA5pRioc+A/7IirPk2k4D8BWHvmvdTgP5NtSXf5BOE/sAbyWP804T86tvrzzmThP7RClLFnlOE/9YGc+8jD4T+3MqA88vLhP//T3N/iIeI/XXpCUZpQ4j/sonX9F3/iPycE0VFbreI/eVxnvGPb4j+DPgWsMAnjPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"gz4FrDAJ4z9e+4Rr5EXjP/ZRtRcsguM/24+PXga+4z9sdXLwcfnjP++PKYBtNOQ/B4b0wvdu5D9yVo5wD6nkP9SINEOz4uQ/clCu9+Eb5T+2oFNNmlTlP0UzFAbbjOU/mn9+5qLE5T/go8a18PvlPwU/zT3DMuY/uzsmSxlp5j9njB+t8Z7mP7jXxzVL1OY/2hX1uSQJ5z8HHksRfT3nPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Bx5LEX095z9whU5weFfnP2skQhZTcec/Dj7n3gyL5z8iKC2mpaTnP6h9MUgdvuc/NlFAoXPX5z/2XtSNqPDnP3s+l+q7Ceg/SZRhlK0i6D8cQztofTvoP++cW0MrVOg/wJMpA7ds6D8P6juFIIXoPx5jWadnneg/6vJ4R4y16D/j7cFDjs3oP104jHpt5eg/wXVgyin96D95N/gRwxTpPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eTf4EcMU6T+QKz4wOSzpPxpLTgSMQ+k/Tgh2bbta6T9bfDRLx3HpP/qUOn2viOk/ukFr43Of6T8FodtdFLbpP94s08yQzOk/W+fLEOni6T/ThnIKHfnpP82hpposD+o/ntp6ohcl6j/JCjUD3jrqPxFuTp5/UOo/Qc1zVfxl6j+1qIUKVHvqP5FimJ+GkOo/t2j09pOl6j9pXhbze7rqPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aV4W83u66j/m1sbl4cTqP7FFr3Y+z+o/mAAuopHZ6j9yqKRk2+PqP2oqeLob7uo/OMEQoFL46j9w9tkRgALrP7ijQgykDOs/EfS8i74W6z8MZb6MzyDrPxXIvwvXKus/oUM9BdU06z91VLZ1yT7rP9jOrVm0SOs/1N+prZVS6z9kDjRubVzrP7U82Zc7Zus/VKkpJwBw6z9m8LgYu3nrPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ZvC4GLt56z+65dBzQYjrP8CS1hiylus/geNm/Ayl6z/56y8TUrPrP/vw8FGBwes/F3F6rZrP6z9oLa4ant3rP1syf46L6+s/auDx/WL56z+79BteJAfsP8SRJKTPFOw/00dExWQi7D+WHcW24y/sP4SYAm5MPew/RsVp4J5K7D8PQHkD21fsP+A8wcwAZew/y4/jMRBy7D8VtZMoCX/sPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FbWTKAl/7D8KEBGnoofsP4nPyyUykOw/tOHDobeY7D/dtvwXM6HsP5NCfYWkqew/rfxP5wuy7D9S4oI6abrsPwB3J3y8wuw/m8VSqQXL7D9mYR2/RNPsPxNno7p52+w/wH0EmaTj7D/912NXxevsP8Y06PLb8+w/jeC7aOj77D8utgy26gPtP/QfDNjiC+0/jxjvy9AT7T8TLO6OtBvtPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EyzujrQb7T/veEUejiPtP+SwNHddK+0/ARr/liIz7T+Qj+t63TrtPxWDRCCOQu0/N/1XhDRK7T+5nnek0FHtP2ah+H1iWe0/A9kzDupg7T88tIVSZ2jtP5E9Tkjab+0/Qhzx7EJ37T83ldU9oX7tP+yLZjj1he0/V4MS2j6N7T/PnksgfpTtP/Gihwizm+0/g/Y/kN2i7T9Yo/G0/antPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WKPxtP2p7T+dZEfLHrjtP6UTujcWxu0/7EW15uPT7T/6FN/Eh+HtP4U5GL8B7+0/PCZ8wlH87T9FImG8dwnuP2pjWJpzFu4/6ycuSkUj7j8I0Om57C/uPy33zddpPO4/1IxYkrxI7j8T7ULY5FTuP834gZjiYO4/nS1GwrVs7j9mvftEXnjuP4ylShDcg+4/48UWFC+P7j9E939AV5ruPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"RPd/QFea7j+u1QlB25/uP8oh4oVUpe4/mb4dDcOq7j/FUtXUJrDuP1ZJJdt/te4/UNItHs667j9l4xKcEcDuP5Q4/FJKxe4/11QVQXjK7j++go1km8/uPxnVl7uz1O4/lSdrRMHZ7j9eH0L9w97uP8ArW+S74+4/wYb496jo7j+9NWA2i+3uPwgK3J1i8u4/e6G5LC/37j8ZZ0rh8PvuPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"GWdK4fD77j+fk+O5pwDvPxku3rRTBe8/egyX0PQJ7z8s1G4Liw7vP6T6yWMWE+8/78UQ2JYX7z9GTa9mDBzvP5R5FQ53IO8/Cga3zNYk7z+kgAuhKynvP7dKjol1Le8/dpm+hLQx7z96dh+R6DXvP0nAN60ROu8/1yqS1y8+7z8LQL0OQ0LvP0FgS1FLRu8/yMLSnUhK7z9jdu3yOk7vPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Y3bt8jpO7z/FYTlPIlLvPwxEWLH+Ve8/QLXvF9BZ7z/JJqmBll3vP+fjMe1RYe8/KRI7WQJl7z/ksXnEp2jvP6aepi1CbO8/qI9+k9Fv7z8/GML0VXPvP06oNVDPdu8/tIyhpD167z+279HwoH3vP2/ZljP5gO8/OzDEa0aE7z8auTGYiIfvPx8Yu7e/iu8/1NA/yeuN7z+cRqPLDJHvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"nEajywyR7z8bvcy9IpTvP5ZYp54tl+8/Vx4ibS2a7z8G9S8oIp3vPxGlx84LoO8/AdnjX+qi7z/XHYPavaXvP2njpz2GqO8/u3xYiEOr7z9SIJ+59a3vP4/oidCcsO8/AdQqzDiz7z+6xZerybXvP56F6m1PuO8/usBAEsq67z+MCbyXOb3vP1bYgf2dv+8/Z4u7QvfB7z9pZ5ZmRcTvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aWeWZkXE7z+sl0NoiMbvP2ou+EbAyO8/ECXtAe3K7z+GXF+YDs3vP3Kdjwklz+8/eZjCVDDR7z+D5kB5MNPvP/sIV3Yl1e8/DmpVSw/X7z/nXJD37djvP+wdYHrB2u8/+9Ig04nc7z+fizIBR97vP01B+QP53+8/ldfc2p/h7z9eHEmFO+PvPxXIrQLM5O8/331+UlHm7z/QyzJ0y+fvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0MsydMvn7z9qKSuv7envP+qai7/26+8/jjq5o+bt7z9M/Cxave/vPwmvc+F68e8/vv0tOB/z7z+LcBBdqvTvP8Bt404c9u8/zTqDDHX37z8w/d+UtPjvP0S7/eba+e8/C130Aej67z/lrO/k2/vvPzhYL4+2/O8/BPAGAHj97z9w6d02IP7vP0CeLzOv/u8/PE2L9CT/7z+MGpR6gf/vPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jBqUeoH/7z8VrKOX1f/vP4nkf9j8/+8/VrzxPPf/7z/+DwHFxP/vPxWg9HBl/+8/1xBSQdn+7z9w6d02IP7vP+qSm1I6/e8/vFbNlSf87z8LXfQB6PrvP42q0Jh7+e8/Ex5hXOL37z+/beNOHPbvP98j1HIp9O8/cZvuygny7z9M/Cxave/vP/c2yCNE7e8/IwA4K57q7z/QyzJ0y+fvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0MsydMvn7z9YQFEQkOXvP14cSYU74+8//crw1M3g7z+fizIBR97vP3RwDAyn2+8/5lyQ9+3Y7z/1A+TFG9bvP4LmQHkw0+8/lVH0EyzQ7z+FXF+YDs3vPx7n9gjYye8/rJdDaIjG7z/92OG4H8PvP1XYgf2dv+8/S4PnOAO87z+dheptT7jvP/NGdp+CtO8/juiJ0Jyw7z/vQjgEnqzvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"70I4BJ6s7z+HKR5G5qnvP6uCFG8jp+8/ogkTgFWk7z8LXRV6fKHvP4X+Gl6Ynu8/VFInLamb7z8Ln0HorpjvPyoNdZCple8/w6bQJpmS7z8dV2esfY/vP0zqTyJXjO8/3AyliSWJ7z9hS4Xj6IXvPxsSEzGhgu8/i6x0c05/7z8TRdSr8HvvP4LkX9uHeO8/uHFJAxR17z8uscYklXHvPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LrHGJJVx7z9BPQhv1mbvP2Fwfay0W+8/O0BDADBQ7z9boq6OSETvP4oZTH3+N+8/Yj/f8lEr7z8JSmIXQx7vPxKOBRTSEO8/mPwuE/8C7z97nXlAyvTuP9sFtcgz5u4/ucrk2TvX7j/Y7z+j4sfuP81SMFUouO4/RxJSIQ2o7j+Y8XI6kZfuP3C4kdS0hu4/4Y7dJHh17j+VVbVh22PuPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"lVW1Ydtj7j+YOyYK6VruP1X6psLeUe4/04xYkrxI7j/LyG6Agj/uPwJZMJQwNu4/h7f21MYs7j/qJy5KRSPuP1yxVfurGe4/zhj/7/oP7j/z2s4vMgbuPzomfMJR/O0/u9TQr1ny7T8QZqn/SejtPyL59Lki3u0/6kW15uPT7T8fl/6NjcntP9bD97cfv+0/FCnabJq07T9Wo/G0/antPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VqPxtP2p7T8CiJyYSZ/tP82eSyB+lO0/GRuCVJuJ7T81ldU9oX7tP6ID7uSPc+0/OrSFUmdo7T9ORWmPJ13tP7eed6TQUe0/2OqhmmJG7T+Oj+t63TrtPxknak5BL+0/7XhFHo4j7T98crfzwxftP/EfDNjiC+0/3KSh1Or/7D/FNOjy2/PsP8kLYjy25+w/EWejunnb7D9IfVJ3Js/sPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"SH1SdybP7D9P4oI6abrsP4RzAxBtpew/h8/LJTKQ7D85CF2quHrsP948wcwAZew/EDOLvApP7D+M7tWp1jjsP9JHRMVkIuw/m4EAQLUL7D8m3btLyPTrP2Qtrhqe3es/8WiV3zbG6z/vOrXNkq7rP72S1hiylus/hzJH9ZR+6z+yPNmXO2brPzDA4jWmTes/nkM9BdU06z9bT0U8yBvrPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"W09FPMgb6z+aU5Z7shHrP0pPMz6TB+s/TW6oh2r96j93LoVbOPPqP1JeXL386Oo/3hvEsLfe6j9W01U5adTqP+E9rloRyuo/U2BtGLC/6j/piTZ2RbXqPwdTsHfRquo/5JuEIFSg6j9Ni2B0zZXqP1KN9HY9i+o/ClL0K6SA6j8yzBaXAXbqP+8vFrxVa+o/d/GvnqBg6j/Pw6RC4lXqPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"z8OkQuJV6j9ml7irGkvqP9GYst1JQOo/ey9d3G816j9C/IWrjCrqPy/Y/U6gH+o/GNOYyqoU6j9SMi4irAnqP0xvmFmk/uk/Pja1dJPz6T/HZGV3eejpP58IjWVW3ek/J14TQyrS6T8Zz+IT9cbpPyDx6Nu2u+k/goQWn2+w6T+ycl9hH6XpP/TMuibGmek/+coi82OO6T98yZTK+ILpPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fMmUyviC6T8fiMjPRWbpPzXm4zFbSek/jSs+MDks6T9n9KcK4A7pP7elagFQ8eg/R+BHVYnT6D/m8nhHjLXoP4VLrhlZl+g/VecODvB46D/dwTdnUVroPxdDO2h9O+g/eqygVHQc6D8VhWNwNv3nP6ME8//D3ec/pX0xSB2+5z96xnOOQp7nP46hgBg0fuc/bSSQLPJd5z8CHksRfT3nPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ah5LEX095z/KpsMnczDnP/KKpB1hI+c/soCC90YW5z/VFfW5JAnnPyKulmn6++Y/vYEEC8ju5j+Vm96ijeHmP7PXxzVL1OY/peFlyADH5j/XMmFfrrnmP/4QZf9TrOY/YowfrfGe5j9IfkFth5HmP0aHfkQVhOY/pw2NN5t25j+2OyZLGWnmPyH+BYSPW+Y/SQLr5v1N5j+jtJZ4ZEDmPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"o7SWeGRA5j8AP809wzLmP+iGVTsaJeY/8yv5dWkX5j8QhoTysAnmP9yjxrXw++U/8kiRxCju5T9D7LgjWeDlP1O2FNiB0uU/lX9+5qLE5T+wztJTvLblP9fW8CTOqOU/AXa6Xtia5T9BMxQG24zlPwc95R/WfuU/dmcXsclw5T+ZKpe+tWLlP7GgU02aVOU/fIQ+YndG5T99L0wCTTjlPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fS9MAk045T9rUK734RvlP2T0UFVZ/+Q/zIg0Q7Pi5D9/v4Lp78XkP2pWjnAPqeQ/Id/SABKM5D//hfTC927kP0vZv9/AUeQ/548pgG005D8FUE7N/RbkP2V1cvBx+eM/mNcBE8rb4z/Uj49eBr7jP8O+1fwmoOM/71G1FyyC4z8fyTXZFWTjP1f7hGvkReM/ztv2+Jcn4z98PgWsMAnjPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fD4FrDAJ4z9BRKGsUfLiP3FcZ7xj2+I/lWhs7WbE4j8fBNFRW63iPx92wftAluI/5aJ1/Rd/4j+2/TBp4GfiP1Z6QlGaUOI/m34EyEU54j/409zf4iHiP/eYPKtxCuI/rzKgPPLy4T8xPo+mZNvhP+yBnPvIw+E/Cd9lTh+s4T+uQpSxZ5ThP2CX2zeifOE/M7b6885k4T8DWLv47UzhPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"A1i7+O1M4T/GcxoR+zzhP6L+0h4CLeE/GA5+JwMd4T+507Yw/gzhPz2bGkDz/OA/hshIW+Ls4D+y1eKHy9zgPxBRjMuuzOA/MtvqK4y84D/uJKauY6zgP23tZ1k1nOA/HADcMQGM4D+9MrA9x3vgP2RjlIKHa+A/gnY6BkJb4D/WVFbO9krgP3rpneClOuA/2h/JQk8q4D/D4ZH68hngPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"w+GR+vIZ4D9KFbQNkQngP6s12wNT8t8/TZb8uXjR3z936k9Jk7DfP7u4XL2ij98/JWyuIadu3z9KUNSBoE3fPxKNYemOLN8/ySLtY3IL3z/45RH9SureP3x7bsAYyd4/PVSludun3j9AqVz0k4beP353PnxBZd4/7Hv4XORD3j85LzyifCLeP9DBvlcKAd4/rhc5iY3f3T9pxGdCBr7dPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"acRnQga+3T/eBguPdJzdPzPF5nrYet0/xIjCETJZ3T/eeWlfgTfdP7Rbqm/GFd0/L4hXTgH03D/q60YHMtLcP9oBUqZYsNw/Ss9VN3WO3D+h3zLGh2zcP1NAzV6QStw/kHwMDY8o3D8ymdvcgwbcP4IQKdpu5Ns/I87mEFDC2z+9KgqNJ6DbP+Tni1r1fds/2itohblb2z93fZ4ZdDnbPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"d32eGXQ52z/KvzEjJRfbP/otKK7M9No/IleLxmrS2j/xGWh4/6/aP4qgzs+Kjdo/QFzS2Axr2j9yAYqfhUjaPyiDDzD1Jdo/7g6AllsD2j+KCPzeuODZP9YFpxUNvtk/V8qnRlib2T8TQyh+mnjZP0OCVcjTVdk/K7tfMQQz2T+nPXrFKxDZPwNy25BK7dg/pNS8n2DK2D/d8Vr+bafYPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"3fFa/m2n2D+165Xc8XLYPx+3LHNiPtg/uOqR678J2D+OMEdvCtXXP2kl3SdCoNc/5zfzPmdr1z/ahzfeeTbXP0XFZi96Adc/gA9MXGjM1j9A1MCORJfWP5eurPAOYtY/60UFrMcs1j/YLM7qbvfVPxrAGNcEwtU/XAUEm4mM1T/sibxg/VbVP6JBfFJgIdU/dGWKmrLr1D8sUjtj9LXUPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LFI7Y/S11D8CZ/DWJYDUPy/kFyBHStQ/gMksaVgU1D/LtLbcWd7TP3fASaVLqNM/wWGG7S1y0z9TRxngADzTP343u6fEBdM/je4wb3nP0j8P/UphH5nSPxGm5ai2YtI/Vb3ocD8s0j96hUfkufXRPxyOAC4mv9E/+pEdeYSI0T/eVLPw1FHRP9yB4b8XG9E/KYnSEU3k0D8ffrsRda3QPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"H367EXWt0D8Fsjft71HQPzyaCBKO7M8/T1nRW/Y0zz87ifFJGn3OP8rOJm/7xM0/DhnBXpsMzT8kLp+s+1PMP4A2K+0dm8s/EEdXtQPiyj8g6pmarijKP3in6jIgb8k/tYq+FFq1yD80qQTXXfvHP6CmIhEtQcc/jjjxWsmGxj8NqbhMNMzFP4tYLX9vEcU/Oj5si3xWxD8jaPcKXZvDPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"I2j3Cl2bwz8st96Gd1DDP3pS2T2LBcM/iXwpSpi6wj/QzRPGnm/CP8Ur38ueJMI/ib/UdZjZwT/z7D/ei47BP/hIbh95Q8E/spCvU2D4wD8JoFWVQa3AP7dotP4cYsA/sughqvIWwD9XQuxjhZe/P3caFmEaAb8/vDF5gKRqvj+zLtH2I9S9P3903fiYPb0/IhBhuwOnvD95piJzZBC8Pw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eaYic2QQvD//YOxUu3m7P63bi5UI47o/2RLSaUxMuj/xT5MGh7W5P3oXp6C4Hrk/SBbobOGHuD96DzSgAfG3PzHJa28ZWrc/ifpyDynDtj/QODC1MCy2P3jljJUwlbU/0Rp15Sj+tD/5mdfZGWe0PxG4pacD0LM/LEzTg+Y4sz8EnFajwqGyP+RJKDuYCrI/4EFDgGdzsT+6p6SnMNywPw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"uqekpzDcsD+3SblHHMSuP/3Us9uTz6s/4WpkhM7aqD/h9Xu70uWlP0ejIvum8KI/6mLTe6P2nz+8f3r9sguaP9s5rHGJIJQ/IU6unmdqjD8i35QbfpOAP6VIyyTB8WI/zJwGpJ9qbL/aoHuLsPGCv/dE0K6PyI6/v9H3sZVPlb/1wC7etDqbvyuJmjLMkqC/O8haqBmIo79+CH1VPH2mvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fgh9VTx9pr/d0+SSCaynv71sZITO2qi/ua3ev4oJqr+/fznbPTirv0D+XWznZqy/3Jw4CYeVrb+SS7lHHMSuv22d072m8q+/VXa/AJOQsL8zQFvUzCexv2TYvKQAv7G/0QbmPC5Wsr9NwdpnVe2yv2U+ofB1hLO/dQdCoo8btL/2C8hHorK0v4qzQKytSbW/0vC7mrHgtb90U0zerXe2vw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"dFNM3q13tr8Pul6Wcjy4v4bs1dvqALq/ybp5GxHFu79NrhTD34i9vwCchUFRTL+/A5poA7CHwL+kxhlCA2nBv4rWGJYfSsK/uYVVOQIrw7/oiHVmqAvEv0dL3VgP7MS/gqm4TDTMxb+2qgN/FKzGvzE2ky2ti8e/Jccdl/tqyL9KHUT7/EnJv5XqmZquKMq/Q36utg0Hy78ybBWSF+XLvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MmwVkhfly7+YLp+s+1PMv5gxb3DJwsy/v/MkhoAxzb8k1nGWIKDNvzFhGUqpDs6/ronxSRp9zr8h9eI+c+vOv7U+6dGzWc+/zjsTrNvHz79LoEE79RrQvz6yN+3vUdC/VeOQwN2I0L8uafyJvr/Qv53BMx6S9tC/wtT6UVgt0b9CFyD6EGTRvySsfOu7mtG//Ib0+ljR0b/hjXb95wfSvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"4Y12/ecH0r+OvehwPyzSv3bH2IWQUNK/bECML9t00r9I/UphH5nSvzgXXw5dvdK/SfAUKpTh0r+3N7unxAXTv5DuonruKdO/CGwflhFO07/5YYbtLXLTvzThL3RDltO/H152HVK6078EtbbcWd7Tv5IuUKVaAtS/JYSkalQm1L9o5BcgR0rUv5n3ELkybtS/CeT4KBeS1L9lUjtj9LXUvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ZVI7Y/S11L/Y4Fz+MrDVv9PVZSX9qNa/mSXdJ0Kg17/Ah2Rv8ZXYvw9S1YD6idm/N4Bb/Ux82r8E1Y6j2Gzbv1QCilCNW9y/M8X/AFtI3b8j403SMTPev6X2jQMCHN+/JfxR+10B4L8/OaUYqHPgv8YmDq/X5OC/WBHOJuVU4b8Fgpz7yMPhvxNUKL17MeK/8HOXD/ad4r+RPgWsMAnjvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"kT4FrDAJ47+JZiGrZxjjv+Lb9viXJ+O/MtsykME2479s+4Rr5EXjv7Evn4UAVeO/NMk12RVk478Fef9gJHPjvwRStRcsguO/pcoS+CyR47/YvtX8JqDjv85xviAar+O/6I+PXga+4796MA6x68zjv6zXARPK2+O/QHg0f6Hq4795dXLwcfnjv96kimE7COS/GVBOzf0W5L+yNpEuuSXkvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"sjaRLrkl5L/7jymAbTTkv9AM8LwaQ+S/X9m/38BR5L8Fn3bjX2DkvxOG9ML3buS/nDcceYh95L8139IAEozkv9AsAFWUmuS/flaOcA+p5L81GmpOg7fkv5K/gunvxeS/sBnKPFXU5L/giDRDs+Lkv3T8uPcJ8eS/ePRQVVn/5L+Gg/hWoQ3lv35QrvfhG+W/SZhzMhsq5b+RL0wCTTjlvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"kS9MAk045b+PhD5id0blv8SgU02aVOW/rCqXvrVi5b+KZxexyXDlvxo95R/WfuW/VDMUBtuM5b8Udrpe2Jrlv+rW8CTOqOW/w87SU7y25b+of37mosTlv2a2FNiB0uW/Vey4I1ng5b8FSZHEKO7lv++jxrXw++W/IoaE8rAJ5r8GLPl1aRfmv/uGVTsaJea/Ez/NPcMy5r+1tJZ4ZEDmvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"tbSWeGRA5r9bAuvm/U3mvzT+BYSPW+a/yTsmSxlp5r+5DY03m3bmv1iHfkQVhOa/Wn5BbYeR5r90jB+t8Z7mvxARZf9TrOa/6TJhX6655r+34WXIAMfmv8XXxzVL1Oa/p5veoo3h5r/PgQQLyO7mvzSulmn6++a/5xX1uSQJ57/EgIL3RhbnvwSLpB1hI+e/3KbDJ3Mw578UHksRfT3nvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FB5LEX0957+wE6nVfkrnv36FTnB4V+e/r02v3Glk5794JEIWU3Hnv6ChgBg0fue/HT7n3gyL57+eVfVk3Zfnvy4oLaalpOe/vdsTnmWx57+2fTFIHb7nv4gEEaDMyue/QlFAoXPX578bMVBHEuTnvwNf1I2o8Oe/JoVjcDb957+HPpfquwnov4IYDPg4Fui/VpRhlK0i6L+tKDq7GS/ovw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"rSg6uxkv6L8rQztofTvov+NJDZfYR+i//JxbQytU6L8TmNRodWDov8yTKQO3bOi/ZucODvB46L8Z6juFIIXov7/0amRIkei/LGNZp2ed6L/ClcdJfqnov/fyeEeMtei/t+gznJHB6L/u7cFDjs3ovw6E7zmC2ei/ZziMem3l6L/HpWoBUPHov891YMop/ei/c2JG0foI6b+FN/gRwxTpvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hTf4EcMU6b8xSJkF5zfpv1wIdm27Wum/wJGx2z996b/JQWvjc5/pv/4QwBhXwem/ZefLEOni6b+O7aphKQTqv6naeqIXJeq/Vj9ca7NF6r9MzXNV/GXqv8ib6/rxheq/xGj09pOl6r/z1sbl4cTqv4CopGTb4+q/efbZEYAC678WZb6MzyDrv39UtnXJPuu/bw40bm1c679x8LgYu3nrvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"cfC4GLt567/C5dBzQYjrv8qS1hiyluu/i+Nm/Ayl678F7C8TUrPrvwXx8FGBweu/InF6rZrP679xLa4ant3rv2Qyf46L6+u/dODx/WL567/E9BteJAfsv86RJKTPFOy/3EdExWQi7L+dHcW24y/sv42YAm5MPey/TcVp4J5K7L8YQHkD21fsv+g8wcwAZey/1I/jMRBy7L8dtZMoCX/svw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HbWTKAl/7L9m2Zam64vsv7zhw6G3mOy/jHMDEG2l7L+1/E/nC7Lsv0+7tR2Uvuy/o8VSqQXL7L/XEVeAYNfsv8Z9BJmk4+y/pNau6dHv7L+T4Lto6Pvsv05eowzoB+2/lRjvy9AT7b+15Tqdoh/tv+qwNHddK+2/roGcUAE37b8bg0QgjkLtvw0LEd0DTu2/bKH4fWJZ7b8zBwT6qWTtvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MwcE+qlk7b9l/mQXImztv6kD7uSPc+2//IwEYPN67b9wrhGGTILtvx8bglSbie2/GCbGyN+Q7b8yw1HgGZjtvwmInJhJn+2/yawh726m7b8fDWDhia3tvxsp2myatO2/BCYWj6C77b88z51FnMLtvyaX/o2Nye2/7ZfJZXTQ7b94lJPKUNftvyn59Lki3u2/xNyJMerk7b9MAfIup+vtvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"TAHyLqfr7b+209AAr/Xtv8GhkjKf/+2/SSJhvHcJ7r/Hs3iWOBPuv1diKLnhHO6/4+3RHHMm7r8M0Om57C/uvzBC94hOOe6/R0OUgphC7r+0nW2fykvuvxftQtjkVO6/9qPmJedd7r92ET6B0Wbuv+1mQeOjb+6/aL37RF547r80G4ufAIHuvz95IOyKie6/hMj/I/2R7r9H939AV5ruvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"R/d/QFea7r9s9go7maLuv5u+HQ3Dqu6/Y1VIsNSy7r9T0i0ezrruv/djhFCvwu6/2lQVQXjK7r9cEL3pKNLuv5Yna0TB2e6/IFYiS0Hh7r/Chvj3qOjuvyvYFkX47+6/faG5LC/37r/ndjCpTf7uvxou3rRTBe+/tOI4SkEM77+m+sljFhPvv3cqLvzSGe+/lnkVDncg7790RkOUAifvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"dEZDlAIn779lP9/yUSvvv+Sn6GSWL++/R5/g6M8z77+NGUx9/jfvv+DfsyAiPO+/IJGk0TpA779doq6OSETvv15fZlZLSO+/G+tjJ0NM7789QEMAMFDvv6MxpN8RVO+/zWoqxOhX779jcH2stFvvv62gSJd1X++/ADQ7gytj779EPQhv1mbvv1mqZll2au+/lEQRQQtu778wscYklXHvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MLHGJJVx779PqDVQz3bvvxVF1Kvwe++/cNmWM/mA779jS4Xj6IXvvyAYu7e/iu+/H1dnrH2P778bvcy9IpTvvwyfQeiumO+/B/UvKCKd778MXRV6fKHvv9cdg9q9pe+/iCkeRuap779SIJ+59a3vvw1T0jHsse+/ucWXq8m1778AMuMjjrnvv4wJvJc5ve+/cng9BMzA779qZ5ZmRcTvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ameWZkXE77+tl0NoiMbvv2ou+EbAyO+/ECXtAe3K77+HXF+YDs3vv3Kdjwklz++/eZjCVDDR77+D5kB5MNPvv/sIV3Yl1e+/D2pVSw/X77/nXJD37djvv+0dYHrB2u+//NIg04nc77+fizIBR97vv01B+QP53++/ldfc2p/h779eHEmFO+PvvxXIrQLM5O+/331+UlHm77/QyzJ0y+fvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0MsydMvn778kADgrnurvv/g2yCNE7e+/TPwsWr3v779xm+7KCfLvv+Aj1HIp9O+/wG3jThz2778THmFc4vfvv42q0Jh7+e+/C130Aej677+8Vs2VJ/zvv+qSm1I6/e+/cOndNiD+77/XEFJB2f7vvxWg9HBl/++//g8BxcT/779WvPE89//vv4nkf9j8/++/FKyjl9X/77+MGpR6gf/vvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jBqUeoH/778MdZuZRv/vv1Abx4EA/++/QJ4vM6/+77/ofPGtUv7vv24kLfLq/e+/BPAGAHj977/fKKfX+fzvvyYGOnlw/O+/5azv5Nv777/5L/waPPvvv/+PlxuR+u+/RLv95tr577+pjW59Gfnvv5LQLd9M+O+/zTqDDHX37794cLoFkvbvv+gCI8uj9e+/i3AQXar077/LJNq7pfPvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"yyTau6Xz77/yd9vnlfLvvwmvc+F68e+/svsFqVTw778NfPk+I+/vv446uaPm7e+/2S20157s77+dOF3bS+vvv2kpK6/t6e+/hLqYU4To77/DkSTJD+fvv1hAURCQ5e+/qUKlKQXk778iAKsVb+Lvv/3K8NTN4O+/GeAIaCHf77+/ZonPad3vv3RwDAyn2++/v/gvHtnZ77/z5JUGANjvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8+SVBgDY77/0A+TFG9bvvwMOxFws1O+/eqTjyzHS77+UUfQTLNDvvzOIqzUbzu+/laPCMf/L778e5/YI2MnvvxB+Cbylx++/SHu/S2jF77/92OG4H8Pvv3F4PQTMwO+/sSGjLm2+779Lg+c4A7zvv/4x4yOOue+/dahy8A2377/zRnafgrTvvwtT0jHsse+/TPduqEqv77/vQjgEnqzvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"70I4BJ6s77+rghRvI6fvvwpdFXp8oe+/VFInLamb778qDXWQqZXvvx1XZ6x9j++/2wyliSWJ778aEhMxoYLvvxNF1Kvwe++/uHFJAxR177+RRBFBC27vv0E9CG/WZu+/qqBIl3Vf77/LairE6FfvvztAQwAwUO+/W19mVktI778ekaTROkDvv4oZTH3+N++/4afoZJYv779xRkOUAifvvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"cUZDlAIn77+TeRUOdyDvv3QqLvzSGe+/o/rJYxYT77+x4jhKQQzvvxcu3rRTBe+/43YwqU3+7r95obksL/fuvyfYFkX47+6/v4b496jo7r8dViJLQeHuv5Ina0TB2e6/WBC96SjS7r/XVBVBeMruv/RjhFCvwu6/T9ItHs667r9fVUiw1LLuv5i+HQ3Dqu6/aPYKO5mi7r9D939AV5ruvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Q/d/QFea7r/jxRYUL4/uv4mlShDcg+6/ZL37RF547r+cLUbCtWzuv8z4gZjiYO6/EO1C2ORU7r/SjFiSvEjuvyv3zddpPO6/CNDpuewv7r/pJy5KRSPuv2ljWJpzFu6/RCJhvHcJ7r88JnzCUfztv4M5GL8B7+2/+RTfxIfh7b/rRbXm49Ptv6UTujcWxu2/m2RHyx647b9Xo/G0/antvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6PxtP2p7b+B9j+Q3aLtv/Gihwizm+2/zp5LIH6U7b9UgxLaPo3tv+uLZjj1he2/NZXVPaF+7b9CHPHsQnftv5A9Tkjab+2/OrSFUmdo7b8C2TMO6mDtv2Sh+H1iWe2/tp53pNBR7b82/VeENErtvxODRCCOQu2/kI/ret067b//Gf+WIjPtv+KwNHddK+2/7nhFHo4j7b8SLO6OtBvtvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EizujrQb7b+NGO/L0BPtv/MfDNjiC+2/LLYMtuoD7b+K4Lto6Pvsv8U06PLb8+y/+tdjV8Xr7L/AfQSZpOPsvxJno7p52+y/Y2Edv0TT7L+axVKpBcvsv/92J3y8wuy/TuKCOmm67L+s/E/nC7Lsv5FCfYWkqey/3bb8FzOh7L+y4cOht5jsv4bPyyUykOy/ChARp6KH7L8UtZMoCX/svw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FLWTKAl/7L+qUVetZXbsv+b4Yji4bey/3jzBzABl7L+mLYBtP1zsvzRYsR10U+y/Q8Vp4J5K7L9Y+MG4v0Hsv43u1anWOOy/lB3FtuMv7L+WcrLi5ibsvw1RxDDgHey/wJEkpM8U7L+bgQBAtQvsv4jgiAeRAuy/a+Dx/WL567/hI3MmK/Drv0C9R4Tp5uu/Zy2uGp7d67+LYujsSNTrvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"i2Lo7EjU679uP1TrDrjrv5mfv3p9m+u/hTJH9ZR+67/WVRq2VWHrv7z1eRnAQ+u/6Wm3fNQl679NTzM+kwfrv1JeXL386Oq/4j2uWhHK6r8HU7B30arqv1ON9HY9i+q/7S8WvFVr6r9kl7irGkvqv0D8hauMKuq/VTIuIqwJ6r/KZGV3eejpvxrP4hP1xum/snJfYR+l6b99yZTK+ILpvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fcmUyviC6b+h65uqB2zpv3zI+ebyVOm/wusJoLo96b9Gqln2Xibpv2r0pwrgDum/Kyjl/T336L8M4zLxeN/ov4DT4wWRx+i/Top7XYav6L+DS64ZWZfov03fYFwJf+i/U2KoR5dm6L8GFsr9Ak7ov4owO6FMNei/e6ygVHQc6L89GM86egPovz1lynZe6ue/0bbFKyHR57/wMCN9wrfnvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8DAjfcK3579fNpKrBqvnv37Gc45Cnue/yEdBKnaR5796B3eDoYTnv+03lJ7Ed+e/9O4agN9q579wJJAs8l3nv4ywe6j8UOe/TEpo+P5D57/oheMg+TbnvyHTfSbrKee/y3vKDdUc578dol/btg/nvwk/1pOQAue/xiDKO2L15r8F6dnXK+jmv3oLp2zt2ua/K8zV/qbN5r/APQ2TWMDmvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wD0Nk1jA5r8CQPctArPmvyd+QNSjpea/Im2Yij2Y5r8aSrFVz4rmv7sYQDpZfea/d6H8PNtv5r8McKFiVWLmv6zR66/HVOa/fdObKTJH5r/cQHTUlDnmv6GhOrXvK+a/lzi30EIe5r+7AbUrjhDmv36wAcvRAua/Qa5tsw315b9yGMzpQeflvwW/8nJu2eW/tiK6U5PL5b87c/2QsL3lvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"O3P9kLC95b++jZovxq/lvw77cTTUoeW/3e1mpNqT5b8sQV+E2YXlv352Q9nQd+W/FbT+p8Bp5b9aw371qFvlv/wOtMaJTeW/VqGRIGM/5b+nIg0INTHlv0DXHoL/IuW/7J3Bk8IU5b8e7vJBfgblvx7WspEy+OS/dvkDiN/p5L//jusphdvkv0RfcXwjzeS/tsKfhLq+5L/Ln4NHSrDkvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"y5+DR0qw5L/BLABVlJrkv7JAFyPOhOS/A4b0wvdu5L90adBFEVnkv70M8LwaQ+S/vTilORQt5L8GUE7N/Rbkv/tAVonXAOS/LXg0f6Hq47+g0mzAW9Tjv9SPj14GvuO/H0Q5a6Gn47+YyhL4LJHjv0E30RapeuO/I8k12RVk478i3A1Rc03jvyLbMpDBNuO/xTGKqAAg47+APgWsMAnjvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"gD4FrDAJ47++f/cA8/niv7CcT6+u6uK/dVxnvGPb4r8b2ZotEsziv6h9SAi6vOK/IwTRUVut4r/ic5cP9p3iv3UfAUeKjuK/5qJ1/Rd/4r/N4V44n2/iv0wFKf0fYOK/V3pCUZpQ4r+07xs6DkHivwJUKL17MeK//9Pc3+Ih4r9n2LCnQxLivzkEHhqeAuK/tjKgPPLy4b9ndbUUQOPhvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Z3W1FEDj4b9bUlIZqcvhv1JtdRUEtOG/egbEG1Gc4b8lYO4+kIThvzuwr5HBbOG/QxHOJuVU4b/KcxoR+zzhv12PcGMDJeG/vdO2MP4M4b8OWt6L6/Tgv7bV4ofL3OC/nYXKN57E4L/5JKauY6zgv2DckP8blOC/xTKwPcd74L8y/jN8ZWPgv95UVs72SuC/yn1bR3sy4L/L4ZH68hngvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"y+GR+vIZ4L9OFbQNkQngv8I12wNT8t+/XZb8uXjR37+A6k9Jk7Dfv8u4XL2ij9+/NWyuIadu379gUNSBoE3fvyKNYemOLN+/0iLtY3IL378P5hH9Surev4x7bsAYyd6/RlSludun3r9QqVz0k4bev453PnxBZd6/A3z4XORD3r9JLzyifCLev9nBvlcKAd6/xhc5iY3f3b95xGdCBr7dvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ecRnQga+3b/nBguPdJzdv0rF5nrYet2/1YjCETJZ3b/neWlfgTfdv8Rbqm/GFd2/P4hXTgH03L8B7EYHMtLcv+sBUqZYsNy/VM9VN3WO3L+43zLGh2zcv2NAzV6QSty/mXwMDY8o3L9Dmdvcgwbcv5IQKdpu5Nu/O87mEFDC27/NKgqNJ6Dbv+3ni1r1fdu/8itohblb27+HfZ4ZdDnbvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"h32eGXQ5279hAalOxp7av/gOgJZbA9q/clkmQDhn2b+81LyfYMrYvy79Yw7ZLNi/vfsc6qWO178Kp6qVy+/Wvy9jcnhOUNa/seBc/jKw1b/ZuraXfQ/Vv4H3ELkybtS/O2gh21bM079w7qJ67inTv1aiNRj+htK/zt4+OIrj0b+JMslilz/Rv7A2ZCMqm9C/X5oIEo7sz7/AjcRL5aHOvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wI3ES+Whzr98nT2cTFjOv/9gGUqpDs6//c4mb/vEzb+0jzglQ3vNv37zJIaAMc2/bOnFq7PnzL8J9/iv3J3Mv1cun6z7U8y/kCWduxAKzL+97dr2G8DLvz4JRHgddsu/cmPHWRUsy79DR1e1A+LKv7BV6aTol8q/jX12QsRNyr9z8fqnlgPKv3cfdu9fucm/u6fqMiBvyb/pUl6M1yTJvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6VJejNckyb/SCdoVhtrIv/bLaekrkMi//qUcIclFyL9XqQTXXfvHv7biNiXqsMe/kFDLJW5mx7/S2tzy6RvHv8NIiaZd0ca/sjjxWsmGxr93FjgqLTzGv+cRhC6J8cW/Zhb+gd2mxb9gwdE+KlzFv79YLX9vEcW/lcJBXa3GxL/6ekLz43vEv7SLZVsTMcS/qoLjrzvmw79WaPcKXZvDvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Vmj3Cl2bw79Qt96Gd1DDv71S2T2LBcO/vXwpSpi6wr/0zRPGnm/Cv/kr38ueJMK/vb/UdZjZwb837T/ei47BvyxJbh95Q8G/1pCvU2D4wL9NoFWVQa3Av+totP4cYsC/1ughqvIWwL+/QuxjhZe/v98aFmEaAb+/RDJ5gKRqvr8bL9H2I9S9v8h03fiYPb2/qhBhuwOnvL/hpiJzZBC8vw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"4aYic2QQvL8caxQmYy67v0ET0mlMTLq/y0ql8CBqub+xFuhs4Ye4v7lKBJGOpbe/0vpyDynDtr9N8LuaseC1v1kbdeUo/rS/8AZCoo8btL+1TNOD5jizv0wG5jwuVrK/aEJDgGdzsb8Pdr8Ak5Cwv6ngc+JiW6+/EZw4CYeVrb/P1bPbk8+rv+6s3r+KCaq/yonDG21DqL+zB31VPH2mvw==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"swd9VTx9pr+cFk02Z06lvwLRd5+KH6S/WKQi+6bwor9deHWzvMGhv2CImjLMkqC/Knl8xavHnr+rEB5ctGmcv9+Bev2yC5q/1/f1faitl7+p0PexlU+VvwNQ6m178ZK/slo6hlqTkL9oUq6eZ2qMv4H0YzsQroe/rZ57i7Dxgr8VabxvlGp8v9nm7dK98XK/wF3LJMHxYr8HXBQzJqaxvA==\"},\"shape\":[20],\"dtype\":\"float64\",\"order\":\"little\"}]],[\"node_color\",{\"type\":\"ndarray\",\"array\":[\"B\",\"Po\",\"Au\",\"Sb\",\"Ge\",\"Co\",\"Ac\",\"Pm\",\"H\",\"Zn\",\"Tm\",\"Ir\",\"Ni\",\"Sn\",\"F\",\"Ru\",\"Br\",\"Dy\",\"Ra\",\"Cs\",\"Hg\",\"Y\",\"Gd\",\"I\",\"S\",\"Ga\",\"Nb\",\"Tc\",\"Pa\",\"Cl\",\"Kr\",\"Ce\",\"Ba\",\"Th\",\"Be\",\"Hf\",\"Al\",\"N\",\"Cd\",\"Pr\",\"Tb\",\"Si\",\"Zr\",\"Pd\",\"V\",\"Eu\",\"Se\",\"Sc\",\"Na\",\"Ne\",\"Ca\",\"Cr\",\"Os\",\"Nd\",\"Cu\",\"Fe\",\"Tl\",\"Ta\",\"Bi\",\"Mg\",\"In\",\"As\",\"W\",\"Mo\",\"Rn\",\"Sr\",\"Sm\",\"La\",\"Xe\",\"Yb\",\"Er\",\"Mn\",\"Te\",\"Rb\",\"Pt\",\"K\",\"He\",\"Re\",\"Lu\",\"Pb\",\"O\",\"Rh\",\"Ar\",\"P\",\"U\",\"Fr\",\"Ho\",\"C\",\"Ti\",\"At\",\"Li\",\"Ag\"],\"shape\":[92],\"dtype\":\"object\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1070\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1071\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1107\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"arc_xs\"},\"ys\":{\"type\":\"field\",\"field\":\"arc_ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"type\":\"object\",\"name\":\"CategoricalColorMapper\",\"id\":\"p1055\",\"attributes\":{\"palette\":[\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\"],\"factors\":[\"B\",\"Po\",\"Au\",\"Sb\",\"Ge\",\"Co\",\"Ac\",\"Pm\",\"H\",\"Zn\",\"Tm\",\"Ir\",\"Ni\",\"Sn\",\"F\",\"Ru\",\"Br\",\"Dy\",\"Ra\",\"Cs\",\"Hg\",\"Y\",\"Gd\",\"I\",\"S\",\"Ga\",\"Nb\",\"Tc\",\"Pa\",\"Cl\",\"Kr\",\"Ce\",\"Ba\",\"Th\",\"Be\",\"Hf\",\"Al\",\"N\",\"Cd\",\"Pr\",\"Tb\",\"Si\",\"Zr\",\"Pd\",\"V\",\"Eu\",\"Se\",\"Sc\",\"Na\",\"Ne\",\"Ca\",\"Cr\",\"Os\",\"Nd\",\"Cu\",\"Fe\",\"Tl\",\"Ta\",\"Bi\",\"Mg\",\"In\",\"As\",\"W\",\"Mo\",\"Rn\",\"Sr\",\"Sm\",\"La\",\"Xe\",\"Yb\",\"Er\",\"Mn\",\"Te\",\"Rb\",\"Pt\",\"K\",\"He\",\"Re\",\"Lu\",\"Pb\",\"O\",\"Rh\",\"Ar\",\"P\",\"U\",\"Fr\",\"Ho\",\"C\",\"Ti\",\"At\",\"Li\",\"Ag\"]}}},\"line_width\":{\"type\":\"value\",\"value\":10}}},\"selection_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1109\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"arc_xs\"},\"ys\":{\"type\":\"field\",\"field\":\"arc_ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"line_width\":{\"type\":\"value\",\"value\":10}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1108\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"arc_xs\"},\"ys\":{\"type\":\"field\",\"field\":\"arc_ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"line_width\":{\"type\":\"value\",\"value\":10}}},\"hover_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1110\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"arc_xs\"},\"ys\":{\"type\":\"field\",\"field\":\"arc_ys\"},\"line_color\":{\"type\":\"value\",\"value\":\"limegreen\"},\"line_width\":{\"type\":\"value\",\"value\":10}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1111\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"arc_xs\"},\"ys\":{\"type\":\"field\",\"field\":\"arc_ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"line_width\":{\"type\":\"value\",\"value\":10}}}}},{\"type\":\"object\",\"name\":\"GraphRenderer\",\"id\":\"p1080\",\"attributes\":{\"layout_provider\":{\"type\":\"object\",\"name\":\"StaticLayoutProvider\",\"id\":\"p1063\",\"attributes\":{\"graph_layout\":{\"type\":\"map\",\"entries\":[[0,[0.9997586872842681,0.021967412219854713]],[1,[0.9978288842841259,0.06585983364917132]],[2,[0.9939730033223599,0.10962512789651736]],[3,[0.9864562966633516,0.1640243115310219]],[4,[0.9682545089919784,0.24996640937674566]],[5,[0.931064722300175,0.36485405697086337]],[6,[0.8905072968024423,0.454968959756165]],[7,[0.8412535328311812,0.5406408174555974]],[8,[0.7485107481711012,0.6631226582407951]],[9,[0.6548607339452851,0.7557495743542583]],[10,[0.5860064913167863,0.8103063569629633]],[11,[0.5313675615394373,0.8471413781321464]],[12,[0.4840622059511375,0.8750335883665944]],[13,[0.43529702908726486,0.9002868967544739]],[14,[0.3953325070666215,0.9185380824203315]],[15,[0.33397942913890133,0.9425803631054774]],[16,[0.27117613523641687,0.962529741710998]],[17,[0.2286360433708972,0.9735119720227898]],[18,[0.1856546224846352,0.9826150625499731]],[19,[0.1423148382732849,0.9898214418809328]],[20,[0.09870034817004524,0.9951171997664958]],[21,[0.04392422240790834,0.999034865600726]],[22,[-0.03294780505492112,0.9994570736865406]],[23,[-0.10962512789651783,0.9939730033223599]],[24,[-0.16402431153102243,0.9864562966633514]],[25,[-0.24996640937674602,0.9682545089919783]],[26,[-0.3443129304893979,0.9388549440130798]],[27,[-0.4053982177082372,0.9141401889639164]],[28,[-0.4840622059511382,0.875033588366594]],[29,[-0.5498488396520356,0.8352641818809843]],[30,[-0.5860064913167867,0.8103063569629629]],[31,[-0.6465197941552058,0.7628972117956064]],[32,[-0.7032124967615117,0.7109797355751012]],[33,[-0.7337630342238046,0.6794054824673375]],[34,[-0.7769154818241077,0.6296049031750106]],[35,[-0.8229838658936569,0.568064746731155]],[36,[-0.8529270073564815,0.5220301908145892]],[37,[-0.875033588366595,0.4840622059511364]],[38,[-0.8954511193434028,0.4451598509149797]],[39,[-0.9141401889639171,0.40539821770823553]],[40,[-0.9350162426854154,0.3546048870425342]],[41,[-0.9563404330981279,0.2922549845968161]],[42,[-0.9782995934180688,0.20719533179596783]],[43,[-0.9913249646234071,0.13143368865857996]],[44,[-0.9961413253717213,0.08776365925980131]],[45,[-0.9999396700012126,0.010984368796881687]],[46,[-0.9978288842841257,-0.06585983364917303]],[47,[-0.9881984872856815,-0.15317881617994966]],[48,[-0.9682545089919778,-0.2499664093767477]],[49,[-0.9530725005474189,-0.3027421488664739]],[50,[-0.8854560256532089,-0.4647231720437704]],[51,[-0.79055879268298,-0.6123861488567723]],[52,[-0.7628972117956055,-0.6465197941552068]],[53,[-0.7337630342238027,-0.6794054824673396]],[54,[-0.7032124967615097,-0.7109797355751033]],[55,[-0.6713045701579687,-0.7411816066828862]],[56,[-0.6381008452883289,-0.7699527980612318]],[57,[-0.5680647467311537,-0.8229838658936579]],[58,[-0.4840622059511353,-0.8750335883665956]],[59,[-0.4253816843210738,-0.9050140455507673]],[60,[-0.3750592036095601,-0.9270008596478013]],[61,[-0.32360562983129465,-0.9461920504535488]],[62,[-0.26058699351958303,-0.9654503709711985]],[63,[-0.20719533179596877,-0.9782995934180686]],[64,[-0.15317881617994691,-0.9881984872856819]],[65,[-0.09870034817004558,-0.9951171997664957]],[66,[-0.03294780505492025,-0.9994570736865406]],[67,[0.03294780505492166,-0.9994570736865405]],[68,[0.07681638078664692,-0.9970452565670431]],[69,[0.12053668025532409,-0.9927088740980539]],[70,[0.18565462248463607,-0.982615062549973]],[71,[0.2605869935195844,-0.9654503709711981]],[72,[0.3339794291389017,-0.9425803631054772]],[73,[0.39533250706662226,-0.9185380824203312]],[74,[0.4352970290872648,-0.900286896754474]],[75,[0.4744213108345612,-0.8802979153820693]],[76,[0.5498488396520358,-0.8352641818809842]],[77,[0.6381008452883313,-0.7699527980612298]],[78,[0.6874244177128402,-0.7262559259187924]],[79,[0.7186611875755228,-0.6953604083297663]],[80,[0.748510748171102,-0.6631226582407942]],[81,[0.7837844229668314,-0.6210329929356017]],[82,[0.8166943825994223,-0.5770704336825345]],[83,[0.8471413781321464,-0.5313675615394373]],[84,[0.8750335883665947,-0.4840622059511369]],[85,[0.8954511193434022,-0.445159850914981]],[86,[0.9425803631054774,-0.3339794291389013]],[87,[0.9759646626673445,-0.21792883522979792]],[88,[0.9845950802266583,-0.17485001570906475]],[89,[0.991324964623407,-0.13143368865858096]],[90,[0.9970452565670431,-0.07681638078664735]],[91,[0.9997586872842681,-0.021967412219854536]]]}}},\"node_renderer\":{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1069\",\"attributes\":{\"data_source\":{\"id\":\"p1056\"},\"view\":{\"id\":\"p1070\"},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1064\",\"attributes\":{\"size\":{\"type\":\"value\",\"value\":15},\"fill_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"hatch_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}}}},\"selection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1066\",\"attributes\":{\"size\":{\"type\":\"value\",\"value\":15},\"fill_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"hatch_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1065\",\"attributes\":{\"size\":{\"type\":\"value\",\"value\":15},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}},\"hover_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1067\",\"attributes\":{\"size\":{\"type\":\"value\",\"value\":15},\"fill_color\":{\"type\":\"value\",\"value\":\"limegreen\"},\"hatch_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1068\",\"attributes\":{\"size\":{\"type\":\"value\",\"value\":15},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_color\":{\"type\":\"field\",\"field\":\"node_color\",\"transform\":{\"id\":\"p1055\"}},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},\"edge_renderer\":{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1077\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1060\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1061\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1062\"},\"data\":{\"type\":\"map\",\"entries\":[[\"start\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LwAAAC8AAAAvAAAALwAAAEwAAAAZAAAAGQAAABkAAAAZAAAAGQAAADkAAAA5AAAAOQAAADkAAAA5AAAATAAAAEwAAABMAAAATAAAAC8AAAAqAAAAKgAAACoAAAAqAAAAHwAAAB8AAAAfAAAAHwAAAEgAAAAPAAAAQgAAACIAAAAiAAAAIgAAAEIAAAAWAAAAFgAAABYAAAAPAAAADwAAAE0AAABNAAAACgAAAEgAAABIAAAACgAAAEIAAAAKAAAATQAAACgAAABRAAAAAwAAABoAAABGAAAAFwAAABcAAAAoAAAARgAAAAMAAAAaAAAAUQAAABUAAABHAAAAQAAAAEAAAAA7AAAAOwAAADoAAABTAAAAUwAAADoAAAAVAAAABAAAAEcAAAAMAAAADAAAAD0AAAA9AAAABAAAAEUAAAAjAAAAHAAAACEAAAAGAAAAEgAAAFUAAABZAAAAVgAAABEAAAA0AAAAAQAAAE4AAAA+AAAAOAAAABQAAAACAAAASgAAAAsAAABPAAAACAAAAC0AAAApAAAAMwAAACwAAABYAAAAMgAAAEsAAABSAAAAHQAAABgAAAAkAAAABQAAADAAAAAxAAAADgAAAFAAAAAlAAAAVwAAAAAAAABaAAAANwAAADYAAAAHAAAAJgAAADUAAAAnAAAAQwAAACAAAAATAAAARAAAAA0AAAA8AAAAWwAAAAkAAAArAAAAGwAAAD8AAABBAAAASQAAAB4AAAAQAAAALgAAAFQAAAA=\"},\"shape\":[143],\"dtype\":\"int32\",\"order\":\"little\"}],[\"end\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"BQAAAAgAAABWAAAAHAAAAAgAAAAIAAAAMgAAAAkAAAAtAAAABgAAABwAAAA+AAAAIwAAADIAAAAIAAAAHAAAACMAAAAyAAAAWgAAADIAAAAbAAAAFQAAAAgAAAAyAAAAQwAAAAUAAAAyAAAACAAAADIAAAAtAAAACQAAAFoAAAAyAAAABAAAADIAAAAFAAAALQAAADIAAAAyAAAAGwAAADIAAAAEAAAABQAAAAMAAAAtAAAAMgAAAAcAAABGAAAAPgAAABYAAABWAAAABwAAACoAAAAHAAAAVgAAAEgAAABWAAAAVgAAAA0AAABGAAAADwAAAFQAAAApAAAAWQAAAFYAAAAwAAAABwAAAE8AAAApAAAAVgAAAAcAAABBAAAAGQAAADMAAAAFAAAACQAAAAQAAAAwAAAAVgAAAAoAAABOAAAAIQAAAAYAAAASAAAAVQAAAEAAAAABAAAAEQAAACgAAABNAAAAOgAAAEUAAAA5AAAAFAAAAAIAAABKAAAACwAAADQAAAA4AAAACAAAAEIAAAAkAAAALAAAAFgAAAAvAAAASwAAAFIAAAAdAAAAGAAAAFMAAAA7AAAANwAAADEAAAAOAAAAUAAAACUAAABXAAAAAAAAACIAAABMAAAARwAAAAwAAAA1AAAAWwAAACcAAAAfAAAAIAAAABMAAABEAAAAFwAAADwAAAAmAAAAKwAAADYAAABRAAAAPwAAABoAAABJAAAAHgAAABAAAAAuAAAAPQAAABwAAAA=\"},\"shape\":[143],\"dtype\":\"int32\",\"order\":\"little\"}],[\"xs\",[{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PaeGPho777/T1iPJyUHuv6wUoXaaP+2/+huP3fA07L/pp36UMSLrv65zADLBB+q/djqlTATm6L92t/16X73nv9mlmlM3jua/0cAMbfBY5b+Qw+Rd7x3kv0Rps7yY3eK/Im0JIFGY4b9XincefU7gvyX4HJ0CAd6/E/u9jYRd27/Kk/M7SbPYv7Y439QZA9a/NmCihb9N07+ogF57A5TQv98gasZdrcu/2guP1BUtxr8Hr257wajAvzvulyrmQ7a/ikOn8fNopr8AGSkLizFDv9hNNJJzxqU/LvA38DfltT8AmF5VOW7AP3AGEqLi4sU/oFbzgwVPyz/uzV/Qh1jQP630GU+3A9M/LqkGEUio1T8MdQTpcEXYP+bh8alo2to/YXmtJmZm3T8axRUyoOjfP1inhM8mMOE/3k8zoFJm4j/0IIb0bpbjP2Zf7DUXwOQ/BVDVzebi5T+gN7Alef7mPwRb7KZpEug/Bv/4ulMe6T90aEXL0iHqPxncQEGCHOs/yp5ahv0N7D9V9QEE4PXsPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"G0mhUmJn779ei9MH0m3uvzLxNbCRbe2/zw6Nifpm7L9meJ3RZVrrvzXCK8YsSOq/coD8pKgw6b9ZR9SrMhTovx2rdxgk8+a/9z+rKNbN5b8fmjMaoqTkv85N1Srhd+O/P+9UmOxH4r+oEnegHRXhv36YAAKbv9+/fGBq76pQ3b+0pbSEHd7av5+QaD2laNi/qkkPlfTw1b9B+TEHvnfTv9zHWQ+0/dC/yrsfUhIHzb+kx7qf3xPIvxcEl/40I8O/GISNy+5svL/DpLiYF56yv/wXqKVcuaG/gJF0/2KQaj8wliNzZeWkP9jFyaMW+7M/BvN+6ORqvT+BWMbMqV/DP/cuZ2TM+sc/CqwPRHWFzD9sv1a6H3/QPz4rl//isdI/EPE/9lHa1D9w6MciuvfWP+zopQlpCdk/E8pQL6wO2z95Yz8Y0QbdP6yM6Egl8d4/no7hIntm4D9c9qLJyEzhP1bp81oiK+I/V9MPmS4B4z8nIDJGlM7jP407liT6kuQ/T5F39gZO5T84jRF+Yf/lPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"2M5qGRSO779sCk+u45Huv/WfVrYrjO2/ITlJ2VR97L+Yf+6+x2XrvwkdDg/tReq/IrtvcS0e6b+SA9uN8e7nvwGgFwyiuOa/Hjrtk6d75b+UeyPNajjkvxUOgl9U7+K/SZvQ8syg4b/jzNYuPU3gvxCZuHYb6t2/2odRgE4x279ruQfK5HDYvyyBaqOvqdW/cDIJXIDc0r+UIHNDKArQv+A9b1LxZsq/vgHMuYWyxL/3Zja4YPG9v3zz9rAndrK/6NlbcJbam79oCrEggSeSP1Rqlb0kCLA/ZDPnheKAuz8sKHIxanjDP+K5J4taKsk/HKj1sJ/Uzj8cpt6ByzrSP7j/L/LOBdU/jo3f2YjK1z9B/F3pJ4jaP3T4G9HaPd0/1C6KQdDq3z8Dpox1G0fhP1b+HL+ek+I/t3auVYna4z96ZXmRchvlP/IgtsrxVeY/cv+cWZ6J5z9LV2aWD7boP9F+Stnc2uk/WsyBep336j82lkTS6AvsP7kyyzhWF+0/NfhNBn0Z7j8APQWT9BHvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PDuIsCiv779hoTT2l7nuv60pkSKQye2/2u4Wvinf7L+XCz9Rffrrv5+agmSjG+u/pLZagLRC6r9hekAtyW/pv4UArfP5oui/ymMZXF/c57/jvv7uERznv4gs1jQqYua/bscYtsCu5b9Nqj/77QHlv9Xvw4zKW+S/wLIe826847/CDcm28yPjv5AbPGBxkuK/4vbwdwAI4r9sumCGuYThv+SABBS1COG/AGVVqQuU4L93gczO1Sbgv/fhxRlYgt+/ipwj2E3G3r8RaKTpvRnev/p5Ol/ZfN2/rAfYSdHv3L+YRm+61nLcvyRs8sEaBty/v61Tcc6p27/RQIXZIl7bv8haeQtJI9u/DzEiGHL52r8Q+XEQz+DavzjoWgWR2dq/8jPPB+nj2r+oEcEoCADbv8a2InkfLtu/t1jmCWBu27/oLP7r+sDbv8JoXDAhJty/skHz5wOe3L8k7bQj1Cjdv3+gk/TCxt2/NJGBawF43r+s9HCZwDzfvygAqseYCuC/yHQOr8KA4L/q8l6L9gDhvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pg6AITpR4z82rHoKc73iPwbMBwLfMOI/pC3blnir4T+akKhXOi3hP3W0I9MetuA/wVgAmCBG4D8beuRpdLrfP8NBWnHM9t4/mofJYz5B3j+1yplev5ndPzCKMn9EAN0/IEX74sJ03D+kelunL/fbP82puul/h9s/ulGAx6gl2z998RNen9HaPzMI3cpYi9o/8hRDK8pS2j/Wlq2c6CfaP/UMhDypCto/afYtKAH72T9M0hJ95fjZP7EfmlhLBNo/uF0r2Ccd2j90Cy4ZcEPaPwCoCTkZd9o/dLIlVRi42j/qqemKYgbbP3kNvffsYds/OVwHuazK2z9FFTDslkDcP7S3nq6gw9w/n8K6Hb9T3T8ftetW5/DdP0sOmXcOm94/Pk0qnSlS3z+IeIPyFgvgP2w8SzaIc+A/2DGgKGPi4D9YGDZYolfhP3ivwFNA0+E/x7bzqTdV4j/N7YLpgt3iPxgUIqEcbOM/N+mEX/8A5D+yLF+zJZzkPxmeZCuKPeU/9vxIVifl5T/WCMDC95LmPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MeBxv1kL1L8N/6Wk8GbTv3rYXUcptNK/U4vXenLz0b9pNlESOyXRv5n4COHxSdC/buF5dAvEzr9Ae1biytvMv0v8I7L/28q/RaJeiofFyL/aqoIRQJnGv71TDO4GWMS/mNp3xrkCwr9H+oKCbDS/vwryygm0Prq/5hfAbwUmtb9RzrUCONivv3u2JxdmJaW/EL6NbRdulL9AK3iPEOxdP8BnXgHQlJg/2YHiI5TWpz89WhIqN8ixP4lqwvs/urc/dPYIOqm/vT9MwfbLW+vBP8rJO+TX/sQ/CldXP2sZyD9dK802ODrLPxAJISRhYM4/OFlrMITF0D/s9DgjqFzSP8k4O5ct9dM/+QU0uaWO1T+iPeW1oSjXP+3AELqywtg/BXF48mlc2j8QL96LWPXbPzbcA7MPjd0/oFmrlCAj3z88RMsujlvgP/KkQx1KJOE/iL8frIzr4T+PhMBxHrHiP53khgTIdOM/SNDT+lE25D8hOAjrhPXkP74MhWspsuU/sz6rEghs5j+Uvtt26SLnPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"mGJZ/2lv0r/YAClMIufRv78BjAMYb9G/kQC8+xMH0b+UmPIK367QvwplaQdCZtC/OgFaxwUt0L9qCP4g8wLQv7YrHtWlz8+/p4mN9Nu2z78wYb1MGrvPv9zoIIry28+/mquVLHsM0L9h8Sez2zjQvwfhAK/jctC/0RVa9lu60L8EK21fDQ/Rv+S7c8DAcNG/tWOn7z7f0b++vUHDUFrSv0JlfBG/4dK/h/WQsFJ107/RCbl21BTUv2Q9LjoNwNS/iCsq0cV21b98b+YRxzjWv4mknNLZBde/9GWG6cbd178AT90sV8DYv/H62nJTrdm/DAW5kYSk2r+aCLFfs6Xbv9mg/LKosNy/FGnVYS3F3b+L/HRCCuPev0J7ihUEBeC/Inn3+Pec4L+JRZ42RTnhvxiumznQ2eG/cYAMbX1+4r84ig08MSfjvw6ZuxHQ0+O/lnozWT6E5L9y/JF9YDjlv0Ts8+ka8OW/rxd2CVKr5r9WTDVH6mnnv9pXTg7IK+i/3wfeyc/w6L8GKgHl5bjpvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"OPlxmzLQ0L+ye6wuJEbQv9Rg8UJ7X8+/jqU88boazr9ZPMpxxL7MvwacKc5UTMu/YTvqDynEyb86kZtA/ibIv1gUzWmRdca/izsOlZ+wxL+ffe7L5djCv2NR/Rch78C/Q1uUBR3ovb9VEskr1tC5v5C1t7XnmbW/kzJ/tstEsb/e7XyC+KWpv4jgKNLmi6C/bmEACVr5jL8IfPw3Iv5xP5R3sMbq1pc/WRGMrMjBpT/rNF38yb+vP7HlRpZC8bQ/wfxvC4MTuj8H8opKLEW/P/RrPCBiQsI/a2ANbWjoxD+X3ygC7JPHP6xy/9UvRMo/2aIB33b4zD9c+Z8TBLDPP65/JTUNNdE/DJ+5bP6S0j9bn8Qrd/HTPzjFfu0YUNU/PlUgLYWu1j8ElOFlXQzYPyTG+hJDadk/ODCkr9fE2j/aFha3vB7cP6O+iKSTdt0/LWw08/3L3j8JsiiPTg/gP3P1i1AJt+A/piJg+/9c4T/sW0FNAwHiP5LDywPkouI/5Xub3HJC4z8yp0yVgN/jPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"UsPk5fpbzr8cLgRuaILNvxjB/UUa0cy/tUHPdm1HzL9YdXYJv+TLv28h8QZsqMu/Zgs9eNGRy7+q+FdmTKDLv5+uP9o508u/t/Lx3PYpzL9Wimx34KPMv/A6rbJTQM2/68mxl63+zb+y/HcvS97Ov7OY/YKJ3s+/qjGgzWJ/0L8CEZ9ALh/RvxhN+p5VztG/n8gwbYeM0r9OZsEvclnTv9gIK2vENNS/+JLsoywe1b9f54ReWRXWv8Toch/5Gde/3Xk1a7or2L9gfUvGS0rZv/7VM7Vbddq/cmZtvJis279xEXdgse/cv665zyVUPt6/3kH2kC+Y379exjQTeX7gv3s+VDUlNuG/pPoYcfPy4b8ybMIIu7Tiv4AEkD5Te+O/6jTBVJNG5L/KbpWNUhblv3kjTCto6uW/VMQkcKvC5r+1wl6e857nv/ePOfgXf+i/dZ30v+9i6b+JXM83Ukrqv40+CaIWNeu/37ThQBQj7L/YMJhWIhTtv9EjbCUYCO6/J/+c78z+7r81NGr3F/jvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"XS6d2ikSy78XAZ/zQCzKv0R6lORsI8m/u2qLF5b4x79Lo5H2pKzGv8r0tOuBQMW/CTADYRW1w7/jJYrARwvCvySnV3QBRMC/SAnzzFXAvL9qHvsBWcG4v1Yv41vdjLS/tN3GrrMksL9jloOdWRWnv69lvj9mApu/RKG+ZqyEfL/OCW3NdeOKP53NgjiEV6E/AYpnGr1HrD8wGmk488KzP6rExUkvh7k/0iIu7cFuvz98SUMn7bvCP7652cxT0MU/WpFMfazzyD98/43ODiXMP0wzkFaSY88//62iVSdX0T9e1E+xLQLTP1akSAlostQ/fzWGKGJn1j9znwHapyDYP8L5s+jE3dk/CFyWH0We2z/U3aFJtGHdP8CWzzGeJ98/Mk+MUcd34D8qBju0iFzhPxR8cCbZQeI/uDypjX4n4z/l02HPPg3kP2TNFtHf8uQ/ALVEeCfY5T+EFmiq27zmP7x9/UzCoOc/c3aBRaGD6D90jHB5PmXpP4lLR85fReo/fj+CKcsj6z8e9J1wRgDsPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"oLxirXZn4L+3lJsqBNPfv1qWQkSB4d6/m2cOKWX63b/k8VJasB3dv6keZFljS9y/V9eVp36D279iBTzGAsbavzGSqjbwEtq/Omc1ekdq2b/qbTASCczYv6+P7381ONi//bXGRM2u179Bygni0C/Xv+q1DNlAu9a/aWIjqx1R1r8ruaHZZ/HVv6Gj2+UfnNW/OAslUUZR1b9k2dGc2xDVv5D3NUrg2tS/L0+l2lSv1L+wyXPPOY7Uv4BQ9amPd9S/D81961Zr1L/OKGEVkGnUvytN86g7ctS/lyOIJ1qF1L+AlXMS7KLUv1aMCevxytS/iPGdMmz91L+GroRqWzrVv7+sERTAgdW/o9WYsJrT1b+iEm7B6y/WvylN5cezlta/qm5SRfMH17+TYAm7qoPXv1QMXqraCdi/W1uklIOa2L8aNzD7pTXZvwCJVV9C29m/ezpoQlmL2r/6NLwl60Xbv+5hpYr4Cty/x6p38oHa3L/z+Ibeh7Tdv+I1J9AKmd6/A0usSAuI37/jELXkxEDgvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MMc2yGkf4b8tJoZraJrgv/KlQY3OF+C/5KpfIVkv379Bhy6yJTTev+n+fJMjPt2/wy/Yi3NN3L+6N81hNmLbv7Y06duMfNq/nkS5wJec2b9ehcrWd8LYv+EUquRN7te/DhHlsDog17/RlwgCX1jWvxLHoZ7bltW/ubw9TdHb1L+wlmnUYCfUv+BysvqqedO/NG+lhtDS0r+Vqc8+8jLSv+o/vukwmtG/IFD+Ta0I0b8h+BwyiH7Qv6OrTrnE98+/PA5VKLkBz7/gU2c+LxvOv2C4n4hoRM2/kHcYlKZ9zL9CzevtKsfLv0r1MyM3Icu/eisLwQyMyr+kq4tU7QfKv5qxz2oalcm/M3nxkNUzyb8+PgtUYOTIv5A8N0H8psi/+q+P5ep7yL9Q1C7ObWPIv2TlLojGXci/CR+qoDZryL8Svbqk/4vIv1L7eiFjwMi/nBUFpKIIyb/CR3O5/2TJv5bN3+671cm/7uJk0Rhbyr+awxzuV/XKv22rIdK6pMu/PNaNCoNpzL/Xf3sk8kPNvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"qp2KBlHU4b877TlY40zhv6WlVdkCzuC/3e67WKBX4L+e4ZVKWdPfv92mwRsxCN+/VH23wqlN3r/otDPdpKPdv3id8ggECt2/5Iaw46iA3L8PwSkLdQfcv9qbGh1Kntu/J2c/twlF27/YclR3lfvav8wOFvvOwdq/5YpA4JeX2r8DN5DE0XzavwljwUVecdq/116QAR912r9PermV9Yfav1IF+Z/Dqdq/wk8Lvmra2r+AqayNzBnbv2pimazKZ9u/aMqNuEbE279UMUZPIi/cvxLnfg4/qNy/hjv0k34v3b+OfmJ9wsTdvwwAhmjsZ96/4A8b890Y37/v/d26eNffvwqNxS7PUeC/HFpvPJi+4L8ajkpVCDLhv/hQNUgQrOG/pcoN5KAs4r8SI7L3qrPivy+CAFIfQeO/7A/Xwe7U47899BMWCm/kvxBXlR1iD+W/VWA5p+e15b/+N96Bi2Lmv/oFYnw+Fee/PPKiZfHN57+zJH8MlYzov1DF1D8aUem/BPyBznEb6r+/8GSHjOvqvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EBsMOQyG4r8bqFs2D/nhv1vh4QFkdOG/i6xh1v334L9l753uz4Pgv6WPWYXNF+C/DuauqtNn37+V/rQyMLDev0w0SxiXCN6/sVL30O5w3b84JT/SHencv1x3qJEKcdy/lBS5hJsI3L9YyPYgt6/bvyBe59tDZtu/YKEQKygs27+TXfiDSgHbvzBeJFyR5dq/rW4aKePY2r+EWmBgJtvavyvte3dB7Nq/HfLy4xoM27/ONEsbmTrbv7iACpOid9u/UqG2wB3D278SYtUZ8Rzcv3CO7BMDhdy/6PGBJDr73L/sVxvBfH/dv/aLPl+xEd6/fllxdL6x3r/8izl2il/fv3N3Du19DeC/26bQivxx4L/yOSZPNN3gv3EW0nQYT+G/GCKXNpzH4b+gQjjPskbiv8VdeHlPzOK/RFkacGVY47/YGuHt5+rjvz2Ijy3Kg+S/MIfoaf8i5b9r/a7desjlv6rQpcMvdOa/q+aPVhEm578oJTDREt7nv91xSW4nnOi/hrKeaEJg6b/fzPL6Virqvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"bhviwHs0478Odc7TPJriv8fIDy+y+OG/2rccfyNQ4b9642tw2KDgv9PZ514x1t+/wOpW0Vde3r83PBKRs9rcv6kQB/fTS9u/kKoiXEiy2b9iTFIZoA7Yv5Y4g4dqYda/orGi/zar1L8C+p3alOzSvyVUYnETJtG/DgW6OYSwzr83j/ZrYAfLv7XLVCvaUce/eD+vKRCRw7/W3sAxQoy/v/zAhVVX5Le/Mi9iIp0ssL/MZhb4oc6gv8DrusYI1mK/BGyjbR4MnT+2szeKMkeuP0wbLlPHCLc/j5XqYVTwvj9eH86GAWzDP3sGR/nKXsc/LnuF1mdPyz+W+K5suTzPP9189ITQktE/2Xws/n+E0z/GORLJ23LVPyxxuIxUXdc/meAx8FpD2T+URZGaXyTbP6Zd6TLT/9w/VuZMYCbV3j+ZTufk5FHgP+CfQAuXNeE/xsW79mEV4j8NH+L6/fDiP3sKPWsjyOM/1uZVm4qa5D/iErbe62flP2Ht5oj/L+Y/G9Vx7X3y5j/TKOBfH6/nPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"y4GmPlqj4j/qdXq42Q7iP4P1W9GddeE/PjWykd/X4D/AaeQB2DXgP2qPs1SAH98/igfzJqLL3T81pVWLh3DcP7TRqZKiDts/X/a9TWWm2T+EfGDNQTjYP3jNXyKqxNY/iVKKXRBM1T8Mda6P5s7TP1GemsmeTdI/qzcdHKvI0D/KVAkw+4DOP6a/PpwQa8s/moJ3nnpQyD84cFBYHTLFPzBbZuvcEMI/OSys8jrbvT9N53hHhpK3P9aMbBhkSbE/N4SBUTkDpj+csbzu4POSP5Dv6LgOLHi/PCv7Jhrvnr+iw0+3oNirv7UuEB6WErS/MAy+jc8sur+G6rszmhzAv/vxATT+GsO/2UkUpq8Qxr94H1ZoyvzIvzSgKllq3su/cvn0Vqu0zr9FLAygVL/Qv231e/m/HdK/3m77piV1079KL7yXE8XUv13N77oXDda/xt/H/79M1780/XVVmoPYv1S8K6s0sdm/2LMa8BzV2r9renQT4e7bv72magQP/ty/fc8usjQC3r9Zi/IL4Prevw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"/Ixueiny4T+N/aFUXGHhP/ut3K1syOA/en0+hqQn4D9sls67m/7eP8Ps7Wlln90/XbwaFzoy3D+ew5TDrbfaP+HAm29UMNk/inJvG8Kc1z/8lk/Hiv3VP5fse3NCU9Q/vTE0IH2e0j/UJLjNzt/QP28Ij/iWL84/nBxEWA6Oyj/mAg+7K9zGPxc4byEXG8M/7nHIF/GXvj+GBNv179+2PwRDKrz1IK4/lAnXRYevnD+g54PgZXFpv+oTs0T4pqG/MYSLB6HpsL9jFJvdqQu5v4KgxFGjm8C/UYgrrBO1xL/UxIL9/dDIv0bZSkU67sy/cSSCQdCF0L94yxdbBJTSv1CjJm8lodS/nu1ufZ+s1r/567CF3rXYvwHgrIdOvNq/Wgsjg1u/3L+dr9N3cb7evzWHvzJ+XOC/rrTyJTRX4b8NgWOVEE/ivx0N8oDJQ+O/sHl+6BQ15L+S5+jLqCLlv5R3ESs7DOa/h0rYBYLx5r83gR1cM9Lnv3U8wS0Frui/EJ2jeq2E6b/Xw6RC4lXqvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vG8QW8c94T8T6NQedbLgPy8xGnrqHuA/Q0EyXOEG3z/oFxX4ocDdP2yRTkqpa9w/6lhQ1YkI2z+BGYwb1pfZP0h+c58gGtg/WzJ44/uP1j/V4Atq+vnUP9U0oLWuWNM/dNmmSKus0T+g8yJLBe3PPwOCo52Obcw/TrSyjRfcyD+u4DMgxTnFP2FdClq8h8E/QAEzgESOuz88QYmuN/KzP1hOvJE4e6g/2H3hY/HKkT9wSwu78GCLvzoO0fxRuaa/J01WUppcs78cD2QJqGm7v0CQ5QzEwMG/f2riPPjQxb8OQMWPS+TJv7S6qgCZ+c2/HMJXxd0H0b83I3gUxxLTv4rVROv1HNW//C1Mx9cl179xgRwm2izZv8okRIVqMdu/8mxRYvYy3b/JrtI66zDfv5ofK0ZbleC/jDk16uKP4b+uz05Iw4fiv3AMPx+zfOO/RhrNLWlu5L+hI8AynFzlv/NS3+wCR+a/sNLxGlQt579Jzb57Rg/ovzFtDc6Q7Oi/2Nyk0OnE6b+0RkxCCJjqvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"l0Ev+FOG4D/VoIOe7AngP9DYhY5KL98/5e9BRshe3j8rLqPFHqLdP+k6EW4a+dw/Y73zoIdj3D/gXLK/MuHbP6HAtCvocds/7o9iRnQV2z8MciNxo8vaPzwOXw1ClNo/yAt9fBxv2j/0EeUf/1vaPwPI/li2Wto/PNUxiQ5r2j/g4OUR1IzaPziSglTTv9o/hpBvstgD2z8SgxSNsFjbPxwR2UUnvts/8eEkPgk03D/PnF/XIrrcP/3o8HJAUN0/wW1Aci723T9e0rU2uavePxm+uCGtcN8/HGxYSmsi4D8B5IL4AJTgP1yaD8z9DOE/z2Ky9UeN4T8AER+mxRTiP454CQ5do+I/HW0lXvQ44z9PwibHcdXjP8ZLwXm7eOQ/Jd2oprci5T8PSpF+TNPlPyZmLjJgiuY/CwU08thH5z9k+lXvnAvoP9AZSFqS1eg/9Da+Y5+l6T9wJWw8qnvqP+e4BRWZV+s//sQ+HlI57D9VHcuIuyDtP4+VXoW7De4/TgGtRDgA7z82NGr3F/jvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"59lPNZrK779MoxU9ydXuv+g+bsuj6e2/oPL53jEG7b9ZBFl2eyvsv/i5K5CIWeu/YlkSK2GQ6r9/KK1FDdDpvzBtnN6UGOm/W22A9P9p6L/mbvmFVsTnv7a3p5GgJ+e/sY0rFuaT5r++NiUSLwnmv774NISDh+W/mhn7ausO5b803xfFbp/kv3KPK5EVOeS/OXDWzefb479wx7h57Yfjv/racpMuPeO/v/CkGbP74r+iTu8Kg8Piv4g68mWmlOK/V/pNKSVv4r/006JTB1Piv0QNkeNUQOK/Ley41xU34r+UtrouUjfiv16yNucRQeK/biXN/1xU4r+tVR53O3Hiv/2Iyku1l+K/RgVyfNLH4r9qELUHmwHjv1LwM+wWReO/4OqOKE6S47/6RWa7SOnjv4ZHWqMOSuS/aTUL36e05L+IVRltHCnlv8jtJEx0p+W/DkTOercv5r9AnrX37cHmv0JCe8EfXue/+XW/1lQE6L9NfyI2lbTovyGkRN7obum/WirGzVcz6r/eV0cD6gHrvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Wigbb1Kf778z9TLJwKnuv+cwulXBuO2/uO3mpXHM7L/bPe9K7+Trv5EzCdZXAuu/FuFq2Mgk6r+vWErjX0zpv4us3Yc6eei/7+5aV3ar578XMvjiMOPmv0GI67uHIOa/qQNrc5hj5b+OtqyagKzkvyuz5sJd++O/vQtPfU1Q47+B0htbbaviv7YZg+3aDOK/lfO6xbN04b9gcvl0FePgv1CodIwdWOC/Sk/FOtOn3784BfNxLq3ev96W3uCHwN2/vCj0qRri3L9H35/vIRLcv//eTdTYUNu/W0xqenqe2r/VS2EEQvvZv+cBn5RqZ9m/DJOPTS/j2L+9I59Ry27Yv3XYOcN5Cti/rtXLxHW217/hP8F4+nLXv4w7hgFDQNe/I+2GgYoe178leS8bDA7XvwoE7PACD9e/TLIoJaoh179oqFHaPEbXv9MK0zL2fNe/DP4YURHG17+Jpo9XySHYv8coo2hZkNi/P6m/pvwR2b9sTFE07qbZv8c2xDNpT9q/y4yEx6gL27/xcv4R6Nvbvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ngqBdNB577+7kMH5H4Puv8dNteaHjO2/g7J5az2W7L+hLyy4daDrv+A16vxlq+q/+TXRaUO36b+qoP4uQ8Tov6fmj3ya0ue/rniign7i5r96x1NxJPTlv8VDwXjBB+W/SV4IyYod5L/Bh0aStTXjv+cwmQR3UOK/dsodUARu4b8lxfGkko7gv2gjZWauZN+/sUH7VQ6z3b+gxuB4rwjcv6mTUC/8Zdq/QIqF2V7L2L/bi7rXQTnXv+x5KooPsNW/6DUQUTIw1L9HoaaMFLrSv32dKJ0gTtG/+BeixYHZz795nLV7vyzNv2GLAR3Plsq/oKf7aYUYyL8YtBkjt7LFv7hz0Qg5ZsO/Z6mY298zwb8hMMq3ADm+v0QFWZTeQbq/+VfJzQKEtr8drgblFgGzvwUb+bWIda+/AvgsYWllqb/K/n/NItWjvxF2kvkPkJ2/zHC/4deClL8qCmquhhKJv/oohXbhp3a/gHuoTQdjFD8D76ZPo6xyP4iwCQlmJ4A/bs3hKreOhD+Zn/8F+X6GPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ZXbt8jpO77/3oxeCFVXuvxni+tWNVO2/J6G/twBN7L95UY7wyj7rv2ljj0lJKuq/U0fri9gP6b+UbcqA1e/nv4FGVfGcyua/dkK0poug5b/P0Q9q/nHkv+ZkkARSP+O/FGxeP+MI4r+6V6LjDs/gv1EwCXVjJN+/hTtbGlGl3L+1sYtJoCHav6Fz65QKmte//GHLjkkP1b93XXzJFoLSv5iNnq5X5s+/Wv0plYTGyr+myzxrJ6bFv9m5eFWzhsC/vxL/8DbTtr+w7svjS0Gpv0giTbfPxIO/mI7J2hqInj+enarNVayxP76GuwRto7s/Gc5QCTPCwj+irQxXLabHP4Cg70YyfMw/qvIrWmeh0D9W3VG9R/zSP46vmLoATtU/pIivv9iV1z/eh0U6FtPZP4nMCZj/BNw/63WrRtsq3j+s0ezZ9yHgPwq6oabBJ+E/uANMQG4m4j9ZPsPdoB3jP5H53rX8DOQ/CsV2/yT05D9oMGLxvNLlP0/LeMJnqOY/ZiWSqch05z9TzoXdgjfoPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"nlFJVJoc778dCmr2LC3uv1wIM/OJRu2/FpEDfLdo7L/96DrCu5Prv8pUOPecx+q/MRlbTGEE6r/tegLzDkrpv6++jRysmOi/Milc+j7w578p/8y9zVDnv0yFP5heuua/UwATu/cs5r/0tKZXn6jlv+TnWZ9bLeW/3N2LwzK75L+O25v1KlLkv7Ul6WZK8uO/BQHTSJeb4782srjMF07jv/19+SPSCeO/E6n0f8zO4r8teAkSDZ3ivwEwlwuadOK/RhX9nXlV4r+ybJr6sT/iv/16zlJJM+K/3IT410Uw4r8Hz3e7rTbivzKeqy6HRuK/FjfzYthf4r9p3q2Jp4Liv+HYOtT6ruK/NGv5c9jk4r8a2kiaRiTjv0hqiHhLbeO/dmAXQO2/479aAVUiMhzkv6qRoFAgguS/HFZZ/L3x5L9ok95WEWvlv0SOj5Eg7uW/Z4vL3fF65r+Gz/FsixHnv1ifYXDzsee/lT96GTBc6L/z9JqZRxDpvyYEIyJAzum/6LFx5B+W6r/uQuYR7Wfrvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PY0RfmH/5b/tTXCMvFLlv/2R23SvpeS/uIOr6WH4479eTTid+0rjvzkZ2kGkneK/kRHpiYPw4b+vYL0nwUPhv9Mwr82El+C/k1gtXOzX37+s+pf2eYLev4OcTs8BL92/pZIBS9Pd27+hMWHOPY/avwLOHb6QQ9m/Wbznfhv7178tUW91LbbWvxLhZAYWddW/k8B4liQ41L8+RFuKqP/Sv6LAvEbxy9G/TYpNME6d0L+X63tXHejOv1SvfDsEocy/8Qj+1e9lyr+GoWDwfjfIvzMiBVRQFsa/DjRMygIDxL80gJYcNf7Bv8GvRBSGCMC/qNdu9ShFvL8Du54y/pm4v9Bb2nLJELW/SQzjSMiqsb9DPfSOcNKsvyzKwQKumqa/qGOxEsSwoL9gXIvIWy6Wv7g4BXSaQYe/8ALdTCzdW7+Q/TYwddZ9P/SSFVsZ6Y8/LwWkFAW6lz+sKVQ2EMGePwj3yuNbgqI/xwSyvgJApT+hmVyGAZenPygRSBXdhKk/7sbxRRoHqz+HFtfyPRusPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"CI5XeOVZ5b+JcqbL8K3kv5SWhMXw+OO/oZkNDzo7478mG11RIXXiv6S6jjX7puG/khe+ZBzR4L/jog0Qs+ffv2kPCZEOH96/s7OlnvRI3L+4zhqLDmbav22fn6gFd9i/yGRrSYN81r/CXbW/MHfUv0vJtF23Z9K/XeagdcBO0L/S52Gz6lnMv9BhOLj+Bci/nLgzng+jw79K1IQT4GS+v67opT7larW/cFRPDai1qL8wpjijjbqJv4xv+7zx85c/xFfaNuJ+rj9f30YHZ424Pzx993Qc8sA/uEBEvaCgxT8wPBu47VDKP7nxDcGwAc8/sfHWmcvY0T+oScY1py/UP8TBHeLBhNY/FBumTHLX2D+eFigjDyfbP2x1bBPvct0/jvg7y2i63z+GsC98af7gP/e3TyTCHOI/HnPitOk34z+EQsyEi0/kP6yG8epSY+U/HKA2Puty5j9W73/V/33nP+LUsQc8hOg/RbGwK0uF6T8F5WCY2IDqP6TQpqSPdus/qdRmpxtm7D+bUYX3J0/tPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"1Z+DR0qw5L/3NNdymBLkv92Hjkm+feO/F+f+7a/x4r8soX2CYW7iv68EYCnH8+G/LWD7BNWB4b80AqU3fxjhv1E5suO5t+C/ElR4K3lf4L8FoUwxsQ/gv3HdCC+skN+/cxfqALgS378ujeccbqXev73bq8e2SN6/OqDhRXr83b/AdzPcoMDdv27/S88Sld2/XdTVY7h53b+sk3veeW7dv3La54M/c92/0UXFmPGH3b/fcr5heKzdv7r+fSO84N2/f4auIqUk3r9Ip/qjG3jevy/+DOwH296/VCiQP1JN37/Qwi7j4s7fv2C1yQ3RL+C/n160Frx/4L+0q6yuJtfgvyvrB/gENuG/lWsbFUuc4b99ezwo7Qniv3JpwFPffuK/AoT8uRX74r+6GUZ9hH7jvyl58r8fCeS/3PBWpNua5L9iz8hMrDPlv0djnduF0+W/HPspc1x65r9q5cM1JCjnv8NwwEXR3Oe/tOt0xVeY6L/LpDbXq1rpv5TqWp3BI+q/ngs3Oo3z6r95ViDQAsrrvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"/UV6qbAC5L/ja79D92Hjv7BKqj+fueK/ebacY/MJ4r9Pg/h1PlPhv0qFHz3LleC/+iDn/sij37/88awGqg/ev7slVB7Pb9y/aGSg0s3E2r8lVlWwOw/ZvyGjNkSuT9e/gfMHG7uG1b9z74zB97TTvxo/icT52tG/QxWBYa3yz79f9OwlSCHMv91r3e/uQsi/FMzZ2MxYxL9PZWn6DGTAv8MPJ9y0y7i/Pgi/msC+sL9wqVLHJkehv8BwJX3aIF+/4E9CfWTQnj+WDy8K2NevPxWlURSfKLg/oiX4DO4zwD/QbHJxplPEP8lXEJ5Ncsg/NJZKebiOzD/m68z03VPQPxpmu2oWXtI/kRGtEXBl1D8fRt5cVWnWP5lbi78wadg/3qnwrGxk2j/AiEqYc1rcPxZQ1fSvSt4/26vmGkYa4D++ezdnuQvhP55D+xhn+eE/aC/QaQTj4j8Fa1STRsjjP2EiJs/iqOQ/aoHjVo6E5T8JtCpk/lrmPyvmmTDoK+c/vEPP9QD35z+n+Gjt/bvoPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"rUdkUfgA2D9dkoWN8DvXP5EixbxrZdY/jSvJF/B91T+O4DfXA4bUP9l0tzMtftM/rhvuZfJm0j9QCIKm2UDRP/5tGS5pDNA/+P+0ak6UzT8U49bpM/XKP9Tr5EqPPMg/uoAr/2xrxT9QCPd32YLCPyTSJ03CB78/DROd+CDfuD9WoObU542yPxaOOolfLKg/8FBnqUbolT+wsa50mUV0v+RTcDvyRaC/gDaqDGg/rr/68YhucTi2vynhunMYa72/4A2pGchawr9Z6lrl3wrGv3yfpivHxMm/zcY/e3GHzb/i/Gwx6ajQv+9olLhukdK/SvRvGsN81L+3a1keYGrWv+6bqou/Wdi/tFG9KVtK2r/CWeu/rDvcv9eAjhUuLd6/2kkAeSwP4L+Mr02OUwfhv95XXC7J/uG/MinZPEr14r/mCXGdk+rjv1rg0DNi3uS/7ZKl43LQ5b/9B5yQgsDmv+olYR5Orue/FdOhcJKZ6L/a9QprDILpv5p0SfF4Z+q/tTUK55RJ67+JH/ovHSjsvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"juw7QE600j/PiySclBfSP3YaEi7tZtE/pIEyKOKi0D/1VGd5+5fPPzr8hjuUxc0/Wssf+6LPyz+glI0cPLfJP0sqLAR0fcc/o15XFl8jxT/rA2u3EarCP2vswkugEsA/0NR1bz68uj9RoF2/RRu1P7e/6Z/+iK4/AnDm0yd0oj8caoKwYvGHP2je4Rd1aIu/Sn31cOgKpL+6lrOh28iwv4If7xUctbe/ebR1zAzIvr+C2Ed+wv/Cv1a4wu6trMa/cadPU7Rpyr+J05JHwTXOvyw1mDPgB9G/0kzmpk770r+Ox4XLofTUv0C8SG9P89a/w0EBYM322L/6boFrkf7av71am18RCt2/7BshCsMY37+xZHIcDpXgv/483FzJnuG/TiI3LU6p4r8OIGx0V7Tjv65BZBmgv+S/mpIIA+PK5b9EHkIY29Xmvxjw+T9D4Oe/hxMZYdbp6L/9k4hiT/Lpv+l8MStp+eq/vtn8od7+67/ntdOtagLtv9McnzXIA+6/8BlIILIC77+vuLdU4/7vvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jKH/Bfl+hj86qx1kHaCGP6Rz4uF9Xog/4COI9KSxiz9+cqSIjkiQPwhwr1Y4epM/GB8CH5Vplz82lDkcahKcP/dxeUQ+uKA/Y5Hlz8i/oz+jsq9Ntx2nPwFgJlvsz6o/wCOYlUrUrj8QxClNWpSxP7eLU4OG5bM/8q3wO5tctj/qb6jFifi4P74WIm9DuLs/jecEh7mavj/AE/ytbs/AP9qNUR7QYcI/qYTWu/kDxD+6mt4tZLXFP6JyvRuIdcc/8K7GLN5DyT828k0I3x/LPwPfplUDCc0/7BclvMP+zj/BH45xTIDQPyr877j9htE/ePLhBzKT0j/40w2ypaTTP+9xHQsVu9Q/qJ26ZjzW1T9qKI8Y2PXWP3zjRHSkGdg/KqCFzV1B2T+8L/t3wGzaP3hjT8eIm9s/qgwsD3PN3D+Y/DqjOwLeP40EJteeOd8/6HpLf6w54D/V0Js2k9fgP7HsWLthduE/IrdXN/YV4j/LGG3ULrbiP1H6bbzpVuM/V0QvGQX44z+D34UUX5nkPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FioB5eW46b8lIiWLR+rov7seCuTUEei/Kl+CPe4v57+9ImDl80Tmv86odSlGUeW/pTCVV0VV5L+d+ZC9UVHjv/tCO6nLReK/F0xmaBMz4b9BVORIiRngv5A1DzEb892/Ab5ESgGn2790wA15hU/Zv4e7Dllo7da/4C3shWqB1L8clkqbTAzSv7/lnGmeHc+/m4U43GUTyr8KCbHFcPvEv6/anrqArr+/f1+5tKtQtb9ENofQycClv0D+4fOwK1i/vL4hlOhWpD9YoMvSAcG0P27Azmf3XL8/liJETSn+xD/9GTN+CE7KPypJaw+YnM8/a9nRZCt00j/krMm64RfVP1mg+G2uuNc/LTW64tBV2j+67Gl9iO7cP1xIY6IUgt8/vOQAW9oH4T+0eFAOVEviP8cgTh0Xi+M/oZ0nOsPG5D/0rwoX+P3lP24YJWZVMOc/vpek2Xpd6D+U7rYjCIXpP5vdifacpuo/iSVLBNnB6z8Khyj/W9bsP8rCT5nF4+0/fpnuhLXp7j/QyzJ0y+fvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"K+Da0Vgn6b+jeo+nx2bov3xuIVRPr+e/R6RUPOoA57+TBO3Eklvmv/Z3rlJDv+W/A+dcSvYr5b9OOrwQpqHkv2VakApNIOS/3i+dnOWn479Jo6YrajjjvzydcBzV0eK/SAa/0yB04r8Cx1W2Rx/iv/nH+ChE0+G/w/FrkBCQ4b/vLHNRp1XhvxJi0tACJOG/vnlNcx374L+HXKid8drgv/7yprR5w+C/tyUNHbC04L9F3Z47j67gvzgCIHURseC/Jn1ULjG84L+fNgDM6M/gvzcX57Iy7OC/gQfNRwkR4b8Q8HXvZj7hv3S5pQ5GdOG/QkwgCqGy4b8NkalGcvnhv2VwBSm0SOK/4NL3FWGg4r8QoURycwDjv4bDr6LlaOO/1iL9C7LZ47+Rp/AS01Lkv0w6ThxD1OS/mMPZjPxd5b8JLFfJ+e/lvzFcijY1iua/ozw3Oaks57/xtSE2UNfnv62wDZIkiui/bBW/sSBF6b+/zPn5Pgjqvzq/gc950+q/btUal8um67/u94i1LoLsvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ql7zZUWQ6L/bHvuH9Mrnvy1wZkw+/Oa/SopWt34k5r/LpOzMEUTlv1j3SZFTW+S/krmPCKBq478eI982U3Liv5prWSDJcuG/qsofyV1s4L/h76Zq2r7evyJWK9KmmNy/WjcP0dhm2r/QApVvKCrYv8Mn/7VN49W/gBWQrACT079AO4pb+TnRv6QQYJbfsc2/8NeHBzjhyL/pqhAbbAPEvz/Q/sLXM76/L9yx1k5MtL+EbYgkO6akv8A+568FyVK/Hmik9XqRoz9Cf2cBp+WzP4SH9lu4CL4/7ce6tIgXxD+TbW0E6SrJPylWjgwNPc4/j1FMXkKm0T/9ugMC8CvUPxP4KmnXrtY/kJl/i0Au2T8sML9gc6nbP6JMp+C3H94/2L96AStI4D8IrbPfSn3hP0A23YbfruI/2iPW8ozc4z84Pn0f9wXlP7ZNsQjCKuY/sBpRqpFK5z+FbTsACmXoP5EOTwbPeek/NcZquISI6j/NXG0Sz5DrP7aaNRBSkuw/TkiirbGM7T/yLZLmkX/uPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"DJHt7fi+kr+g6zz6s76Sv2p+wjjG35O/xuvyfUgclr8P1kKeU26Zv57fJm4A0J2/a9UJ4bOdob8G7T43UdWkv84H7aPki6i/8XZOkXq+rL/Pxc60D7Wwv4FLisvvRbO/J/X2wWMQtr9U6zHN8RK5v6RWWCIgTLy/qF+H9nS6v79+F24/O67Bv5z2OXhVmMO/deE1QMyaxb9abPCx4rTHv5Er+Ofb5cm/arPb/PoszL8vmCkLg4nOvxY3uJZbfdC/1mQfP+2/0b98nxEMGAzTvy4x1op9YdS/FWS0SL+/1b9UgvPSfibXvxDW2rZdldi/bqmxgf0L2r+ZRr/A/4nbv7H3SgEGD92/3wac0LGa3r8k3/xdUhbgvwe0VShA4uC/Lif8DfOw4b+s3ZPVO4Liv5J8wEXrVeO/8qglJdIr5L/jB2c6wQPlv3Q+KEyJ3eW/uvEMIfu45r/Gxrh/55Xnv6xizy4fdOi/gGr09HJT6b9Tg8uYszPqvzlS+OCxFOu/RHwelD7267+IpuF4Ktjsvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"bJZGAz2qs78gXwfwfOqyv6Nc48CS4LG/7DRKjSuOsL/XG1fZ6Omtvzgb7uw0Laq/4bM4hJXppb/KMRbOZCKhv57By/L5tZe/ljMc1OBaiL+gBH8TqIczP0PQE539a4s/khLnwnsDnD+3cdOP8JelP4NhhUM9mq0/WAbV5qQCsz+yE7H/3Wq3P9My59QcBLw/4t6DJ1pmwD9Kh1Gre+HCP6O/JGqccsU/9rRF2OUYyD9GlPxpgdPKP5iKkZOYoc0/emKmZCpB0D8tOLu/b7rRP+ZcKxUxPNM/LucaHwPG1D+C7a2XelfWP2eGCDks8Nc/XMhOvayP2T/qyaTekDXbP42hLldt4dw/zGUQ4daS3j+UFjcbsSTgPw8HtghSAuE/nQ8Xlhji4T99O2wgz8PiP/CVxwRAp+M/Nyo7oDWM5D+VA9lPenLlP0ots3DYWeY/l7LbXxpC5z++nmR6CivoP/78Xx1zFOk/m9jfpR7+6T/WPPZw1+fqP/A0tdtn0es/KcwuQ5q67D/EDXUEOaPtPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wSCwKKhcqL/mlS/YFu+nv2udK7YZIqi/pbV35oHyqL/jXOeMIF2qv34RTs3GXqy/yVF/y0X0rr8MTqdVNw2xv1+3R0gJ57K/B6SKTwEGtb8v01n9h2i3vwMEn+MFDbq/q/VDlOPxvL+oM5nQxArAvw8MKk4wu8G/nmPJi2iJw7/uGWzSoXTFv5AOB2sQfMe/GSGPnuieyb8iMfm1XtzLvzkeOvqmM86//mMj2vpR0L/8BoqWP5bRv+Nny9Y75tK/f/Zhv4lB1L+YIsh0w6fVv/dbeBuDGNe/ahLt12KT2L+9taDO/Bfav7a1DSTrpdu/H4Ku/Mc83b/Iiv18Ldzev7yfuuTaQeC//QdIg30Z4b8MNmSsy/Thv81hTHKS0+K/KMM95561478BknUdvprkvz4GMSe9guW/wletFmlt5r91vif+jlrnvzty3e/7Sei/+aoL/nw76b+UoO863y7qv/GKxrjvI+u/+aHNiXsa7L+MHULATxLtv5I1YW45C+6/8SFopgUF77+MGpR6gf/vvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"BZLt7fi+kr+TvucGVMCSv8IVYgU75pO/j6+/pLUqlr/uo2Ogy4eZv9wKsbOE952/KX4FTfS5ob8mSGqHf/ukv11vuOZnvai/z3+hSLH8rL+7gmvFL9uwvyhGhUW7c7O/MNB2E31Gtr/L5hge91G5v/5PRFSrlLy/3+ho0o0GwL8KGU3/5NzBv34bOyiczMO/NlOfRPTUxb82I+ZLLvXHv3ruezWLLMq/BBjN+Et6zL/SAkaNsd3Ov/CIKXX+qtC/GlSwgzfx0b9klO1tJEHTv0x7l69lmtS/VjpkxJv81b8AAwooZ2fXv8gGP1Zo2ti/LXe5yj9V2r+yhS8Bjtfbv9RjV3XzYN2/FkPnohDx3r95qsoCw0Pgv3Xliwz6EeG/P2uSrP3i4b+YVLkgnrbivz6626arjOO/8bTUfPZk5L9yXX/gTj/lv3/Mtg+FG+a/2hpWSGn55r9CYTjIy9jnv3S4OM18uei/NDkylUyb6b8//P9dC37qv1cafWWJYeu/OayE6ZZF7L+oyvEnBCrtvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aI2EHCh91D9OzVhbQNPTP47orWEDF9M/c/0H6vVI0j9DKuuunGnRP02N22p8edA/som6sDPyzj9p3uhj89HMP0pVSmRBk8o/7irnJic3yD/rm8cgrr7FP9Tk88bfKsM/P0J0jsV8wD+H4aHY0Wq7P+JZJKumq7U/is0A/Th8rz+OAo15jEijP+AUOYC2AYs/eOBp7fZfiL8tQ4zEjzyjv8sUs1ORVLC/iZzjR8gst7+gP8fU2SS+v3jCJohZncK/p/kyiCA2xr/ECIB1uNvJvzqzBdsXjc2/Pt7doZqk0L/480ydg4fSv4D8SyXCbtS/i9lWf9FZ1r/TbOnwLEjYvwqYf79POdq/5zyVMLUs3L8ePaaJ2CHevzI9F4gaDOC/OOvUBKMH4b99GcpdQwPiv9u4tDW5/uK/K7pSL8L5479LDmLtG/TkvxSmoBKE7eW/YHLMQbjl5r8LZKMddtznv/Br40h70ei/6npKZoXE6b/TgZYYUrXqv4VxhQKfo+u/3TrVximP7L+1zkMIsHftvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ze4w64FB1j8B42w0/47VP1yIIHmA1NQ/o51rRlYS1D8A4m0p0UjTP6gUR69BeNI/wfQWZfig0T9/Qf3XRcPQPxd0Myr1vs8/KjsYU87rzT+TVuhEuA3MP7BE4xlUJco/2YNI7EIzyD9tklfWJTjGP8TuT/KdNMQ/PBdxWkwpwj8qivoo0hbAP+CLV/Cg+7s/0ZGIxNC9tz/cIgcDdnWzP2x3pMClR64/KbLRIVOUpT/u3icl8aaZP3SipO9pHoA/nKPC5Aozg79GF3dHNU6bvySGudrohKa/Ep8s9ahjr794bgtFayC0vysjPZj2jLi/4nCsPzT2vL99LW0Dca3Av1Xyo9ze3MK/owg7kcIIxb8J8vIGezDHvykwjCNnU8m/rkTHzOVwy784sWToVYjNv273JFwWmc+/eUzkBkPR0L+2C4jxAdLRv0D63WB3ztK/6FjGx1LG07+BaCGZQ7nUv91pz0f5ptW/z52wRiOP1r8qRaUIcXHXv7+gjQCSTdi/YPFJoTUj2b/hd7pdC/LZvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eXvPuFN75T9UFrv9Rs7kP/+0KWoLGOQ/JziPnfZY4z92gF83XpHiP5huDteXweE/N+MPHPnp4D8Ev9el1wrgP0fFsycSSd4/iF0UC8Zu3D8kCLk0dofaP2+GiePNk9g/wpltVniU1j93A03MIIrUP+CED4RyddI/WN+cvBhX0D9hqLlpfV/MP4lJblcfAMg/2SQnwG2Rwz/seWdDfim+PzIpx/PTFrU/qLkYGhPbpz/I0bBWYIKFP1hl8lzeeJq/5nAZu6j2r7+8PXtMXWS5v+iRNLRSa8G/tLLb2r8nxr+MfmOcH+bKv8Ry/Hobpc+/U4ZrfK4x0r/L5BHMxo/Uv2uTiW0r7Na/39DqITFG2b/P202qLJ3bv+Dyysdy8N2/Yiq9Hawf4L8PIDrjmEThv8x56BSqZuK/7FZUE4qF47/E1gk/46Dkv60YlfhfuOW/9TuCoKrL5r/0X12Xbdrnv/yjsj1T5Oi/ZCcO9AXp6b+BCfwaMOjqv6RpCBN84eu/JWe/PJTU7L9WIa34IsHtvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"BIUKTSPH5D8yQx32NinkPwx3tSwQleM/KZJsRZ4K4z8VBtyU0IniP2lEnW+WEuI/t75JKt+k4T+W5noZmkDhP5UtypG25eA/SQXR5yOU4D9H3yhw0UvgPyIta3+uDOA/28Bi1FSt3z9+1SkKaVPfP1B7Xkl4C98/epUzO2HV3j8jB9yIArHeP3Kzits6nt4/jn1y3Oic3j+iSMY066zeP9D3uI0gzt4/RG59kGcA3z8kj0bmnkPfP5g9Rzill98/xlyyL1n83z/qZ926zDjgP/e8yVmie+A/HJ83yZzG4D/tf8BdqxnhP/7Q/Wu9dOE/4QOJSMLX4T8tivtHqULiP3PV7r5hteI/SFf8Adsv4z9Agb1lBLLjP+zEyz7NO+Q/5JPA4STN5D+4XzWj+mXlP/6Zw9c9BuY/SLQE1N2t5j8sIJLsyVznPzxPBXbxEug/C7P3xEPQ6D8uvQIusJTpPzbfvwUmYOo/vYrIoJQy6z9RMbZT6wvsP4hEInMZ7Ow/9jWmUw7T7T8td9tJucDuPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"upEBmFyY4T8xgtm3PxPhP5FCok6il+A/ESTKuG8l4D/X736lJnnfP7Qe4fHwud4/LXeXDxUN3j+6m363aXLdP8Uuc6LF6dw/yNJRif9y3D81Kvck7g3cP4LXPy5outs/IH0IXkR42z+EvS1tWUfbPyE7jBR+J9s/a5gADYkY2z/Ud2cPURrbP9B7ndSsLNs/0kZ/FXNP2z9Re+mKeoLbP7y7uO2Zxds/jKrJ9qcY3D8w6vhee3vcPx0dI9/q7dw/yOUkMM1v3T+i5toK+QDePx/CIShFod4/tBrWQIhQ3z9qSeqGTAfgP3rm/COnbeA/wjURVD/b4D9+iJVzAFDhP+Uv+N7Vy+E/NH2n8qpO4j+iwRELa9jiP2tOpYQBaeM/x3TQu1kA5D/xhQENX57kPyLTptT8QuU/lK0ubx7u5T+CZgc5r5/mPyRPn46aV+c/trhkzMsV6D9v9MVOLtroP4lTMXKtpOk/QCcVkzR16j/NwN8Nr0vrP2lx/z4IKOw/T4rigisK7T+4XPc1BPLtPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"bO4w64FB1j8oIEkUFp3VP1KzCSd5DNU/vbhGdmeP1D9AQdRUnSXUP61dhhXXztM/2h4xC9GK0z+elaiIR1nTP8nSwOD2OdM/MedNZpss0z+t4yNs8TDTPxHZFkW1RtM/Mdj6Q6Nt0z/h8aO7d6XTP/g25v7u7dM/SbiVYMVG1D+ohoYzt6/UP+yyjMqAKNU/5k18eN6w1T9uaCmQjEjWP1kTaGRH79Y/el8MSMuk1z+lXeqN1GjYP7Ee1ogfO9k/crOji2gb2j+7LCfpawnbP2KbNPTlBNw/PBCg/5IN3T8fnD1eLyPeP9xP4WJ3Rd8/JJ4vsBM64D8fucXUfdfgP0UBnUjYeuE/BH8fNQEk4j/EOrfD1tLiP/A8zh03h+M/8o3ObABB5D82NiLaEADlPyU+M49GxOU/KK5rtX+N5j+tjjV2mlvnPxvo+vp0Lug/3sIlbe0F6T9fJyD24eHpPwkeVL8wwuo/Sa8r8rem6z+G4xC4VY/sPyrDbTroe+0/olasok1s7j9XpjYaZGDvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"b42EHCh91D98hy9RdNLTP3B7G9DYE9M/8oZotuJB0j+oxzYhH13RPzpbpi0bZtA/oL6u8ce6zj8l49M/DYfMP0xf/H8gMso/aG5o7Bu9xz/ES1i/GSnFP7UyDDM0d8I/Bb2IAwtRvz8PFYLLT3y5PwjkhDJrcrM/TEEjWiNrqj/OBaO+3h+bP4CLXmXX6EU/NtcfhK9ymr9IwZ0WmR6rv8eMidvbqbS/oYM3XSXqu79EJ+xN+qbBv3i7dZGKacW/GkP4Pqk7yb/WgjMcPBzNv6+fc3cUhdC/tp5pviqC0r/WoNvF04TUv2aIqXCCjNa/vTezoamY2L88kdg7vKjavzJ3+SEtvNy//sv1Nm/S3r/6uNauenXgv7clgDyZguG/ZB3ntUyQ4r8qkXuMTp7jvzlyrTFYrOS/urHsFiO65b/bQKmtaMfmv8kQU2fi0+e/rxJatUnf6L+4Ny4JWOnpvxJxP9TG8eq/66/9h0/4679t5diVq/zsv8QCQW+U/u2/HvmlhcP97r+luXdK8vnvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"2M5lGNVe4j+tnuBsHsrhP2L1HggeLOE/MSUlyiSF4D+oAO8lB6vfPxWyNIUWO94/HQMkchm73D9BmMWssSvbP+8VIvWAjdk/pSBCCynh1z/dXC6vSyfWPw1v76CKYNQ/sPuNoIeN0j9ApxJu5K7QP2QsDJOFis0/BNrh5YiiyT9IoLdUFqfFPynInl9xmcE/MTVRDbv1uj8LwcyTPJmyP5KLpaXcP6Q/gFRdqHTFeD8s+t0TBnycv75HBTcqv6+/xwj5eNyyuL+wDZxOKMvAv9ykDkS1Q8W/BQHDnNHByb8y2afYOUTOvzjy1TvVZNG/5eze/G+o078uOGZvS+zVv5QvY9PFL9i/oi7NaD1y2r/ckJtvELPcv8ixxSed8d6/enah6KCW4L/xTgVWrrLhvw4QCvylzOK/kmer+jbk479EA+VxEPnkv+aQsoHhCua/PL4PSlkZ578JOfjqJiTovxGvZ4T5Kum/GM5ZNoAt6r/iQ8ogaivrvzG+tGNmJOy/yuoUHyQY7b9wd+ZyUgbuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"RSCwKKhcqL/pOaQ6ZFynv/VevyRU26W/6dX2YVDco7835T9tMWKhv7umH4Of35y/os23swcQlr9EmGXEmLaMv4a87BF6HHe/QOMjfIc2bT8NU8MHotGLP0zLscIw+Zg/ZSoFmx9poj98XAC0JbeoP4A1VTHSY68/dTcHTCY2sz8pYZs23ua2P5p07Jqkwro/h85/Ow3Ivj/fZW3t1XrBP3xkwR0KpcM/gJH+D+3hxT9Jm2elyDDIPz0wP7/mkMo/vP7HPpEBzT8otUQFEoLPP+4A/HnZCNE/o0kS9t5X0j/gi4Znvq3TP9ce+r4cCtU/tlkO7Z5s1j+zk2Ti6dTXP/ojno+iQtk/wGFc5W212j80pEDU8CzcP4JC7EzQqN0/5JMAQLEo3z/Cdw9PHFbgP0xW9KuFGeE/JpH/Lmfe4T/p04FQk6TiPy/Ky4jca+M/jh8uUBU05D+hf/keEP3kP/6Vfm2fxuU/Pw4OtJWQ5j/8k/hqxVrnP87SjgoBJeg/THYhCxvv6D8QKgHl5bjpPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"U/gVqUQh4z+Q14fpiIziPwkmHwM4+uE/IcHbs2Vq4T9Chr25Jd3gP9VSxNKLUuA/fAjgeVeV3z/S74BsMoveP3IWa/nPht0/MzeenFeI3D/fDBrS8I/bP0hS3hXDndo/QcLq4/Wx2T+UFz+4sMzYPxEN2w4b7tc/i12+Y1wW1z/Lw+gynEXWP6X6WfgBfNU/6LwRMLW51D9hxQ9W3f7TP+LOU+ahS9M/OpTdXCqg0j840Kw1nvzRP6k9wewkYdE/X5ca/uXN0D8qmLjlCEPQP6/1NT9qgc8/bfSCTySOzj8xolf0jqzNP5R0syX53Mw/OuGV27EfzD+/Xf4NCHXLP8Jf7LRK3co/4VxfyMhYyj++ylZA0efJP/Me0hSzisk/Is/QPb1ByT/oUFKzPg3JP+QZVm2G7cg/tp/bY+PiyD/8V+KOpO3IP1S4aeYYDsk/XDZxYo9EyT+1R/j6VpHJP/ph/qe+9Mk/z/qCYRVvyj/Ph4UfqgDLP5l+BdrLqcs/zVQCiclqzD8IgHsk8kPNPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"oinVk2IO5D9aNBpC6G/jP9Yh8o/yzuI/cqcS8bAr4j+GejHZUobhP3JQBLwH3+A/kt5ADf814D+LtDmB0BbfP8nxm5Plvt0/mt8TOZxk3D+56AxZUwjbP9138tppqtk/v/cvpj5L2D8f0zCiMOvWP650YLaeitU/KUcqyucp1D9GtfnEasnSP8EpOo6GadE/Ug9XDZoK0D9koXdTCFrNPzqxp5VHoso/kSMVsK/uxz/izZZx/j/FP5iFA6nxlsI/UUBkSo7ovz8O5vJpebG6P1CnYE4girU/7y5blf5zsD+tTyC5H+GmP7bztAY/BZo/sJEBJp57ej9AxkwdsdWIvzi3CMsSEp+/LvZ3WmyoqL+4VWn1Tsiwv8qSnG1TH7W/dAco+MdXub/MCF73MHC9v/Z1yGaJs8C/9oKJ7nidwr/4VRtEKXXEv4YZp5jcOca/MfhVHdXqx7+DHFEDVYfJvwmxwXueDsu/VuDQt/N/zL/01KfoltrNv3G5bz/KHc+/Ltyo9mck0L8gfrsRda3Qvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ktwNjTRH7r+q7yKN5lntvzc7iPSubOy/fDH48sB/67+xRC24T5Pqvxjn4XOOp+m/8IrQVbC86L97orON6NLnv/OfRUtq6ua/l/VAvmgD5r+qFWAWFx7lv2lyXYOoOuS/En7zNFBZ47/mqtxaQXrivyNr0ySvneG/CDGSwszD4L+j3abHmtnfv4Mto3DIMd6/KzaO34iQ3L8Z3NxzQvbav80DBI1bY9m/xZF4ijrY179+aq/LRVXWv3RyHbDj2tS/Jo43l3pp078SonLgcAHSv7eSQ+sso9C/I4k+Liqezr9COPWGHwvMv8D7lJ8Gjsm/o5wHN6wnx7/c4zYM3djEv22aDN5losK/UIlyaxOFwL8F86TmZAO9vwVoLGkfMrm/igNP3O+Xtb+RV+C9bzayvynsZxdxHq6/HOI6h8dHqL/etODGFeyiv8EQAaQdHZy/LAGDSMtkk7+8BSvlNGuHv+p2G2bEV3S/IJ2p1rLyPD8QBwMTzYRzP61YurbEV4A/nDzDL+SahD+Zn/8F+X6GPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EioB5eW46T+wK8pTQPToP1KHKRZyOeg/1l9CkXKI5z8Z2DcqOeHmP/kSLUa9Q+Y/VTNFSvav5T8PXKOb2yXlP/+vap9kpeQ/BlK+uogu5D8CZcFSP8HjP9ILl8x/XeM/VGlijUED4z9poEb6e7LiP+rTZngma+I/uibmbDgt4j+zu+c8qfjhP7a1jk1wzeE/oDf+A4Wr4T9RZFnF3pLhP6Zew/Z0g+E/fklf/T594T+2R1A+NIDhPy58uR5MjOE/wwm+A36h4T9UE4FSwb/hP767JXAN5+E/4iXPwVkX4j+cdKCsnVDiP8rKvJXQkuI/TEtH4und4j8AGWP34DHjP8JWMzqtjuM/dCfbD0b04z/wrX3domLkPxgNPgi72eQ/yWc/9YVZ5T/i4KQJ++HlPz+bkaoRc+Y/wLkoPcEM5z9CX40mAa/nP6eu4svIWeg/ycpLkg8N6T+I1uvezMjpP8H05Rb4jOo/VUhdn4hZ6z8i9HTddS7sPwMbUDa3C+0/2d8RD0Tx7T+CZd3ME9/uPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"m0ajywyR7z+ATZGQ3p3uPxsZkOwbs+0/V8IO0c3Q7D8cYnwv/fbrP10RSPmyJes/A+ngH/hc6j8CAraU1ZzpPzt1NklU5eg/o1vRLn026D8kzvU2WZDnP6zlElPx8uY/KLuXdE5e5j+IZ/OMedLlP7IDlY17T+U/mKjrZ13V5D8jb2YNKGTkP0JwdG/k++M/4sSEf5uc4z/vhQYvVkbjP1fMaG8d+eI/BrEaMvq04j/rTIto9XniP++4KQQYSOI/AQ5l9mof4j8OZaww9//hPwHXbqTF6eE/ynwbQ9/c4T9UbyH+TNnhP4zH78YX3+E/XZ71jkju4T+4DKJH6AbiP4UrZOL/KOI/tROrUJhU4j8z3uWDuoniP+yjg21vyOI/zH3z/r8Q4z/ChKQptWLjP7jRBd9XvuM/nX2GELEj5D9eoZWvyZLkP+ZVoq2qC+U/I7Qb/FyO5T8C1XCM6RrmP2/REFBZseY/WMJqOLVR5z+qwO02BvznP0/lCD1VsOg/OEkrPKtu6T9PBcQlETfqPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"r0dkUfgA2L+9JUscs07Xv2cwKmTyr9a/c7sdBHck1r+lGkLXAazVv8Whs7hTRtW/mKSOgy3z1L/pdu8SULLUv3ps8kF8g9S/ENmz63Jm1L91EFDr9FrUv25m4xvDYNS/wy6KWJ531L85vWB8R5/Uv5dlg2J/19S/o3sO5gYg1b8jUx7innjVv94/zzEI4dW/mpU9sANZ1r8eqIU4UuDWvy/Lw6W0dte/mFIU0+sb2L8ZkpObuM/Yv33dXdrbkdm/ioiPahZi2r8E50QnKUDbv7FMmuvUK9y/XA2sktok3b/IfJb3+irev7zudfX2Pd+/fluzs8cu4L+qlEKUwsTgv8TM9onMYOG/ri1eAsYC4r9M4QZrj6riv4ERfzEJWOO/MehUwxML5L9AjxaOj8Pkv44wUv9cgeW/APaVhFxE5r98CXCLbgznv+GUboFz2ee/FMIf1Eur6L/3uhHx14Hpv26p0kX4XOq/XrfwP40867+pDvpMdyDsvzLZfNqWCO2/20AHVsz07b+Jbyct+OTuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jVyQInGayT8tGzEiyOLIPwqRKI+9TMg/RpwbysnXxz8EG68zZYPHP2rrhywIT8c/mutKFSs6xz+6+ZxORkTHP+vzIjnSbMc/UriBNUezxz8SJV6kHRfIP1EYXebNl8g/MXAjXNA0yT/XClZmne3JP2bGmWWtwco/AoGTuniwyz/OGOjFd7nMP+9rPOgi3M0/hlg1gvIXzz9e3jt6LzbQP1c71E9w7NA/QzI28neu0T8zMrSRAnzSPziqoF7MVNM/ZglOiZE41D/Mvg5CDifVP3w5Nbn+H9Y/iugTHx8j1z8JO/2jKzDYPwigQ3jgRtk/l4Y5zPlm2j/OXTHQM5DbP7qUfbRKwtw/cJpwqfr83T8A3lzf/z/fPz1nSkOLReA/em21Z/3u4D9AuRh1NJzhPxaCnYMOTeI/hv9sq2kB4z8YabAEJLnjP1f2kKcbdOQ/zN43rC4y5T/8Wc4qO/PlP3OffTsft+Y/u+Zu9rh95z9cZ8tz5kboP95YvMuFEuk/yvJqFnXg6T+qbABskrDqPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"7UQPZF83wr/fzIDGKJXBv8lodw6lzMC/UVCvKn+9v7/iNAxpx5i9vzuezor5LLu/T6u/Qux7uL8Se6hDdoe1v3AsUkBuUbK/vLwL11W3rb+eXxnwBVCmv8z+vmI04Zy/0GfBAQBziL8olg7p2T51P+WRiUMUs5c/o0rmR590pT8DGvRJbXWvP5T8LWEj7LQ/ENXFJb9Muj+Od/g/s9q/P4pifn4UysI/XM8E1aS7xT/A8ipKH8HIP0A9jISY2cs/ZB/EKiUEzz/YBLfx7B/RP1O2kqrlxdI/btxCE4dz1D9nLxV/WyjWP4NnV0Ht49c/Aj1Xrcal2T8waGIWcm3bP0ihxs95Ot0/k6DRLGgM3z8pj2jAY3HgP2NpiQ+RXuE/HDtyLYFN4j904MlD+T3jP441N3y+L+Q/ihZhAJYi5T+NX+75RBbmP7TshZKQCuc/JprO8z3/5z8ARG9HEvToP2XGDrfS6Ok/ev1TbETd6j9fxeWQLNHrPzP6ak5QxOw/G3iKznS27T84G+s6X6fuPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"C6cic2QQvL+juDOwmyi7v9ugnGCQKbq/3c03cu4Tub/Nrd/SYei3v86ubnCWp7a/Cz+/ODhStb+qzKsZ8+izv8/FDgFzbLK/oJjC3GPdsL+LZkM143iuv8kHDVGQFKu/R/GW6CaPp79W/5XX/umjvzsOv/lvJqC/lvSNVaSLmL+NP8WM+pKQvwpsG6Eky4C/AG5CRGFt+L5I8A1JdRGBP5WrkO4/RJE/JVFizsQpmj8aGEnGTJuhPxhI2zgHNKY/Qtwy47ndqj9G+JrpDJevP+pfLzhUL7I/VqvkTZqZtD888BLIrAm3P3fA37jffrk/3q1wMof4uz9SSutG93W+P9KTOgRCe8A/2+uZxMC8wT8udqbtIf/CP7b7cogPQsQ/ZUUSnjOFxT8lHJc3OMjGP+NIFF7HCsg/i5ScGotMyT8LyEJ2LY3KP1GsGXpYzMs/SAo0L7YJzT/dqqSe8ETOP/xWftGxfc8/y+tp6NFZ0D/J+ttSOPPQP/G8nizhitE/uJY7eqEg0j+V7DtATrTSPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"TAHyLqfr7b+hq3DwX/zsv5VZRMTCA+y/3pu9fzQC678vAy34Gfjpv0cg4wLY5ei/2oMwddPL57+ovmUkcarmv15h0+UVguW/u/zJjiZT5L90IZr0Bx7jv0dglOwe4+G/50kJTNCi4L8l3pLQAbvev/TASi0rJ9y/uF3bWOaK2b/Y1eX9/ObWv8pKC8c4PNS/AN7sXmOL0b/QYVfgjKrNv+jJ0UpXNci/JTeLUrm4wr/m2IuZjGy6v5SyEDtGvq6/LNVBbnMxkb9QNV0HfiKbP8xoKlCr3LE/cFfk5J/svD+3ScBKq/rDP4JLvVvUeck/Mu4m0Dfyzj96d10pITHSP26FG0cw5NQ/iH+sln+R1z9SRG9tRTjaP1uywiC419w/OagFBg5v3z88gku5vv7gP9TS6l0eQeI/KjWQG0F+4z+IGOscwrXkPzXsqow85+U/eh9/lUsS5z+cIRdiijboP+JhIh2UU+k/mU9Q8QNp6j8EWlAJdXbrP2zw0Y+Ce+w/GIKEr8d37T9RfheT32ruPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ejRPgFDrxT8G4adlulLFPy8yvdoW4MQ/7ys44cCSxD840sF6E2rEPwUpA6lpZcQ/TjSlbR6ExD8L+FDKjMXEPy94r8APKcU/tbhpUgKuxT+TvSiBv1PGP8GKlU6iGcc/OCRZvAX/xz/tjRzMRAPJP9vLiH+6Jco/9eFG2MFlyz811P/XtcLMP5KmXIDxO84/Al0G08/Qzz+//dLoVcDQP/9C8j5wpdE/PYC1bGSX0j9zN/Hy35XTP57qeVKQoNQ/uxskDCO31T/CTMSgRdnWP7L/LpGlBtg/hrY4XvA+2T8687WI04HaP8g3e5H8zts/LAZd+Rgm3T9m4C9B1obeP2xIyOnh8N8/HmD9ufSx4D/p5E0wzW/hP5XzPxjRMeI/H809Mtf34j+GsrE+tsHjP8jkBf5Ej+Q/4KSkMFpg5T/RM/iWzDTmP5TSavFyDOc/KsJmACTn5z+OQ1aEtsToP8CXoz0Bpek/v/+47NqH6j+GvABSGm3rPxQP5S2WVOw/ZzjQQCU+7T9+eSxLninuPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"K4LYIe+47z+KJNDsesLuP/jaKQxm0O0/phkYTM/i7D+7VM141fnrP2IAfF6XFes/zZBWyTM26j8meo+FyVvpP5UwWV93hug/SyjmIly25z9y1WicluvmPzasE5hFJuY/wyAZ4odm5T9Jp6tGfKzkP++z/ZFB+OM/5LpBkPZJ4z9RMKoNuqHiP2eIadaq/+E/TTeytudj4T8ysbZ6j87gP0Jqqe7AP+A/Uq15vTVv3z8n1UYueGzeP1g0H8iGd90/QLNnI5+Q3D83OoXY/rfbP5Wx3H/j7do/sQHTsYoy2j/lEs0GMobZP4jNLxcX6dg/9Blge3db2D9/4MLLkN3XP4IJvaCgb9c/Vn2zkuQR1z9TJAs6msTWP9LmKC//h9Y/Kq1xClFc1j+yX0pkzUHWP8bmF9WxONY/uio/9TtB1j/qEyVdqVvWP6yKLqU3iNY/WHfAZSTH1j9Iwj83rRjXP9NTEbIPfdc/URSabon01z8d7D4FWH/YP4vDZA65Hdk/9oJwIurP2T+2EsfZKJbaPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"P64CGjkJ1r/9D9gXHFvVv3lZV01JqtS/xW9axvT207/sN7uOUkHTvwKXU7KWidK/FHL9PPXP0b85rpI6ohTRv3sw7bbRV9C/27vNe28zz784N7O2ELXNvzqdPjbvNMy/+7cjEnOzyr+fURZiBDHJv0Q0yj0Lrse/DSrzvO8qxr8V/UT3GajEv4B3cwTyJcO/b2My/N+kwb8EizX2SyXAv7hwYRQ8T72/M2uvn3xYur/Cmby9KWe3v5iQ8J0TfLS//OOybwqYsb9iUNbEvHetv/LiAUu/0Ke/IKi30Lw8or/qkI1pq3qZv8ix+VepUI2/8ORtmdgWcL949OCmvad5PxT5n0Zbo5A/sGm9skyjmj/uHjl4QTOiP0gSEKHe9KY/cGYUdd2Uqz9vebvKzgiwP4ZHtFG/NLI/PQkNIHBNtD9UKl4GEVK2P4oWQNXRQbg/nTlLXeIbuj9K/xdvct+7P1HTPtuxi70/dCFYctAfvz+3Kn4Cf03AP4Dt4TE1/sA/846jr6KhwT/xRA9kXzfCPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ejf4EcMU6T84JDJMJFLoP13qACtyk+c/bnLVicLY5j/kpCBEKyLmP0hqUzXCb+U/E6veOJ3B5D/MTzMq0hfkP+5AwuR2cuM//mb8Q6HR4j95qlIjZzXiP+LzNV7eneE/uCsX0BwL4T9/OmdUOH3gP2gRLo2N6N8/sv0uBLzg3j/bCrPEJ+PdP+UJnIX879w/0svL/WUH3D+jISTkjynbP1jchu+lVto/9czV1tOO2T96xPJQRdLYP+aTvxQmIdg/PQwe2aF71z9+/u9U5OHWP6s7Fz8ZVNY/xpR1TmzS1T/P2uw5CV3VP8jeXrgb9NQ/sXGtgM+X1D+MZLpJUEjUP1qIZ8rJBdQ/HK6WuWfQ0z/SpinOVajTP4JDAr+/jdM/JlUCQ9GA0z/FrAsRtoHTP14bAOCZkNM/8HHBZqit0z+BgTFcDdnTPw4bMnf0EtQ/mg+lbolb1D8kMGz597LUP7BNac5rGdU/Pzl+pBCP1T/Sw4wyEhTWP2i+di+cqNY/A/odUtpM1z+mR2RR+ADYPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WQd9VTx9pj+FtjgGCBWmP47i7u0GO6Y/sAG8A2nspj8iirw+XiaoPyDyDJYW5qk/6a/JAMIorD+3OQ92kOuuP+ACffbYFbE/IUVTLivzsj+9nhjeVgy1P9FKWwH0X7c/fYSpk5rsuT/YhpGQ4rC8PweNofNjq78/EOkzXFttwT+lSDltuR7DP84CqCoY6cQ/GDVHksPLxj8X/d2hB8bIP1R4M1cw18o/ZMQOsIn+zD/O/jaqXzvPP5WiuSF/xtA/gVrFvFj50T/xNSKl4jXTP6zDs9nCe9Q/f5JdWZ/K1T8tMQMjHiLXP3wuiDXlgdg/NRnQj5rp2T8igL4w5FjbPwbyNhdoz9w/rv0cQsxM3j/aMVSwttDfP6sOYLBmreA/dSciKVt14T+uKuLBC0DiP7nfEXpLDeM/+g0jUe3c4z/WfIdGxK7kP7DzsFmjguU/7DkRil1Y5j/sFhrXxS/nPxRSPUCvCOg/yrLsxOzi6D9xAJpkUb7pP2sCtx6wmuo/HYC18tt36z/qQAfgp1XsPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"lew7QE600j8zZkAs7hfSP4irVvpQaNE/ImFsLv2l0D8RV96Y8qLPP5NembCX1s0/4SHlq/bnyz8U6pySHNjJPzwAnGwWqMc/da29QfFYxT/VOt0ZuuvCP3Xx1fx9YcA/0jQG5ZN2uz+c/X8FVvS1P2bPz2pcPrA/1nhYSYKtpD86Wy8Lef6QP+h51liRJ4C/CEeiKqzpoL+9J0HY5huuvxuO0h8wzrW/D4CwIHKzvL/C64Gvz93BvywBi+VOcsW/LTeYqikWyb+rRM72UsjMv0bwKOHeQ9C/4eCjgq4p0r+YT+rbERXUv+GXDmmCBda/LBUjpnn617/1IjoPcfPZv6scZiDi79u/xV25VUbv3b+0QUYrF/Hfv/eRjw5n+uC/9i+rU/L84b+OKP8i6v/iv3yplDoLA+S/duB0WBIG5b88+6g6vAjmv4UnOp/FCue/CpMxROsL6L+Ia5jn6Qvpv7bed0d+Cuq/UhrZIWUH678VTMU0WwLsv7ihRT4d++y/9Uhj/Gfx7b+Jbyct+OTuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vj6q633bvr8gJZ/xSMG9v0XJJVOMV7y/qKsv3SSgur+5TK5c75y4v/Usk57IT7a/0szPb426s7/KrFWdGt+wv5yaLOiZfqu/tV0GggK6pL+YRzdEUeiavza3PYkXw4a/2hraG2FjdD9Z3cKqZ3+WP1ATgJlXZaQ/RDD01Z35rT9WYm14ZvyzP8hnKKiVL7k//qc5rX+Uvj9C0VfdoxTCP25rzIEI9sQ/TuKBXX/txz+fdf8JGvrKPyplzCDqGs4/Wvi3nYCn0D//q7h5uErSP2TtK3Gl9tM/clzVUNCq1T8GmXjlwWbXPwJD2fsCKtk/SPq6YBz02j/AXuHglsTcP0UQEEn7mt4/XlcFM2k74D8EbUqC0ivhPwQZufh9HuI/USuz/C8T4z/bc5r0rAnkP5TC0Ea5AeU/a+e3WRn75T9TsrGTkfXmPz3zH1vm8Oc/GXpkFtzs6D/YFuErN+npP22Z9wG85eo/x9EJ/y7i6z/Zj3mJVN7sP5OjqAfx2e0/5dz438jU7j/CC8x4oM7vPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NWj3Cl2bw79ym4Feve7CvwNOpTrIHMK/efRZL2Ymwb9aA5fMfwzAv2jep0T7n72/I1kQgZDjur8BYFZukOW3vxLcaCzMp7S/b7Y22xQssb9gsF01d+iqv9NUgBUjBKO/0FhmLZ9dlb94lUCN78FuvwwJ/RAyAY0/KOSooNDSoD9DCoscy8eqPyzxA9zMjbI/Fs2gGU3ltz/ULy0nlWi9PyIYXfLpisE/rnIsGZx1xD/8Mg14eHPHP4bkB3+Wg8o/wBIlng2lzT+OpLaiemvQP4SJdHIyDNI/BH5Q9jm00z/Ex07mHGPVP36sc/pmGNc/6nHD6qPT2D/KXUJvX5TaP9K19D8lWtw/vr/eFIEk3j9IwQSm/vLfPxSAtdWU4uA/DeGK7kbN4T9upoR5W7niPxLzpFKYpuM/1+ntVcOU5D+ZrWFfooPlPzdhAkv7cuY/jSfS9JNi5z94I9M4MlLoP9V3B/ObQek/g0dx/5Yw6j9dtRI66R7rP0Hk7X5YDOw/DPcEqqr47D+bEFqXpePtPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"imU5tyBN2b/o+DRVoZDYv6s0zQWK59e/m4NQcp5R1796UA1Eos7Wvw8GUiRZXta/Ig9tvIYA1r981qy17rTVv97GX7lUe9W/EUvUcHxT1b/bzViFKT3VvwW6O6AfONW/UnrLaiJE1b+MeVaO9WDVv3YiK7RcjtW/2d+XhRvM1b94HOur9RnWvx9Dc9Cud9a/jr5+nArl1r+Q+Vu5zGHXv+peWdC47de/ZFnFipKI2L/BU+6RHTLZv8y4Io8d6tm/R/OwK1aw2r/7becQi4Tbv66TFOh/Zty/J8+GWvhV3b8si4wRuFLev4MydLaCXN+/+BdG+Y054L8gd5G3I8vgvxpsw2rkYuG/SiyD57EA4r8U7XcCbqTiv9rjSJD6TeO//0WdZTn947/oSBxXDLLkv/ghbTlVbOW/jwY34fUr5r8VLCEj0PDmv+nH0tPFuue/cw/zx7iJ6L8QOCnUil3pvyh3HM0dNuq/HQJ0h1MT679SDtfXDfXrvyrR7JIu2+y/CYBcjZfF7b9SUM2bKrTuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eH2eGXQ527/TEuYvglvav+x28se6bNm/QLZOG6Zt2L9K3YVjzF7Xv4X4Itq1QNa/cBSxuOoT1b+HPbs489jTv0KAzJNXkNK/IelvA6A60b87CWGCqbDPv2u+Mg3808y/yAprGkjgyb9QByAdntbGv/LMZ4gOuMO/rnRYz6mFwL/oLhDKAIG6v4KcGXlF07O/PsjyI4UIqr+O3m7rY1iYv2DeZsLMom4/emtOVVU2oD+IJWjZBbSuPyCcDUZ+r7Y/4Z+H0HsZvj8G9vpS7crCP1knFvA8kcY/9kp/TJxeyj/mRyD1+jHOP5aCcTskBdE/5bRYLzrz0j9srroct+LUP6hiDMoS09Y/IsXC/cTD2D9ayVJ+RbTaP9JiMRIMpNw/FIXTf5CS3j/REddGpT/gPwAZGwHZNOE/1lHwUZ8o4j8ZNpEctBrjP4o/OETTCuQ/6ucfrLj45D/6qII3IOTlP378msnFzOY/OFyjRWWy5z/oQdaOupToP1InboiBc+k/N4alFXZO6j9Z2LYZVCXrPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"X0O2IDYe3b8Hue3slzLcvxXmsG5zONu/2nNwyUcw2r+jC50glBrZv8RWp5fX99e/jf7/UZHI1r9SrBdzQI3Vv14JXx5kRtS/Bb9Gd3v00r+Wdj+hBZjRv2PZub+BMdC/eiFN7N2Czb/wi+zPmJDKv71EM3Eyjce/i54CF6l5xL/36zsI+1bBv0n/gBdNTLy/a1jj0FPQtb8kEcOUDXiuvxpqfCPFIqG/ODHASzsmfb88oIn75PuTP0DOtHZvwac/2VTpMtvQsj/0i8wXZ825P5azIG4vasA/o6BC+eLxwz9+umrmz3zHP4Out+73Ccs/ECpIy1yYzj9FbZ0agBPRP6Q21/Jx2tI/2MfgyoSg1D+Md0l/OWXWP3CcoOwQKNg/NY1174vo2T+LoFdkK6bbPx8t1idwYN0/oImAFtsW3z9gBnOGdmTgP5YGy3MTO+E/yvCPwQQP4j9TcAneCuDiP4gwfzfmreM/w9w4PFd45D9bIH5aHj/lP6amlgD8AeY//BrKnLDA5j+2KGCd/HrnPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aD5kWW+n6z/oJ/jy4snqP7MyqfXt4uk/j9t6vPHy6D89n3CiT/rnP3/6jQJp+eY/HWrWN5/w5T/bak2dU+DkP3d59o3nyOM/uRLVZLyq4j9ls+x8M4bhPz3YQDGuW+A/DfypuRtX3j8JQ1m1Z+zbP/V+lgsDeNk/XKlocrD61j+8u9afMnXUP6Sv50lM6NE/Nf1ETYCpzj9PRBzYoXbJP6AnY6CCOcQ/eDRPJFDnvT9sHu8yL02zP0Lmg4laT6E/+DnjcFYxgL8oFSBbnHKpv7IQfQGybre/zMnjuKURwb+O1inTB2rGv427guP5vsu/20LwPnuH0L8FoRobPCzTv7Z+OdD8zNW/auJFqPpo2L+X0jjtcv/av7RVC+mij92/Hznb8mMM4L9Xl5mWD03hv7xIvQRzieK/itBC4izB478BsibU2/Pkv1pwZX8eIea/0477iJNI57+mkOWV2WnovxD5H0uPhOm/T0unTVOY6r+eCnhCxKTrvzm6js6Aqey/Xt3nliem7b9H939AV5ruvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Xk9FPMgb6z+abTMgEkzqPzq0snzPhek/gw3hKPzI6D+0Y9z7kxXoPwyhwsySa+c/0q+xcvTK5j9JesfEtDPmP67qIZrPpeU/ReveyUAh5T9SZhwrBKbkPxdG+JQVNOQ/03SQ3nDL4z/M3ALfEWzjP0JobW30FeM/eAHuYBTJ4j+ukqKQbYXiPygGqdP7SuI/J0YfAbsZ4j/uPCPwpvHhP7/U0ne70uE/3PdLb/S84T+IkKytTbDhPwOJEgrDrOE/kMubW1Cy4T9yQmZ58cDhP+nXjzqi2OE/OnY2dl754T+mB3gDIiPiP252crnoVeI/06xDb66R4j8clQn8btbiP4UZ4jYmJOM/VSTr9s964z/Ln0ITaNrjPyt2BmPqQuQ/tpFUvVK05D+u3Er5nC7lP1dBB+7EseU/8KmncsY95j++AEpendLmPwIwDIhFcOc//SEMx7oW6D/ywGfy+MXoPyL3POH7fek/0q6par8+6j9C0stlPwjrP7RLwal32us/awWoDWS17D+p6Z1oAJntPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"JYvyC+D63r9f1Qo3Xf/dv0blLwbF8ty/zd2vb6fV27/Z4dhplKjav2EU+eobbNm/Tphe6c0g2L+VkFdbOsfWvxwgMjfxX9W/1mk8c4Lr07+wkMQFfmrSv5u3GOVz3dC/BAMOD+iJzr+uIrvGHEPLvwoU1d2l58e/+xz4QKN4xL9Wg8DcNPfAv/wZlTv1yLq/oP9k4SiDs7+QhlIIiT6ov9TCafQffpK/+GJ31GbOhz9kkDRT9FSlPyEXzxZAcLI/aM30yN5Iuj+kb2kzCxnBP4BgmIvTFMU/dvNqgKgWyT+k4kQlah3NPxb0xEb8k9A/Ft9O5pma0j9rD/L6/aHUPyBiYI6YqdY/S7RLqtmw2D/64mVYMbfaPzzLYKIPvNw/LErukeS+3j9qHmAYkF/gPyRAREQZXuE/zHh80cVa4j/stuHETVXjPw3pTCNpTeQ/t/2W8c9C5T9y45g0OjXmP8aIK/FfJOc/QNwnLPkP6D9mzGbqvffoP8FHwTBm2+k/2jwQBKq66j85mixpQZXrPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NZZGAz2qsz8Q7ZLVBg2zPxyRqxjIabI/eSJnhsLAsT9FQZzYNxKxP52NIclpXrA/QE+bIzRLrz/gXu7YFNCtP02K6SX5S6w/yxE6fmS/qj+TNY1V2iqpP+U1kB/ejqc//lLwT/PrpT8bzVpanUKkP3jkfLJfk6I/V9kDzL3eoD/T1zk1dkqeP/G46iO2zpo/dtZ0S0JLlz/jsDKTIcGTP6zIfuJaMZA/oTxnQeo5iT+aZFdq7gmCP0oUBh2gqXU/AHL55OfkXD/gcPnk5+Rcv+oTBh2gqXW/aWRXau4Jgr97PGdB6jmJv5rIfuJaMZC/yrAykyHBk79h1nRLQkuXv9i46iO2zpq/vtc5NXZKnr9K2QPMvd6gv2zkfLJfk6K/D81aWp1CpL/0UvBP8+ulv9o1kB/ejqe/hjWNVdoqqb++ETp+ZL+qv0CK6SX5S6y/017u2BTQrb82T5sjNEuvv5aNIclpXrC/PkGc2DcSsb9zImeGwsCxvxaRqxjIabK/Cu2S1QYNs78ulkYDPaqzvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"GWdK4fD77j+7LG5oNwjuP4yzvynVEu0/ot892gcc7D8RlecuDSTrP/m3u9wiK+o/bSy5mIYx6T+N1t4XdjfoP2yaKw8vPec/I1yeM+9C5j/M/zU69EjlP4Fp8dd7T+Q/Wn3PwcNW4z9yH8+sCV/iP98z702LaOE/u54uWoZz4D86iBgNcQDfPz8QDhC/Hd0/up07J3I/2z/W+J68BWbZP8rpNTr1kdc/xjj+CbzD1T/+rfWV1fvTP54RGki9OtI/3Ctpiu6A0D/QicGNyZ3NP/BJ/c42Sso/cSiBrBsIxz+3tUj6btjDPy2CT4wnvMA/ZzwibXhouz9SNBKaR4O1P9QZzI5Ula8/5s0pOhyBpD/wjFcMg5uTPwBd96cHHFC/jOlUgNvNlL+DJaayi+Cjv5eLxMTe6ay/sbJL04W/sr+4OBiEG862vxS30MzCnrq//Qx+BY4vvr/WjBTDR7/AvytebdPsRMK/IOrNX7+nw79NoDqUyObEv0/wt5wRAca/wklKpaP1xr9FHPbZh8PHvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"OX67EXWt0D8vA4cr4SLQPyWzMVCpEc8/oPtx/Hy/zT+d2F5JG1DMP/FCiCRixMo/bTN+ey8dyT/ootA7YVvHPzCKD1PVf8U/GuLKrmmLwz95o5I8/H7BP0CO7dPVtr4/xIsOSSdDuj8qMaizqKS1Pwtw2u4V3bA/NHSKq1Xcpz/IAyIOjWabP8BjQzSxE3o/+KI9/47Kjb94mrZ1j2iiv2FF7UTVm62/HsOZu36EtL/SvCQrSFa6vxvP+4rFIMC/0Dp50EUiw7+yqHr4xi7Gv+wfcBVrRcm/tKfJOVRlzL8yR/d3pI3Pv8iCNPG+XtG//nTHRQH60r/WfexCKpjUv+Cg2/HKONa/uOHMW3Tb17/xQ/iJt3/ZvyHLlYUlJdu/4nrdV0/L3L/IVgcKxnHevzWxpVINDOC/r9BwGe/e4L+fCwHeULHhv85j8iT7guK/CNvgcrZT478Zc2hMSyPkv8otJTaC8eS/6QyztCO+5b9CEq5M+Ijmv5w/soLIUee/xpZb21wY6L+KGUbbfdzovw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fkO2IDYe3T/5ypBSqEPcP6RonlY9fNs/gZ5hysDH2j+N7lxL/iXaP9DaEnfBltk/R+UF69UZ2T/6j7hEB6/YP+RcrSEhVtg/CM5mH+8O2D9sZWfbPNnXPw+lMfPVtNc/9Q5IBIah1z8fJS2sGJ/XP45pY4hZrdc/Rl5tNhTM1z9Fhc1TFPvXP5FgBn4lOtg/KHKaUhOJ2D8QPAxvqefYP0dA3nCzVdk/1ACT9fzS2T+0/6yaUV/aP+y+rv18+to/fMAavEqk2z9mhnNzhlzcP66SO8H7It0/VGf1Qnb33T9chiOWwdneP8RxSFipyd8/yFVzk3xj4D/iWsBPvujgPzCJzK9/dOE/siFZgqYG4j9sZSeWGJ/iP1uV+Lm7PeM/gvKNvHXi4z/jvahsLI3kP304CpnFPeU/UaNzECf05T9iP6ahNrDmP7BNYxvacec/PA9sTPc46D8FxYEDdAXpPw2wZQ821+k/WBHZPiOu6j/jKZ1gIYrrP7A6c0MWa+w/woQctudQ7T8YSVqHezvuPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"TYvyC+D63j/8I2xs5Q7eP09/x+t4MN0/SFBuGIdf3D/fScqA/JvbPxofRbPF5do/8YJIPs882j9pKD6wBaHZP3vCj5dVEtk/JgSngquQ2D9soO3/8xvYP0lKzZ0btNc/vbSv6g5Z1z/Jkv50ugrXP2WXI8sKydY/lnWIe+yT1j9W4JYUTGvWP6iKuCQWT9Y/hCdXOjc/1j/vadzjmzvWP+UEsq8wRNY/ZqtBLOJY1j9wEPXnnHnWP//mNXFNptY/FuJtVuDe1j+vtAYmQiPXP8wRam5fc9c/aqwBviTP1z+JNzejfjbYPyZmdKxZqdg/QOsiaKIn2T/YeaxkRbHZP+jEejAvRto/cn/3WUzm2j90XIxviZHbP+sOo//SR9w/2EmlmBUJ3T84wPzIPdXdPwolEx84rN4/TCtSKfGN3z8AwxG7Kj3gPxB0+MmouOA/VgKSCGk54T9SRxO+Yb/hP4IcsTGJSuI/aFugqtXa4j9/3RVwPXDjP0t8Rsm2CuQ/SBFn/Teq5D/2daxTt07lPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"few7QE600r8ttGb21RfSv4C+vczwZ9G/NXjjRSal0L8NnPTI+5/Pv19ZSVb+0c2/2AEKOWPhy7/1bnt2Oc/Jvyd64hOQnMe/6PyDFnZKxb+x0KSD+tnCv/jOiWAsTMC/cKLvZDVEu7/WYWf9qLm1vwEeCSqj9a+/47mhbJoTpL809K9ez0WPvyDKEv9RMoM/AO+chELCoT+BUskhWguvP5I7G6HPUbY/iHto6GpDvT8WWyFuMCzCP04cELlJx8U/8qe7T/JxyT+EJN8sGyvNP0fcmqXaeNA/UEW90lhi0j+eYDSbgFHUP3XBXXzKRdY/F/uW864+2D/OoD1+pjvaP9pFr5kpPNw/gH1Jw7A/3j+C7TQ82iLgP9P4NpvWJuE/WKpZvYkr4j+zy0vhrzDjP4QmvEUFNuQ/boRZKUY75T8Ur9LKLkDmPxZw1mh7ROc/GJETQuhH6D+62ziVMUrpP58Z9aATS+o/axT3o0pK6z+9le3ckkfsPzlnh4qoQu0/gVJz60c77j81IWA+LTHvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NVI7Y/S11L+6vmsMhB3Uv4yJFhehmNO/UgXFkAYn07+uhACHb8jSv0NaUgeXfNK/tthDHzhD0r+rUl7cDRzSv8QaK0zTBtK/poMzfEMD0r/23wB6GRHSv1aCHFMQMNK/bL0PFeNf0r/a42PNTKDSv0RIookI8dK/Tz1UV9FR07+dFQNEYsLTv9MjOF12QtS/lLp8sMjR1L+FLFpLFHDVv0nMWTsUHda/hOwEjoPY1r/a3+RQHaLXv/D4gpGcedi/aYpoXbxe2b/n5h7CN1Havw5hL83JUNu/hksjjC1d3L/u+IMMHnbdv+y72ltWm96/JOewh5HM37+d5sdOxYTgv2hggFX+KOG/RorGXtHS4b+IDV/xG4Liv4CTDpS7NuO/gcWZzY3w47/cTMUkcK/kv+PSVSBAc+W/6AAQR9s75r88gLgfHwnnvzT6EzHp2ue/HxjnARex6L9Pg/YYhovpvxblBv0Tauq/yebcNJ5M67+1MT1HAjPsvy9v7LodHe2/iUivFs4K7r8UZ0rh8Pvuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6Y2GmRg7z+NS4IaMG/uP98KYd5dh+0/8AlS4/Co7D9abtSm7NPrP8VdZ6ZUCOs/zv2JXyxG6j8cdLtPd43pP0bmevQ43ug/9XlHy3Q46D/GVKBRLpznP1ycBAVpCec/WHbzYiiA5j9bCOzobwDmPwZ4bRRDiuU/+ur2YqUd5T/VhgdSmrrkPzxxHl8lYeQ/z8+6B0oR5D8uyFvJC8vjP/t/gCFujuM/1xyojXRb4z9jxFGLIjLjPz+c/Jd7EuM/DconMYP84j9uc1LUPPDiPwO++/6r7eI/bM+iLtT04j9MzcbguAXjP0Ld5pJdIOM/8CSCwsVE4z/4yRft9HLjP/jxJpDuquM/lMIuKbbs4z9sYa41TzjkPyD0JDO9jeQ/VKARnwPt5D+li/P2JVblP7fbSbgnyeU/KraTYAxG5j+fQFBt18zmP7eg/luMXec/E/wdqi745z9UeC3VwZzoPxo7rFpJS+k/CmoZuMgD6j/BKvRqQ8bqP+Giu/C8kus/Cvjuxjhp7D/gTw1rukntPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8UQPZF83wj8qZf1aQ7XBP2MPxTUuTME/S7vTjbn7wD+P4Jb8fsPAP9/2exsYo8A/5nXwgx6awD9W1WHPK6jAP9qMPZfZzMA/IhTxdMEHwT/b4ukBfVjBP7NwldelvsE/WTVhj9U5wj97qLrCpcnCP8dBDwuwbcM/7HjMAY4lxD+VxV9A2fDEP3SfNmArz8U/NH6++h3Axj+E2WSpSsPHPxIplwVL2Mg/juTCqLj+yT+kg1UsLTbLPwR+vClCfsw/W0tlOpHWzT9YY733sz7PP9Iemf0hW9A/+qgYb20e0T/7CxQdCenRP6oDQtTButI/3UtZYWST0z9voBCRvXLUPzS9HjCaWNU/BV46C8dE1j+3PhrvEDfXPyIbdahEL9g/Hq8BBC8t2T+BtnbOnDDaPyPtitRaOds/2A714jVH3D9812vG+lndP+MCpkt2cd4/5ExaP3WN3z+suB834lbgPwgWhlIY6eA/dpw7WEN94T/gqZuuSRPiPy+cAbwRq+I/UtHI5oFE4z8yp0yVgN/jPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FioB5eW46b/xQJHlxevovyrKBNTDF+i/dU2dRzA957+AUpzXW1zmvwBhQxuXdeW/pADUqTKJ5L8juY8af5fjvycSuATNoOK/Z5OO/2yl4b+RxFSir6Xgv7RamAjLQ9+/6apseb403b8hianF2h7bv70E0hvBAtm/Ji1pqhLh1r+5EfKfcLrUv9zB7yp8j9K/9EzledZg0L/DhKt2QV7MvxpjiDv49ce/qlNnnxOKw7+L6pz+qze+v0XNh3ADWbW/SBo3nWT1qL+oPSOX6vmMv9CVRSJb25Q/uDlzkwoKrD/oAIh2yci2Pw5U8JSef78/Wyxz9X8TxD+z6C5fNF7IP0FApSqqnsw/Igpofc9p0D/2olQ56H3SPzpblRr+itQ/jyOn8m+Q1j+P7AaTnI3YP9emMc3igdo/AEOkcqFs3D+rsdtUN03eP7pxqqKBEeA/e2TGCrL24D9nKYBL3NXhP8s4ls2vruI/+QrH+duA4z88GNE4EEzkP+PYcvP7D+U/PsVqkk7M5T+YVXd+t4DmPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0BjNSDtu3b9fRUO5O4/cv9d3+wFwv9u/EFOFQ7n+2r/eeXCe+EzavxuPTDMPqtm/nDWpIt4V2b9CEBaNRpDYv9fBIpMpGdi/Pe1eVWiw179KNVr041XXv9M8pJB9Cde/sqbMShbL1r/BFWNDj5rWv9Qs95rJd9a/xI4YcqZi1r9p3lbpBlvWv5u+QSHMYNa/L9JoOtdz1r8CvFtVCZTWv+ceqpJDwda/u53jEmf71r9S25f2VELXv4R6Vl7ulde/Kh6vahT2178caTE8qGLYvzD+bPOK29i/QIDxsJ1g2b8kkk6VwfHZv7DWE8HXjtq/wPDQVME3278qgxVxX+zbv8cwcTaTrNy/bpxzxT143b/2aKw+QE/evzg5q8J7Md+/Btj/uGgP4L8kuJw2kYvgv2QOdOonDeG/L6zNZB2U4b/zYvE1YiDivxwEJ+7mseK/FWG2HZxI479JS+dUcuTjvyaUASRaheS/Fw1NG0Qr5b+JhxHLINblv+XUlsPghea/msYklXQ6578SLgPQzPPnvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"GFMxv0X/5r8V7IpgjEbmv69G854LheW/gFznhxm75L8dJ+QoDOnjvyKgZo85D+O/JsHryPct4r/Jg/DinEXhv5zh8ep+VuC/dKjZ3OfB3r9+qrz1o8rcv4a8hjvex9q/vNExyUK62L9Z3be5faLWv4fSEig7gdS/gaQ8LydX0r9xRi/q7STQvxxXyed21su/Eo6tzndVx78rGP++NsjCv5y3Y90XYLy/tn5zJ58cs78ApSqQZ5Gjv4DpP8yKwVm/+FmjhnILoj+e5ooX2nqyP2zgkuWr9bs/1+bAIL+5wj/M8Ldf0HjHP6ynunmxNsw/h5JqHAV50D9OwYkzwdTSP/HsQOfgLdU/RCKWHLiD1z8Obo+4mtXZPx7dMqDcItw/R3yGuNFq3j8oLEjzZlbgPwY/q4cSdOE/In3vixWO4j/k7JfyGaTjP7KUJ67JteQ/9Xohsc7C5T8Rpgju0srmP2scYFeAzec/cOSq34DK6D+DBGx5fsHpPwuDJhcjsuo/b2Zdqxic6z8WtZMoCX/sPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VfUBBOD17D+wwcryyBPsPyQyuE6HM+s/jDHtt0JV6j+9qozOInnpP5OIuTJPn+g/57WWhO/H5z+XHUdkK/PmP3aq7XEqIeY/YketTRRS5T8136iXEIbkP8ZcA/BGveM/8qrf9t734j+StGBMADbiP35kqZDSd+E/kqXcY3294D+nYh1mKAfgPykNHW/2qd4/cPil8DpO3T/RXBuRbfvbPwIQw5Ddsdo/uOfiL9px2T+mucCusjvYP31bok22D9c/8qLNTDTu1T+4ZYjse9fUP4V5GG3cy9M/C7TDDqXL0j/76s8RJdfRPwz0grar7tA/8qQiPYgS0D+8punLE4bOPwmqfuL/AM0/M/+PPnOWyz+gUalgDEfKP7xMVslpE8k/5psi+Sn8xz+K6plw6wHHPw7kR7BMJcY/3DO4OOxmxT9WhXaKaMfEP+eDDiZgR8Q/9doLjHHnwz/mNfo8O6jDPyRAZblbisM/FKXYgXGOwz8dEOAWG7XDP6csB/n2/sM/GabZqKNsxD/aJ+Omv/7EPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fUn5amCFyj//9H3m98fJPwBrROwHL8k/SsLLN/u5yD+dEZOEPGjIP8lvGY42Ocg/kvPdD1QsyD/Ds1/F/0DIPx7HHWqkdsg/cESXuazMyD9+Qktvg0LJPxLYuEaT18k/9htf+0aLyj/tJL1ICV3LP8QJUupETMw/PuGcm2RYzT8kwhwY04DOP0LDUBv7xM8/rf1bsCOS0D+cwOhREU/RP9E1DtD7GNI/seiLiJjv0j+fZCHZnNLTP/80jh++wdQ/NuWRubG81T+nAOwELcPWP7USXF/l1Nc/xqahJpDx2D8+SHy44hjaP4CCq3KSSts/7ODuslSG3D/v7gXX3svdP+Y3sDzmGt8/nKPWIJA54D8kVN4hIergPzvzTtAAn+E/lkYI2wlY4j/nE+rwFhXjP94g1MAC1uM/LTOm+aea5D+IEEBK4WLlP59+gWGJLuY/JkNK7nr95j/MI3qfkM/nP0bm8COlpOg/RVCOKpN86T96JzJiNVfqP5gxvHlmNOs/UDQMIAEU7D9W9QEE4PXsPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6kAH4KdV7D/axbw0sXbrPzOLHVYNluo/SvSli/Wz6T9zZNIco9DoPwU/H1FP7Oc/UecIcDMH5z+0wAvBiCHmP34upIuIO+U/BJROF2xV5D+dVIerbG/jP6DTyo/DieI/X3SVC6qk4T8zmmNmWcDgP9xQY88Vut8/0gT4re/13T/rFn73sjTcP9NN7jrSdto/OnBBB8C82D/GRHDr7gbXPyOSc3bRVdU//h5EN9qp0z8Bstq8ewPSP9QRMJYoY9A/Rgp6pKaSzT80pfT/3GzKP8iBwVzZVcc/Ui3S2IBOxD8sNRiSuFfBP1RNCk3L5Lw/TB4VaNo+tz/Z9zOxaL+xP2fpk8iA0Kg/AL7o9K7snD94Fz6/p8+BP3iyUX7NzIS/gIbi99f2nL+gyIBtK2Gnv2fHfDzd4K+/GoWPeHb7s7/irdAJ48+3v17DHhbqa7u/4qqWYcHNvr/hpCpYz/nAv6jCO+PbbcK/dCENNCHCw7/uM60suvXEv8BsKq/BB8a/lT6TnVL3xr8XHPbZh8PHvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WCgbb1Kf7z+DqUeXmqzuP1Qga48UxO0/NszI6r/l7D+W7KM8nBHsP+fAPxipR+s/kIjfEOaH6j8Ig8a5UtLpP7XvN6buJuk/Cw53abmF6D9zHceWsu7nP2Bda8HZYec/Pg2nfC7f5j99bL1bsGbmP4q68fFe+OU/1DaH0jmU5T/IIMGQQDrlP9K34r9y6uQ/ZTsv88+k5D/t6um9V2nkP9YFVrMJOOQ/k8u2ZuUQ5D+Re09r6vPjPzxVY1QY4eM/A5g1tW7Y4z9Ugwkh7dnjP55WIiuT5eM/UVHDZmD74z/Ysi9nVBvkP6K6qr9uReQ/Hah3A6955D+6utnFFLjkP+MxFJqfAOU/Ck1qE09T5T+aSx/FIrDlPwRtdkIaF+Y/tvCyHjWI5j8cFhjtcgPnP6Yc6UDTiOc/wkNprVUY6D/dytvF+bHoP2jxgx2/Vek/zvakR6UD6j9/GoLXq7vqP+mbXmDSfes/e7p9dRhK7D+itSKqfSDtP87MkJEBAe4/aj8Lv6Pr7j/nTNXFY+DvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VvUBBOD17D9QNAwgARTsP5cxvHlmNOs/fCcyYjVX6j9GUI4qk3zpP0fm8COlpOg/zSN6n5DP5z8nQ0ruev3mP6F+gWGJLuY/ihBASuFi5T8uM6b5p5rkP94g1MAC1uM/5xPq8BYV4z+YRgjbCVjiPz3zTtAAn+E/JVTeISHq4D+do9YgkDngP+g3sDzmGt8/8e4F197L3T/u4O6yVIbcP3+Cq3KSSts/PUh8uOIY2j/IpqEmkPHYP7cSXF/l1Nc/qADsBC3D1j825ZG5sbzVPwE1jh++wdQ/oGQh2ZzS0z+z6IuImO/SP9I1DtD7GNI/nsDoURFP0T+u/VuwI5LQP0LDUBv7xM8/JMIcGNOAzj894ZybZFjNP8QJUupETMw/8CS9SAldyz/3G1/7RovKPxTYuEaT18k/gEJLb4NCyT9wRJe5rMzIPx7HHWqkdsg/wbNfxf9AyD+S890PVCzIP8lvGY42Ocg/nhGThDxoyD9Iwss3+7nIPwFrROwHL8k/APV95vfHyT99SflqYIXKPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"35KvOOb+zz8A86jhbfHOP6aUduonv80/ERIUMQ9pzD+BBX2THvDKPzsJre9QVck/fLefI6GZxz+LqlANCr7FP6Z8u4qGw8M/DsjbeRGrwT8NTlpxS+u+P6NnVkp8SLo/XRGjOqtvtT/Kfzf+zWKwP7TOFaK0R6Y/l/JRvBfTlj+AGXRLlIY3P972Yw24x5a/lkjDN0RLp78mS1f5n8Gxv7q9wt/xA7i/kMcsE6Jqvr8LGs9r3XnCv2znjzijzsW/pjHdkacyyb93XruZ76TMv81pFzlAEtC/avudni/Y0b/ylnOOyKPTv0FvmpmNdNW/NrcUUQFK17+0oeRFpiPZv5hhDAn/ANu/wimOK47h3L8OLWw+1sTevy5PVOksVeC/SNiivM1I4b9Dy6LhDj3iv45B1aCxMeO/mVS7Qncm5L/UHdYPIRvlv662plBwD+a/mDiuTSYD57//vG1PBPbnv1RdZp7L5+i/CDMZgz3Y6b+KVwdGG8fqv0fksS8mtOu/svKZiB+f7L84nECZyIftvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AS4D0Mzz579I0syqDDXnv0malARncOa/UBafLCSm5b+i1jByjNbkv4xrjiToAeS/V2X8kn8o479OVL8Mm0riv7fIG+GCaOG/3VJWX3+C4L8VBmetsTHfvxTT7yyvV92/RS3Q24d3279CNZFYzJHZv5kLvEENp9e/4NDZNdu31b+lpXPTxsTTv3+qErlgztG/BgCACnOqz7+DjQmtw7PLv58+1JbUuce/gFTyBMe9w7+cIOxoeIG/v1Rm48Sqh7e/3PjdL88gr79Alc1wxXeev0AwtwpdXVM/CI8OvhRfoD+pWD3qCgawP9qNqJu0zrc/yGQk+USHvz+fLUbEvJbDP2r33eeHX8c/p05HquIcyz8q8m/Oq83OP2bQogthONE/tgzbI4IC0z9wjVeRqMTUPwQyj7VDftY/2Nn48cIu2D9fZAuoldXZPwSxPTkrcts/M58GB/MD3T9YDt1yXIreP/DuG29rAuA/nvZG1Wi54D/qDasc3mnhP4ukA/aCE+I/NyoMEg+24j+mDoAhOlHjPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NjRq9xf47z/Ndh08/fruPzEitBL0+O0/uvTXUU3y7D+0rDLQWefrP3oIbmRq2Oo/XcYz5c/F6T+7pC0p26/oP9xhBQfdluc/HLxkVSZ75j/NcfXqB13lP0ZBYZ7SPOQ/2+hRRtca4z/jJnG5ZvfhP6+5aM7R0uA/L7/Et9Ja3z/crQ9x/A7dPw68BXbCwto/c2b6c8Z22D+zKUEYqivWP3iCLRAP4tM/au0SCZea0T9zzolgx6vOPw7ZLWYtKco/+fO4faOuxT+SGNIBbT3BP1aAQJqarbk/HsiUdA/4sD9Y9t2PfrmgP4DueTGb50C/kCQmoioCob+KbdNSjL6wv+kSVoat17i/5IcmG/lkwL+8OLXWaUnEv6ciMJvlF8i/W0zwDSnPy7+BvE7U8G3Pv+I80sl8edG/Z0Wl+H8u078r+0xJYNXUv4DhdQ58bda/v3vMmjH21787Tf1A327Zv0zZtFPj1tq/S6OfJZwt3L+NLmoJaHLdv2j+wFGlpN6/MZZQUbLD37+gvGKtdmfgvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eXvPuFN75T/1P39fgdPkP3R9OEbQLOQ/hUfsC1+H4z+3sYtPTOPiP5rPB7C2QOI/vLRRzLyf4T+0dFpDfQDhPwkjE7QWY+A/n6bZek+P3z8sMrH8nVzeP9kPjytWLt0/x2ZVRbUE3D8YXuaH+N/aP+gcJDFdwNk/WMrwfiCm2D+FjS6vf5HXP5KNv/+3gtY/nfGFrgZ61T/G4GP5qHfUPy6COx7ce9M/9PzuWt2G0j86eGDt6ZjRPxobchM/stA/cBkMFjSmzz9k6PwjcPfNP1PxesysWMw/eIJKi2TKyj8W6i/cEU3JP2p27zov4cc/t3VNIzeHxj83Ng4RpD/FPywG9n/wCsQ/1zPJ65bpwj92DUzQEdzBP0rhQqnb4sA/Hvvj5N38vz8OYTtPjF6+P+CQFIm367w/GCf4iVSluz8wwG5JWIy6P6b4AL+3obk//Gw34mfmuD+wuZqqXVu4P0J7sw+OAbg/Lk4KCe7Ztz/2zieOcuW3PxWalJYQJbg/DkzZGb2ZuD9dgX4PbUS5Pw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"few7QE600r8/tSQIDyjSv5FgVUtjqNG/28ff3yc10b+DxNWbOc7Qv+8vSVV1c9C/ieNL4rck0L9scd8xvMPPv7kRjZ6JVc+/yFrEtpH+zr9n/6gmjr7Ov2ayXpo4lc6/kyYJvkqCzr+7Dsw9foXOv6sdy8WMns6/MwYqAjDNzr8dewyfIRHPvz0vlkgbas+/WtXqqtbXz78lEBe5Bi3Qv2rhQaU8eNC/5rcH8GnN0L/+bHpvayzRvxraq/kdldG/oditZF4H0r/4QZKGCYPSv4nvajX8B9O/urpJRxOW07/xfECSKy3Uv5YPYewhzdS/EEy9K9N11b/GC2cmHCfWvx4ocLLZ4Na/gXrqpeii179U3OfWJW3Yv/4mehtuP9m/6DOzSZ4Z2r943KQ3k/vavxb6YLsp5du/Jmb5qj7W3L8S+n/crs7dv0CPBiZXzt6/GP+eXRTV379/ka2sYXHgvy5qpneg++C/TPbC+jSJ4b+NIgyhDRriv6TbitUYruK/RQ5IA0VF478ip0yVgN/jvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"IqdMlYDf478RBCjBZEPjv6jEbfWkpuK/7Japg2YJ4r/fKGe9zmvhv4koMvQCzuC/7kOWeSgw4L8sUj4+ySTfv/4LsWy56d2/ZxGcIWyv3L9rvhYALHbbvxhvOKtDPtq/dn8Yxv0H2b+TS87zpNPXv3MvcdeDoda/I4cYFOVx1b+qrttME0XUvxQC0iRZG9O/a90SPwH10b+6nLU+VtLQvw44o41FZ8+/wG789GIyzb+flaX5mQbLv7RkzeF/5Mi/G5Si86nMxr/m21N1rb/Evyv0D60fvsK/+JQF4ZXIwL/M7MauSr+9vwyhsKzGB7q/4LYlSMprtr9jnoMNgOyyv4KPTxIlFq+/SkbfjliRqL9rQXGp70yiv3vCgPV+lpi/5BcebnQ6ir/A/xhI2pVhv7qBWkanSIA/3VUMXEjjkT+IXiSweAWbPxjN/zYdw6E/GyQUsnGwpT/9U5SwZEipP218xRmhiKw/Jr3s1NFurz/omqfkUPywPw8DGe/dEbI/4CZtfeX2sj81lkYDPaqzPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xT6q633bvj/kL2wTBBK+P2PUUKFCmL0/+Py7DMVsvT9JehHNFo69PwcdtVnD+r0/5bUKKlaxvj+QFXa1WrC/P1mGrTkue8A//7WObfNAwT8RghCywijCP+fS5MLhMcM/2JC9W5ZbxD87pEw4JqXFP2j1QxTXDcc/tGxVq+6UyD978jK5sjnKPxJvjvlo+8s/zcoZKFfZzT8J7oYAw9LPP4zgQx9589A/LBbnTpUK0j8MDAbtWC7TP1y2eddmXtQ/Rwkb7GGa1T/0+MII7eHWP5N5SgurNNg/UH+K0T6S2T9W/ls5S/raP87qlyBzbNw/5TgXZVno3T/L3LLkoG3fP1PloT72feA/UntRhm9J4T95qlS4DRniP9zsl0Oi7OI/krwHl/7D4z+yk5Ah9J7kP1DsHlJUfeU/gkCfl/Be5j9gCv5gmkPnP/zDJx0jK+g/cOcIO1wV6T/P7o0pFwLqPy5Uo1cl8eo/qJE1NFji6z9OITEugdXsPzd9grRxyu0/eh8WNvvA7j8rgtgh77jvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"50zVxWPg7z86NRPg7ejuP165Shg99u0/47kfX24I7T9UFzalnh/sPzyyMdvqO+s/J2u28W9d6j+oImjZSoTpP0W56oKYsOg/jA/i3nXi5z8MBvLd/xnnP099vnBTV+Y/5lXrh42a5T9acBwUy+PkPzmt9QUpM+Q/Ee0aTsSI4z9qEDDdueTiP9b32KMmR+I/3oO5kiew4T8SlXWa2R/hP/wLsatZluA/K8kPt8QT4D9WWmtabzDfPw8xjf2eR94/nNfMOFJt3T8WD3LtwqHcP5iYxPwq5ds/OzUMSMQ32z8YppCwyJnaP0asmRdyC9o/5AhvXvqM2T8GfVhmmx7ZP8jJnRCPwNg/RLCGPg9z2D+S8VrRVTbYP8xOYqqcCtg/DYnkqh3w1z9sYSm0EufXPwKZeKe179c/7PAZZkAK2D9CKlXR7DbYPxoGcsr0ddg/k0W4MpLH2D/CqW/r/ivZP8Lz39V0o9k/ruRQ0y0u2j+ePQrFY8zaP6q/U4xQfts/7yt1Ci5E3D+EQ7YgNh7dPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vRLH2SiW2j81TdBRDMvZP48wqe1jCtk/mrqURyVU2D8j6dX5RajXP/u5r567Btc/8ipl0Htv1j/aOTkpfOLVP33kbkOyX9U/rShJuRPn1D85BAsllnjUP/J09yAvFNQ/pnhRR9S50z8oDVwye2nTP0IwWnwZI9M/yN+Ov6Tm0j+FGT2WErTSP07bp5pYi9I/7SISZ2xs0j827r6VQ1fSP/U68cDTS9I//AbsghJK0j8bUPJ19VHSPx8URzRyY9I/2FAtWH5+0j8XBOh7D6PSP6orujkb0dI/YsXmK5cI0z8Oz7DseEnTP3xGWxa2k9M/fCkpQ0Tn0z/gdV0NGUTUP3QpOw8qqtQ/CkIF42wZ1T9wvf4i15HVP3aZamleE9Y/7NOLUPid1j+iaqVymjHXP2Zb+mk6ztc/CKTN0M1z2D9XQmJBSiLZPyM0+1Wl2dk/PHfbqNSZ2j9yCUbUzWLbP5LofXKGNNw/bhLGHfQO3T/VhGFwDPLdP5Y9kwTF3d4/gDqedBPS3z+yvGKtdmfgPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"upEBmFyY4T8QA2sJiwrhP9zxNKQMdeA/GWKBt1Cw3z8qJ99GSmjeP8nYRd2TEt0/3xx4Ybuv2z9PmTi6TkDaP/XzSc7bxNg/utJuhPA91z9/22nDGqzVPyi0/XHoD9Q/lwLtdudp0j+zbPq4pbrQP7Aw0T1iBc4/4Vb0Hi+Fyj+vl+PizfXGP+s+JFdaWMM/sDB3kuBbvz97310NV++3P8QhB7pPbbA/IR77ZgSwoT+w77tMYRpzPxDcDhw0Dpq/tnbMCb+KrL9zNtHJmRG2v8IQujoE5r2/ZhlLnjPgwr97gi2aRc/Gv9z3fkMcv8q/vi26zJuuzr807Cw0VE7RvwNWbCQTRNO/bq5Y0Pw31b+OTy9RgynXv4GTLcAYGNm/ZtSQNi8D279ZbJbNOOrcv3a1e56nzN6/7QQ/4fZU4L/SYW2pvkDhv3ieZzRkKeK/7WfMjqAO478/azrFLPDjv3xVUOTBzeS/ttOs+Bin5b/6ku4O63vmv1RAtDPxS+e/1Iicc+QW6L+KGUbbfdzovw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"mFV3freA5j9QzVhoEM3lP1W2qfv9EuU/FLRp2MhS5D/zaZieuYzjP2F7Ne4YweI/xotAZy/w4T+QPrmpRRrhPyY3n1WkP+A/6DHkFSjB3j/ODmPTuvrcP8xLuiOSLNs/vi/pRj9X2T97Ae98U3vXP9EHywVgmdU/nol8Ifax0z+uzQIQp8XRP741uiIIqs8/BHAVyzzByz/a1xWZDtLHP/D6uQyg3cM/280ATCfKvz8IU8/JF9O3P1RBuSWtsK8/ZEiXnKJwnz8AR/1X+Sw/v0BkP53KLqC/KjG0WDsKsL8JX5gXavW3v2QgT4us1r+/7Kzt2d7Vw78V+J9ILLnHv/jjvxEclMu/8OJOtYtlz7+lM6dZLJbRv67x30Wwc9O/wmRSX8BK1b8IRv9lyxrXv6tO5xlA49i/0zcLO42j2r+uumuJIVvcv2aQCcVrCd6/JHLlrdqt37+JDACC7qPgvy0frcNwa+G/lU36eyst4r9V9OcK1ujivwJwdtAnnuO/Mh2mLNhM5L95WHd/nvTkvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"E/CWLns86T/d9U8d03roP+zbSoZkwec/156cmS4Q5z8vO1qHMGfmP4utmH9pxuU/e/Jsstgt5T+cBuxPfZ3kP3rmKohWFeQ/rI4+i2OV4z/J+zuJox3jP2MqOLIVruI/ERdINrlG4j9mvoBFjefhP/Uc9w+RkOE/Vi/AxcNB4T8a8vCWJPvgP9dhnrOyvOA/IHvdS22G4D+NOsOPU1jgP6+cZK9kMuA/HJ7W2p8U4D/VdlyECP7fP1XiACsi498/6nfECYvY3z+2MNGAQd7fP+YFUfBD9N8/UPg2XEgN4D8J9agckyjgP7B1k2kBTOA/2nYLc5J34D8d9SVpRavgPwvt93sZ5+A/O1uW2w0r4T9APBa4IXfhP7CMjEFUy+E/HUkOqKQn4j8ebrAbEoziP0b4h8yb+OI/KeSp6kBt4z9eLiumAOrjP3fTIC/abuQ/CtCftcz75D+qIL1p15DlP+3BjXv5LeY/aLAmGzLT5j+t6Jx4gIDnP1JnBcTjNeg/7Sh1LVvz6D8QKgHl5bjpPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xyQg1zbu77/28DKLaPTuvxMiDMmU++2/s9JQ0ewD7b9gHabkoQ3sv7EcsUPlGOu/MesWL+gl6r96o3zn2zTpvxNgh63xRei/kjvcwVpZ57+HUCBlSG/mv4O5+Nfrh+W/F5EKW3aj5L/Y8fouGcLjv0/2bpQF5OK/FLkLzGwJ4r+0VHYWgDLhv8HjU7RwX+C/lwGTzN8g37/JjPjZXYvdvzueIhK+/tu/EWtb9mJ72r9sKO0HrwHZv2kLIsgEkte/MElEuMYs1r/fFp5ZV9LUv5upeS0Zg9O/hTYhtW4/0r+88t5xugfRv8cm+sm9uM+/QpuLH317zb8lrQbnd1jLv7TG/yJzUMm/NVIL1jNkx7/sub0Cf5TFvyFoq6sZ4sO/Dsdo08hNwr/+QIp8UdjAv2SASFPxBL+/412WugaavL/47iY0bXG6vy4II8WujLi/Dn6zclXttr8eJQFC65S1v+jRNDj6hLS/8Fh3Wgy/s7/AjvGtq0Szv+BHzDdiF7O/2Fgw/bk4s78ulkYDPaqzvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ktwNjTRH7r/1dmBhWV7tvwD2FhJbfuy/XbjQAT6n67+wHC2TBtnqv6SByyi5E+q/4kVLJVpX6b8VyEvr7aPov+FmbN14+ee/74BMXv9X57/pdIvQhb/mv3ihyJYQMOa/RGWjE6Sp5b/4HrupRCzlvzktr7v2t+S/se4erL5M5L8HwqndoOrjv+YF77KhkeO/9RiOjsVB47/cWSbTEPviv0YnV+OHveK/2t+/IS+J4r9C4v/wCl7ivySNtrMfPOK/Kz+DzHEj4r/9VgWeBRTiv0Uz3IrfDeK/qjKn9QMR4r/XswVBdx3iv3EVl889M+K/Irb6A1xS4r+U9M9A1nriv24vtuiwrOK/WsVMXvDn4r//FDMEmSzjvwZ9CD2veuO/GFxsazfS47/dEP7xNTPkv/75XDOvneS/I3YokqcR5b/24/9wI4/lvx6igjInFua/RA9QObem5r8Rigfo10DnvyxxSKGN5Oe/QiOyx9yR6L/2/uO9yUjpv/RifeZYCeq/460dpI7T6r9tPmRZb6frvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"BioB5eW46b+8pmlla/TovxQOlS4dOui/meqK4PCJ57/IxlIb3OPmvykt9H7UR+a/Q6h2q8+15b+gwuFAwy3lv74GPd+kr+S/Jv+PJmo75L9cNuK2CNHjv+k2OzB2cOO/UIuiMqgZ478Zvh9elMziv8hZulIwieK/4uh5sHFP4r/t9WUXTh/iv28Lhie7+OG/7rPhgK7b4b/veYDDHcjhv/fnaY/+veG/jYilhEa94b845jpD68Xhv3mLMWvi1+G/2gKRnCHz4b/g1mB3nhfivw6SqJtOReK/7L5vqSd84r//571AH7ziv8yXmgErBeO/2FgNjEBX47+stR2AVbLjv8o4031fFuS/u2w1JVSD5L8C3EsWKfnkvyQRHvHTd+W/qpazVUr/5b8W9xPkgY/mv/C8RjxwKOe/vXJT/grK578Co0HKR3Tov0bYGEAcJ+m/Dp3g/33i6b/ee6CpYqbqvz7/X92/cuu/s7EmO4tH7L/CHfxiuiTtv/LN5/RCCu6/xkzxkBr47r/HJCDXNu7vvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xAvMeKDO77+wcfPRX9Duv3GJbL5ryO2/Kt8bPi637L/8/uVQEZ3rvwl1r/Z+euq/ds1cL+FP6b9plNL6oR3ov/xV9Vgr5Oa/V56pSeej5b+b+dPMP13kv+3zWOKeEOO/bhkdim6+4b9D9gTEGGfgvxct6h8PFt6/2gyk20lV278OpAC7tYzYv/wKyb0mvdW/6VnG43Dn0r8cqcEsaAzQv7MhCDHBWcq/zVKtTVyTxL8uLApek469vyA4Q6li7rG/RKqo8Nklmb+obXKohHOVP6a4bEpUAbE/NMyh5ZKgvD91ukt+phvEP9qoFEgZ4ck/tYCZ0Pmezz/ICCQM0KnSP2cVxw+yftU/+M1s805N2D8xGky30hTbP8rhm1tp1N0/RIZJcJ9F4D8PQTSjP5zhPySVqUar7eI/X/bEWng55D+g2KHfPH/lP8KvW9WOvuY/pe8NPAT35z8kDNQTMyjpPxp5yVyxUeo/aqoJFxVz6z/uE7BC9IvsP4Mp2N/km+0/B1+d7nyi7j9YKBtvUp/vPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6Y2GmRg7z8udEXieGXuPz+lCSLFYO0/AFPsjbJS7D/allbaqjvrPz+KsbsXHOo/o0Zm5mL06D925d0O9sTnPyOAgek6juY/HzC6KptQ5T/ZDvGGgAzkP8E1j7JUwuI/SL79YYFy4T/hwaVJcB3gP/Cz4DsWh90//z+NJnfK2j/LWiO81gXYPzk3dWUIOtU/KghVi99n0j/6ACotXyDPPymmDuCXZ8k/nWX8ABCnwz9JSi/D3MC7P9mUCaezKrA/DNpBQ8k7kj/AFM1wZjycv7zSuHwirLK/tGZ3rdpEvr/EGpNF+urEv9k5PjkRrsq/alUMsAU10L8BBD/0oA7Tv8r1ZAAH49W/6Pera2Sx2L9310HN5Xjbv5ZhVLy3ON6/tbEIaAN44L8HVdPP/87hv1ABIWHnIOO/IZ2IZ1Bt5L8JD6Eu0bPlv5k9AQIA9Oa/YA9ALXMt6L/savT7wF/pv802tbl/iuq/lVkZskWt67/TubcwqcfsvxQ+J4FA2e2/6sz+7qHh7r/lTNXFY+Dvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"iNwNjTRH7r+pVO17clftvwnQxOTvYuy/CULrxvlp67/9nbch3Wzqv0TXgPTma+m/NeGdPmRn6L8yr2X/oV/nv4s0LzbtVOa/o2RR4pJH5b/RMiMD4Dfkv3GS+5chJuO/3HYxoKQS4r9y0xsbtv3gvw43IxBGz9+/9oTTzHCh3b9Gd/ZqhnLbv7z0OekgQ9m/DORLRtoT17/oK9qATOXUvwqzkpcRuNK/JGAjicOM0L/iM3So+MfMvzqOCe+rfMi/x5xi49Q4xL/mWbYFT/u/v1UYnpWvmLe/Rh9o4maYrr+kar9MCmGcv8C7bpuwC3A/ZFGR1br4oT94wU2VPNiwPyebjo7wkbg/ec3prYgTwD//kjKBm8rDP7bQxcP8bMc/P7lHeHj5yj8qf1yh2m7OP4Uq1KD35dA/ubbnLcGH0j+A/Tr5LxzUPyEYIASqotU/6R/pT5Ua1z8gLujdV4PYPxBcb69X3Nk/CcPQxfok2z9QfF4ip1zcPzOhasbCgt0/+kpHs7OW3j/zkkbq35ffPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hEO2IDYe3T9JfDWBe0LcPy+ZCU+Sd9s/Qr15hFK92j+NC80blBPaPx2nSg8vetk/ALM5Wfvw2D9GUuHz0HfYP/aniNmHDtg/INd2BPi01z/QAvNu+WrXPxVORBNkMNc/+dux6w8F1z+Lz4Ly1OjWP9hL/iGL29Y/7HNrdArd1j/TahHkKu3WP5xTN2vEC9c/UVEkBK841z8Dhx+pwnPXP7oXcFTXvNc/hyZdAMUT2D921i2nY3jYP5NKKUOL6tg/6qWWzhNq2T+KC71D1fbZP36e45ynkNo/1oFR1GI32z+d2E3k3urbP97FH8fzqtw/pmwOd3l33T8H8GDuR1DePwlzXic3Nd8/XQwnjg8T4D8Ugrvja5HgPy8skJGcFeE/NpzIlI2f4T+uY4jqKi/iPx4U849gxOI/DD8sghpf4z//dVe+RP/jP31KmEHLpOQ/DU4SCZpP5T82EukRnf/lP3woQFnAtOY/aCI73O9u5z+Akf2XFy7oP0kHq4kj8ug/SxVnrv+66T8MTVUDmIjqPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EioB5eW46T8132DCdezoP77c0HV+Gug/mBBnXElD5z+kaDnTH2fmP83SXTdLhuU/9zzq5RSh5D8OlfQ7xrfjP/LIkpaoyuI/jsbaUgXa4T/Ie+LNJebgPw2tf8mm3t8/YokR6a7r3T9gaKa09vPbP84lauYQ+Nk/gJ2IOJD41z89qy1lB/bVP9cqhSYJ8dM/Gvi6Nijq0T+s3fWf7sPPP6/V4VgSsss/2o+RDOGfxz/Iw1wvgI7DPyBSNmsq/r4/pe5IJ4vltj+kmEH32qqtP6RptUNxQJs/MH8fAteBcr8Id7u96SGivwyBlhIf6LC/TdmcIlGruL+XqiATICzAv65CappQ9sO/WH3TshSzx7/zogToRmHLv+P7pcXB/86/Suiv669G0b+0NG3UfQTTv2IH3+K3uNS/gYTZXMti1r9L0DCIJQLYv+8Ouaozltm/n2RGCmMe27+M9azsIJrcv+nlwJfaCN6/61lWUf1p37/huqAve17gv9Auq4OZAOG/3Jq0RxCb4b8eEaceli3ivw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6vJei/YA4b/dRlDZq3zgv8AmwT209N+/O1y7sSf03r9o2SoI1/fdv5ZJqzrn/9y/DljYQn0M3L8csE0avh3bvwL9prrOM9q/EOp/HdRO2b+LInQ8827Yv8BRHxFRlNe/9iIdlRK/1r95QQnCXO/Vv49Yf5FUJdW/gxMb/R5h1L+eHXj+4KLTvyoiMo+/6tK/bszkqN840r+3xytFZo3Rv0u/ol146NC/dl7l6zpK0L8EoR7TpWXPv2mBeKDKRM6/s7QPMy4yzb9zkRt+Gi7Mvzxu03TZOMu/oaFuCrVSyr83giQy93vJv4pmLN/ptMi/NKW9BNf9x7/ElA+WCFfHv82LWYbIwMa/4+DSyGA7xr+X6rJQG8fFv37/MBFCZMW/KHaE/R4Txb8opeQI/NPEvxTjiCYjp8S/eoaoSd6MxL/x5Xpld4XEvwhYN204kcS/VDMVVGuwxL9mzksNWuPEv9N/EoxOKsW/LJ6gw5KFxb8GgC2ncPXFv/B78Ckyesa/fuggPyEUx79FHPbZh8PHvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"7UQPZF83wr//pEP2xpfBvxo3BnEL18C/3V4BRvnrv79KhLm11Oq9v95GiM5IrLu/8g7BLfUxub/oRLdweX22vxRRvjR1kLO/1ZspF4hssL8OG5lqoyaqvwwd9VjjDKO/sBwcaB4el7+2/VW0MYN9v8j4t5NhL4I/NbVqx9pEmj/chCSLGRCmPzKslKCdUa8/8X+vNN1xtD+iV25VmGG5P8h0M5Vgdr4/hrdVK0vXwT8Gb0H+TITEP7sss/RlQcc/dTwBQMYNyj8E6oERnujMPziBi5od0c8/9iY6hjpj0T/2TUlM6uPSP4VbHjg2atQ/inVkYrb11T/0wcbjAobXP6Zm8NSzGtk/jomMTmGz2j+RUEZpo0/cP5jhyD0S790/j2K/5EWR3z+vfGo765rgP/dlWgYubuE/EwCFXzdC4j/53T9T0xbjP5yS4O3N6+M/87C8O/PA5D/wyylJD5blP4h2fSLuauY/sEMN1Fs/5z9exi5qJBPoP4ORN/ET5ug/Fjh9dfa36T8MTVUDmIjqPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"v/Bkh4zr6r+RstHR7Brqvx/PzvEJT+m/4OWWj/iH6L9JlmRTzcXnv89/cuWcCOe/6UH77XtQ5r8SfDkVf53lv7rNZwO77+S/WdbAYERH5L9nNX/VL6Tjv1iK3QmSBuO/o3QWpn9u4r/Dk2RSDdzhvyeHArdPT+G/Su4qfFvI4L+gaBhKRUfgv0ArC5JDmN+/gClaQguu3r/uCpP1CtDdv3UOK/xr/ty/BHOXplc53L+Hd01F94Dbv+lawih01dq/GFxrofc22r//ub3/qqXZv4yzLpS3Idm/qoczr0ar2L9IdUGhgULYv1G7zbqR59e/sphNTKCa179YTDam1lvXvy4V/RheK9e/IjIX9V8J178i4vmKBfbWvxhkGit48da/8PbtJeH71r+a2enLaRXXvwBLg207Pte/D4ovW39217+01WPlXr7Xv9xslVwDFti/c445EZZ92L9mecVTQPXYv6FsrnQrfdm/EadpxIAV2r+iZ2yTab7av0PtKzIPeNu/3XYd8ZpC3L9fQ7YgNh7dvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8i2S5pF/7j+99WZlRI3tP0RrP+qYlOw/Ym6vceWV6z/s3kr4f5HqP7+cpXq+h+k/sodT9fZ46D+if+hkf2XnP2Rk+MWtTeY/0xUXFdgx5T/Ic9hOVBLkPx9e0G947+I/sLSSdJrJ4T9UV7NZEKHgP8dLjDdg7N4/cwC+bp+S3D9ajCNSijXaPzWv5NrM1dc/sigpAhN01T+GuBjBCBHTP2Qe2xBardA//DMw1WWTzD8U1u6Ofs3HP2uiQUFWCsM/0TDwvImWvD/xbsOxRCOzP/z7N4sae6M/AC43RtcEWj8e7E1G8rShv4x7hFZoB7K/5rRgWAocu7+5UQ6i1wrCvySkjJrTeMa/WNJbI6HWyr/nXCxK6CLPvzZiV44ortG/xMRJ1MHA079qlsX9k8jVv3QXoxHzxNe/LYi6FjO12b/mKOQTqJjbv+w5+A+mbt2/jPvOEYE2378IVyCQxnfgv+PIEiGPTOG/gPMqP0QZ4r8D99Ttj93iv5TzfDAcmeO/WQmPCpNL5L95WHd/nvTkvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PaeGPho7779tkUqwMkvuvyBH6hP8ZO2/lu/7AHiI7L8IshUPqLXrv7u1zdWN7Oq/7CG67Cot6r/dHXHrgHfpv8bQiGmRy+i/7GGX/l0p6L+M+DJC6JDnv+e78csxAue/OtNpMzx95r/HZTEQCQLmv8ma3vmZkOW/g5kHiPAo5b8xiUJSDsvkvxSRJfD0duS/athG+aUs5L9yhjwFI+zjv2vCnKttteO/lrP9g4eI478ygfUlcmXjv31SGikvTOO/tU4CJcA8478anUOxJjfjv+tkdGVkO+O/ac0q2XpJ47/Q/fyja2Hjv2IdgV04g+O/XFNNneKu47/+xvf6a+Tjv4efFg7WI+S/NgRAbiJt5L9KHAqzUsDkvwIPC3RoHeW/ngPZSGWE5b9dIQrJSvXlv36PNIwacOa/PnXuKdb05r/e+c05f4Pnv55EaVMXHOi/vHxWDqC+6L92ySsCG2vpvwxSf8aJIeq/vz3n8u3h6r/Ms/keSazrv3LbTOKcgOy/8dt21Ope7b+I3A2NNEfuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"UlDNmyq07r/7tjwSrcHtvysYhx2gy+y/TF+rG0vS67/Kd6hq9dXqvw9NfWjm1um/i8ooc2XV6L+s26noudHnv9dr/yYrzOa/e2YojADF5b8HtyN2gbzkv+ZI8EL1suO/gweNUKOo4r9N3vj80p3hv6y4MqbLkuC/IwRzVKkP37/FSxjOavrcvyMfU3Vq5tq/EFUhBjfU2L9lxIA8X8TWv/tDb9Rxt9S/q6rqif2t0r9Pz/AYkajQv3UR/3p2T82/kFspZxVYyb+hKlxuHGzFv2AskwipjMG/4hyUW7F1u78X/firke+zv3KpmORbEqm/8PwVegQTlb+QgUL2nbd9P6KL8i6QqqE/JP2EM91Mrz/1dkh2sky2P5PTE73Yxbw/jpwWP9OHwT8Tps5k8JPEP6dYtlcmhsc/lQbSn1ddyj80AibFZhjNP9Cdtk82ts8/3BXEY9Qa0T8df09a0ErSP9Gzf0+AatM/Jd1Wh1V51D88JNdFwXbVPz+yAs80YtY/VLDbZiE71z+mR2RR+ADYPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"thLH2SiW2j97FWill83ZP54Q02N/FNk/SCD76rpq2D+hYNMQJdDXP8ztTquYRNc/9eNgkPDH1j9FX/yVB1rWP9x7FJK4+tU/6FWcWt6p1T+OCYfFU2fVP/ayx6jzMtU/Sm5R2pgM1T+uVxcwHvTUP02LDIBe6dQ/SyUkoDTs1D/QQVFme/zUPwf9hqgNGtU/EnO4PMZE1T8ewNj4f3zVP04A27IVwdU/zk+yQGIS1j/DylF4QHDWP1SNrC+L2tY/rLO1PB1R1z/tWWB10dPXP0Kcn6+CYtg/1JZmwQv92D/GZaiAR6PZP0QlWMMQVdo/cfFoX0IS2z965s0qt9rbP4IgevtJrtw/tLtgp9WM3T811HQENXbePy6GqehCat8/4vb4FG004D+RkyDP6rjgPzcnxQ2IQuE/6D/gOzLR4T+4a2vE1mTiP7k4YBJj/eI/ATW4kMSa4z+i7myq6DzkP7Hzd8q84+Q/QtLSWy6P5T9oGHfJKj/mPzdUXn6f8+Y/wxOC5Xms5z8f5dtpp2noPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"tihgnfx65z/8ErBvgL7mP/awFqVK+eU/vpao1LEr5T9wWHqVDFbkPyiKoH6xeOM/AsAvJ/eT4j8djjwmNKjhP5CI2xK/teA/8YZCCN153z/ppUQiMnzdP0CW5qEqc9s/KoBRtXNf2T/ni66KukHXP6bhJlCsGtU/p6njM/bq0j8aDA5kRbPQP3dinh2O6Mw/jIKgxFBdyD/ZyHQZLcbDP7IL2/D6SL4/5RO6ezjztD+MllYYjxunP8CUmtbm2oA/+NSkfkuFnb9Qq6XqkuWwv7ZufY2ubrq/U+/Fh/j8wb8cLRbcUsLGv0MgXecLhsu/KjykpmQj0L928sJYmIHSv8eK4dvz3NS/6NzWAco017+fwHmcbYjZv7INoX0x19u/8Jsjd2gg3r+NIWytsjHgv37tSn29T+G/rJ0ZFP5p4r/+ncPaHYDjv1haNDrGkeS/nD5Xm6Ce5b+vthdnVqbmv3IuYQaRqOe/zhEf4vmk6L+lzDxjOpvpv9rKpfL7iuq/UHhF+edz67/uQAfgp1Xsvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"bT5kWW+n678foV99w8nqv++V7Ptw4um/R9cGe9rx6L+QH6qgYvjnvzcp0hJs9ua/oa56d1ns5b8+ap90jdrkv3MWPLBqweO/q21M0FOh4r9SKsx6q3rhv9EGt1XUTeC/I3sRDmI23r8BEnppSMbbvwdHnwkhTNm/D494OrHI1r/oXv1HvjzUv2srJX4NqdG/1NLOUcgczr9zG3coD9vIv1kaMhh6jsO/Y3LdcSdxvL9RwzdFzbWxv9TqQ2nrt5u/2KDI99QZjz98K5Hte3WtP+q2P/15lbk/MFJAwSw4wj9gxVarI6THP15L9CQXDc0/Pv0US7440T+QdISz5OfTP80W0X85k9Y/Im8DZPc52T+4CCQUWdvbP7puO0SZdt4/LhYpVHmF4D9hZjj6z8vhP47tT+7tDeM/SvFzinBL5D8st6go9YPlP8mE8iIZt+Y/uJ9V03nk5z+NTdaTtAvpP97TeL5mLOo/RnhBrS1G6z9VgDS6pljsP6MxVj9vY+0/x9GqliRm7j9XpjYaZGDvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AD0Fk/QR7z9W1w0ylCPuP56lNSJsP+0/F8Pk4npl7D/9SoPzvpXrP5FYedM20Oo/DwcvAuEU6j+7cQz/u2PpP8+zeUnGvOg/jOjeYP4f6D8vK6TEYo3nP/mWMfTxBOc/KEfvbqqG5j/9VkW0ihLmP7Thm0ORqOU/jQJbnLxI5T/G1Oo9C/PkP55zs6d7p+Q/U/ocWQxm5D8nhI/Ruy7kP1Usc5CIAeQ/IA4wFXHe4z/ERC7fc8XjP4Dr1W2PtuM/kx2PQMKx4z889sHWCrfjP7qQ1q9nxuM/TAg1S9ff4z8xeEUoWAPkP6f7b8boMOQ/7a0cpYdo5D9CqrNDM6rkP+YLnSHq9eQ/F+5AvqpL5T8SbAeZc6vlPxihWDFDFeY/aKicBhiJ5j9AnTuY8AbnP9+anWXLjuc/g7wq7qYg6D9sHUuxgbzoP9rYZi5aYuk/Cgrm5C4S6j86zDBU/svqP6k6r/vGj+s/mnDJWodd7D9HiefwPTXtP/GfcT3pFu4/1s/Pv4cC7z82NGr3F/jvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAA8D80q8BfdAHvPyr2vOSc++0/LbIJENfu7D+EsLtigNvrP3rC5132weo/Vrmigpai6T9oZgFSvn3oP/OaGE3LU+c/Qyj99Bol5j+i38PKCvLkP1qSgU/4uuM/shFLBEGA4j/5LjVqQkLhP3W7VAJaAeA/4hB9m8p73T9kzg6bg/DaPwtSiAWaYdg/bT4T3cjP1T8YNtkjyzvTP6HbA9xbptA/NqN5D2wgzD89dVtSKfTGP2hyAIVlycE/2L93Vy1DuT+uC4Qry/itP6gEGTZ/BZM/+A9U4t+rlb+IftJnawuvv17mz1vti7m/eTfRc1m9wb9oJ10njafGv8t9OMQbg8u/wPoHo0cn0L+uJEjUOITSvxoas3Om19S/dzgff9Ug178v3WL0Cl/Zv7BlVNGLkdu/Yi/KE5233b+3l5q5g9Dfvw7+TWDC7eC//VxSk/Lr4b9fl8X0dOLiv+rbkgPs0OO/WFmlPvq25L9dPugkQpTlv665RjVmaOa/A/qr7ggz578SLgPQzPPnvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wgvMeKDO7z8F+doV6NfuP2AvxflX5u0/zAcH5gr67D9E2xycGxPsP8YCg92kMes/TNe1a8FV6j/WsTEIjH/pP17rcnQfr+g/3Nz1cZbk5z9P3zbCCyDnP7VLsiaaYeY/CXvkYFyp5T9GxkkybffkP2uGXlznS+Q/bxSfoOWm4z9RyYfAggjjPw3+lH3ZcOI/ngtDmQTg4T8ASw7VHlbhPzAVc/JC0+A/KsPtsotX4D/WW/WvJ8bfP9pcLEbs694/WTt5q5og3j9NqdRiaGTdP6xYN++Kt9w/b/uZ0zca3D+OQ/WSpIzbPwDjQbAGD9s/vot4rpOh2j/B75EQgUTaP/7AhlkE+Nk/crFPDFO82T8Qc+WropHZP9O3QLsoeNk/sjFavRpw2T+mkio1rnnZP6aMqqUYldk/qdHSkY/C2T+qE5x8SALaP58E/+h4VNo/glb0WVa52j9Iu3RSFjHbP+rkeFXuu9s/Y4X55RNa3D+nTu+GvAvdP7HyUrsd0d0/dyMdBm2q3j/zkkbq35ffPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ko0RfmH/5b9bUW532lHlv8aDf1ItouS/fSQfDIvw47+HMyehJD3jv/KwcQ4riOK/zZzYUM/R4b8m9zVlQhrhvwbAY0i1YeC/+O537rFQ378pOzHdvNzdv7xkp1btZ9y/xmuOVKXy2r9oUJrQRn3Zv7YSf8QzCNi/zbLwKc6T1r/DMKP6dyDVv7aMSjCTrtO/vMaaxIE+0r/z3kexpdDQv+aqC+DBys6/rlQR9Sr6y79yuwiVSjDJv2PfWbPkbca/tMBsQ72zw7+dX6k4mALBv6J47wxztry/AK5/QMp8t7/EX9PyvVmyv6AcdRWsnaq/KXQK3jS7oL9sGxs0mDyMv1hTr3+EG3M/xj2XVv4ylz+yVVr39Y+kPwIOgibFQ60/j2ORde7Ysj8UQM67luu2PyicJ39T2Lo/YXfN2Jydvj+u6Pdw9RzBP9lU39na1cI/+/+0s7p4xD/h6RAL0QTGP1USi+xZecc/Knm7ZJHVyD8mHjqAsxjKPxcBn0v8Qcs/ySGC06dQzD8IgHsk8kPNPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ko0RfmH/5b8aY5jqaFDlvy6ZET9xnOS/GeU1qLrj47+A/L1ShSbjvxOVYmsRZeK/gmTcHp+f4b98IOSZbtbgv6d+MgnACeC/bWkAM6dz3r+r8Avv0s3cv2b++J+DItu/9/04nzly2b+7Wj1Gdb3XvwqAd+62BNa/QtlY8X5I1L+50VKoTYnSv83U1myjx9C/rpusMAEIzr9pUIUIy33Kv4KeGhSl8ca/qVxPBpBkw780wwwkGa+/vwgIRdQ2l7i/OjUNg3qDsb+C8FUsy+ukvzD0H5vLg4u/wFQQ/ENWjD9E64K5vfOkPzGVlD7IWrE/0Ls1P4MruD8mPN94Duq+P1y05UI0ysI/E0oaAEgUxj99iCrBQVLJP+GYM9Mgg8w/lKRSg+Slzz9ualIPxlzRP4CpI3mL3tI/JqSrJcJX1D8F73i76cfVP8MeGuGBLtc/BcgdPQqL2D9wfxJ2At3ZP6bZhjLqI9s/UmsJGUFf3D8WySjQho7dP5aHc/46sd4/eTt4St3G3z+yvGKtdmfgPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HvSdcEYA7D/LdMUzNyHrP5CrFgwiO+o/29w4M1xO6T8WTdPiOlvoP7FAjVQTYuc/FvwNwjpj5j+4w/xkBl/lP/7bAHfLVeQ/WYnBMd9H4z82EObOljXiPwK1FYhHH+E/Krz3lkYF4D871GZq0s/dP44G4DgJj9s/LpipDNxI2T/uERJZ9f3WP6v8Z5H/rtQ/Q+H5KKVc0j+OSBaTkAfQP9N2F4bYYMs/XIVRWMWvxj9vzneDPP3BP3XHTtwllbo/9K36/ToysT8cz7XkiFGfPxA67E2qG3i/2KnfneOapb+onMt3GQy0v2j3N9IHO72/2WB9iMkrw78f7GyziK/Hv8GLTYNsJ8y/ChfBCBBJ0L+s4LY7J3fSv+6ZOWdRndS/97n6F+S61r/st6vaNM/Yv/IK/juZ2dq/KiqjyGbZ3L/AjEwN883ev+vUVctJW+C/Svy4+E5J4b8NeCjVszDiv8cD/SYjEeO/DluPtEfq479xOThEzLvkv4RaUJxbheW/23kwg6BG5r8GUzG/Rf/mvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WvUBBOD17L948qE/3g3sv9TlugEGHOu/QaPoKb0g6r+F/saXaRzpv3TL8SpxD+i/2t0Ewzn65r+KCZw/Kd3lv0oiU4CluOS/8PvFZBSN479EapDM21rivxhBTpdhIuG/dag2SRfI37/47iaof0Ddv0n9pArIrtq/EXvoL7wT2L/iDynXJ3DVv15jnr/WxNK/JB2AqJQS0L+RyQuiWrTKv+TDzvDYOMW/4PBwd3dov7/pbHACNVC0v4I09f4yWKK/CEWPpGAFgD98+qx52WWqPx6FdHx5Z7g/9bBGq5HNwT+POiGnXWXHPyaQWjOJ+cw/O7HBaD5E0T8uMZaBUAjUP0Yg8yQvyNY/7Nagkw6D2T9+rWcOIzjcP2D8D9ag5t4//g2xFd7G4D9YMpOnVBbiP3CXEkFOYeM/dmmTAmWn5D+g1HkMM+jlPxwFKn9SI+c/HicIe11Y6D/WZngg7obpP3Xw3o+eruo/MPCf6QjP6z82kh9Ox+fsP7oCwt1z+O0/7G3ruKgA7z8AAAAAAADwPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AS4D0Mzz57+iycQHzzznv5jPsww6j+a/DdRzjATr5b8ia6g0JVDlvwEp9bKSvuS/z6H9tEM25L+0aWXoLrfjv9UU0PpKQeO/VzfhmY7U4r9jZTxz8HDivx4zhTRnFuK/rzRfi+nE4b88/m0lbnzhv+0jVbDrPOG/5Tm42VgG4b9M1DpPrNjgv0mHgL7cs+C/Aucs1eCX4L+dh+NAr4Tgv0D9R68+euC/E9z9zYV44L87uKhKe3/gv+Al7NIVj+C/JrlrFEyn4L80Bsu8FMjgvzKhrXlm8eC/RB63+Dcj4b+TEYvnf13hv0MPzfM0oOG/e6sgy03r4b9jeikbwT7ivyAQi5GFmuK/2ADp25H+4r+y4Oan3Grjv9JDKKNc3+O/Y75Qewhc5L+J5APe1uDkv2lK5Xi+beW/LISY+bUC5r/2JcENtJ/mv+7DAmOvROe/PfIAp57x578ERV+HeKbov25QwbEzY+m/oKjK08Yn6r/C4R6bKPTqv/aPYbVPyOu/Z0c20DKk7L84nECZyIftvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WvUBBOD17L93I1AJBRbsv5TZWfxnPOu/IjOU+hhp6r+LS3QhKJzpv0M+b46l1ei/tib6XqEV6L9bIIqwK1znv5lGlKBUqea/5bSNTCz95b+qhuvRwlflv13XIk4oueS/bMKo3mwh5L9GY/KgoJDjv1rVdLLTBuO/GTSlMBaE4r/xmvg4eAjiv1Il5OgJlOG/rO7cXdsm4b9vEli1/MDgvwusygx+YuC/79apgW8L4L8WXdViwnffv5ycBHPG596/UKPLbgtn3r8QqBSRsfXdv77hyRTZk92/OIfVNKJB3b9dzyEsLf/cvwvxmDWazNy/IyMljAmq3L+GnLBqm5fcvw6UJQxwldy/nkBuq6ej3L8W2XSDYsLcv1SUI8/A8dy/NqlkyeIx3b+dTiKt6ILdv2i7RrXy5N2/dia8HCFY3r+mxmwelNzev9jSQvVrct+/9kAUbuQM4L9gBQSHZWngvxjS5WLJzuC/kcIuHyA94b858lPZebThv4B8yq7mNOK/1HwHvXa+4r+nDoAhOlHjvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jKH/Bfl+hj8NIT4f6eSEP9B4hk7RfYE/ay2MkuWmeD9uoqkTO75lP9Ac+UjMIFm/HkDS1om7er/dHoYssjOJvxJZhAsQTpO/BLbBuqbGmr+nN6JEXn+hvwTnKm64+KW/oo2fjPHMqr8A0KRSmfmvv1ipb7kfvrK/Gd35zzmptb+LVUPG4ry4v+9knnXi97u/hl1dtwBZv7/OSGmygm/Bv7YpqCtcRMO/oHoUtHAqxb+sZFc4JCHHv/4QGqXaJ8m/uagF5/c9y7/6VMPq32LNv+Q+/Jz2lc+/0Mcs9U/r0L8kOMLfHxLSvwAFkwQdP9O/9cLzWflx1L+WBjnWZqrVv3Bkt28X6Na/GXHDHL0q2L8ewbHTCXLZvxDp1oqvvdq/gX2HOGAN3L8EExjTzWDdvyg+3VCqt96/vskV1NMI4L/K06vnO7fgv4EHW17mZuG/K69NM6wX4r8OFa5hZsniv3WDpuTte+O/qURhtxsv5L/xogjVyOLkv5XoxjjOluW/31/G3QRL5r8YUzG/Rf/mvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"PY0RfmH/5b/hAs4hZ1Llv9ZgaCFcpOS/98nZsWv1478WYRsIwUXjvw1JJlmHleK/tKTz2enk4b/ilny/EzThv2xCuj4wg+C/VpRLGdWk37/ooXC820Pev0Lz1dDK49y/D85twPiE27//dyr1uyfav8A2/thqzNi/AVDb1Vtz179rCbRV5RzWv7KoesJdydS/gnMhhht507+Lr5oKdSzSv3mi2LnA49C/+iOb+6k+z7+Ih9eAEL/Mv/b6StdhScq/owna0krex7/sPmlHeH7Fvy8m3QiXKsO/xEoa61PjwL8XcAqEt1K9v7/yBMO2+ri/RTTtOv+/tL9QS4yT6qOwv0edVumkT6m/76kmDCGaob8e1DW++VOUvxBZLI5dD3i/ECw6Yvnafj+stPLWYNaUP+6FPrzUqqA/zpoEz5iXpj+RazlUyS6sP2BlJX7ZtrA/dUXTO9Eosz9LP1078mu1Pyc8+tTifrc/WCXhYElguT8g5Eg3zA67P8VhaLARibw/j4d2JMDNvT/FPqrrfdu+Pw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"2ifjpr/+xD8cfZvCPlzEP54g2FvWvcM/2sq7a5Qjwz9KNGnrho3CP2QVA9S7+8E/pSasHkFuwT+EIIfEJOXAP3i7tr50YMA//F+7DH7Avz8abT0pI8m+Pz8POcX02r0/Wrfz0g72vD9i1rJEjRq8P0bduwyMSLs/+jxUHSeAuj9sZsFoesG5P5PKSOGhDLk/XtoveblhuD/EBrwi3cC3P7HAMtAoKrc/HHnZc7idtj/4oPX/pxu2PzOpzGYTpLU/wwKkmhY3tT+YHsGNzdS0P6VtaTJUfbQ/3mDiesYwtD8yaXFZQO+zP5X3W8DduLM/+nznobqNsz9Ualnw8m2zP5Iw952iWbM/qUAGneVQsz+LC8zf11OzPyoCjliVYrM/eJWR+Tl9sz9mNhy14aOzP+pVc32o1rM/8mTcRKoVtD911Jz9AmG0P2EV+pnOuLQ/q5g5DCkdtT9Ez6BGLo61Px4qdTv6C7Y/LBr83KiWtj9iEHsdVi63P659N+8d07c/CNN2RByFuD9dgX4PbUS5Pw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hxbX8j0brD+HuE4+wzirP2/UyqkkSqo/BYpk59JPqT8F+TSpPkqoPzVBVaHYOac/VoLegREfpj8w3On8WfqkP35ukMQizKM/BlnrityUoj+JuxMC+FShP8y1ItzlDKA/H89ili16nT8y4bEC98uaP1HhZGEJEJg/Aw+uFkZHlT/Kqb+GjnKSP1bilyuIJY8/YEkKUJBRiT+0BztD+GqDP8A4HZsF53o/uBmm3cqzbT+oTgSTrJBFP5yk4tLIGWO/fonZ84Lfdb/Jjgc+ICGBvzeIpLjLWIe/EDJfIQGVjb+ihunX/umRv2DNzU3/CZW/vi0qjqApmL8+aMw0AUibv1I9gt0/ZJ6/vrYMkr2+oL+Z3C/SaEmiv3ZwEf2w0aO/mFKYYCVXpb83Y6tKVdmmv5SCMQnQV6i/6pAR6iTSqb94bjI740erv3v7ekqauKy/MRjSZdkjrr/WpB7bL4mvv9TAI3wWdLC/c8eZBTAgsb9m1uQwrMixv8xd+KRSbbK/xM3HCOsNs79slkYDPaqzvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fkO2IDYe3T/Me3SxcjbcP2zP53fDR9s/m7UqCn9S2j+PpVf++1bZP4gWieqQVdg/wX/ZZJRO1z96WGMDXULWP+YXQVxBMdU/RjWNBZgb1D/XJ2KVtwHTP9Nm2qH249E/d2kQwavC0D/+TT0SWzzPP0wtPyCl7cw/U19b2OKZyj+C0sZmwUHIP1l1tvft5cU/TTZftxWHwz/UA/bR5SXBP9eYX+cWhr0/DP2CkWe+uD9AEcD6F/azP6hkAfcEXa4/gnpd2ALSpD/YO9CUvJuWP/CMUN+/NG0/MCygcP1rjr++YxsTT/qgv2ZHEXbuR6q/Cv4aapTAsb8H5Fq+pFG2v614Xt/N1bq/E9+7dLVLv78hnQSTANnBv6VWbk2rA8S/pC1mvS0lxr+iM7e22jzIvyh6LA0FSsq/uhKRlP9LzL/oDrAgHULOvxtAqkLYFdC/F7wkSwYE0b8qBK0TQuvRvxmhKAY1y9K/qxt9jIij07+g/I8Q5nPUv7/MRvz2O9W/yxSHuWT71b+IXTay2LHWvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"imU5tyBN2b8kkWam4I/YvyDw/pGM5Ne/CfVxDvBK179pEi+w1sLWv8u6pQsMTNa/vWBFtVvm1b/Ndn1BkZHVv4FvvUR4TdW/ab10U9wZ1b8P0xICifbUvwAjB+VJ49S/yh/BkOrf1L/1O7CZNuzUvw/qQ5T5B9W/pJzrFP8y1b8+xhawEm3Vv2zZNPr/tdW/tEi1h5IN1r+phgftlXPWv9IFm77V59a/vjjfkB1q17/3kUP4OPrXvwqEN4nzl9i/goEq2BhD2b/s/It5dPvZv9BoywHSwNq/vjdYBf2S279C3KEYwXHcv+bIF9DpXN2/NXApwEJU3r/AREZ9l1ffv4bc7s1ZM+C/1J8vWLHA4L+RJZ0nuFPhvwEnbwZU7OG/bF3dvmqK4r8Vgh8b4i3jv0VObeWf1uO/QHv+54mE5L9NwgrthTflv7Lcyb557+W/tINzJ0us5r+acD/x323nv6dcZeYdNOi/JQEd0er+6L9ZF557LM7pv4dYILDIoeq/933bOKV567/uQAfgp1Xsvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NjRq9xf47z8XCq7hivjuPxsCBNI77+0/uzaqXJXc7D9qwt4VAsHrP6W/35HsnOo/40jrZL9w6T+geD8j5TzoP05pGmHIAec/ZjW6stO/5T9k91yscXfkP7/JQOIMKeM/78aj6A/V4T9uCcRT5XvgP2NXv2/vO94/a5BpUmN32z/b8gJ4+6rYP6mzBwmN19U/xgf0Le390j8iJEQP8R7QP1l76Krbdso/sBIBUnGoxD9p8JTJmqi9P2Iremg0+LE/jKiKihAMmT8w/gKYhc6Vv9w9f49nKLG/Lv3nt/nXvL/UFKWegT/Ev8V32r4XDcq/g72b6xTTz78ePvhp58fSvwElcJPNoNW/fl65yWdz2L+ftVfk4D7bv3T1zrpjAt6/iXRRko1e4L/Crav8GLfhv+4LOIhpCuO/knS4oBRY5L84ze6xr5/lv2j7nCfQ4Oa/qeSEbQsb6L+Cbmjv9k3pv3h+CRkoeeq/GvopVjSc67/qxosSsbbsv3LK8LkzyO2/N+oauFHQ7r/EC8x4oM7vvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"OI0RfmH/5T/n6NTQXE/lP9k4ZDBImOQ/pP8Izm7a4z/dvwzbGxbjPx/8uIiaS+I//zZXCDZ74T8Y8zCLOaXgP/hlH4Xgk98/jvJ5v0rT3T8ekQQoSAncP9ZGUiFvNto/5xj2DVZb2D+BDINQk3jWP9EmjEu9jtQ/CG2kYWqe0j9Q5F71MKjQP7sjndJOWc0/uPUMQMhYyT/4SDP4+k/FP90nNsATQME/gDl3un5Uuj8CZNMoVR+yP+rHmasIxqM/wOH8ulweej80I9+ss4aavwKYO4m0yq2/2iY2tsgmt7+OxLS1nmO/vzPIZlzBzMO/yjqamg3jx7+/r05Qh/PLv6UcXrgB/c+/kzvRBij/0b9w2nrFIvvTv7jlmLXa8dW/QliYdLni17/cLOafKM3Zv1Ze79SRsNu/gecgsV6M3b8xw+fR+F/fvxp2WOpkleC/rq50qx124b+9CP9621Hiv64BridTKOO/7RY4gDn547/gxVNTQ8Tkv+6Lt28lieW/hOYZpJRH5r8GUzG/Rf/mvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Wigbb1Kf77+Z50CfqaPuv5BZc2WPoO2/FZ8qZmGW7L/02N5FfYXrvwYoCKlAbuq/G60eNAlR6b8NiZqLNC7ov6Pc81MgBue/t8iiMSrZ5b8dbh/Jr6fkv6ft4b4OcuO/J2hit6Q44r91/hhXz/vgv7qi+4TYd9+/cAMSPLLy3L+oYGUc52javxD85W4y29e/TBeEfE9K1b8B9C+O+bbSv9bT2ezrIdC/4/DjwsMXy7/+RtFpLevFvzYtXGCLv8C/xE3KcKgst78y3TIP+sOpv6gcNkcNEIW/KLMyHnJBnj/e2/9lMLKxPxDDsc6MwLs/263wTkLcwj+uz+ZXlcvHP6TDWvDIrMw/PgM2QzO/0D9uCh3Eex/TP7418rGCdtU/jEPFw4zD1z8w8qWw3gXaPwEApC+9PNw/WCvP92xn3j9LmRtgmULgPwbq9Z+pSuE/DWf+lolL4j+L77yg20TjP6xiuRhCNuQ/oZ97Wl8f5T+ThYvB1f/lP7DzcKlH1+Y/JcmzbVel5z8f5dtpp2noPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"r0dkUfgA2L9c+qSsxUbXv0z7az90kNa/61KdSxje1b+aCR0Txi/Vv8Ynz9eRhdS/1LWX24/f078yvFpg1D3Tv0RD/KdzoNK/cVNg9IEH0r8k9WqHE3PRv8QwAKM849C/uQ4EiRFY0L/eLrX2TKPPv5Gmz3cfoM6/ZZUfGcOmzb8iDG1eYLfMv50bgMsf0su/qNQg5Cn3yr8QSBcspybKv6eGKyfAYMm/QKElWZ2lyL+pqM1FZ/XHv7Kt63BGUMe/LMFHXmO2xr/o86mR5ifGv7ZW2o74pMW/Z/qg2cEtxb/L78X1asLEv7NHEWccY8S/8BJLsf4PxL9QYjtYOsnDv6VGqt/3jsO/wdBfy19hw79yESSfmkDDv4wZv97QLMO/2/n4DSsmw78zw5mw0SzDv2KGaUrtQMO/OlQwX6Ziw7+MPbZyJZLDvyZTwwiTz8O/3KUfpRcbxL98RpPL23TEv9ZF5v8H3cS/vrTgxcRTxb8BpEqhOtnFv28k7BWSbca/3EaNp/MQx78XHPbZh8PHvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"1397JPJDzb/e0YoVAGXMv8HxmqLOksu/X6dZtUvNyr+TunQ3ZRTKvzjzmRIJaMm/LBl3MCXIyL9T9Ll6pzTIv39MENt9rce/keknO5Yyx79ok66E3sPGv90RUqFEYca/0SzAerYKxr8frKb6IcDFv6ZXswp1gcW/P/eTlJ1Oxb/IUvaBiSfFvyAyiLwmDMW/Il33LWP8xL+rm/G/LPjEv5i1JFxx/8S/x3I+7B4Sxb8Vm+xZIzDFv1z23I5sWcW/fEy9dOiNxb9QZTv1hM3Fv7YIBfovGMa/i/7HbNdtxr+rDjI3ac7Gv/QA8ULTOce/QJ2yeQOwx79wqyTF5zDIv17z9A5uvMi/6DzRQIRSyb/rT2dEGPPJv0P0ZAMYnsq/zvF3Z3FTy79oEE5aEhPMv+4XlcXo3My/PtD6kuKwzb8zAS2s7Y7Ov6xy2fr3ds+/QvZWtHc00L9MG6zvYLLQv2MMQ6QuNdG/dq3yxte80b9y4pFMU0nSv0aP9ymY2tK/4Jf6U51w078x4HG/WQvUvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vj6q633bvr/uX/fIz9i9v5UYIq4Ctby/Tv+E5Ptwu7+sqnq1oA26v06xXWrWi7i/yamITILstr+7KlaliTC1v7bKIL7RWLO/WSBD4D9msb9yhC+qcrOuv+GN8stGaKq/MIqEuMbspb+bppoCvUKhv4kg1Hno15i/p9Gf6Nuojb+IAUxofvpxv2T54L21l3g/73jnAqQVkT8PVdD67kycPyI85Jgc5KM/H8QywfbBqT8+lZ5jO76vPy5BufaP67I/Iq/85WwFtj/e/T42zyu5P8qWJZ7RXbw/UeNV1I6avz9sprrHkHDBP2KeFENSGMM/Po6LNxnExD+2KnIAc3PGP3ooG/nsJcg/QjzZfBTbyT+9Gv/mdpLLP55435KhS80/ngrN2yEGzz+2Qo2OwmDQP99ODVmsPtE/IgQQ+5Qc0j/bvD4iQ/rSP2LTQnx919M/EqLFtgq01D9Eg3B/sY/VP1DR7IM4atY/lObjcWZD1z9nHf/2ARvYPyLQ58DR8Ng/IVlHfZzE2T+9EsfZKJbaPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"rUdkUfgA2D/Xa3pzvz7XPybFdaKTcNY/4GHIi92W1T9FUOTcBbLUP5ieO0N1wtM/H1tAbJTI0j8flGQFzMTRP9VXGryEt9A/GGmne05Czz8FcQVwOATNP/zjMrCYtco/g94Tl0BXyD8mfYx/AerFP2XcgMSsbsM/zhjVwBPmwD++ndqeD6K8P0g2W5a0YLc/TjT0HbkJsj+todvWfz2pP8ATQdKuhZw/6Jo88vI1eT+Cnz28CyeQv3EtguCvaKO/hhNSPXrVrr/0B3/ETyu1vzfY+itt9Lq/xiCqTzliwL9uhWG03kzDv4t9P2lVOca/lexfE8wmyb8Ott5XcRTMv2S919tzAc+/DHMzIoH20L/OCVSbJWvSv7aU26s+3tO/gQVYpmNP1b/rTVfdK77Wv7FfZ6MuKti/jiwWSwOT2b9ApvEmQfjav4K+h4l/Wdy/E2dmxVW23b+tkRstWw7fvwaYmomTMOC/95kgZSjX4L+Ix2bSt3rhv5cZtHoNG+K/AolPB/W34r+nDoAhOlHjvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HhGnHpYt4r/QajX94J3hv/h92JrIC+G/hU9ltnh34L+1yGEdOsLfv9KCIMXCkd6/L9ew4eJd3b+tz7zw8SbcvxR27m9H7dq/QtTv3Dqx2b8K9Gq1I3PYv0HfCXdZM9e/v592nzPy1b9cP1usCbDUv+nHYRszbdO/PkM0agcq0r8uu3wW3ubQvyVzyjsdSM+/fpAv/ODDzL8S4nxptkHKv5B7Bn9Mwse/oHAgOFJGxb/y1B6Qds7Cvyy8VYJoW8C/9nMyFK7bu78WxHpF4gy3vxaQLI/LS7K/fv7fz48zq7/jcdqMavChv/6RMYXGoZG/gLdWyhAlND+oRbtkw/CRP3LIcYKnnKE/ns+ApF8Sqj/UNJ0VZyuxP+wjp5SbM7U/zg22WG8guT8YyyFrhPC8PzwaoWo+UcA/SZE3UH0awj8KNwDrT9PDP9X3pj8He8U/+7/XUvQQxz/Sez4paJTIP60Xh8ezBMo/439dMihhyz/JoG1uFqnMP7JmY4DP280/8r3qbKT4zj/fkq845v7PPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"juw7QE600j+WJYhMnhfSPwPOq6sTZ9E/ocHlKTij0D94uOkmK5nPP0XzL2lrx80/Qusbs0TSyz8OWCudyrrJPz3x278Qgsc/bm6rsyopxT84hxcRLLHCPznznXAoG8A/FtR41WbQuj+URuEvwTK1PzVa4UIOv64/yO1Etr+xoj/0mJBvlAeJP9x3KKnMMIq/aQBPujq0o79Y0RmZ8Ziwvy+TABhvgLe/jFbgqG6Ovr8W1l6NZODCv3SSTp6risa/xKjB7vhEyr9oYTrmOA7Ov2KCHfar8tC/o+0iNKHk0r+nlu5gctzUv6ChQbCV2da/wDLdVYHb2L8+boKFq+Hav0h48nKK69y/FnXuUZT43r9qxBurH4Tgv9trx9kAjeG/+sLazqiW4r/gWzak0qDjv6PIunM5q+S/X5tIV5i15b8sZsBoqr/mvya7AsIqyee/ZCzwfNTR6L8ATGmzYtnpvxGsTn+Q3+q/td6A+hjk678DduA+t+bsvxQETmYm5+2/ARuqiiHl7r/lTNXFY+Dvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NTRq9xf477/SCt27Zf/uv167viZ3Cu6/1XFLrm4Z7b8rWr/Ibizsv12gVuyZQ+u/Y3BNjxJf6r849t8n+37pv9RdSix2o+i/MNPIEqbM579GgpdRrfrmvw+X8l6uLea/hj0Wsctl5b+koT6+J6Pkv2Hvp/zk5eO/uFKO4iUu47+g9y3mDHzivxQKw328z+G/DraJH1cp4b+GJ75B/4jgv+0UObWu3d+/sBXCwAO23r9LqY+SQpvdv64nGhewjdy/zOjZOpGN27+XREfqKpvavwST2hHCttm/BCwMnpvg2L+LZ1R7/BjYv4qdK5YpYNe/9yUK22e21r/CWGg2/BvWv92NvpQrkdW/Ph2F4joW1b/WXjQMb6vUv5iqRP4MUdS/eFgupVkH1L9mwGntmc7Tv1Y6b8MSp9O/PB63EwmR078KxLnKwYzTv7KD79SBmtO/KbXQHo66079fsNWUK+3Tv0jNdiOfMtS/2GMsty2L1L8AzG48HPfUv7Ndtp+vdtW/5XB7zSwK1r+IXTay2LHWvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aD5kWW+n6z+gHnb2iMzqP8bqPnBz7ek/ZOuuRHQK6T8Dabbx0CPoPzCsRfXOOec/dv1MzbNM5j9hpbz3xFzlP3jshPJHauQ/SRuWO4J14z9feuBQuX7iP0VSVLAyhuE/huvh1zOM4D9aHfOKBCLfP4wIF+7GKd0/tykQ1Tkw2z/rEb876DXZP0ZSBB5dO9c/2XvAdyNB1T++H9RExkfTPwvPH4HQT9E/pDUIUZqzzj9fKMNtjszKP2eYMVCT68Y/7KcU8L4Rwz828lqKToC+P01ceo7E77Y/wqQTuBforj+eMRfFoB6gP6B+PjDCd2g/OF9Dnvyxmb9sDFWydv6qv9rSyJNKcrS/bHnp54BDu7/EGgUzWfjAv2phVI/ZO8S/hG4hkStrx7/iH6tAOYXKv1dTMKbsiM2/WfP35Jc60L/oWxRadqTRv0DSjLaGAdO/TcWA/j1R1L/0ow82EZPVvyLdWGF1xta/wt97hN/q17+9GpijxP/Yv/38zMKZBNq/a/U55tP42r/xcv4R6Nvbvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"}]],[\"ys\",[{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MmwVkhfly7+83HNd3gHLv0uCxyzEDcq/6t2zm1IJyb+ecNxFE/XHv3G75MaP0ca/bj9wulGfxb+ffSK84l7Evwj3nmfMEMO/tyyJWJi1wb+xn4Qq0E3AvwOiafL6s72/YoN6wFO1ur+T5YL2vaC3v6XKyctMd7S/rzSWdxM6sb9yS15iStSrv7U/t18qEaW/oZSKq9pZnL96vVnM5qaMvwAbZnHMaxO/HJoXid7DjD9esq7vUAidP9eg7Su27aU/WLn6T3prrT9CT7g6p32yPx2m4BaGTbY/L18vhUYkuj9keF1O1QC+P9T3kZ0P8cA/c+Ediojjwj8L+C7RS9fEP5C6IdfPy8Y/+qdSAIvAyD8+Px6x87TKP1L/4E2AqMw/Mmf3Oqeazj/p+l5ub0XQPxSVyMtOPNE/lsHm56wx0j/sv+f0RCXTP4/P+STSFtQ//S9Lqg8G1T+uIAq3uPLVPyDhZH2I3NY/0LCJLzrD1z82z6b/iKbYP8976h8whtk/GPaCwuph2j+LfZ4ZdDnbPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"K2vct5uXyL/ku2JcJcjHv6SwCUe328a/X+Vi6hXTxb8K9v+4Ba/Ev5l+ciVLcMO/AxtMoqoXwr9CZx6i6KXAv4b+9S6TN76/Av7m6SP0ur/iBDNaDIO3vw1L/WTV5bO/cwhp7wcesL8I6jK9WVqovz6RYy+aKaC/yNmp/ouzjr94aR97oIthP/yL1jhWSJQ/5Ac7dF5yoz+DzNpEQgCtP/oRAmJiZbM/OE+4E2pnuD8G5mxSr4S9P0JPfpzUXcE/ZCAicWcFxD9uSpC0S7jGP2oxN/S8dck/ajmFvfY8zD90xuidNA3PP0geaBHZ8tA/5P/UbNVi0j8YOvInLdbTP+T+dgl+TNU/UIAa2GXF1j9f8JNagkDYPxaBmldxvdk/fWTlldA72z+YzCvcPbvcP2zrJPFWO94//vKHm7m73z+qCgbRAZ7gPzlCtGXpXeE/MDkqb2Id4j+PiMPQO9ziP1rJ221EmuM/lZTOKUtX5D9Bg/fnHhPlP2EusouOzeU/9y5a+GiG5j8HHksRfT3nPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"l0xdzb9Fxb+VE+x77qPEv4cFuOLZC8S/EAx1XXJ9w7/JENdHqPjCv1n9kf1rfcK/X7tZ2q0Lwr98NOI5XqPBv09S33dtRMG/eP4E8MvuwL+ZIgf+aaLAv1Oomf03X8C/R3lwSiYlwL8q/n6ASui/v7lGdXVKmL+/fp8rKy1av7+62wlZ0y2/v63Od7YdE7+/mEvd+uwJv7+/JaLdIRK/v2AwLhadK7+/wD7pWz9Wv78cJDtm6ZG/v7izi+x73r+/amAh0+sdwL9YD2Sl7lTAv0jQwcg2lMC/2YzumLTbwL+uLp5xWCvBv2SfhK4Sg8G/nchVq9Piwb/8k8XDi0rCvx7rh1MrusK/prdQtqIxw78049NH4rDDv2hXxWPaN8S/4v3YZXvGxL9GwMKptVzFvzCINot5+sW/Qz/oZbefxr8gz4uVX0zHv2Yh1XViAMi/tx94YrC7yL+ysyi3OX7Jv/nGms/uR8q/LUOCB8AYy7/tEZO6nfDLv9scgUR4z8y/lk0AAUC1zb/AjcRL5aHOvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vTXNBRvwwb/q7Rx/U1LBv/zlLO+vksC//WHjCgdkv7/tw7/iQmK9v9oX2MS5Ibu/1YMVEBKkuL/zLWEj8uq1vz48pF0A+LK/lqmPO8aZr79TO2qFgdaov9Z5qlZ/qaG/dmJF2hgslL+obSk1rPtwv7wS73vi24g/f7Pbi+LTnT9uxV6wJ/anP8YdPpAnrLA/+Pc5bI2GtT9GyzkNn4i6P5RxVBS2sL8/bmJQEZZ+wj+Cz5psLTbFPwLtlOxN/sc/5SfKYSTWyj8d7cWc3bzNP9LUCTfTWNA/PGUf09XZ0T9GXukKDWHTP2p2rUYP7tQ/JWSx7nKA1j/23TprzhfYP1SajyS4s9k/vk/1gsZT2z+utLHuj/fcP6B/CtCqnt4/iLOix1Yk4D++EFRKl/rgP64yPCTi0eE/lvR9iQKq4j+3MTyuw4LjP0zFmcbwW+Q/k4q5BlU15T/LXL6iuw7mPy8Xy87v5+Y/ApUCv7zA5z9+sYen7ZjoP+NHfbxNcOk/bTMGMqhG6j9bT0U8yBvrPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fcmUyviC6b8MY/obeLfov5ZWtL0G5ee/cUH4OPUL57/wwPsWlCzmv21y9OAzR+W/O/MXICVc5L+z4JtduGvjvybYtSI+duK/7Hab+AZ84b9dWoJoY33gv5s/QPdH9d6/JslUdjLo3L8IjK1gJ9Tav+vCtcjHudi/f6jYwLSZ1r9pd4Fbj3TUv1dqG6v4StK/+bsRwpEd0L/uTZ9l99nLv/rLgB+vc8e/b2ee1owJw79VK51fpTm9v+2Xz5+FXbS/yP4Bb30Cp794Y/KCpzqFvxhZrq/Ntpg/LnxfJ6z2rT9QQEG9Dr+3Px2ZeY8sO8A/kVSMd1iPxD85XQLyyNrIP7M9Bdo7HM0/VkBfhTep0D9k2KsvEL7SP1csfdkGzNQ/iAFocHrS1j9GHQHiydDYP+tE3RtUxto/xD2RC3iy3D8szbGelJTePzrcaWEENuA/eeLFshkc4T/8Wze6OfzhP2uriO4T1uI/djOExlep4z/DVvS4tHXkP/x3ozzaOuU/zflbyHf45T/fPujSPK7mPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"lVW1Ydtj7j+B7QIhPnntP77K9vLAlew//yRFr3G56z/yM6ItXuTqP0svwkWUFuo/uU5ZzyFQ6T/vyRuiFJHoP5zYvZV62ec/crLzgWEp5z8ij3E+14DmP16m66Lp3+U/2C8Wh6ZG5T9BY6XCG7XkP0h4TS1XK+Q/oabCnmap4z/5JbnuVy/jPwYu5fQ4veI/dfb6iBdT4j/5tq6CAfHhP0SntLkEl+E/B//ABS9F4T/09Yc+jvvgP7nDvTswuuA/CqAW1SKB4D+Wwkbic1DgPxFjAjsxKOA/Kbn9tmgI4D8j+dlbUOLfP/bJCO/6xN8/LFTw1uy43z8rB/nCQb7fP09Si2IV1d8/AaUPZYP93z9QN/e80xvgP0gPSKjOQeA/GJIuTMBw4D90916AtqjgPwp3jRy/6eA/jUhu+Ocz4T+uo7XrPofhPx7AF87R4+E/jtVId65J4j+wG/2+4rjiPzTK6Hx8MeM/zBjAiImz4z8oPze6Fz/kP/x0Auk01OQ/9vHV7O5y5T/J7WWdUxvmPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Jo8Z4cik7j80/ZDVpbHtP66xFgq/uOw/IUQwhGe66z8MTGNJ8rbqP/1gNV+yruk/fRosy/qh6D8UEM2SHpHnP0fZnbtwfOY/oA0kS0Rk5T+qROVG7EjkP+wVZ7S7KuM/7RgvmQUK4j835cL6HOfgP6QkUL2phN8/kG/IlAA43T872vmG5OjaP7qT7577l9g/IMu05+tF1j96r1RsW/PTP9xv2jfwoNE/qnaiqqCezj/2gYifQ/7JP6pffWQVYsU/8m2XD2LLwD/qFdpt63a4P0RTUsJxzq4/AE0jlRKpmT9Qh9HMyOqDvzhNpl4Qmqa/hFG1bzACtL+A9ZOuOZq8vxkr4d9FicK/sNuJO0e0xr9kri3U1MzKvwpFtpOi0c6/x6AGMrJg0b/kIo4XZ03Tv8x5Zu9JLtW/a3aErrQC17+26dxJAcrYv5ikZLaJg9q/AngQ6acu3L/gNNXWtcrdvyOsp3QNV9+/Xle+W4Rp4L/NhiTKAB/hv9bMAACpy+G/75HN9ylv4r+RPgWsMAnjvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LkFKskLg7j+ahZycT/LtP2+i0f9rDO0/kP4Li6Eu7D/eAG7t+VjrPz0QGtZ+i+o/kpMy9DnG6T/D8dn2NAnpP6yRMo15VOg/NdpeZhGo5z9BMoExBgTnP7QAvJ1haOY/cawxWi3V5T9dnAQWc0rlP1k3V4A8yOQ/SuRLSJNO5D8TCgUdgd3jP5YPpa0PdeM/t1tOqUgV4z9bVSO/Nb7iP2ZjRp7gb+I/uuzZ9VIq4j87WAB1lu3hP8wM3Mq0ueE/UHGPpreO4T+r7Dy3qGzhP8HlBqyRU+E/dMMPNHxD4T+q7Hn+cTzhP0TIZ7p8PuE/J737FqZJ4T82MljD913hP1SOn257e+E/ZDj0xzqi4T9Ml3h+P9LhP+wRT0GTC+I/Kg+avz9O4j/o9XuoTpriPwwtF6vJ7+I/dhuOdrpO4z8LKAO6KrfjP6+5mCQkKeQ/RTdxZbCk5D+wB68r2SnlP9SRdCaouOU/lTzkBCdR5j/WbiB2X/PmP3mPSylbn+c/ZAWIzSNV6D95N/gRwxTpPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"mtFsQD4W7z+j2eIcbyLuP1rAPS1jLu0/6m4nvlA67D98zkkcbkbrPzzITpTxUuo/VkXgchFg6T/3LqgEBG7oP0duUJb/fOc/c+yCdDqN5j+okunr6p7lPw5KLklHsuQ/0/v62IXH4z8lkfnn3N7iPynz08KC+OE/EAs0tq0U4T8BwsMOlDPgP1UCWjLYqt4/a2MzRNj03D+heWfslEXbP0kXSsR6ndk/uw4vZfb81z9RMmpodGTWP1tUT2dh1NQ/Nkcy+ylN0z813Wa9Os/RP7PoQEcAW9A/BHgoZM7hzT/3UmkuuCLLP+oG7B+Xecg/kjhYa0TnxT+PjFVDmWzDP5uni9puCsE/u1xExzyDvT8Ki4EiAia5P4ojHizg/rQ/g29pSYkPsT+2cGW/X7OqP9aOkqgMvqM/TZjxMfyEmj887dpsYxCNP6jwrp4bZGw/aC9gAhSdeb+IQz4jvJiOvzE+Air+G5e/zjuEtFvPnb+O+vON1q+hv1kieGUU46O/kAIwlgJ+pb9+CH1VPH2mvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VnnX8LFG7z/e0r8yFlTuP/cThD+JZu0/AXumeCV+7D9ZRqk/BZvrP1+0DvZCveo/cwNZ/fjk6T/4cQq3QRLpP0c+pYQ3Reg/xKarx/R95z/M6Z/hk7zmP8BFBDQvAeY/APlaIOFL5T/tQSYIxJzkP+Ne6Ezy8+M/RI4jUIZR4z9sDlpzmrXiP78dDhhJIOI/mfrBn6yR4T9c4/dr3wnhP2YWMt77iOA/GNLyVxwP4D+iqXh1tjjfP+C5IdClYd4/qVHlgjuZ3T+87cdQrN/cP9kKzvwsNdw/vyX8SfKZ2z8tu1b7MA7bP+BH4tMdkto/mkijlu0l2j8ZOp4G1cnZPxuZ1+YIftk/YuJT+r1C2T+okhcEKRjZP7ImJ8d+/tg/OhuHBvT12D8C7TuFvf7YP8gYSgYQGdk/TBu2TCBF2T9McYQbI4PZP4aXuTVN09k/vQpaXtM12j+sR2pY6qraPxLL7ubGMts/shHszJ3N2z9ImGbNo3vcP5XbYqsNPd0/VVjlKRAS3j9Ki/IL4PrePw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"cfC4GLt5679GOhdYEJ7qv564Tl/wuem/iYpxKbfN6L8az5GxwNnnv2WlwfJo3ua/eywT6Avc5b91g5iMBdPkv17JY9uxw+O/Th2Hz2yu4r9WnhRkkpPhv4xrHpR+c+C/AEhttRqd3r+Rzd5lNUrcv+2ltS8F79m/PA8WCUKM17+dRyTooyLVvz6NBMPistK/RB7bj7Y90L+ncZiJrofLvyg2+K/5i8a/VgYef76Jwb8EvaTG2QS5v8DrdiPT3a2/fL9E4DBSk7+IcSS3eR2VP3zshA7tw64/POXJO1x4uT9WOGfZ18PBP/2P34mIxsY/QH0FQ9DCyz/yQUiMn1vQP8YTHI8y0dI/+/XZM2lB1T9oql2Ei6vXP+PygorhDto/TZElULNq3D9+RyHfSL7eP6frqCB1hOA/SoFJwO+k4T+ZRWBTOMDiP34Z297y1eM/592nZ8Pl5D+/c7TyTe/lP/O77oQ28uY/c5dEIyHu5z8q56PSseLoPwWM+peMz+k/8GY2eFW06j/ZWEV4sJDrPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"YDchy5YI678KhdZLtjnqv66CL9vFdOm/9EQWl7656L984HSdmQjov+1pNQxQYee/7PVBAdvD5r8gmYSaMzDmvyto5/VSpuW/s3dUMTIm5b9e3LVqyq/kv9Gq9b8UQ+S/svf9Tgrg47+n17g1pIbjv1NfEJLbNuO/XaPuganw4r9muD0jB7Tivxez55PtgOK/E6jW8VVX4r8CrPRaOTfiv4bTK+2QIOK/RzNmxlUT4r/q340EgQ/ivxLujMULFeK/ZXJNJ+8j4r+IgblHJDzivyEwu0SkXeK/1ZI8PGiI4r9JvidMabzivyHHZpKg+eK/A8LjLAdA47+Ww4g5lo/jv3zgP9ZG6OO/XC3zIBJK5L/avow38bTkv56p9jfdKOW/SgIbQM+l5b+E3eNtwCvmv/JPO9+puua/OG4LsoRS57/9TD4ESvPnv+QAvvPynOi/lJ50nnhP6b+wOkwi1Arqv97pLp3+zuq/xcAGLfGb678J1L3vpHHsv044PgMTUO2/OwJyhTQ37r90RkOUAifvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"c6Q8PKOS6r9dQ7KnrL/pv1TP4bl25+i/svFRxEoK6L/OU4kYcijnv/6eDgg2Qua/nXxo5N9X5b8Ilh3/uGnkv4+UtKkKeOO/kSG0NR6D4r9j5qL0PIvhv2GMBziwkOC/xXnRooIn37+CQpokcyndv6jFdpjEJ9u/6lV0oQkj2b/2RaDi1BvXv3/oB/+4EtW/OJC4mUgI07/Qj79VFv3Qv/pzVKxp482/18ILfG3Nyb+lsb9gXbnFv7nliqBeqMG/9AgQAy03u7+hZqOTVCizv3ZeCv78TKa/+GtVi6qfib8kT9uj8bOSP7IT1EcY9Kg/26k5U+8wtD8pabBqW8+7P3J+DO+CqcE/KQ2fENJcxT9TO/XTdQDJP4tj9PJIk8w/PPDAExMK0D9YhsEV9MDRP2mhbty0bdM/u+66xMIP1T+hG5kri6bWP2fV+217Mdg/XsnV6ACw2T/RpBn5iCHbPw8VuvuAhdw/asepTVbb3T8uadtLdiLfP9XToCknLeA/F5hn4CXB4D8DWLv47UzhPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ClIxaPUX6r90x867bE7pv/2GImPViui/MwMlMDzN57+Urs70rRXnv6/7F4M3ZOa/BF35rOW45b8hRWtExRPlv4cmZhvjdOS/vnPiA0zc479On9jPDErjv78bQVEyvuK/mFsUWsk44r9g0Uq83rnhv5rv3El/QeG/1CjD1LfP4L+M7/UulWTgv1C2bSokAOC/SN9FMuNE378iHByaFJfevzUITzD29t2/lojPmKFk3b9Rgo53MODcv3PafHC8ady/CXaLJ18B3L8hOqtAMqfbv8oLzV9PW9u/EtDhKNAd278HbNo/zu7av7bEp0hjztq/LL8656i82r96QIS/uLnav6wtdXWsxdq/0Gv+rJ3g2r/03xAKpgrbvyZvnTDfQ9u/cv6UxGKM27/qcuhpSuTbv5ixiMSvS9y/jJ9meKzC3L/UIXMpWkndv3wdn3vS392/lHfbEi+G3r8pFRmTiTzfv6RtJNB9AeC/gdctb89s4L+xOqF4RuDgv7sJd77vW+G/J7enEtjf4b97tStHDGzivw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"taR3IqOY6b/4rNftp8zov/9ow1wZ+ue/XHWqK0Yh57+ebvwWfULmv1nxKNsMXuW/HpqfNER05L+DBdDfcYXjvxLQKZnkkeK/Y5YcHeuZ4b8F9Rco1J3gvxkRF+3cO9+/F9vNiRE13b8ogTOf4yfbv2o8J6bwFNm/CUaIF9b81r8h1zVsMeDUv9koDx2gv9K/WXTzor+b0L+B5YPtWurMv2q6syIOmci/sdk019NExL9Ya4v5zd2/vx6BSQoFMbe/rrJBiIULrb9kYjkq9HmXv3DkiPexEoY/NEPBaYK0pj/yUcPzzeazPwpJHJiGZbw/IlE3n/ppwj+WvJ4B0pfGP470hYEOu8o/x4YuLXXSzj97AG2JZW7RP2f4ZKBqbNM/CvKfYqxi1T87tD5XjVDXP9kFYgVwNdk/vK0q9LYQ2z/FcrmqxOHcP88bL7D7p94/2jfWRV8x4D+oGinitwjhP76ZoPC42eE/jxjNtBOk4j+E+j5yeWfjPw+jhmybI+Q/mnU05yrY5D+W1dgl2YTlPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"OF4f9Q4D6r8k7eVHyjLpv315kPnqWei/SouJTct457+MqjuHxY/mv0lfEeozn+W/hzF1uXCn5L9OqdE41qjjv51Okau+o+K/fakeVYSY4b/wQeR4gYfgv/k/mbQg4t6/UZeEeRar3L/ymV/HmGrav+JX/yRcIdi/MuE4GRXQ1b/hReEqeHfTvwCWzeA5GNG/NcOlgx1mzb9qcYypVpHIv7xW+UCIs8O/eSYtrzacvb8Jjhz28cSzv2ZIKuQoyKO/AGi2pgx+DD+iRRoTUd6jP6Z/f8rj27M/QK0Xae/GvT+ztQClvNbDP/k89KhXxsg/V0y8st+wzT/kYVfadUrRP5jBkFCJuNM/PjU1tfUh1j/KrG+BBobYPzIYay4H5No/cWdSNUM73T94ilAPBovfP6A4yJpN6eA/3oWeEKcI4j/0pMAlNSPjP9oNxJadOOQ/jDg+IIZI5T8FncR+lFLmPz6z7G5uVuc/N/NLrblT6D/o1Hf2G0rpP0zQBQc7Oeo/Xl2Lm7wg6z8Z9J1wRgDsPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"CjHkZYR+6r8p//PJB6zpv5TrU04F1Oi/GbpZmsf25799LltVmRTnv5EMribFLea/HRiotZVC5b/xFJ+pVVPkv9TG6KlPYOO/lPHaXc5p4r/6WMtsHHDhv9XAD36Ec+C/3Nn7caLo3r8nQteJmuXcvxlCXZKG3tq/UWE52vvT2L9fJxewj8bWv98bomLXttS/ZcaFQGil0r+Krm2Y15LQv8q3CnJ1/8y/HKzw4U3ZyL85SeQdY7TEv0SePMPfkcC/5nSh3tzluL/qWe9+c7Gwv+YTIkSxEaG/ANMorWCYW7+I7t6Rcm6eP/joizGZJa8/3uiHH9l0tz+Geg/+bD+/P39F13wZeMM//n3b62pCxz+JV70ugP3KP/TCJaguqM4/jNhe3aUg0T9hCZdk1uPSP2LsD5sTndQ/9/kdMshL1j+MqhXbXu/XP4l2S0dCh9k/VdYTKN0S2z9aQsMumpHcPwAzrgzkAt4/tCApcyVm3z/tQcSJZF3gP3BqkM8cAOE/FUaj4/Ca4T8SEaceli3iPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"IHDnJUP16r/sAGIJ2yTqv4LQiqEzWum/RUQzPVyV6L+VwSwrZNbnv9WtSLpaHee/a25YOU9q5r++aC33UL3lvycCmUJvFuW/EqBsarl15L/dp3m9Ptvjv+5+kYoOR+O/qYqFIDi54r9xMCfOyjHiv6fVR+LVsOG/sd+4q2g24b/vs0t5ksLgv8a30ZliVeC/MqE4uNDd37+ax/kdZh7fv4StiQKkbN6/vB2LA6nI3b8K46C+kzLdvy7IbdGCqty/8peU2ZQw3L8dHbh06MTbv3Qie0CcZ9u/wHKA2s4Y27/F2Grgntjav0kf3e8qp9q/FBF6ppGE2r/ueOSh8XDav5ohv39pbNq/4tWs3Rd32r+KYFBZG5Hav1qMTJCSutq/FyREIJzz2r+J8tmmVjzbv3fCsMHglNu/pV5rDln927/ckawq3nXcv+AmF7SO/ty/euhNSImX3b9wofOE7EDev4ccqwfX+t6/iCQXbmfF378cQu0qXlDgvy4DTC56xuC/3zr5DxdF4b+RTsYeRMzhvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"W4rcFDZn678Uu3iFtpDqvzTG7oDVuum/pHtTeb7l6L9Iq7vgnBHovwslPCmcPue/0rjpxOds5r+KNtklq5zlvxRuH74RzuS/Wi/R/0YB5L9ESgNddjbjv7yOykfLbeK/pMw7MnGn4b/s02uOk+Pgv3V0b85dIuC/Vvy2yPbH3r/igYmEL1Hdv2EZgLS84Nu/pWLEPPV22r98/X8BMBTZv7WJ3ObDuNe/IacD0Qdl1r+R9R6kUhnVv80UWET71dO/qqTYlVib0r/3RMp8wWnRv4OVVt2MQdC/O2xONyNGzr8qjcs3TR3Mv3HNd4RFCcq/tWym5bkKyL+NqqojWCLGv5rG1wbOUMS/fQCBV8mWwr/Tl/nd9/TAv4CYKcUO2L6/tbpLW0v5u7+KFQAPAU+5vz0o7XCL2ra/DnK5EUadtL81cguCjJiyv/KniVK6zbC/BiW1J1Z8rr9KYkmtdNarvzAGHVeHrKm/Kw99RkUBqL+7e7acZdemv1tKFnufMaa/hHnpAqoSpr+zB31VPH2mvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"SDuBgYouvb9902eisV+8vxCTztkPvLu/CZb8dPBCu79m+DjBnvO6vyvWygtmzbq/W0v5oZHPur/8cwvRbPm6vwtsSOZCSru/jk/3Ll/Bu7+IOl/4DF68v/xIx4+XH72/7pZ2QkoFvr9iQLRdcA6/v6uwY5cqHcC/6Ip7ASLEwL/qPMUTxHvBv7JU5HS2Q8K/P2B8y54bw7+X7TC+IgPEv7iKpfPn+cS/pcV9EpT/xb9gLF3BzBPHv+hM56Y3Nsi/QrW/aXpmyb9t84mwOqTKv2iV6SEe78u/OymCZMpGzb/kPPce5arOvzIv9vuJDdC/3Y0CS37L0L93gfJPIo/Rv/7QF95IWNK/dUPEyMQm07/an0njaPrTvzCt+QAI09S/djIm9XSw1b+u9iCTgpLWv9jAO64Dede/9FfIGctj2L8Ggxipq1LZvwwJfi94Rdq/CLFKgAM827/4QdBuIDbcv9+CYM6hM92/vzpNclo03r+XMOgtHTjfv7OVQWpeH+C/GPm3HAak4L/7JQAY7ynhvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"I2j3Cl2bwz9kOUgeCRTDPznTtqTxsMI//j2tznZxwj8KgpXM+FTCP7mn2c7XWsI/Y7fjBXSCwj9ouR2iLcvCPxq28dNkNMM/2LXJy3m9wz/6wA+6zGXEP9zfLc+9LMU/2RqOO60Rxj9Iepov+xPHP4YGvdsHM8g/68dfcDNuyT/Txuwd3sTKP5cLzhRoNsw/j55thTHCzT8aiDWgmmfPP0fox8oBk9A/JEDzSmZ+0T/Qz9HoqnXSP3ibmLx/eNM/TKd83pSG1D9097Jmmp/VPyCQcG1Aw9Y/fnXqCjfx1z+6q1VXLinZPwA352rWato/fBvUXd+12z9gXVFI+QndP9YAlELUZt4/CwrRZCDM3z+Wvp7jxpzgPzIvB0FmV+E/8li8VsYV4j/tvdgwv9fiPzjgdtsoneM/6EGxYttl5D8XZaLSrjHlP9nLZDd7AOY/RvgSnRjS5j90bMcPX6bnP3iqnJsmfeg/bDStTEdW6T9jjBMvmTHqP3c06k70Dus/u65LuDDu6z9IfVJ3Js/sPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jMss2pgSxz8oMlyTI3LGPzd3Vrnv+cU/LzQ89k2pxT97Ai70jn/FP457TF0DfMU/3Di42/udxT/X05EZyeTFP+zl+cC7T8Y/jQgRfCTexj8u1ff0U4/HPz7lztWaYsg/M9K2yElXyT95NdB3sWzKP4SoO40ioss/w8QZs+32zD+rI4uTY2rOP6pesNjU+88/mQdVFknV0D9bZ8wc9rrRP1KbztSZrtI/OvBrk9yv0z/IsrStZr7UP7YvuXjg2dU/v7OJSfIB1z+XizZ1RDbYP/oD0FB/dtk/oGlmMUvC2j9CCQpsUBncP5gvy1U3e90/Wim6Q6jn3j+ioXPFJS/gPwVlMcBk7+A/NIWePGW04T+LKENl+33iP2V1p2T7S+M/IJJTZTke5D8Ypc+RifTkP6rUoxTAzuU/MEdYGLGs5j8JI3XHMI7nP4+OgkwTc+g/IbAI0ixb6T8Yro+CUUbqP9Kun4hVNOs/r9jADg0l7D8FUns/TBjtPzRBV0XnDe4/mMzcSrIF7z+MGpR6gf/vPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WEn5amCFyj99Afip28LJP8QQwNG6Gsk/CrstYZ6MyD8jRB3XJhjIP+zvarL0vMc/QALzcah6xz/5vpGU4lDHP+tpI5lDP8c/9kaE/mtFxz/xmZBD/GLHP7imJOeUl8c/IrEcaNbixz8N/VRFYUTIP0/Oqf3Vu8g/xGj3D9VIyT9EEBr7/urJP6oI7j30oco/zpVPV1Vtyz+P+xrGwkzMP8B9LAndP80/P2Bgn0RGzj/m5pIHml/PP8cqUOC+RdA/CXiyJMjk0D8kfV4QuYzRPwZcwuJhPdI/nDZM25L20j/VLmo5HLjTP5pmijzOgdQ/2v8aJHlT1T+CHIov7SzWP37eRZ76Ddc/vme8r3H21z8r2lujIubYP7JXkrjd3Nk/RALOLnPa2j/J+3xFs97bPzJmDTxu6dw/aWPtUXT63T9cFYvGlRHfP/xOqmxRF+A/lg/c5LWo4D9w3ZFr4DzhP4LJgiC50+E/w+RlIyht4j8pQPKTFQnjP6ns3pFpp+M/PPviPAxI5D/XfLW05erkPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"DpyjUgnzzT+pyeMD3v3MP3XLliMw9Ms/vRFlLKDWyj/EDPeYzqXJP9Is9eNbYsg/MeIHiOgMxz8pndf/FKbFP/rNDMaBLsQ/9ORPVc+mwj9bUkkong/BP+sMQ3Md074/G+MBCINquz/WByAErua3P6Nb7lzfSLQ/Hb+9B1iSsD+CJb7zsYipP1huRlFGwKE/qzNsJd6bkz8gke4q4kJrP0SLtVDqKYq/ahF6ThLXnb92R96re2ynvwKvtxtoBbC/oEWnbwJitL8AB23cy8q4v5ESuGyDPr2/6MObFfTdwL8UQ02R3CDDv4QWyK5aZ8W/7s1j882wx78S+XfklfzJv6InXAcSSsy/XOln4aGYzr/5Zvl70nPQv5AyKmg9m9G/UB/yd0HC0r8U9fxtjujTv7p79gzUDdW/GnuKF8Ix1r8Wu2RQCFTXv4cDMXpWdNi/ShybV1yS2b86zU6rya3avzTe9zdOxtu/FhdCwJnb3L+6P9kGXO3dv/4fac5E+96/37/O7IEC4L9qE5F1JIXgvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ah5LEX095z+fwpGtT4LmP6Ct+x9GveU/1g5OpLzu5D8TFk52DxfkPyzzwNGaNuM/89Vr8rpN4j9A7hMUzFzhP99rfnIqZOA/Tv3gkmTI3j/VrF6pf7rcP/tFAKBen9o/YyhQ7rl32D+5s9gLSkTWP6BHJHDHBdQ/wEO9kuq80T90D1zW19TOP3PmAeIHHso/ycuAN9ZWxT++fu3Fs4DAP019ufgiOrc/JiuNJ4G1qj+oJ17ZETGLPyzYtctYg5q/w5xb2Ea3sL+cMPXWTdq6v3hZSKiEg8K/n1KCs0udx79vxBMeC7nMv8/3c/yo6tC/agp1qld4079suoIh2QTWvyeoEup0j9i/+XOajHIX2783vo+RGZzdv54TtMBYDuC/sqdM8kBM4b+Ea8whaYfiv0AvbhN1v+O/EsNsiwj05L8q9wJOxyTmv7Obax9VUee/2IDhw1V56L/Idp//bJzpv61N4JY+uuq/uNXeTW7S678U39Xon+Tsv+05ACx38O2/cLaY25f17r/LJNq7pfPvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"9t7+Nd/V5z8hp0dlJR3nP6eapbKZaOY/rslTfE645T9VRI0gVgzlP8Aajf3CZOQ/FV2OcafB4z93G8zaFSPjPwZmgZcgieI/50zpBdrz4T894D6EVGPhPywwvXCi1+A/2EyfKdZQ4D/IjEAaBJ7fP+JZ9vJwpN4/SiHWmRe13T8+A1bLHNDcPw0g7EOl9ds/+ZcOwNUl2z9MizP80mDaP0ka0bTBptk/OmVdpsb32D9kjE6NBlTYPwqwGiamu9c/ePA3Lcou1z/wbRxfl63WP7xIPngyONY/IaETNcDO1T9llxJSZXHVP85LsYtGINU/pd5lnojb1D8tcKZGUKPUP68g6UDCd9Q/cRCkSQNZ1D+4X00dOEfUP80uW3iFQtQ/9Z1DFxBL1D92zXy2/GDUP5jdfBJwhNQ/oO6554611D/WIKryffTUP36Uw+9hQdU/4ml8m1+c1T9EwUqymwXWP+66pPA6fdY/JncAE2ID1z8zFtTVNZjXP1m4lfXaO9g/4H27Lnbu2D8Ph7s9LLDZPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"F+Xbaadp6D8qig0b2KfnP3rBU9E44eY/RVrg3AwW5j/KI+WNl0blP0rtkzQcc+Q/BIYeId6b4z81vbajIMHiPyBijgwn4+E/AETXqzQC4T8WMsPRjB7gP0j3B53lcN4/y9+W5FOg3D87vJYa68vaPxMra98x9Ng/0cp3064Z1z/yOSCX6DzVP/cWyMplXtM/XgDTDq1+0T9OKUkHijzPP5zkQJNoe8s/qm9UAgO7xz9zB0uVZvzDP/Do64ygQMA/QqL8U3wRuT8L+pJamauxP2qmUl5lo6Q/qD1xmhYviD/0OcDd7taQv76qBd8cvqa/7rJb0/pzsr9KLWxhZnK5vzLlEkwbLMC/JAj9eqiRw798Qq18zejGvzlXXBB9MMq/ZglD9alnzb8CDk11o0bQvwkpzVcj0NG/STe+Ac5P079FmrzSHMXUv3+zZCqJL9a/eORSaIyO17+ujiPsn+HYv6YTcxU9KNq/4tTdQ91h27/gMwDX+Y3cvySSdi4MrN2/LlHdqY273r+A0tCo97vfvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"gBmJJbn46D9Jxs+iRzjoP95hBXVcfuc/dmZuaf/K5j9JTk9NOB7mP5CT7O0OeOU/gbCKGIvY5D9ZH26atD/kP0ta20CTreM/kNsW2S4i4z9kHWUwj53iP/uZChS8H+I/j8tLUb2o4T9ZLG21mjjhP5A2sw1cz+A/bWRiJwlt4D8mML/PqRHgP+snHKiLet8/JRQnA8rf3j9rGShLHlPePy4sqBqY1N0/30AwDEdk3T/wS0m6OgLdP8pBfL+Crtw/5RZSti5p3D+tv1M5TjLcP5QwCuPwCdw/DF7+TSbw2z+DPLkU/uTbP2nAw9GH6Ns/MN6mH9P62z9IiuuY7xvcPyC5GtjsS9w/LF+9d9qK3D/YcFwSyNjcP5bigELFNd0/2KizouGh3T8NuH3NLB3eP6QEaF22p94/EIP77I1B3z/AJ8EWw+rfP5LzoLqyUeA/11qDUcK14D/nQ0wdmCHhP/goQOs7leE/RoSjiLUQ4j8G0LrCDJTiP3KGymZJH+M/wSEXQnOy4z8tHOUhkk3kPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6PxtP2p7b9cf44w+MPsvwx0y+7n4uu/bp1IGeUG67+KF6bZBzDqv2r+g1loXum/Gm6Cwh6S6L+igkE+Q8vnvwlYYfbtCee/WgqCFDdO5r+dtUPCNpjlv951RikF6OS/JWcqc7o95L98pY/Jbpnjv+tMFlY6++K/fXleQjVj4r84Rwi4d9HhvyjSs+AZRuG/VjYB5jPB4L/Lj5Dx3ULgvyD1A1pglt+/YCXrg4W03r9n6Ba0W+Ddv0Z2xz0TGt2/Dwc9dNxh3L/W0req57fbv7AReDRlHNu/rfu9ZIWP2r/fyMmOeBHav1qx2wVvotm/Mu0zHZlC2b92tBIoJ/LYvzo/uHlJsdi/k8VkZTCA2L+Qf1g+DF/Yv0il01cNTti/ym4WBWRN2L8qFGGZQF3Yv3rN82fTfdi/zdIOxEyv2L83XPIA3fHYv8ih3nG0Rdm/ldsTagOr2b+uQdI8+iHavygMWj3Jqtq/F3PrvqBF27+JrsYUsfLbv5X2K5Iqsty/S4Nbij2E3b+/jJVQGmnevw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"RPd/QFea7j/xBGyvdqrtP3xX1/eeuuw/CGqZHwTL6z+3t4ks2tvqP6q7fyRV7ek/CPFSDan/6D/20trsCRPoP5Hc7sirJ+c//4hmp8I95j9kUxmOglXlP+O23oIfb+Q/oC6Oi82K4z+/Nf+twKjiP2BHCfAsyeE/qd6DV0bs4D+7dkbqQBLgP3QVUVyhdt4/lSsDUlPP3D8dJlLB/y7bP1P77LUOltk/f6GCO+gE2D/pDsJd9HvWP9I5Wiib+9Q/gxj6pkSE0z9DoVDlWBbSP1nKDO8/stA/FhS7n8Owzj8/reMmTRLMP7hM8Yrsick/Et9B43EYxz/UUDNHrb7EP4+OI85ufcI/z4Rwj4ZVwD9HQPBEiY+8PzSaMD3yqbg/c/BdNuj7tD8lHDRfC4exP8ns3cz3maw/nrCU9bOepj/uNQSWix+hP+FdSBd+P5g/eTexzzqKjj9OJ6Ji11l9PyAm4ykJgj4/jN7r5Ksmdb/WPB+MRdyDv64Gzg292Yq/AYSjAbt+j7//deD4Ht+Qvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jBqUeoH/779fkF3u4wDvvxB8vIjP+u2/3Pg7r6Lt7L/9IWfHu9nrv68SyTZ5v+q/MubsYjmf6b/Ft12xWnnov52ipoc7Tue//cFSSzoe5r8eMe1htenkvz4LATELseO/nWsZHpp04r91bcGOwDThvwNYCNG549+/BYXZIZtY3b9fmAzb4cjav5LIt8dKNdi/GUzxspKe1b9pWc9ndgXTv/4maLGyatC/pNajtQiey7/AuUVeUGbGvzhk4vK1L8G/AYZME2b3t79cDPfiBC+rv7AWVWWhFYq/wCg1O0YQnD/0ZpOU2zmxP5DZTri2W7s/CWTT5lezwj9aLCHU6avHP7lY5I0Xlsw/Hj74vjO40D/0lAwHsBzTP2X6GNTDd9U//TcHW7LI1z8/F8HQvg7aP7FhMGosSdw/2OA+XD533j8fL+vtG0zgP7VR8A6uVeE/8LyjK/dX4j+UVXremFLjP2AA6cE0ReQ/H6JkcGwv5T+QH2KE4RDmP3ZdVpg16eY/lUC2Rgq45z+wrfYpAX3oPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fD4FrDAJ4z9IZhoepHPiP+6kdDJy3eE/pVt61L5G4T+h65Hvra/gPxu2IW9jGOA/kDggfQYC3z/E/oaSYtPdPzaBRPUipdw/W4IlfI932z+dxPb970raP2gKhVGMH9k/LhadTaz11z9dqgvJl83WP16JnZqWp9U/oXUfmfCD1D+RMV6b7WLTP59/JnjVRNI/NCJFBvAp0T/C24YchRLQP2jdcCO5/c0/8TpNeXzeyz/9VDzo48fJP16w1x1/usc/9tG4x922xT+dPnmTj73DPzF7si4kz8E/Ehn8jVbYvz8F7+oTaSq8P/CBZEqflbg/jNubjBgbtT+EBcQ19LuxPzATIEKj8qw/9+JlU6Copj/Hjb9VHpygPyxOJv+3npU/9AgbHWAShT8A4NT4y+3uvnjQZtjnB4S/ij3DHJVyk7/Ac2LeQ0ucv/9xImLBRKK/tjPPMGoUpr+Ya9GkXZKpvzQGwwddvKy/LPA9oymQr78FC25gwgWxvzOyG9UXFrK/6eN01PX3sr9ylkYDPaqzvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"63ixWvXH4z+5wDbppirjP+kBD5zriOI/UuIGzPzi4T/FB+vREznhPxkYiAZqi+A/RHJVhXG03z9vIT++ckveP1eJZmlK3Nw/qPVkOGtn2z8MstPcR+3ZPy4KTAhTbtg/t0lnbP/q1j9UvL66v2PVP6yt66QG2dM/aWmH3EZL0j8yOysT87rQP23d4PT7UM4/PJ/gh7Qoyz8lU4hC9f3HP32QCoij0cQ/lu6Zu6SkwT+UCdKAvO+8P8jUVPNqmLY/eG0hlR9FsD+cBDpZSu+jP7APZgE0jo0/sCdRTo1VhL+KB8UV8Xehv55XbrmGwK2/Zu7iWMf1tL/1nAC5ufq6v2KEVdundsC/moG+Rd9lw7/Kroi4HUrGv550gdB9Ism/xzt2Khruy7/ubDRjDazOv2G4xAu5rdC/9FchcrH90b+KyRYzfUXTv3fBC52phNS/EvRm/sO61b+wFY+lWefWv6Ta6uD3Cdi/TPfg/isi2b/4H9hNgy/avwAJNxyLMdu/uWZkuNAn3L967cZw4RHdvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pFg0yGGC5D/NnS6XN+PjP/cv88U4R+M/N1IZaneu4j+ZRziZBRniPy5T52j1huE/DLi97lj44D9CuVJAQm3gP78ze+aGy98/7TkrOt3D3j8yC+Smq8PdP68t1FcWy9w/iScqeEHa2z/ifhQzUfHaP9i5wbNpENo/kl5gJa832T8w8x6zRWfYP9T9K4hRn9c/oQS2z/bf1j+8jeu0WSnWP0Uf+2Kee9U/XT8TBenW1D8rdGLGXTvUP8xDF9IgqdM/ZjRgU1Yg0z8ZzGt1IqHSPwqRaGOpK9I/WQmFSA/A0T8ru+9PeF7RP58s16QIB9E/2uNpcuS50D/+ZtbjL3fQPyw8SyQPP9A/ien2XqYR0D9o6g9+M97PP6bKWd8ar88/CoAoOEuWzz/eFtneDJTPP2ObyCmoqM8/4RlUb2XUzz9OT+yCxgvQP+ua2aEzOdA/7HWgP55y0D9xZm+HKrjQP57ydKT8CdE/lqDfwTho0T969t0KA9PRP256nqp/StI/k7JPzNLO0j8LJSCbIGDTPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Cjv+jqD+779lf00pIQbvv9NiwrguEu6/1aAajeci7b/e9BP2aTjsv24abEPUUuu//szgxERy6r8QyC/K2ZbpvxbHFqOxwOi/jYVTn+rv57/zvqMOoyTnv8IuxUD5Xua/dpB1hQuf5b+Mn3Is+OTkv3wXeoXdMOS/wbNJ4NmC47/YL5+MC9vivzpHONqQOeK/ZLXSGIie4b/RNSyYDwrhv/uDAqhFfOC/vrYmMJHq37/y7jhwberev4Ant69c+N2/ZtccjpsU3b+WdeWqZj/cvwl5jKX6eNu/tliNHZTB2r+Ri2Oybxnav4+IigPKgNm/q8Z9sN/32L/ZvLhY7X7Yvw7itpsvFti/Qq3zGOO9179slepvRHbXv4IRF0CQP9e/eJj0KAMa179Iof7J2QXXv+SisMJQA9e/SBSGsqQS179mbPo4EjTXvzUiifXVZ9e/rqythyyu17/EguOOUgfYv24bpqqEc9i/pe1wev/y2L9dcL+d/4XZv40aDbTBLNq/K2PVXILn2r8vwZM3frbbvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0MsydMvn7z/sfuYytu/uP+epYDee++0/Koa9qKQL7T8UTRmu6h/sPw04kG6ROOs/eYA+EbpV6j/AX0C9hXfpP0APspkVnug/ZsivzYrJ5z+PxFWABvrmPyQ9wNipL+Y/jGsL/pVq5T8qiVMX7KrkP2HPtEvN8OM/mXdLwlo84z8zuzOitY3iP5fTiRL/5OE/KPppOlhC4T9OaPBA4qXgP2lXOU2+D+A/xQHCDBsA3z8+PAcn4u3dP//QejcU6dw/2DJVjPPx2z+R1M5zwgjbP/YoIDzDLdo/zaKBMzhh2T/jtCuoY6PYPwDSVuiH9Nc/7mw7QudU1z92+BEExMTWP2PnEnxgRNY/gKx2+P7T1T+UunXH4XPVP2yESDdLJNU/znwnln3l1D+GFksyu7fUP1zE61lGm9Q/HflBW2GQ1D+RJ4aETpfUP4HC8CNQsNQ/uDy6h6jb1D/+CBv+mRnVPx6aS9VmatU/42KEW1HO1T8W1v3em0XWP39m8K2I0NY/6oaUFlpv1z8gqiJnUiLYPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"g6xao7j27z9bmtIEUvzuPw15zgI9Au4/qP9nca4I7T835bgk2w/sP8jg2vD3F+s/bqnnqTkh6j859vgj1SvpPy9+KDP/N+g/Z/iPq+xF5z/qG0lh0lXmP8ufbSjlZ+U/GDsX1Vl85D/gpF87ZZPjPzCUYC88reI/F8AzhRPK4T+j3/IQIOrgP+Wpt6aWDeA/0qs3NVhp3j+ANXKBKr/cP/BeUtoNHds/PpYL6GuD2T+MSdFSrvLXP/Hm1sI+a9Y/jNxP4Ibt1D99mG9T8HnTP+KIacTkENI/1Btx282y0D/ofnOBKsDOP7nD7ThJMsw/YOK3Lcu8yT8Ltziwg2DHP/0d1xBGHsU/bfP5n+X2wj+ZEwiuNevAP3m10BYT+L0/GkoDEWlUuj+RnXXrE+22P1No9Ua6w7M/22JQxALasD8si6gIKGOsP/iRnU8pmKc/B0sbn1ZWoz+NTnpx+kGfP0ovPbzU9pg/Bhq2odbRkz9D4TdKNbOPP+wpS5N2KYo/sNETJaYThz88nP8F+X6GPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Cjv+jqD+7z8AbMYj1gHvPy3h2r4gAe4/9odI2sv87D+0TRzwIvXrP8kfY3px6uo/lusp8wLd6T9+nn3UIs3oP9sla5gcu+c/DW//uDun5j91Z0ewy5HlP3X8T/gXe+Q/axsmC2xj4z+4sdZiE0viP7usbnlZMuE/0/n6yIkZ4D+/DBGX3wHeP4F/SPat0ds/ria2oxWj2T8D3XOTrXbXP0F9m7kMTdU/J+JGCsom0z965o95fATRP97JIPd1zc0/lnDECDmcyT+ddj4QcHbFP3ORwvVIXcE/I+0IQ+Ojuj/0tm/3L6uyP6bWQbKnpaU/gKofxFXpiD/IAP9nvs2Rv0iUBZw+uae/jr0dkwgcs79pL+mYTy+6v1zafkcMisC/QvF50gPkw7/pJjKFYCTHv87Fc3f0Scq/cBgLwZFTzb+rNOI8BSDQv34BtlwYh9G/9BfnS2ve0r9KnVsWZyXUv8G2+cd0W9W/nYmnbP1/1r8cO0sQapLXv37wyr4jkti/BM8MhJN+2b/u+/ZrIlfavw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"dwtOJNxQ7j/B9NZuVWHtPxXe6pQYbuw/oBemGW136z+M8SSAmn3qPwm8g0vogOk/RMfe/p2B6D9sY1IdA4DnP6ng+ilffOY/L4/0p/l25T8nv1saGnDkP8HATAQIaOM/KOTj6Apf4j+OeT1LalXhPxnRda5tS+A//XVSK7mC3j/MDugH/W7cP/wM5fg1XNo/6hCCBPNK2D/xuvcwwzvWP2mrfoQ1L9Q/sYJPBdkl0j8k4aK5PCDQPy3OYk/fPcw/0GlnqwFFyD/l1cST/lbEPyVT7BT0dMA/e0SedgBAuT/RB70mgrKxP2zjLqZSh6Q/CB2ApJCthz9sBNvvndSQv/61NItOdaa/rEh4L5EYsr+sCK4gqcy4v5EZWQCzVL+/AX3LWjnXwr9ElMIT1uvFv92RoJ4R58i/FDX07s3Hy783PUz47IzOv8i0G1eomtC/tTwigu3f0b8FFgH3thXTv16gf691O9S/aTtlpZpQ1b/IRnnSllTWvyIigzDbRte/GC1Kudgm2L9Vx5VmAPTYvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0icWbbgA7j+IdryMRhrtP5PE+UoxPew/FOXN6Hlp6z8hqzinIZ/qP9zpOccp3uk/ZHTRiZMm6T/WHf8vYHjoP025wvqQ0+c/6RkcKyc45z/FEgsCJKbmPwN3j8CIHeY/vhmpp1ae5T8Vzlf4jijlPyVnm/MyvOQ/C7hz2kNZ5D/lk+Dtwv/jP9HN4W6xr+M/7Dh3nhBp4z9TqKC94SvjPybvXQ0m+OI/guCuzt7N4j+FT5NCDa3iP0sPC6qyleI/8/IVRtCH4j+ZzbNXZ4PiP1xy5B95iOI/W7Sn3waX4j+xZv3XEa/iP31c5Umb0OI/3GhfdqT74j/uXmueLjDjP80RCQM7buM/mlQ45cq14z9w+viF3wbkP2/WSiZ6YeQ/s7stB5zF5D9afaFpRjPlP4PupY56quU/SeI6tzkr5j/MK2AkhbXmPyqeFRdeSec/fwxb0MXm5z/oSTCRvY3oP4QplZpGPuk/cn6JLWL46T/PGw2LEbzqP7fUH/RVies/SHzBqTBg7D+h5fHsokDtPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8DAjfcK3579VEfkvyf/mv73LqSCoS+a/A+oSRHOb5b/29RGPPu/kv2x5hPYdR+S/PP5HbyWj478/DjruaAPjv0IzOGj8Z+K/H/cf0vPQ4b+r484gYz7hv7uCIklesOC/JV74P/km4L9//1v0j0Tfv7viQdm8RN6/rHldGKFO3b/112mbZGLcv0kRIkwvgNu/TzlBFCmo2r+zY4LdedrZvx+koJFJF9m/Pw5XGsBe2L+9tWBhBbHXv0KueFBBDte/eQta0Zt21r8N4b/NPOrVv6pCZS9MadW/+kMF4PHz1L+o+FrJVYrUv1t0IdWfLNS/wsoT7ffa07+GD+36hZXTv1BWaOhxXNO/z7JAn+Mv07+pODEJAxDTv4z79A/4/NK/IA9Hner20r8Sh+KaAv7Svwt3gvJnEtO/tvLhjUI007++DbxWumPTv8zbyzb3oNO/jnDMFyHs07+r33jjX0XUv9A8jIPbrNS/p5vB4bsi1b/aD9TnKKfVvxStfn9KOta/AId8kkjc1r9JsYgKS43Xvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wYSjNjhW6L9xV0erHpbnv4HyTSlo0+a/UgsAJUwO5r88V6YSAkflv6GLiWbBfeS/3l3ylMGy479UgykSOubiv1yxd1JiGOK/Vp0lynFJ4b+g/Hvtn3ngvy8Jh2FIUt+/O9WJEGyw3b8ayJHQGQ7cv4xMMIrAa9q/Ss32Jc/J2L8NtXaMtCjXv5duQabfiNW/oGToW7/q07/mAf2Vwk7SvyWxED1YtdC/MLppc949zr/+4PXo7BfLvyKs6Ku5+ce/FPFkjSLkxL9RhY1eBdjBv6V8CuF/rL2/FePdKGC/t7/m6No2Z+qxvxlyjlqhXqi/6PmhuWA/mr9AQUbIldtwv7qsfZhAVZE/vYh6bhEvoz8R+R5paW6tP7to0HuYsrM/EV66aviHuD+UsQffmDW9PypcORvf3MA/rONaZ1YJwz/hmcWCVB/FP0ypVpz7Hcc/dTzr4m0EyT/kfWCFzdHKPx+Yk7I8hcw/s7Vhmd0dzj8lAaho0prPP3/SoaeefdA/4eUIPiAf0T8A0PcOf7HRPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aV4W83u66j/p9KFr1+rpP4I/NYLoHuk/QuspB8lW6D80pdnKkpLnP2canp1f0uY/6/fQT0kW5j/N6suxaV7lPxmg6JPaquQ/38SAxrX74z8rBu4ZFVHjPw0Ril4Sq+I/lJKuZMcJ4j/NN7X8TW3hP8St9/a/1eA/iqHPIzdD4D9UgC2nmmvfP2htTa04W94/aWSy+ntV3T92vw8wmFrcP6nYGO7Aats/IQqB1SmG2j/4rfuGBq3ZP0gePKOK39g/MLX1yukd2D/JzNueV2jXPzK/ob8Hv9Y/hub6zS0i1j/gnJpq/ZHVP1w8NDaqDtU/GB970WeY1D8unyLdaS/UP7oW3vnj09M/2t9gyAmG0z+mVF7pDkbTP0DPif0mFNM/vqmWpYXw0j8/PjiCXtvSP97mITTl1NI/uP0GXE3d0j/p3JqayvTSP4zekJCQG9M/vVyc3tJR0z+YsXAlxZfTPzk3wQWb7dM/vkdBIIhT1D9APaQVwMnUP91xnYZ2UNU/sD/gE9/n1T/VACBeLZDWPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0ScWbbgA7r/uPhhmoRTtv+ZQQ0jEJuy/89BeuF03679FMjJbqkbqvxTohNXmVOm/lGUezE9i6L//HcbjIW/nv4WEQ8GZe+a/XQxeCfSH5b++KN1gbZTkv9xMiGxCoeO/7usm0a+u4r8reYAz8rzhv8RnXDhGzOC/51UECdG537/Sa3J5K97dv733kQsVBty/EODxCAcy2r84CyG7emLYv55frmvpl9a/rsMoZMzS1L/XHR/unBPTv3xUIFPUWtG/GZx2uddRz7/n4f2oufzLvztH9AdBt8i/4ph3aWCCxb+4o6VgCl/CvyZpOAFjnL6/mDDyuJChuL9gN7QOg8+yv3EudFE+UKq/Hqf9tCi1nr8ARv4TSgeDv3yRSYrz2IU/orV/H5+Tnj9unhE2G7WoP/A9iMQq2rA/4p8iHtohtT9qW5yBti+5P9jWucjaAb0/QLyf5jBLwD9Z03g0s/XBP+JjyrqBf8M/B6F25qnnxD/wvV8kOS3GP8jtZ+E8T8c/uGNxisJMyD/qUl6M1yTJPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"dQtOJNxQ7r8w7ejEHmPtv+BylGUxdey/Snn/vUiH678w3diFmZnqv1R7z3RYrOm/ejCSQrq/6L9q2c+m89Pnv99SN1k56ea/n3l3EcD/5b9sKj+HvBflvw1CPXJjMeS/RZ0giulM47/VGJiGg2riv3+RUh9miuG/B+T+C8as4L9g2pcIsKPfv30T0X+h892/5ywH7clJ3L8o4Je/kqbav8Tm4GZlCtm/Q/o/Uqt1178t1BLxzejVvwIut7I2ZNS/TcGKBk/o0r+SR+tbgHXRv1l6NiI0DNC/TyaUkadZzb8Glwd+ka/Kv+W5guj4Gsi/+wHBr7Ccxb9M4n2yizXDv+zNdM9c5sC/zW/Cyu1fvb+LJv2lWSa5vzamEO6iIbW/19RzYG9Tsb8dMTt1yXqrv+6uCXRRwqS/qt6BcIQBnb/yfJ15znKRv3xEB+VffHu/MGOs1UCYZT90BtqY9XmGP/D6CCYpuJI/O9utMfwdmT+qC4D53GeeP+350UOaR6E/sv0e87XGoj/2RLkP9q2jPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"4Itr958z6j+7vF1Ij2TpP5T0zoEykug/UlV77Me85z/gAB/RjeTmPyUZdnjCCeY/CcA8K6Qs5T97Fy8ycU3kP1tBCdZnbOM/m1+HX8aJ4j8dlGUXy6XhP84AYEa0wOA/L49laoC13z/IFDRZWujdPzDWo+pyGtw/QBctsEZM2j/DG0g7Un7YP5MnbR0SsdY/fn4U6ALl1D9YZLYsoRrTP/Mcy3xpUtE/Q9iV07AZzz9sK1wK1ZTLPwC72cA4F8g/pw7/GdWhxD8Grrw4ozXBP4tBBoA4p7s/At2FpXL5tD+Ie7JPzsesP2DMhTMhop8/8MT4p4WUeD98na2lmd+Svz6x/HEjsqW/KjhYTkfYsL+z9pfjlLO2v+6E3DIIaby/0Gkie1f7wL+86fdzS63Dv5Y6/uBmSca/utREn7DOyL+EMNuLLzzLv1LG0IPqkM2/fA41ZOjLz7+uwAsFGPbQv6jLQylk+NG/XGRKDVzs0r/1Rqcfg9HTv6Ev4s5cp9S/jtqCiWxt1b/rAxG+NSPWvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"g6xao7j2778DBz6kPfnuvxf07BkB9u2/dFeqPljt7L/BFLlMmN/rv7APXH4Wzeq/9yvWDSi26b9CTWo1Ipvov0BXWy9afOe/oy3sNSVa5r8YtF+D2DTlv1XO+FHJDOS/BWD620zi4r/dTKdbuLXhv4l4Qgthh+C/do0dSjiv3r9CNp7GfU3cv9qyjAA96tm/nMpubCCG17/rRMp+0iHVvyfpJKz9vdK/rn4EaUxb0L/Lmd1T0vTLv0w208b8N8e/pGH1E22Bwr81VZ9I8KS7v98/28HlWLK/dEFry8hCor8AoFRZZGDxvtqJuxS3CqI/XlAdekbvsT+i7+H2ALq6P5NCSpdwscE/ufmOp57zxT99jjPDNSLKPx1yLAHhO84/8Qo3vKUf0T+EdfYfkBXTP2axTjcF/9Q/NPe5jVrb1j+Uf7Ku5anYPyKDsiX8ado/gDo0fvMa3D9L3rFDIbzdPyGnpQHbTN8/1ObEITtm4D8+RWxKJB3hPx4LhsDTyuE/xVTPSfRu4j+DPgWsMAnjPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6SE4tgKn6T/NtLEkD9noPwrhM5CDAeg/T9uA5r4g5z9D2FoVIDfmP5kMhAoGReU/+6y+s89K5D8a7sz+20jjP58EcdmJP+I/NyVtMTgv4T+RhIP0RRjgP7Gu7CAk9t0/fKQP5vav2z/YU/QTwl7ZPx8mH4ZDA9c/r4QUGDme1D/b2FilYDDSPwUY4RLwdM8/AA/AP3p6yj9YaVeI23LFP8T5r6OPX8A/7SWlkSSEtj+mHiC7fG+oP+BQJZNBzn0/6MbEmuUSob+4dBzoTviyv1w56si4bL2/BgbdgNzxw7+lIz0SLC3Jv9mijGHPZs6/dFjhW6XO0b+WPesukWfUv3KXX05t/da/svy53nuP2b/4A3YE/xzcv+hDD+Q4pd6/l6kA0bWT4L825GOxbNHhvyUdbyViC+O/tR9gPzdB5L88t3QRjXLlvwqv6q0En+a/ctL/Jj/G57/I7PGO3efov1/J/veAA+q/ijNkdMoY67+a9l8WWyfsv+XdL/DTLu2/u7QRFNYu7r9xRkOUAifvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"lIY8hlXv6L9gJORG3DDovy2l7OI6fOe/lv/IZGfR5r8sKuzWVzDmv4wbyUMCmeW/SsrStVwL5b8BLXw3XYfkv0Y6ONP5DOS/r+h5kyic47/WLrSC3zTjv1EDWqsU1+K/ulzeF76C4r+oMbTS0Tfiv654TuZF9uG/aiggXRC+4b9uN5xBJ4/hv1ScNZ6AaeG/tE1ffRJN4b8kQozp0jnhvztwL+23L+G/lM67krcu4b/EU6Tkxzbhv2L2W+3eR+G/Bq1Vt/Jh4b9HbgRN+YThv70w27josOG/AetMBbfl4b+ok8w8WiPiv0ohzWnIaeK/f4rBlve44r/gxRzO3RDjvwLKURpxceO/fY3Thafa47/pBhUbd0zkv90sieTVxuS/8vWi7LlJ5b++WNU9GdXlv9hLk+LpaOa/2MVP5SEF579XvX1Qt6nnv+wokC6gVui/LP/5idIL6b+wNi5tRMnpvxDGn+Lrjuq/5KPB9L5c67/DxgauszLsv0Ql4hjAEO2//bXGP9r27b+Jbyct+OTuvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LFI7Y/S11D9Cz4aC1h3UP17gJq3omdM/CPcajeIp0z/ChGLMe83SPxL7/BRshNI/f8vpEGtO0j+OZyhqMCvSP8FAuMpzGtI/o8iY3Owb0j+zcMlJUy/SP3qqSbxeVNI/f+cY3saK0j9FmTZZQ9LSP1ExoteLKtM/KiFbA1iT0z9T2mCGXwzUP1POsgpaldQ/rG5QOv8t1T/qLDm/BtbVP4x6bEMojdY/HMnpcBtT1z8birDxlyfYPxEvwG9VCtk/hCkYlQv72T/36rcLcvnaP/Dknn1ABdw/9ojMlC4e3T+MSED780PePzqV+VpIdt8/QPD7rnFa4D/2TR1Xvv/gP36c4PrlquE/nJRFb8Rb4j8S70uJNRLjP6Jk8x0VzuM/Eq47Aj+P5D8hhCQLj1XlP5SfrQ3hIOY/LLnW3hDx5j+uiZ9T+sXnP9rJB0F5n+g/dTIPfGl96T8+fLXZpl/qP/tf+i4NRus/cJbdUHgw7D9b2F4UxB7tP4LefU7MEO4/p2E61GwG7z+MGpR6gf/vPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"gD4FrDAJ47+V38OdXnXivxAhjRFQ5OG/nkZzwxZW4b/uk4hvxMrgv7BM39FqQuC/H2kTTTd6379+HjRT0XXev9FARS7Hd92/eFdrVjyA3L/S6cpDVI/bvzx/iG4ypdq/EZ/ITvrB2b+w0K9cz+XYv3abYhDVENi/vYYF4i5D17/jGb1JAH3Wv0fcrb9svtW/RVX8u5cH1b85DM22pFjUv4GIRCi3sdO/elGHiPIS07+D7rlPenzSv/PmAPZx7tG/LMKA8/xo0b+JB17APuzQv2k+vdRaeNC/Ju7CqHQN0L8/PCdpX1fPv2Krp+Beps6/cDhQqC4Izr8i8mmwFX3NvzPnPelaBc2/XSYVQ0WhzL9avjiuG1HMv+S98RolFcy/tDOJeajty7+ELki67NrLvw69d8043cu/De5go9P0y7860EwsBCLMv1ByhFgRZcy/CONQGEK+zL8bMftb3S3Nv0RrzBMqtM2/PqANMG9Rzr/C3geh8wXPv4k1BFf+0c+/p9klIeta0L9ms5Mp4djQvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"4yfjpr/+xD+Vysn95WXEPwnWGJQv5MM/LkI+1ER5wz/qBqgoziTDPy0cxPtz5sI/4nkAuN69wj/1F8vHtqrCP1DukZWkrMI/4PTCi1DDwj+RI8wUY+7CP09yG5uELcM/BdkeiV2Awz+fT0RJlubDPwrO+UXXX8Q/MUyt6cjrxD/9wcyeE4rFP14nxs9fOsY/PnQH51X8xj+IoP5Ons/HPyekGXLhs8g/DHfGuseoyT8cEXOT+a3KP0hqjWYfw8s/enqDnuHnzD+bOcOl6BvOP5mfuubcXs8/MdLrZTNY0D/wH8RfFwjRP/40HZbuvtE/Ug0uPo180j/kpC2Nx0DTP6b3UrhxC9Q/kgHV9F/c1D+avup3ZrPVP7Uqy3ZZkNY/2kGtJg1z1z8AAMi8VVvYPxphUm4HSdk/HmGDcPY72j8E/JH49jPbP8EttTvdMNw/TPIjb30y3T+XRRXIqzjeP5sjwHs8Q98/KMSt3wEp4D/UNw/karLgP83qn2XDPeE/Dlv7fvXK4T+SBr1K61niPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VqPxtP2p7T+KLbj34MLsP4g507GS3us/fXZ0hjb96j+Wk80Y8B7qPwJAEAzjQ+k/7SpuAzNs6D+JAxmiA5jnPwB5Qot4x+Y/gzocYrX65T8899fJ3THlP11ep2UVbeQ/Eh+82H+s4z+M6EfGQPDiP/ZpfNF7OOI/flKLnVSF4T9SUabN7tbgP6AV/wRuLeA/Lp2OzesR3z/IVmEsVNPdP2y22Wxcn9w/dBpb1Ut22z9A4UisaVjaPydpBjj9Rdk/hhD3vk0/2D+6NX6HokTXPyA3/9dCVtY/EnPd9nV01T/tR3wqg5/UPwwUP7mx19M/zDWJ6Ugd0z+JC74BkHDSP57zQEjO0dE/Z0x1A0tB0T9CdL55Tb/QP4nJf/EcTNA/MFU5YgHQzz+Y6/D9fybPPwET7UJEnM4/I4j0vdwxzj+2B8771+fNP3BOQInEvs0/DRkS8zC3zT9AJArGq9HNP8Qs747DDs4/Uu+H2gZvzj+hKJs1BPPOP2eV7yxKm88/L/mlpjM00D8ffrsRda3QPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"d1bu7HFa77/NS6On92Huv60Sg64pZO2/VuNk51lh7L/99R842lnrv+aCi4b8Teq/RMJ+uBI+6b9c7NCzbirov2M5WV5iE+e/l+HunT/55b8zHWlYWNzkv3Ukn3P+vOO/mC9o1YOb4r/adptjOnjhv3IyEAR0U+C/QDU7OQVb3r84zzUmcA3cv0qjvprMvtm/6yGEYr5v17+UuzRJ6SDVv73gfhrx0tK/3AERonmG0L/aHjNXTXjMv8LzjQU46ce/ZmOP5vpgw79unSgju8G9v1Et8ztP1LS/enBwjIL4p7/YAIyFA+GJv8jknFcQppU/iGOwPTrkqz/Tp2d7G1u2P27Z2/zvob4/YII9ugViwz/ws8VZb1/HP3agqUXtR8s/DGeM5jcazz9fk4jSg2rRP05/7XSKO9M/2IbGDoz/1D+MOWXU5LXWP+4mG/rwXdg/iN45tAz32T/g7xI3lIDbP3/q97bj+dw/8F06aFdi3j+52St/S7nfP7H2DhgOf+A/OhSx1xIY4T88DaUYYqfhPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"70I4BJ6s7z/w7P1L+LLuP9kxdNKmtu0/1SQ+3+237D8T2f65EbfrP8NhWapWtOo/EtLw9wCw6T80PWjqVKroP1K2YsmWo+c/nlCD3Aqc5j9DH21r9ZPlP3U1w72ai+Q/YqYoGz+D4z85hUDLJnviPyblrRWWc+E/XNkTQtFs4D8H6iowOc7eP6SWq754xdw/5d7vvum/2j8s6T3AFL7YP9Tb21GCwNY/Pt0PA7vH1D/KEyBjR9TSP8ylUgGw5tA/U3Pb2fr+zT97625qcD7KP9MA7NLRjMY/DADfMTDrwj/Ra6hLObW+P0Der5pQuLc/6/DsjcjhsD9mevDEhmekPxDlUqsag40/2Log4aoxhb+OCjXqyJuhv0inwHAPia2/Dunc6PyHtL8CrHfJIRa6vwsDGB3UbL+/VqpS0/hEwr+8g4MUrLXEv/lAkrNyB8e/UZXykTs5yb8KNBiR9UnLv2LQdpKPOM2/qh2Cd/gDz7+O59aQj1XQvwDMNjl5FtG/zZWapTDE0b+XHrxGLV7Svw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wgvMeKDO7z/DNplGidDuP2q0QW4Qye0/1jKHO5647D8lYCv6mp/rP3Pq7/Vufuo/4H+WeoJV6T+NzuDTPSXoP5WEkE0J7uY/FlBnM02w5T8v3ybRcWzkPwDgkHLfIuM/pgBnY/7T4T9A72rvNoDgP9uzvMTiT94/lN0FECyX2z/ptzRYGtfYPxifzDR+ENY/Xu9QPShE0z/2BEUJ6XLQP0B4WGAiO8s/LOITk+KJxT9jAIazZ6e/P3oV2cZuNLQ/NulcfDl8oT8QimNDYMKFv0RW1F0SV6y/LEg9V1iYub+wK6yRu33Cv+TzlprRKMi/NURYF83Lzb8bsnRshrLRv7LNIdh3edS/pRgwN+o517+0NhzyDPPZv6PLYnEPpNy/OHuAHSFM37+c9HivOPXgv7HcGc8XP+K/vEfhoUWD47+hhw3cWcHkv0Hu3DHs+OW/fc2NV5Qp5782d14B6lLov089jeOEdOm/qnFYsvyN6r8oZv4h6Z7rv6psvebhpuy/EtfTtH6l7b9D939AV5ruvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"h102stix1j/N36d93PzVP+pRR8HLQdU/yzDroe2A1D9Y+WlEibrTP38oms3l7tI/KDtSYkoe0j9Brmgn/kjRP7T+s0FIb9A/1VIVrN8izz+hVoYSeF/NP6QCaADolMs/s1Bnv73DyT+nOjGZh+zHP1K6ctfTD8Y/jcnYwzAuxD8rYhCoLEjCPwR+xs1VXsA/2y1Q/XTivD9+TcQI0gK5P51OQ1HfHrU/4CQnark3sT/6h5PN+ZyqPyg/CrWMyKI/Yq3MYsnolT9or91K1xV5PyDvhvHdqIK/RC48snLgmL/BdCWGES2kv0ztw9yG3qu/r8wiGzDBsb/fSPs1Mou1v3x3kSstTLm/4GSLaAQDvb+tjsesTVfAv59WobXqJsK/chAmBcvvw79QwqhRYLHFv2FyfFEca8e/zib0unAcyb/E5WJEz8TKv2u1G6SpY8y/7ZtxkHH4zb90n7e/mILPvxNjIHTIgNC/Gwsw4GU60b/jSjR/3e3Rv4GlVizomtK/Cp7Awj5B07+Tt5sdmuDTvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"xa81Vf6G77+uNUp5p5Huv6jVaZXen+2/c9srfcax7L/FkicEgsfrv2JH9P0z4eq/BkUpPv/+6b9x112YBiHpv1tKKeBsR+i/heki6VRy57+uAOKG4aHmv5Hb/Yw11uW/7cUNz3MP5b+CC6kgv03kvwr4ZlU6keO/RdfeQAja4r/t9Ke2Syjiv8ScWYonfOG/hRqLj77V4L/wudOZMzXgv4GNlflSNd+/axkPGIYM3r8ar0I2RvDcvwbmXvvY4Nu/rFWSDoTe2r+HlQsXjenZvxY9+bs5Atm/zuOJpM8o2L8vIex3lF3Xv7KMTt3NoNa/1b3fe8Hy1b8QTM76tFPVv9/OSAHuw9S/wN19NrJD1L8rEJxBR9PTv5/90cnyctO/lD1Odvoi07+IZz/uo+PSv/QS1Ng0tdK/VNc63fKX0r8kTKKiI4zSv+AIOdAMktK/AqUtDfSp0r8FuK4AH9TSv2XZ6lHTENO/nqAQqFZg078rpU6q7sLTv4d+0//gONS/LsTNT3PC1L+bDWxB61/Vvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"68wwsdHSwD9IDaynfWHAP7ag4V3BFMA/59d3u+zXvz+Cp0pi7My/P+A8CGKaA8A/DwxPerxCwD8UJuQDNqPAP6jvsYhgJME/kc2ikpXFwT+MJKGrLobCP11Zl12FZcM/xNBvMvNixD9/7xS00X3FP1AacWx6tcY/+bVu5UYJyD86J/iokHjJP9LS90CxAss/gB1YNwKnzD8KbAMW3WTOP5YRcrPNHdA/1FPyWUsV0T8gr3dDlBjSP9lV9zRVJ9M/Ynpm8zpB1D8YT7pD8mXVP1oG6OonldY/jtLkrYjO1z8Q5qVRwRHZP0FzIJt+Xto/gKxJT2202z8yxBYzOhPdP7LsfAuSet4/ZlhxnSHq3z/UnPTWyrDgP23h7IBNcOE/LxMcL28z4j9Ky/xDBvriP++iCSLpw+M/SzO9K+6Q5D+SFZLD62DlP/LiAky4M+Y/mzSKJyoJ5z++o6K4F+HnP4rJxmFXu+g/MT9xhb+X6T/inRyGJnbqP81+Q8ZiVus/I3tgqEo47D8TLO6OtBvtPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"vCsHhhkL7j9bZl/EqBrtP8gh/3h9IOw/ghJyx/4c6z8C7UPTkxDqP8llAMCj++g/UTEzsZXe5z8eBGjK0LnmP6aSKi+8jeU/a5EGA79a5D/otIdpQCHjP56xOYan4eE/BjyofFuc4D9FEb7ghqPeP9yX0wmNBNw/z3Sou5dc2T8SEVQ9dazWP6fV7dXz9NM/iSuNzOE20T9c95LQGubMPyxedOCJVMc/dl3tVq26wT9ljlmEQzS4Pz61hcEO0qk/0DhE9/VteT/IJWnG9n2jv7YE2spPFbW/DTePXXI0wL+MFdKLQNvFv+DLBuJ1fcu/BkT/6LqM0L8YPMXm0VbTvyHlPaMxHNa/KtZR1wvc2L83puk7kpXbv0ns7Yn2R96/tp8jPTV54L9QG+/iD8rhv3i0zRIkFuO/rLYzqQpd5L9xbZWCXJ7lv0okZ3uy2ea/uiYdcKUO6L9AwCs9zjzpv2A8B7/FY+q/n+Yj0iSD679+CvZShJrsv37z8R19qe2/Iu2LD6iv7r/vQjgEnqzvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"L6dMlYDf479sxDtxEj/jvzznEwV6leK/m29jGQrj4b9/vbh2FSjhv+gwouXuZOC/mlNcXdIz379ZENY0ro7dv/pXzuIW29u/duph+LEZ2r/Dh60GJUvYv9XvzZ4VcNa/o+LfUSmJ1L8lIACxBZfSv0poS01QmtC/HPa8b10nzb++MKwDjQfJv3AAnnh61sS/GeXL8HCVwL9Kvd4cd4u4vwC0B8+Voq+/lIDoF877m7+ABrc0jI9+P8ivs1/Hx6U/bhY++zbvsz8wLAVhXAi9P6UMXs5eFsM//u73NOKsxz80vRZCbUbMP6x7wGnacNA/wI5+47a+0j/m1yh9JgzVPyGXoqWDWNc/gAzPyyij2T8MeJFecOvbP84Zzcy0MN4/65iyQig54D8VgJ77zlfhP2zim8j7c+I/8l8c4VuN4z+wmJF8nKPkP6ksbdJqtuU/5LsgGnTF5j9l5h2LZdDnPzBM1lzs1ug/To27xrXY6T/CST8Ab9XqP5Ih00DFzOs/wbTov2W+7D9Yo/G0/antPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"NjRq9xf47z/Nt+uSO/vuP0flsrjr+e0/oBmSr3b07D/MsVu+KuvrP8oK4itW3uo/kYH3PkfO6T8fc24+TLvoP2U8GXGzpec/YzrKHcuN5j8QylOL4XPlP2dIiABFWOQ/YhI6xEM74z/8hDsdLB3iPyv9XlJM/uA/2K/tVOW93z9t5KrY2n7dPwhSmr0VQNs/nLJgkTIC2T8gwKLhzcXWP4Q0BTyEi9Q/vsksLvJT0j/DOb5FtB/QP/18vCDO3ss/0iNjN06Hxz/s27nqITrDP2cyFKwE8b0/DZ86KVGHtT9Ky/MGN3OqP9C3k8VXKZQ/QAGLs2ogiL/6Oew6ON6lv6pgFi1ktLK/bUO/TnNRur+27u6l6+HAv22j7/aOhMS//ksYf2oPyL96dB8jRYHLvwCpu8fl2M6/0brRqIkK0b9As8ZSSprSv9oDGFQYG9S/q/IgH1eM1b+9xTwmau3Wvx7Dxtu0Pdi/3zAaspp82b8HVZIbf6nav6d1iorFw9u/yNhdcdHK3L95xGdCBr7dvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Q/d/QFea7r/QToEIOantvyjfFhCxtey/r7P3agDA67/D19osaMjqv8pWd2kpz+m/KTyENIXU6L9Ik7ihvNjnv4Bny8QQ3Oa/PcRzscLe5b/ftGh7E+Hkv8tEYTZE4+O/ZX8U9pXl4r8RcDnOSejhvzIih9Kg6+C/V0JpLbjf37/A8PFceerdv2lmFlsH+Nu/GLpET+QI2r+WAutgkh3Yv6pWd7eTNta/Gs1XempU1L+yfPrQmHfSvzJ8zeKgoNC/y8R9rgmgzb8ljHmrjQzKvwh8agvSh8a/+MEsHdsSw78NFzlfWl2/v4oMLCOZuLi/jr/qI3s5sr86Flv+EcSnv4wps0ot0Za/gOHJ91BtUz/ovfeawIeYP7RkbnC5jKc/GJWSWvI4sT+PvBdwqHe2P6BNDlt2gLs/lPbevqkowD8LIDedG3TCP6R1s3mMocQ/0cl3Bfivxj//7qfxWZ7IP6G3Z++ta8o/Lvbar+8WzD8TfSXkGp/NP8Aeaz0rA88/1NZnNg4h0D8ffrsRda3QPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ameWZkXE77+zFMpy6svuv0P07fnd1O2/q6hoNU/f7L901KBebevrvy4a/a5n+eq/ZhzkX20J6r+ufbyqrRvpv43g7MhXMOi/lefb85pH579RNfBkpmHmv1BskFWpfuW/IS8j/9Ke5L9UIA+bUsLjv3DiumJX6eK/CBiNjxAU4r+mY+xarULhv9tnP/5cdeC/aY7ZZZ1Y3798SLZkY8/dvw5D4mtqT9y/OsMq7hDZ2r8dDl1etWzZv85oRi+2Cti/axi003Gz1r8RYnO+RmfVv9qKUWKTJtS/4tcbMrbx0r9Djp+gDcnRvxrzqSD4rNC/B5cQSqg7z78uuQ9BADjNv+bW6wu1T8u/ZXo/kIODyb/iLaWzKNTHv5l7t1thQsa/uO0QburOxL96DkzQgHrDvxZoA2jhRcK/xITRGskxwb+67lDO9D7Av1tgONBC3L6/r6abmxeAvb/cxADK4Wq8v1PPnCYbnru/f9qkfD0bu7/P+k2XwuO6v7BEzUEk+bq/ksxXR9xcu7/hpiJzZBC8vw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Wigbb1Kf77+pgbUfW6nuv2RUy3gtt+2/Ox0dOevI7L/YWGsftt7rv/CDduqv+Oq/MBv/WPoW6r9Mm8Uptznpv+mAihsIYei/v0gO7Q6N5795bxFd7b3mv8txVCrF8+W/YcyXE7gu5b/t+5vX527kvxt9ITV2tOO/nczo6oT/4r8gZ7K3NVDiv1bJPlqqpuG/7W9OkQQD4b+V16EbZmXgv/j58m/hm9+/p7krSox53r+X525DEGTdvx99PdmwW9y/pnMYibFg27+ExIDQVXPavx1p9yzhk9m/z1r9G5fC2L/2khMbu//Xv/QKu6eQS9e/Jbx0P1um1r/qn8FfXhDWv6CvIobdidW/qOQYMBwT1b9fOCXbXazUvyakyATmVdS/WSGEKvgP1L9YqdjJ19rTv4I1R2DIttO/N79Qaw2k07/UP3Zo6qLTv7iwONWis9O/QgsZL3rW07/SSJjzswvUv8RiN6CTU9S/e1J3slyu1L9SEdmnUhzVv6qY3f24ndW/4eEFMtMy1r9W5tLB5NvWvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MwcE+qlk7b/jcs75x3/svz4GOkTqneu/i/8h5zK/6r8RnWHww+Ppvxwd1G2/C+m/771UbUc36L/avb78fWbnvx5b7SmFmea/B9S7An/Q5b/dZgWVjQvlv+hRpe7SSuS/c9N2HXGO47/GKVUvitbivyaTGzJAI+K/302lM7V04b83mM1BC8vgv3iwb2pkJuC/0qnNdsUN37+phxyFUNndvwV3ghuur9y/dfS1VSKR27+PfG1P8X3av9yLXyRfdtm/855C8K962L9iMs3OJ4vXv73CtdsKqNa/kcyyMp3R1b90zHrvIgjVv/I+xC3gS9S/nqBFCRmd078KbrWdEfzSv8UjygYOadK/Yj46YFLk0b9xOrzFIm7Rv4OUBlPDBtG/KMnPI3iu0L/0VM5ThWXQv3S0uP4uLNC/PGRFQLkC0L+4wVVo0NLPv8lNP+z/wM+/zmW0Q4nQz790ARFT+gDQvx2PeiXlKtC/dFjNNElm0L8I2r+carPQv2uQCHmNEtG/Lfhd5fWD0b/hjXb95wfSvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"WfUBBOD17L8Cuzt8QhDsv+rNFi6GJeu/uioe0Pc16r8WztwY5EHpv6y03b6XSei/ItureF9N578lPtL8h03mv1ja2wFeSuW/aqxTPi5E5L//sMRoRTvjv8PkuTfwL+K/XkS+YXsi4b99zFydMxPgv4XzQELLBN6/upEoR7zg27/ebIa207rZv09+cP2qk9e/Wb/8iNtr1b9RKUHG/kPTv4e1UyKuHNG/n7qUFAbtzb/4M3bWLaTJv7PJd2QGYMW/gG7FmMIhwb/4KRabKtW5v6tf6blid7G/hsa4hCZZor8AQ+MYPeRuvzxa+nkumpw/vJI5Ph9Urj8pmbtkBBG3P5IgAzsE2b4/Lr3NttQ/wz+cYBYkRwHHP+qHL4umr8o/gUDtEcBJzj/ayxFvMOfQP3JN0worntI/sSslbzZJ1D9MbfEuuefVP+4YIt0Zedc/RTWhDL/82D/+yFhQD3LaP8faMjtx2Ns/UHEZYEsv3T9Ik/ZRBHbeP1lHtKMCrN8/GUoedFZo4D9CwDzZtPHgPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HbWTKAl/7L/0+2TrM6Prv/LNmD9ezuq/BRQqb5MA6r8YtxPE3jnpvyCgUIhLeui/CLjbBeXB57/E56+GthDnvzsYyFTLZua/ZTIfui7E5b8rH7AA7Cjlv37HdXIOleS/TxRrWaEI5L+M7or/r4PjvyQ/0K5FBuO/CO81sW2Q4r8i57ZQMyLiv2YQTtehu+G/wVP2jsRc4b8jmqrBpgXhv3vMZblTtuC/uNMiwNZu4L/LmNwfOy/gv0IJHEUY79+/UwBkJKqP37+o6IZxQkDfvx6UesD3AN+/l9Q0peDR3r/ue6uzE7PevwJc1H+npN6/skalnbKm3r/bDRShS7nev1yDFh6J3N6/FnmiqIEQ37/jwK3US1Xfv6QsLjb+qt+/HMeMsNcI4L++27L0ukTgvyY9hDE0ieC/RtT7sE7W4L8KihS9FSzhv2RHyZ+UiuG/QvUUo9bx4b+SfPIQ52Hiv0XGXDPR2uK/SrtOVKBc47+QRMO9X+fjvwVLtbkae+S/mbcfktwX5b87c/2QsL3lvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"y+GR+vIZ4L/oAj0VmTTfv98tWqmlL96//9UfxGAl3b/JjDJ4Hxbcv8TjNtg2Atu/dmzR9vvp2b9juKbmw83Yvw1ZW7rjrde/+d+ThLCK1r+t3vRXf2TVv63mIkelO9S/fonCZHcQ07+nWHjDSuPRv6jl6HV0tNC/EIRxHZMIz7+S/hhBPqbMv+RdEXyUQsq/DMWj8z/ex78XVxnN6nnFvww3uy0/FsO/9IfSOuezwL+42VAzGqe8v4oRDN+167e/eP1ow/U2s78vx/NVXBStv/wTosBmzaO/vNoCuGY3lb8Q+WXTqx5ovzglahoq9Y0/DsFM2kNfoD+mu7uoWCGpP292YS5w4LA/TeSeMJkdtT9U4YMQ00a5P3MnfoPJWr0/ULh9HxSswD9juzR8zZ7CP+n5mrLmhMQ/1FBnnbVdxj8knVAXkCjIP8m7DfvL5Mk/volVI7+Ryz/2495qvy7NP2inYKwiu84/idhIYR8b0D/ybhTEtM/QP2uF7mv8etE/b4oyRqEc0j987DtATrTSPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"5vJei/YA4b9uXnnuqH3gv3eY8giP/N+/gzM2x7QF37/aSDZE0xbev2OTa6z6L92//c1OLDtR3L+Qs1jwpHrbv/b+ASVIrNq/FWvD9jTm2b/NshWSeyjZvwKRcSMsc9i/lcBP11bG179o/CjaCyLXv1z/dVhbhta/VoSvflXz1b8zRk55CmnVv9j/ynSK59S/JWyeneVu1L/9RUEgLP/Tv0JILClumNO/1y3Y5Ls607+csb1/JebSv3OOVSa7mtK/QH8YBY1Y0r/hPn9Iqx/SvzyIAh0m8NG/MBYbrw3K0b+go0Ercq3Rv23r7r1jmtG/eqibk/KQ0b+qlcDYLpHRv9tt1rkom9G/8utVY/Cu0b/QyrcBlszRv1jFdMEp9NG/aZYFz7sl0r/o+OJWXGHSv7SnhYUbp9K/sl1mhwn30r/C1f2INlHTv8XKxLaytdO/n/czPY4k1L8wF8RI2Z3Uv1vk7QWkIdW/Ahoqof6v1b8Hc/FG+UjWv0yqvCOk7Na/sHoEZA+b178Zn0E0S1TYvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"KPSdcEYA7L8toFWuSiLrv8lXN2poP+q/pV26i+lX6b9e9FX6F2zov6BegZ09fOe/DN+zXKSI5r9NuGQflpHlvwItC81cl+S/1X8eTUKa479o8xWHkJriv2PKaGKRmOG/aUeOxo6U4L9HWvs1pR3fv2h8XI5ND92/hnouZar+2r/i2V+JT+zYv80f38nQ2Na/kNGa9cHE1L95dIHbtrDSv9CNgUpDndC/v0UTI/YVzb/scRD/4/TIv7Gq18Z32MS/qPpFGNnBwL/R2HAiX2S5vxUVGJ9FVbG/eH53xGmxor/Qxl55wg93v4Q4fVRVfpk/frZTsGAtrD/Zpc+lBbK1P7GYVgJGL70/VE8CGRFGwj9D0Y98JePFP4/H9o24bck/rCdar6LkzD+Ac24hXiPQP3r9UNVuydE/eCxmpO9j0z8ze7+/TPLUP15kbljyc9Y/sGKEn0zo1z/a8BLGx07ZP5SJK/3Ppto/laffddHv2z+SxUBhOCndPz5eYPBwUt4/TuxPVOdq3z89dRDfAzngPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0MsydMvn7z8gHlwVuujuPxeWhL7e3+0/KZS8EqTN7D+9eBS1dLLrP02knEi7juo/RndlcOJi6T8bUn/PVC/oPzeV+gh99OY/EqHnv8Wy5T8X1laXmWrkP7iUWDJjHOM/aT39M43I4T+aMFU/gm/gP3Od4e5ZI94/dPDA/u9e2z8SG2n0m5LYPzTe+hUzv9U/vvqWqYrl0j+LMV71dwbQPwKH4n6gRco/AOPhm9F2xD+68febW0S9P42U5EK/krE/WMgyFI1wlz9gyDIUjXCXv3qU5EK/krG/pPH3m1tEvb/+4uGb0XbEv/6G4n6gRcq/hjFe9XcG0L+6+papiuXSvzHe+hUzv9W/EBtp9JuS2L9w8MD+717bv26d4e5ZI96/mDBVP4Jv4L9pPf0zjcjhv7iUWDJjHOO/FNZWl5lq5L8Poee/xbLlvzaV+gh99Oa/GFJ/z1Qv6L9Gd2Vw4mLpv0uknEi7juq/vXgUtXSy678nlLwSpM3svxeWhL7e3+2/IR5cFbro7r/QyzJ0y+fvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"5ZKvOOb+zz9jo8PIKxjPPyMEs80PWc4/btSzj/XAzT+JM/xWQE/NP79AwmtTA80/Vxs8FpLczD+b4p+eX9rMP9G1I00f/Mw/Q7T9aTRBzT84/WM9AqnNP/mvjA/sMs4/0eutKFXezj8E0P3QoKrPP+89WSiZS9A/UgcBeLbR0D/QU5H7WWfRPw4zJVc1DNI/rrTXLvq/0j9W6MMmWoLTP6ndBOMGU9Q/TKS1B7Ix1T/kS/E4DR7WPxPk0hrKF9c/gHx1UZoe2D/OJPSALzLZP5zsaU07Uto/luPxWm9+2z9gGadNfbbcP5adpMkW+t0/4n8Fc+1I3z/1Z/J2WVHgP6fOLm+MA+E/2ntFdOi64T9h90NYRnfiPwzJN+1+OOM/rnguBWv+4z8ajjVy48jkPyGRWgbBl+U/lQmrk9xq5j9JfzTsDkLnPw96BOIwHeg/uIEoRxv86D8WHq7tpt7pP/zWoqesxOo/PTQURwWu6z+rvQ+eiZrsPxX7on4Siu0/UHTbunh87j8uscYklXHvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hm8nLfjk7r/+8weRF/btv5gNWbO6De2/Ja7SifMr7L90xywK1FDrv1dLHypufOq/nyti39Ou6b8iWq0fF+jov6zIuOBJKOi/Emk8GH5v578jLfC7xb3mv7MGjMEyE+a/kufHHtdv5b+UwVvJxNPkv4eG/7YNP+S/QChr3cOx47+MmFYy+Svjv0HJeau/reK/LayMPik34r8kM0fhR8jhv/dPYYktYeG/ePSSLOwB4b94EpTAlargv8ibHDs8W+C/O4LkkfET4L8/b0d1j6nfv5ZbJFahO9+/GK3PsTze3r9rR7lzhZHevzIOUYefVd6/D+UG2K4q3r+lr0pR1xDev5hRjN48CN6/iq47awMR3r8gqsjiTivev/wnozBDV96/wAs7QASV3r8QOQD9teTev5CTYlJ8Rt+/4v7RK3u6379VL186ayDgv0TLSwzZbOC/EsVmAZnC4L+ODmgPvSHhv4yZByxXiuG/3Ff9THn84b9QOwFoNXjiv7k1y3Kd/eK/6TgTY8OM47+yNpEuuSXkvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FbWTKAl/7D+60DJWaqHrP88sKXREx+o/10N3mrXw6T9JkB3h2x3pP6aMHGDVTug/a7N0L8CD5z8XfyZnurzmPyRqMh/i+eU/E++Yb1U75T9diFpwMoHkP4awdzmXy+M/B+Lw4qEa4z9hl8aEcG7iPw9L+TYhx+E/j3eJEdIk4T9el3csoYfgP/ZJiD9Z398/xDXfBiW63j8j5/Te4Z/dPw5TyvfLkNw/gW5ggR+N2z94LrirGJXaP+yH0qbzqNk/12+wouzI2D8321LPP/XXPwa/ulwpLtc/PhDpeuVz1j/cw95ZsMbVP9vOnCnGJtU/NiYkGmOU1D/nvnVbww/UP+mNkh0jmdM/OYh7kL4w0z/SojHk0dbSP67StUiZi9I/yAwJ7lBP0j8cRiwENSLSP6RzILuBBNI/XormQnP20T9Bf3/LRfjRP0xH7IQ1CtI/eNctn34s0j/AJEVKXV/SPyAkM7YNo9I/k8r4Esz30j8VDZeQ1F3TP6DgDl9j1dM/LjphrrRe1D+9Do+uBPrUPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"HfSdcEYA7D/2Wdc1qSjrP7GtM9y1WOo/6lcaSXOQ6T8ywfJh6M/oPylSJAwcF+g/ZHMWLRVm5z+AjTCq2rzmPxMJ2mhzG+Y/t056TuaB5T8Ex3hAOvDkP5faPCR2ZuQ/BfIt36Dk4z/rdbNWwWrjP97ONHDe+OI/fGUZEf+O4j9YosgeKi3iPw/uqX5m0+E/ObEkFruB4T9xVKDKLjjhP01AhIHI9uA/at03II+94D9flCKMiYzgP8TNq6q+Y+A/NPI6YTVD4D9IajeV9CrgP5ieCCwDG+A/vvcVC2gT4D9T3sYXKhTgP/C6gjdQHeA/LvawT+Eu4D+o+LhF5EjgP/MqAv9fa+A/rPXzYFuW4D9qwfVQ3cngP8j2brTsBeE/Xv7GcJBK4T/EQGVrz5fhP5YmsYmw7eE/ahgSsTpM4j/cfu/GdLPiP4PCsLBlI+M/+Uu9UxSc4z/Xg3yVhx3kP7fSVVvGp+Q/MKGwitc65T/eV/QIwtblP1hfiLuMe+Y/OCDUhz4p5z8XAz9T3t/nPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"R/d/QFea7r/jemKSaantv4EvLONxtuy/sBDtR6/B67/6GbXVYMvqv+tGlKHF0+m/EpOawBzb6L8A+tdHpeHnvzt3XEye5+a/VAY440bt5b/Xonoh3vLkv1JINByj+OO/U/J06NT+4r9mnEybsgXivxpCy0l7DeG/+d4ACW4W4L8i3frbk0Hev93YoRucWdy/Q6gW+3J12r9qQnmklpXYv22e6UGFuta/Z7OH/bzk1L90eHMBvBTTv6vkzHcAS9G/Tt5nFREQz78EHpHIpJjLv7N2VV24MMi/htb0J0jZxL+5K698UJPBv/bIiF+bv7y/E97oKnh/tr8ac/4DMGiwvwnJkiZ396S/yDomBU7wkr8gPSYw8ZlqP4wDXJLT05g/wgPwzsfEpj9xWKTpI1uwPyoonEI8HbU/n5TfSbSmuT9wwe5Wk/W9PxjppGDwA8E/OnU48NHtwj/pFvIFcrfEP/DfkU3UX8Y/HuLXcvzlxz88L4Qh7kjJPxTZVgWth8o/dfEPyjyhyz8nim8boZTMPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"kNwNjTRH7r+wTdEdOlvtv/sgpunzcey/J23dK4eL67/nSMgfGajqv/TKtwDPx+m/Agr9Cc7q6L/KHOl2OxHov/wZzYI8O+e/Uhj6aPZo5r9/LsFkjprlvz1zc7Ep0OS/P/1hiu0J5L89490q/0fjv+o7OM6DiuK//x3Cr6DR4b8uoMwKex3hvy/ZqBo4buC/b79PNfqH37/8lDWM3j3ev29gpbBn/ty/NU9BGeDJ27+7jqs8kqDav2lMhpHIgtm/rrVzjs1w2L/y9xWq62rXv6ZAD1ttcda/Mb0BGJ2E1b8Am49XxaTUv38HW5Aw0tO/GjAGOSkN0788QjPI+VXSv1BrhLTsrNG/xNibdEwS0b8CuBt/Y4bQv3c2pkp8CdC/GgO7m8I3z79ijcf+uXvOv5tmtqtz382/n+nLj4Rjzb9DcUyYgQjNv2BYfLL/zsy/zfmfy5O3zL9gsPvQ0sLMv/LW069R8cy/XMhsVaVDzb9y3wqvYrrNvw138qkeVs6/BOpnM24Xz78uk6845v7Pvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6lJejNckyT/xFdyvoVfIP8u47DZtesc/iAt1VLqNxj8o3lk7CZLFP7YAgB7ah8Q/O0PMMK1vwz/BdSOlAkrCP0xoaq5aF8E/z9UL/2qwvz8zm7WWJhq9P9vAm4nobLo/0uaHPbGptz8wrUMYgdG0P/6zmH9Y5bE/pjahsm/MrT9rBmoWP6qnP34XH/YfZqE/AFSnOiYElj8c+GteZQCCP/RhvXtk7nC/dCmimDurkb929rsms0qfv7IfCxn/iqa/+EHFkY2Erb/zkPwYAkiyv6y/CRex1bW/Ho1AXVNqub81WdeF6AS9v+5BghU4UsC/gTZ/8/Qjwr9Ruv2pKvfDv0/9GAZZy8W/eC/s1P+fx7++gJLjnnTJvxshJ/+1SMu/iUDF9MQbzb/+DoiRS+3OvzheRdFkXtC/bDx0et9E0b8YOt6q1SnSvzfvEEkHDdO/xPOZOzTu07+83wZpHM3UvxhL5bd/qdW/2M3CDh6D1r/2/yxUt1nXv255sW4LLdi/PNLdRNr82L9aoj+948jZvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"70I4BJ6s77/ExBbZcbDuv+ni1ryerO2/L6saiIOh7L9lK4QTf4/rv2BxtTfwduq/8IpQzTVY6b/shfesrjPovx9wTK+5Cee/YFfxrLXa5b9+SYh+Aafkv0xUs/z7buO/noUUAAQz4r9G601hePPgvyYmA/JvYd+/txWjP0PW3L/WwL9cKEbavzBDnfrcsde/abh/yh4a1b8iPKt9q3/SvwXUx4qBxs+/WLvbpTiLyr+QZRqv907Fv+QJDAk6E8C/Sr9xLPaytb9oeKTk2IymvwAlPxm1eWy/2DYt1t7joj/gEj8E1LezP67+nl3p6r0/GfgSWRwExD9+vGGeZQbJPzGVMxzV+s0/eCUAuPdv0T8405+bHNrTPzK4tIcbO9Y/x7j6yjaS2D9QuS20sN7aPyyeCZLLH90/sEtKs8lU3z8f01Wzdr7gPxnJdH28y+E/8vlfX9fR4j/aV3WAaNDjP/zUEggRx+Q/imOWHXK15T+v9V3oLJvmP5p9x4/id+c/ee0wOzRL6D95N/gRwxTpPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fD4FrDAJ4z9kuMPnanDiPzwx5PSj0OE/FHB8qCEq4T/0O6LXKX3gP9G31q4ElN8/+C3b+eEh3j98aH06d6TcP2j16BpQHNs/3WJJRfiJ2T/sPspj++3XP64XlyDlSNY/PHvbJUGb1D+v98Idm+XSPxgbebJ+KNE/JudSHO/Izj9lHv+1IjTLPyT4TYavk8c/jJCW4azowz/KAzAcMjTAPybc4hSt7rg/ItdjAWNmsT/cYSJNaaOjP5AOyWiFloE/JHdYCWnQlb8Oqxz+ukGqvwJNYWBK0bS/88ugPTKDvL/5TA83MxrCv08/liRc8cW/zSAOk/zFyb9O1R8u/ZbNv00gulCjsdC/RCNazOCU0r90ZcRfq3TUv8JYzWB3UNa/Hm9JJbkn2L9uGg0D5fnZv5rM7E9vxtu/ive8YcyM3b8pDVKOcEzfv7A/wBVoguC/DGCOx69a4b+boH2HyS7iv1M6eIBv/uK/KWZo3VvJ478RXTjJSI/kv/9X0m7wT+W/6I8g+QwL5r/APQ2TWMDmvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"JrbEmnRq7D/vee5vK4/rP3TWVOi3uuo/ZZN3Cibt6T9veNbcgSbpP0ZN8WXXZug/mdlHrDKu5z8c5Vm2n/zmP3k3p4oqUuY/ZpivL9+u5T+Pz/KryRLlP6mk8AX2feQ/Yd8oRHDw4z9tRxttRGrjP3ekR4d+6+I/Mr4tmSp04j9PXE2pVATiP31GJr4InOE/bkQ43lI74T/SHQMQP+LgP1maBlrZkOA/tYHCwi1H4D+Xm7ZQSAXgP1lfxRRqlt8/UAuN7P8x3z9zysM1at3ePyQsaf3AmN4/w798UBxk3j+xFP47lD/eP1C67MxAK94//z9IEDon3j8iNRATmDPePxcpROJyUN4/QqvjiuJ93j8BS+4Z/7veP7eXY5zgCt8/xCBDH59q3z+LdYyvUtvfP7WSH62JLuA/4l8tlvx34D/9aW8ZDsrgP7Z4ZT3KJOE/vlOPCD2I4T/EwmyBcvThP3uNfa52aeI/k3tBllXn4j+7VDg/G27jP6Tg4a/T/eM//+a97oqW5D99L0wCTTjlPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"o7SWeGRA5j8NRe+VWZTlP4T3kbsD7eQ/yzJzxG9K5D+pXYeLqqzjP+PewuvAE+M/PR0awL9/4j+Cf4Hjs/DhP3Js7TCqZuE/1kpSg6/h4D9xgaS10GHgPxjusEU1zt8/1iTFSzTj3j+qdG4zuALePxyrlbLaLN0/upUjf7Vh3D8OAgFPYqHbP6K9Ftj669o/BZZN0JhB2j+/WI7tVaLZP17TweVLDtk/bNPQbpSF2D93JqQ+SQjYPwiaJAuEltc/qfs6il4w1z/oGNBx8tXWP1C/zHdZh9Y/brwZUq1E1j/K3Z+2Bw7WP/HwR1uC49U/b8P69TbF1T/PIqE8P7PVP5zcI+W0rdU/Yr5rpbG01T+slWEzT8jVPwcw7kSn6NU//Fr6j9MV1j8Y5G7K7U/WP+eYNKoPl9Y/8kY05VLr1j/Iu1Yx0UzXP/LEhESku9c//C+n1OU32D9wyqaXr8HYP9phbEMbWdk/yMPgjUL+2T/EvewsP7HaP1kdedYqcts/ErBuQB9B3D98Q7YgNh7dPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"i32eGXQ52z+xyw4zKW7aP2/9FQLUttk/LBSAhDgT2T9DERm4GoPYPxz2rJo+Btg/F8QHKmic1z+WfPVjW0XXP/wgQkbcANc/qrK5zq7O1j8BMyj7lq7WP2ajWclYoNY/OwUaN7ij1j/iWTVCebjWP72id+hf3tY/LOGsJzAV1z+UFqH9rVzXP1ZEIGidtNc/02v2ZMIc2D9vju/x4JTYP4qt1wy9HNk/isp6sxq02T/O5qTjvVraP7oDIptqENs/sCK+1+TU2z8QRUWX8KfcPz5sg9dRid0/nJlElsx43j+MzlTRJHbfPzgGQEOPQOA/VSrJ2b7M4D9P1Csrg1/hP9YETja++OE/nLwV+lGY4j9R/Gh1ID7jP6bELacL6uM/ThZKjvWb5D/48aMpwFPlP1ZYIXhNEeY/GEqoeH/U5j/yxx4qOJ3nP5PSaotZa+g/rGpym8U+6T/ukBtZXhfqPwhGTMMF9eo/sorq2J3X6z+XX9yYCL/sP2rFBwIoq+0/2rxSE96b7j+cRqPLDJHvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Y3bt8jpO7z/zADi9xFbuP3Aw9vE+W+0/yTyHofRb7D/nXUrcMFnrP7/LnrI+U+o/OL7jNGlK6T9IbXhz+z7oP9IQvH5AMec/z+ANZ4Mh5j8kFc08DxDlP8LlWBAv/eM/mYoQ8i3p4j+WO1PyVtThP6UwgCH1vuA/bEPtH6dS3z9mjSuceifdPxyvedj6/No/ZhiW9b3T2D8gOT8UWqzWPyWBM1Vlh9Q/U2Ax2XVl0j+IRvfAIUfQPzFHh1r+Wcw/xs6pfUgvyD+KA9MsTg/EP3KK/1J39r8/9uZZanrotz9EuF1F/O2vP8xS8P21SKA/AI3ji2C6XD9k2MRC92ucv/7HYO0EBq2/GTzU7MvCtb/x/iKwAdi8v4p20Z4l4MG/kiMtCag8xb/UpqfVW4DIv5ogxMIUqsu/KLEFj6a4zr9nvHd8ctXQv+lLgt/RP9K/PhfkT9ua07+Jrt6s+OXUv+6hs9WTINa/loGkqRZK17+i3fIH62HYvzVG4M96Z9m/dkuu4C9a2r+HfZ4ZdDnbvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ecRnQga+3b+kWlO79t7cv8HwtGbNE9y/SO6v4FJc27+wumfFT7jav229/7CMJ9q/912bP9Kp2b/JA14N6T7Zv1EWa7aZ5ti/Cv3l1qyg2L9pH/IK62zYv+jksu4cS9i//LRLHgs72L8b9981fjzYv7wSk9E+T9i/VG+IjRVz2L9adOMFy6fYv0aJx9Yn7di/jBVYnPRC2b+mgLjy+ajZvwcyDHYAH9q/KpF2wtCk2r+CBRt0Mzrbv4b2HCfx3tu/rsufd9KS3L9u7MYBoFXdvz/AtWEiJ96/lq6PMyIH37/sHngTaPXfv1o8yU7eeOC/shEBN/T94L88Q3UQ2onhv7KENyl0HOK/zolZz6a14r9MBu1QVlXjv+itA/xm++O/XTSvHr2n5L9lTQEHPVrlv72sCwPLEua/IAbgYEvR5r9IDZBuopXnv/J1LXq0X+i/2fPJ0WUv6b+2OnfDmgTqv0X+Rp033+q/RPJKrSC/679sypRBOqTsv3o6Nqhoju2/J/ZAL5B97r8wscYklXHvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Vmj3Cl2bw7+B1zJF8v/CvyYSxCYjYcK/PkupOSO/wb+7teAHJhrBv5WEaBtfcsC/fdV9/AOQv79gNsR0hDa+v7aRoLOm2Ly/b00PzdF2u79zzwzVbBG6v699ld/eqLi/Db6lAI89t7949jlM5M+1v9iMTtZFYLS/Heffshrvsr8qa+r1yXyxv+9+arO6CbC/qhC5/qcsrb+O2nnb+UWqv2EnECU5YKe/9cJ0AzR8pL8keaCeuJqhv3orGD0qeZ2/MMlgVi/Fl78YYwzZHBuSv7ohGSoe+Yi/hKhLaYmse78waRCNL4dWv3gIHv6KJ3A/jjCK/YTUgj+WSOzpH26NP3IOKdKu7pM/GT9sxoIPmT+PHs6B7xeeP5OKLlosg6E/oMUTB5Hsoz+X9J2fV0emP6JL1Puxkqg/6P6989HNqj+aQmJf6fesP+JKyBYqEK8/9KX7+OKKsD/rPHtk94OxP2uE5jnrcrI/jBZBZVdXsz9ijY7S1DC0PwKD0m38/rQ/gpEQI2fBtT/3UkzerXe2Pw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"h32eGXQ52791S67gL1ravzRG4M96Z9m/o93yB+th2L+XgaSpFkrXv/Ghs9WTINa/ia7erPjl1L9BF+RP25rTv+pLgt/RP9K/arx3fHLV0L8usQWPprjOv5wgxMIUqsu/1Kan1VuAyL+YIy0JqDzFv5B20Z4l4MG//P4isAHYvL8gPNTsy8K1vwvIYO0EBq2/jNjEQvdrnL/AieOLYLpcP8JS8P21SKA/OLhdRfztrz/p5llqeui3P2GK/1J39r8/iwPTLE4PxD/Gzql9SC/IPypHh1r+Wcw/hUb3wCFH0D9UYDHZdWXSPyaBM1Vlh9Q/HDk/FFqs1j9kGJb1vdPYPxmvedj6/No/ZI0rnHon3T9oQ+0fp1LfP6MwgCH1vuA/lDtT8lbU4T+ZihDyLeniP8LlWBAv/eM/IhXNPA8Q5T/M4A1ngyHmP9IQvH5AMec/Rm14c/s+6D85vuM0aUrpP73LnrI+U+o/5l1K3DBZ6z/HPIeh9FvsP3Aw9vE+W+0/8wA4vcRW7j9jdu3yOk7vPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"GWdK4fD77j8Ul4pDHgvuP5OABjxcHu0/L718+Mk17D965qumhlHrPw+WUnSxceo/gmUvj2mW6T9v7gAlzr/oP2nKhWP+7ec/BpN8eBkh5z/g4aORPlnmP4xQutyMluU/o3h+hyPZ5D+8866/ISHkP25bCrOmbuM/T0lPj9HB4j/zVjyCwRriP/UdkLmVeeE/7TcJY23e4D9uPmasZ0ngPyWWy4ZHdd8/4u6Mq4Fk3j9Buo0ivGDdP2srS0c1atw/lHVCdSuB2z/ny/AH3aXaP5Rh01qI2Nk/yGlnyWsZ2T+vFyqvxWjYP3uemGfUxtc/WDEwTtYz1z91A26+CbDWP/5HzxOtO9Y/IjLRqf7W1T8Q9fDbPILVP/jDqwWmPdU/A9J+gngJ1T9iUuet8uXUP0R4YuNS09Q/1HZtftfR1D9EgYXavuHUP77KJ1NHA9U/dIbRQ6821T+Q5/8HNXzVP0MhMPsW1NU/u2bfeJM+1j8l64rc6LvWP6/hr4FVTNc/h33Lwxfw1z/d8Vr+bafYPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"kS9MAk045b+IrGnVFJbkv+Nr4Ib+++O/8dWn6gJq47/7UrfUGuDiv1NLBhk/XuK/RieMi2jk4b8lT0AAkHLhvzsrGkuuCOG/1SMRQLym4L9EoRyzskzgv6sXaPAU9d+/rZedxnhg378wk8iQgtvev8ra1/YjZt6/Gj+6oE4A3r+7kF429Kndv0ugs18GY92/ZD6oxHYr3b+lOysNNwPdv6loK+E46ty/DJaX6G3g3L9slF7Lx+Xcv2I0bzE4+ty/j0a4wrAd3b+KmygnI1Ddv/IDrwaBkd2/ZVA6Cbzh3b9+UbnWxUDev9fXGheQrt6/DLRNcgwr37+/tkCQLLbfv0RYcQzxJ+C/AjkRWg984L/mZfcEatfgv0JHG+H5OeG/YEV0wrej4b+SyPl8nBTivyM5o+SgjOK/Yv9nzb0L47+egz8L7JHjvyUuIXIkH+S/RWcE1l+z5L9Ml+AKl07lv4YmreTC8OW/Rn1hN9yZ5r/WA/XW20nnv4YiX5e6AOi/pEGXTHG+6L99yZTK+ILpvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"igd9VTx9pj8QWUNCMIelP4MF4bWKB6Q/LOkd608Boj+ZwIM5CO+eP1aOKQtX2pg/GfS8wJTKkT/jVJufk4uDP1A8bb3VP0o/Biq0XogVgr+3GXNSdsqTv67rz0UPZ5+/M2nwSUPtpb+dCovjaY+sv/H+d5p7y7G/VLOrgXOAtb9ftPyJGmW5v+sTB5bud72/6HEzxLbbwL/6GtyhChHDvxiOS9UxW8W/MdTPT2u5x78y9rYC9irKvwz9Tt8Qr8y/sPHl1vpEz7+E7mRt+fXQvwBkJO6bUdK/yF1YZgS1079Q4KdO0h/VvxDwuR+lkda/fpE1UhwK2L8UycFe14jZv0mbBb51Ddu/kwyo6JaX3L9qIVBX2ibev0LepILfut+/zKOm8aKp4L/wMPh41nfhv8qYmhPaR+K/k13hfX0Z47+JASB0kOzjv+cGqrLiwOS/6u/S9UOW5b/LPu75g2zmv8Z1T3tyQ+e/GRdKNt8a6L/+pDHnmfLov7KhWUpyyum/b48VHDii6r9x8LgYu3nrvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"8DAjfcK3578SpnU7+QLnv5H3HfNRWOa/jXS8D7+35b8dbPH8MiHlv2QtXSaglOS/fweg9/gR5L+RSVrcL5njv69CLEA3KuO//UG2jgHF4r+XlpgzgWniv52Pc5qoF+K/LHznLmrP4b9lq5RcuJDhv2NsG4+FW+G/RA4cMsQv4b8m4DaxZg3hvyoxDHhf9OC/alA88qDk4L8IjWeLHd7gvyA2Lq/H4OC/0powyZHs4L87Cg9FbgHhv3nTaY5PH+G/qkXhEChG4b/srxU46nXhv15hp2+IruG/Hqk2I/Xv4b9K1mO+IjrivwA4z6wDjeK/Xh0ZWoro4r+C1eExqUzjv4uvyZ9SueO/mPpwD3ku5L/EBXjsDqzkvzAgf6IGMuW/+pgmnVLA5b8+vw5I5Vbmvxzi1w6x9ea/slAiXaic578eWo6evUvov35NvD7jAum/8XlMqQvC6b+TLt9JKYnqv4K6FIwuWOu/4WyN2w0v7L/KlOmjuQ3tv1uByVAk9O2/tYHNTUDi7r/z5JUGANjvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"R/d/QFea7r9va4sIiK7tv8M7odTHyuy/6lIL3x/v67+JmxNimRvrv0gABJg9UOq/y2smuxWN6b/ByMQFK9Lov8cBKbKGH+i/igGd+jF157+vsmoZNtPmv93/20icOea/vNM6w22o5b/0GNHCsx/lvym66IF3n+S/BaLLOsIn5L8ru8Mnnbjjv0TwGoMRUuO/+Csbhyj04r/tWA5u657iv8lhPnJjUuK/NTH1zZkO4r/XsXy7l9Phv1bOHnVmoeG/WXElNQ944b+Ghdo1m1fhv4b1h7ETQOG//at34oEx4b+Vk/MC7yvhv/OWRU1kL+G/vqC3++o74b+em5NIjFHhvzpyI25RcOG/OA+xpkOY4b8/XYYsbMnhv/dG7TnUA+K/BbcvCYVH4r8SmJfUh5Tiv8TUbtbl6uK/wlf/SKhK47+0C5Nm2LPjvz/bc2l/JuS/DLHri6ai5L/Ad0QIVyjlvwIayBiat+W/e4LA93hQ5r/Rm3ff/PLmv6tQNwovn+e/r4tJshhV6L+FN/gRwxTpvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"hTf4EcMU6b8F48XUKkvov+g3CTi9d+e/WRpJd9ma5r9/bgzO3rTlv4kY2ncsxuS/oPw4sCHP47/1/q+yHdDiv60Dxrp/yeG/9e4BBKe74L/zSdWT5U3fv8wTDpCEF92/ywO8c+nU2r9L4uy10obYv5p3rs3+Lda/FowOMizL078Q6BpaGV/Rv8enwnkJ1c2/zC/folncyL/a+KYdoNXDv0Mna7CzhL2/nyFNgQdIs79kBFYUa/Chv/BcQYyFfHY/3AmSlvCppz/QqSxxYEy2P4nxG3eDZcA/u8cZ8/imxT/FRnS+E+nKP/7uh3UrFdA/V35oxaK00j8dCc5XMVLVP/TGqrUY7dc/iO/wZ5qE2j9/upL39xfdP4Ffgu1ypt8/HgtZaaYX4T8tCwqY41jiP8BLTceRluM/rOibu1HQ5D/G/W45xAXmP+SmPwWKNuc/1/+G40Ni6D93JL6YkojpP5YwXukWqeo/DEDgmXHD6z+rbr1uQ9fsP0jYbiwt5O0/uZhtl8/p7j/QyzJ0y+fvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aWeWZkXE7z9WcbjTBszuP0ldnbZO1e0/fb8cHkvg7D8lLA4ZKu3rP4A3SbYZ/Oo/xnWlBEgN6j82e/oS4yDpPwDcH/AYN+g/ZCztqhdQ5z+aADpSDWzmP9/s3fQni+U/a4WwoZWt5D93XolnhNPjPzwMQFUi/eI/+SKseZ0q4j/fNqXjI1zhPy7cAqLjkeA/PU45hxWY3z/TV5SujhXeP5T9xdeOnNw/9md9IHIt2z9pv2mmlMjZP14sOodSbtg/Tted4Acf1z+p6EPQENvVP+WI23PJotQ/dOAT6Y120z/LF5xNulbSP1pXI7+qQ9E/m8dYW7s90D/4Idd/kIrOP+a3FRVbtcw/5qHLsY78yj/gMFeR42DJP721Fu8R48c/YYFoBtKDxj+05KoS3EPFP50wPE/oI8Q/B7Z6964kwz/VxcRG6EbCP+6weHhMi8E/PMj0x5PywD+lXJdwdn3APxG/vq2sLMA/ZkDJuu4AwD8YYyqm6fW/P2rjADJ3G8A/56bqEi5jwD/rzDCx0dLAPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"91JM3q13tj9vdAZ7a6O1P1S0Zxjgh7Q/AfGIOq4msz/JCINleIGxPw603TrCM68/JYbKzBXjqj+MRP6IMBSmP+yrqndXyqA/7/ECQp8Rlj+AodE0eEuDP6SSrLiDQ22/+L0UYlzSkb9XnBjLvmigv5zEgwGlT6i/hQ0N5k1NsL+C8VQRL6O0v+ivgH7TJ7m/Wmp3qZjZvb9FIRAHblvBvwstMZT93sO/V2kSuql2xr/4Zqc2oSHJv8e248cS38u/mOm6Ky2uzr8eSBCQD8fQv8EdhLELP9K/Jr4yWaK+07+y8RXmakXVv86AJ7f80ta/5TNhK+9m2L9l07yh2QDav7MnNHlToNu/PPnAEPRE3b9oEF3HUu7ev9AaAX4DTuC/qBjVBtQm4b/yZaetZgHiv+Hm9CGH3eK/qn86EwG747+EFPUwoJnkv6KJoSoweeW/OsO8r3xZ5r+ApcNvUTrnv6oUMxp6G+i/7vSHXsL86L9+Kj/s9d3pv5KZ1XLgvuq/XSbIoU2f678UtZMoCX/svw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EizujrQb7b95hj1aQjPsv0WFgNlkQuu/99Tpm3pJ6r8DIqww4kjpv+kY+ib6QOi/I2YGDiEy578vtgN1tRzmv4W1JOsVAeW/oxCc/6Df478CdJxBtbjivyGMWECxjOG/fAUDi/Nb4L8aGZ1htU3ev52b24GK29u/fOsmlSNi2b+qYeS5PeLWvyBXeQ6WXNS/2SRLsenR0b+OR36B64XOv8dZdbbuYMm/TDJGPlc2xL8lBnerPg++v/T7P3OCrLO/1FP5mtyOor8AwdjDlNBxPyiEssDf+6Y/YBRB9VDYtT+Iz68InBTAPx+/j13YNsU/AKd1PGNRyj9R1ZZowmLPPwlMlNK9NNI/sB6wWgqy1D+giTmuiSjXP+Qzy65+l9k/iMT/PSz+2z+S4nE91VveP4caXkfeV+A/frG8iZJ84T+4CaLWqJviP7d2257CtOM//0s2U4HH5D8U3X9khtPlP3l9hUNz2OY/uIAUYenV5z9QOvotisvoP8j9Axv3uOk/oh7/mNGd6j9m8LgYu3nrPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"aV4W83u66j+NCmFh2eXpP05B+1wTC+k/mTDtO3gq6D9UBj9UVkTnP27w+Pv7WOY/0xwjibdo5T9uucVR13PkPyb06KupeuM/6vqU7Xx94j+j+9Fsn3zhPz4kqH9feOA/TkU/+Bbi3j+QSYFw483cPxixJhTBtNo/wNc/j0yX2D9WGd2NInbWP7jRDrzfUdQ/ulzlxSAr0j8yFnFXggLQP/CzhDlCscs/wgfTgzNcxz+M3+3lEQfDP+fl628tZr0/UPMXpPbCtD9erUIx5E2oPzj7S+6TpIw/FI248NXGk7/WQwhK5tKqvzYNd8wz0LW/xHVFwoQjvr8n9hareTDDv7SA92sGQ8e/4qKjSy9Iy78Apfrxuj7Pv6/nbQO4ktG/LDUTmYp9078g39yNOF/Vv7KJujUlN9e/C9mb5LME2b9YcXDuR8fav8D2J6dEfty/bg2yYg0p3r+KWf50Bcffv54//hjIq+C/WhHOdght4b8MdOZ99Sbiv8c5P9hA2eK/ozTQL5yD47+yNpEuuSXkvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wD0Nk1jA5r+OUA586hHmv2mG4VM2a+W/GeigtTnM5L9hfmY88jTkvwVSTINdpeO/zWtsJXkd47+B1OC9Qp3iv+GUw+e3JOK/trUuPtaz4b/FPzxcm0rhv9M7Bt0E6eC/prKmWxCP4L8HrTdzuzzgv2tnpn0H5N+/9Z4ms81d3782EiS9xObev7rS0tHnft6/CvJmJzIm3r+zgRT0ntzdvz+TD24pot2/PDiMy8x23b8zgr5ChFrdv66C2glLTd2/PUsUVxxP3b9l7Z9g81/dv7N6sVzLf92/tQR9gZ+u3b/2nDYFa+zdv/tUEh4pOd6/Vj5EAtWU3r+SagDoaf/evzTregXjeN+/6OhzyJ0A4L/0lz1gN0zgv4aLNOU7n+C/Zcxy8qj54L9UYxIjfFvhvxpZLRKzxOG/fLbdWks14r8/hD2YQq3ivyrLZmWWLOO/A5RzXUSz47+N530bSkHkv5DOnzql1uS/0VHzVVNz5b8VepIIUhfmvyJQl+2ewua/vdwboDd157+tKDq7GS/ovw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"KU7D0Pes4z+w60r/0RXjP1H/+wTEhOI/Cq6I88754T/YHKPc83ThP71w/dEz9uA/r85J5Y994D+3WzooCQvgP5F5AllBPd8/zS2hB69w3j8cHrV/XbDdP3mUouRO/Nw/4drNWYVU3D9RO5sCA7nbP8T/bgLKKds/NHKtfNym2j+c3LqUPDDaP/qI+23sxdk/S8HTK+5n2T+Jz6fxQxbZP6z92+Lv0Ng/uJXUIvSX2D+k4fXUUmvYP2srpBwOS9g/DL1DHSg32D+A4Dj6oi/YP8Pf59aANNg/0gS11sNF2D+qmQQdbmPYP0LoOs2Bjdg/mjq8CgHE2D+u2uz47QbZP3gSMbtKVtk/9CvtdBmy2T8ecYVJXBraP/IrXlwVj9o/a6bb0EYQ2z+GKmLK8p3bPz8CVmwbONw/kHcb2sLe3D921BY365HdP+5irKaWUd4/8WxATMcd3z99PDdLf/bfP8aNemPgbeA/Dipv8cbm4D8UmCth9GXhP9X8YcRp6+E/UH3ELCh34j+DPgWsMAnjPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"uqekpzDcsD9LYswuiS+wP37tQi0HZq4/liq2MM3Qqz9F3GDa8aKoP/ZisZwC4KQ/EB8W6oyLoD8K4vppPFKXP9LkVr8P8Yg/YANWQ+MiQj8RSLUD9rmIvzrJV4+TSpq/VP+/1EuYpL+yQbs19oOsv66lF7xdcrK/793WFIfbtr9uGeRrsHu7v/gTBISJKMC/oOwFGPSswr+Y/luVNErFv8Cxap9n/8e/Am6W2anLyr9Bm0PnF67Nv7NQ6zXnUtC/KvRZBfXY0b/465+zw2jTvw9sb5LhAdW/Zqh689yj1r/s1HMoRE7Yv5QlDYOlANq/UM74VI+6278WA+nvj3vdv9b3j6U1Q9+/Q/DPY4eI4L+LeOXTVHLhv7uu4UvKXuK/z6yd9K5N47/AjPL2yT7kv4douXviMeW/HFrLq78m5r97ewGwKB3nv5zmNLHkFOi/eLU+2LoN6b8IAvhNcgfqv0bmOTvSAeu/LXzdyKH867+13bsfqPfsv9Ykrmis8u2/jWuNzHXt7r/QyzJ0y+fvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"LFI7Y/S11D+01DqmyRjUP/znsqfYhdM/ROg8Mw790j/NMXIUV37SP9og7BagCdI/qhFEBtae0T+CYBOu5T3RP6Fp89m75tA/SYl9VUWZ0D+7G0vsblXQPzl99WklG9A/DBQsNKvUzz/DPIyQ2IXPPxwtPoCsSc8/mp10mgAgzz+9RmJ2rgjPPwvhOauPA88/BCUu0H0Qzz8uy3F8Ui/PPwuMN0fnX88/HiCyxxWizz/rPxSVt/XPP/pRSCNTLdA/XgKtuV1o0D9ijVFZ6KvQP0hPz83f99A/VKS/4jBM0T/E6LtjyKjRP9x4XRyTDdI/2rA92H160j8F7fVide/SP5iJH4hmbNM/2uJTEz7x0z8LVSzQ6H3UP2o8QopTEtU/O/UuDWuu1T/A24skHFLWPzhM8ptT/dY/5aL7Pv6v1z8LPEHZCGrYP+lzXDZgK9k/wabmIfHz2T/VMHlnqMPaP2VurdJymts/trscLz143D8FdWBI9FzdP5f2EeqESN4/rJzK39s63z/D4ZH68hngPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"kT4FrDAJ47+c3PpfsnPivzBb99Wq3eG/U2diYz1H4b8ErqNdjbDgv0jcIhq+GeC/QT6P3OUF378qR/Nentjdv0ctQWbsq9y/o0pInRaA279A+deuY1XavyqTv0UaLNm/ZHLODIEE2L/38NOu3t7Wv+Ron9Z5u9W/NjQAL5ma1L/urMVig3zTvxYtvxx/YdK/tA68B9NJ0b/Mq4vOxTXQv8q8+jc8S86/DQHBNUUzzL9u2AjsMyTKv/P2cLCVHsi/rRCY2Pcixr+m2Ry65zHEv+wFnqryS8K/ikm6/6VxwL8ZsSAeHke9v//NfVx2xLm/4VHJZW9ctr/SpEDlIxCzv+BdQgxdwa+/nrBQ51Oeqb8ZEieyYbmjvwylgIZ3KZy/AIQu4i5lkb88hjWRUKl8v0gPaTFwFWQ/AMyW4Nk6hz9kyhftfSGUP6+unE92Cpw/PDlytfWpoT+vuvxIufykP34L84tQ+6c/flvaJ4ajqj982jfGJPOsP0O4kBD3564/UxI12OM/sD+6p6SnMNywPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"eaYic2QQvD8V99t7Qy67PzHP1uQHQLo/SWlTHCJGuT/O/5GQAkG4PzrN0q8ZMbc/AQxW6NcWtj+f9luorfK0P4bHJF4LxbM/L7nwd2GOsj8QBgBkIE+xP6LokpC4B7A/tDbT1zRxrT9msYjIbMSqPzy2xs/5Cag/LroNyrxCpT8fMt6Tlm+iPw0mcRPQIp8/nqM6ECRSmT/IxhnX6m6TP9/yHkLM9Yo/uJVynF7ffT84SiMkEnhWP4C8+9Fu0XK//LdLSPqzhb8TqLFzoQeRv4JpIeqGO5e/ejZ0zutznb+OktQzh9ehv8SlX36W9aS/7t9a6kITqL8nzEWbqy+rv3v1n7TvSa6/f3P0LJewsL/gFVBXQzqyv2mnIuuLwbO/pu0regBGtb8eriuWMMe2v1uu4dCrRLi/5LMNvAG+ub9EhG/pwTK7vwTlxup7ory/rZvTUb8Mvr/GbVWwG3G/v2wQBkyQZ8C/OL1bzS4Twb8LoAslMbvBv6ib9RtfX8K/1pL5eoD/wr9WaPcKXZvDvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"6VJejNckyb+GBNuKm2HIvyN+76oOose/TCCLK0jmxr+DS51LXy7Gv1FgFUpresW/Pr/iZYPKxL/UyPTdvh7Ev5XdOvE0d8O/DF6k3vzTwr+/qiDlLTXCvzUkn0PfmsG/+SoPOSgFwb+PH2AEIHTAv/7EAsm7z7+/pKjEMPLAvr8Yq+S9Eby9v2yNQe5Iwby/shC6P8bQu7/49SwwuOq6v0n+eD1ND7q/uep85bM+ub9VfBemGnm4vyl0J/2vvre/R5OLaKIPt7+9miJmIGy2v5lLy3NY1LW/62ZkD3lItb/Crcy2sMi0vyvh4uctVbS/NsKFIB/us7/yEZTespOzv26R7J8XRrO/uAFu4nsFs7/gI/cjDtKyv/W4ZuL8q7K/BIKbm3aTsr8eQHTNqYiyv1C0z/XEi7K/qp+Mkvacsr86w4khbbyyvxDgpSBX6rK/Ore/DeMms7/HCbZmP3Kzv8WYZ6mazLO/RSWzUyM2tL9VcHfjB6+0vwI7k9Z2N7W/XEblqp7Ptb90U0zerXe2vw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ZVI7Y/S11L8EtLF2gxzUv2hCysellNO/lSZ47yAe07+Hia6GurjSv0OUYCY4ZNK/yW+BZ18g0r8dRQTj9ezRvz493DHBydG/LIH87Ia20b/pOVitDLPRv3mQ4gsYv9G/262OoW7a0b8Tu08H1gTSvx/hGNYTPtK/Akndpu2F0r+9G5ASKdzSv1GCJLKLQNO/wKWNHtuy078Mr77w3DLUvzTHqsFWwNS/PBdFKg5b1b8jyIDDyALWv+4CUSZMt9a/m/Co6114178sunusw0XYv6GIvAFDH9m//oRehKEE2r9G2FTNpPXav3arknUS8tu/kCcLFrD53L+YdbFHQwzev4y+eKORKd+/uBUqYbAo4L+jcpseu8Hgv4YKitbLX+G/4nFvVcUC4r86PcVniqrivwwBBdr9VuO/2lGoeAII5L8kxCgQe73kv2vs/2xKd+W/MV+nW1M15r/0sJioePfmvzV2TSCdvee/d0M/j6OH6L86refBblXpv/5HwIThJuq/Q6hCpN776r+LYujsSNTrvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FLWTKAl/7L9HVmk6l6Lrvw2Xpsbvy+q/6u/AhyT76b9b2S04RzDpv+fLYpJpa+i/DEDVUJ2s579Urvot9PPmvzmPSOR/Qea/Pls0LlKV5b/pijPGfO/kv7qWu2YRUOS/NfdByiG347/bJDyrvyTjvy6YH8T8mOK/sclhz+oT4r/kMXiHm5Xhv01J2KYgHuG/aoj354ut4L/AZ0sF70Pgv6G/knK3wt+/PNLNfMcL379Y+DKeMWPev/MirUsZyd2/F0Mn+qE93b/GSYwe78DcvwQoxy0kU9y/2M7CnGT0279EL2rg06Tbv046qG2VZNu/+OBnucwz279JFJQ4nRLbv0TFF2AqAdu/8OTdpJf/2r9OZNF7CA7bv2U03VmgLNu/OEbss4Jb27/Miun+0prbvyTzv6+06tu/RnBaO0tL3L8386MWurzcv/psh7YkP92/ls7vj67S3b8MCcgXe3fev2EN+8KtLd+/nMxzBmr137/gm46raWfgv+kf8ZQG3eC/6urWeZ1b4b9ndbUUQOPhvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"gD4FrDAJ478vk58o2W/iv/C1jPZgzuG/KhQ46BMl4b9AGw3QPXTgvzVx7gBVeN+/ObPDl0v63b9c13AJ927cv2O4zPru1tq/HTGuEMsy2b9UHOzvIoPXv9NUXT2OyNW/ZbXYnaQD1L/YGDW2/TTSv/VZSSsxXdC/DafYQ635zL+swOl9CynJv2K2c06sScW/xz0k/75cwb/SGFKz5ca6v9CvX0/uvbK/TFeZy+xBpb+IvKNP5JKDv3AFNsMCLpc/yqc7boUsrD/bFKH1imu2Pw7Z+9j6yL4/s1rp5hmWwz9VH2Wga8nHP9aEQ09D/cs/zmrr1DgY0D8Prjiz4zDSP1yxsp0KSNQ/75mC7xVd1j/5jNEDbm/YP66vyDV7fto/SCeR4KWJ3D/6GFRfVpDeP/xUnYb6SOA/uv+2IvVG4T9Vn4sxz0HiP2XGr+A8OeM/hQe4XfIs5D9O9TjWoxzlP1wix3cFCOY/TCH3b8vu5j+zhF3sqdDnPzDfjhpVreg/WsMfKIGE6T/Pw6RC4lXqPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"W09FPMgb6z9OfW4xXUzqP7cVH7P5huk/zja1gpbL6D/G/o5hLBroP9uLChG0cuc/PvyFUibV5j8vbl/ne0HmP9v/9JCtt+U/fs+kELQ35T9P+8wniMHkP4ahy5ciVeQ/WeD+IXzy4z8A1sSHjZnjP7Cge4pPSuM/ol6B67oE4z8MLjRsyMjiPyUt8s1wluI/I3oZ0qxt4j9AMwg6dU7iP7B2HMfCOOI/rmK0Oo4s4j9vFS5W0CniPyit59qBMOI/Ekg/iptA4j9kBJMlFlriP1UAQW7qfOI/HVqnJRGp4j/yLyQNg97iPwqgFeY4HeM/ncjZcStl4z/kx85xU7bjPxK8UqepEOQ/ZMPD0yZ05D8M/H+4w+DkP0GE5RZ5VuU/PHpSsD/V5T82/CRGEF3mP2Iou5nj7eY/+RxzbLKH5z8y+Kp/dSroP0XYwJQl1ug/Z9sSbbuK6T/QH//JL0jqP7jD42x7Dus/VeUeF5fd6z/gog6Ke7XsP40aEYchlu0/lGqEz4F/7j8uscYklXHvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"70I4BJ6s7z/NdhZdlrHuP0feN8kose0/CNTRG6ir7D+4shkoZ6HrPwTVRMG4kuo/mJWIuu9/6T8hTxrnXmnoP0NcLxpZT+c/sRf9JjEy5j8P3LjgORLlPw0EmBrG7+M/VerPpyjL4j+V6ZVbtKThP3NcHwm8fOA/PTtDByWn3j95D6Q8FVPcP/vqy1ju/dk/FoMlAlao1z8hjRvf8VLVP3G+GJZn/tI/XsyHzVyr0D9/2KZX7rTMP86mzK64GMg/Wm5W7WODwz+bMzPAduy9P78n16cU5bQ/rByHVnDmpz+g5hkhv8uIP+zde09Wlpa/XHIwRrOOrL8Is92vPcm2v5mPhCCrKL+/yvywrYWxw7/MjWXj47rHvyKQiuQkr8u/LJlKZP2Mz78aH+gKkanRv0kKI9YjgNO/ylhrbZFJ1b9KVVYqNAXXv3JKeWZmsti/7IJpe4JQ2r9fSbzC4t7bv3boBpbhXN2/3areTtnJ3r+ebWwjkhLgvx9ixWsOt+C/RdhErQ5S4b9ndbUUQOPhvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"A1i7+O1M4T+ySlKp18DgP1F933HwK+A/mM+OtQkd3z8eBN3YwtHdPxCIcl6ldtw/QksYV0oM2z+WPZfTSpPZP9tOuOQ/DNg/8G5Em8J31j+rjQQIbNbUP+mawTvVKNM/goZER5dv0T+ggKx2llbPP1Rwf1EUucs/2buTQNoHyD/WQntlGkTEPwTlx+EGb8A/NAQXrqMTuT+I86/NWiuxP9yu/MouT6I/oPReiturcD/cFdbWN6OcvwiP4MRO4a6/bZdmSmrKt7/iWjo12RnAv5Vxu78NVcS/I7Ako6CVyL/VNuS9X9rMv/wSNHcMkdC/6k6PCc210r9j3zqF2NrUv4bUbdmV/9a/gD5f9Wsj2b9zLUbIwUXbv4SxWUH+Zd2/4trQT4iD37/XXHFx487gvwgv43QQ2uG/FmzZqf7i4r8XnO+HYenjvx1HwYbs7OS/PPXpHVPt5b+GLgXFSOrmvw97rvOA4+e/7GKBIa/Y6L8vbhnGhsnpv+skElm7teq/NA8HUgCd678dtZMoCX/svw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"CyUgmyBg0z8OseHxn8DSP1xYqtYXEtI/zWrxfvlU0T81OC4gtonQP+AgsN99Yc8/r4bMRgqVzT+GQaDg867LPxPxGRgdsMk/CTUoWGiZxz8arbkLuGvFP/b4vJ3uJ8M/TLggee7OwD+qFacRNMO8P3AgiG+nwbc/XNDB4fuasj9+yWJ87KGqPxR00GptlZ8/mMQ5aYDPgj/sScCkNnyKv/7RWOmIKqK/u05x+gfrrb/ohF+YgO60v0rCQ3B1/rq/EBCE186RwL9+r2c/Gq7Dv8Af3oQ608a/LcH4PE0Ayr8N9Mj8bzTNv1gMsCxgN9C/sMfn8y3X0b88XJQeMHnTvx16Pnf1HNW/gtFuyAzC1r+KEq7cBGjYv2DthH5sDtq/LxJ8eNK0278aMRyVxVrdv0z67Z7U/96/9A49MMdR4L8NpiTSwCLhv4Qacpqe8uG/bMRp7ifB4r/Z+08zJI7jv98Yac5aWeS/k3P5JJMi5b8IZEWclOnlv1BCkZkmrua/gWYhghBw57+tKDq7GS/ovw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MmwVkhfly7+YMcXgGBHLvw8dDmtDSsq/mpoVloCQyb87FgHHuePIv/T79WLYQ8i/zbcZz8Wwx7/ItZFwayrHv+Vhg6yysMa/KigU6IRDxr+adGmIy+LFvzmzqPJvjsW/C1D3i1tGxb8Tt3q5dwrFv1RUWOCt2sS/0pO1Zee2xL+P4beuDZ/Ev4+phCAKk8S/1ldBIMaSxL9nWBMTK57Ev0UXIF4itcS/dgCNZpXXxL/6f3+RbQXFv9gBHUSUPsW/EPKK4/KCxb+nvO7UctLFv57NbX39LMa//pAtQnySxr/GclOI2ALHv/reBLX7fce/nkFnLc8DyL+3BqBWPJTIv0Sa1JUsL8m/TmgqUInUyb/V3MbqO4TKv9xjz8otPsu/amlpVUgCzL9+WbrvdNDMvx6g5/6cqM2/TKkW6KmKzr8O4WwQhXbPv7PZh+4LNtC/K0aS2aW10L/xa+j7BDrRvwcBHQgew9G/b7vCsOVQ0r8sUWyoUOPSvzx4rKFTetO/pOYVT+MV1L9lUjtj9LXUvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"4Y12/ecH0r/QNMjWMnHRvyc049UEyNC/HZnbQd8M0L/O4YrDhoDOv3yRaflkxcy/slt7s1vpyr/hWuh/be3Iv3Kp2Oyc0sa/12F0iOyZxL99nuPgXkTCv6TznAjtpb+/jBy6AWyNur+W7G7JP0G1vx4xF/jahq+/x6rAa/QrpL98X/VMrOuQv1ix0visu3w/dPq7WMnvnz/E26/IbKesP/zDt90B0bQ/G0z+pc9xuz+qqG1QDRrBP2xP/9juisQ/5P+L3okKyD+hn+vS25fLPzAU9ifiMc8/l6HBJ81r0T8SibXdAETTP1Szwu4KIdU/IhPVE2oC1z9Mm9gFnefYP5Q+uX0i0No/xe9iNHm73D+oocHiH6neP4Kj4KBKTOA/U+kmBaxE4T+qm6l6cz3iP+yz3l1gNuM/eys8CzIv5D+/+zffpyflPxoeSDaBH+Y/8ovibH0W5z+qPn3fWwzoP6QvjurbAOk/S1iL6rzz6T//seo7vuTqPyU2Ijuf0+s/Id6nRB/A7D9Yo/G0/antPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"EyzujrQb7T8S00BWVjTsP5nK4TmtRus/k9uBcQxT6j/dztE0x1npP2FtgrswW+g/BIBEPZxX5z+tz8jxXE/mPz0lwBDGQuU/nknb0Soy5D+zBcts3h3jP2MiQBk0BuI/lGjrDn/r4D9aQvsKJZzfPx8qT2mDXN0/SBo0qL8Y2z+apAs3gNHYP+ZaN4Vrh9Y/9M4YAig71D+RkhEdXO3RPxFvBotcPc8/SZ+e1Ymfyj9m2a74jALGP/JA+tKyZ8E/FfOHhpCguT+LTZ5QNHuwPwRi9warh50/kE8yiSaLer9Ux5zhEkSlv2CcbZmAh7O/6IfqJH5WvL+bb98qNIbCv30tMrdS08a/D1qq2E0Ry7+z0YSw2D7Pv2g4/y9TrdG/8AkqBLWx07+eS2Fl66vVv61rQ+RPm9e/S9huETx/2b+0/4F9CVfbvxpQG7kRIt2/sTfZVK7f3r9XEq1wnEfgv6JCnncFGOG/1mOPB7/g4b8Orc/odaHiv2JVruPWWeO/7ZN6wI4J5L/Ln4NHSrDkvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"O3P9kLC95b/zY9AP+RDlv/eDMAG9X+S/sLU3lDmq479/2//3q/Div83XoltRM+K//Iw67mZy4b9y3eDeKa7gvyNXX7muzd+/hLOBLVk53r/MlFx4zZ/cv8m/I/iFAdu/Q/kKC/1e2b8GBkYPrbjXv9aqCGMQD9a/g6yGZKFi1L/Sz/Nx2rPSv4zZg+k1A9G/+hzVUlyizr/gZrcfezzLv1waFva81ce/+sBYkhZvxL9c5OawfAnBvwscUBzIS7u/II8HzYKKtL9CaobZJaKrv+SESNGHhZy/AJ/ZIFdWX7+An2eHdWSYP3Jt7ZsxQKk/3/IDb68Vsz9DiTLM93e5P6hms2wIxb8/+rvb63v9wj/81DdK7gvGP8R0BpXmDMk/yhHgD3D/yz9yIl3+leLOP5UOC9Kx2tA/L7xRInI70j8/1c6REZPTP/qUTsIV4dQ/mDadVQQl1j9M9YbtYl7XP08M2Cu3jNg/17Zcsoav2T8cMOEiV8baP1CzMR+u0Ns/rnsaSRHO3D9pxGdCBr7dPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"w+GR+vIZ4D8T9q5zkjXfP0JdIk6EM94/ah6jVwYu3T/bXlZjYyXcP+tDYUTmGds/7/LozdkL2j8+kRLTiPvYPyhEAyc+6dc/BTHgnETV1j8ofc4H57/VP+RN8zpwqdQ/kchzCSuS0z+EEnVGYnrSPw5RHMVgYtE/hqmOWHFK0D9/guKnvWXOPx570hToN8w/k4c3nvcLyj+G8lvqgeLHP6EGip8cvMU/jw4MZF2Zwz/6VCze2XrBPwpJamhPwr4/uo/hGLmZuj9XE1MaHH22PzVpU7mjbbI/Q03uhPbYrD/fwaUEnPWkP8q17BUdZ5o/DAwlxJJUhj+gs4X/rjRuvzKqyn3TZpK/AICUIuFYoL9EsdyBWlGnvzi+lEN/Gq6/J75JZ/xYsr9q4NdEuIq1v5Qw4O1Hobi/ThnOFYCbu79OBQ1wNXi+v54vBFgem8C/5ciVRDXqwb/QA3HXySjDv7aVS2pGVsS/8jPbVhVyxb/Yk9X2oHvGv75q8KNTcse//G3ht5dVyL/pUl6M1yTJvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"wI3ES+Whzr+cFyBY+rDNvyWzmZd/vsy/BpxjoLHKy7/jDbAIzdXKv2dEsWYO4Mm/OnuZULLpyL8K7ppc9fLHv3fY5yAU/Ma/MHayM0sFxr/bAi0r1w7FvyK6iZ30GMS/rtf6IOAjw78ol7JL1i/Cvzc047MTPcG/iOq+79RLwL976+8qrbi+vwgjgXaq3by/CfOV7hoHu7/L0pK/dzW5v6Y53BU6abe/6Z7WHduitb/meeYD1OKzv+tBcPSdKbK/Tm7YG7J3sL+67AZNE5utv96iq4E7V6q/nu1nLs8kp7+juwSswASkv5P7SlMC+KC/HjgH+gz/m79uF+8DfziWv2Ry33U/npC/gUzUAmZkhr8+QYRg+dh3v8C7wXLFiE2/6B4olYZObz8tj/zhQxSBPwvAx/uQ5Yk/3u/Dx98hkT/mmQwdgxWVP9IALMzNy5g/WkeQI9tCnD83kKdxxnifPxD/b4LVNaE/7NnTFdKMoj8JajaaZsCjP8TAzragz6Q/e+/TEo65pT+KB31VPH2mPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAAABkG1XEKvc6P+8OZpXix1o/yeJFs63rbT8C9oc3Uml6P3V2t9ZXfYQ/uhjfFBpMjT+8B7cmCcyTPyvEy3sxrJk/QKyjogshoD/HrWHfpcSjPxey7BGwvqc/nYQR2PIMrD9deM5nm1awP/LgLUuizrI/vGENZXJttT94YFME8DG4P9hC5nf/Grs/jW6sDoUnvj+qJMaLMqvAP20ctvBBU8I/bVGZ3WILxD+D9uJ5B9PFP4w+Bu2hqcc/Ylx2XqSOyT/cgqb1gIHLP9bkCdqpgc0/LrUTM5GOzz9fkxuU1NPQPy+2c/Ax5tE/c9xLwhn+0j+dn10dRRvUPxaZYhVtPdU/TmIUvkpk1j+wlCwrl4/XP6nJZHALv9g/qpp2oWDy2T8doRvSTynbP3F2DRaSY9w/EbQFgeCg3T9t870m9ODeP/nmdw3DEeA/hm6quCe04D8UXdOehFfhP1p/z0m2++E/EKJ7Q5mg4j/qkbQVCkbjP6EbV0rl6+M/6gtAaweS5D99L0wCTTjlPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"4aYic2QQvL+ViPZd21e7v27UNbRD5bq/fuWPTli3ur/WFrQF1My6v4zDUbJxJLu/s0YYLey8u79h+7ZO/pS8v6M83e9iq72/k2U66dT+vr+h6L6JB0fAv2JtqyPmK8G/mG66rmMtwr/ImUOX3UrDv4Kcnkmxg8S/SyQjMjzXxb+v3ii920THvzl5B1fty8i/bqEWbM5ryr/dBK5o3CPMvwtRJbl0882/iDPUyfTZz7/sLIkDXevQv8S4m+6Q9NG/EZRN3EQI07+WlcqCJybUvxqUPpjnTdW/YWbV0jN/1r8x47rournXv03hGpAr/di/ejchfzRJ2r+AvPlrhJ3bvx9H0AzK+dy/Ia7QF7Rd3r9IyCZD8cjfvyw2fyKYneC/i7jB6Q9a4b+m1nBStxniv9x7ordl3OK/kZNsdPKh478oCeXjNGrkvwPIIWEENeW/hbs4RzgC5r8Ozz/xp9HmvwPuTLoqo+e/xgN2/Zd26L+4+9AVx0vpvz/Bc16PIuq/uT90Msj66r+LYujsSNTrvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FB5LEX09578PRUzFVYzmvxq3GDEY5eW/7yPCG7dH5b9GO1pMJbTkv9us8olVKuS/Zyidmzqq47+nXWtIxzPjv1H8blfuxuK/I7S5j6Jj4r/WNF241gnivyQua5h9ueG/x0/19oly4b98SQ2b7jThv/rKxEueAOG//IMt0IvV4L89JFnvqbPgv3dbWXDrmuC/Y9k/GkOL4L++TR60o4Tgvz9oBgUAh+C/pNgJ1EqS4L+lTjrodqbgv/x5qQh3w+C/ZQpp/D3p4L+Yr4qKvhfhv1EZIHrrTuG/Svc6kreO4b89+eyZFdfhv+TOR1j4J+K/+SddlFKB4r84tD4VF+Piv1kj/qE4TeO/GCWtAaq/478waV37XTrkv1ifIFZHveS/THcI2VhI5b/IoCZLhdvlv4XLjHO/dua/PKdMGfoZ57+q43cDKMXnv4YwIPk7eOi/jT1XwSgz6b93ui4j4fXpvwBXuOVXwOq/48IF0H+S67/YrSipS2zsv5rHMjiuTe2/5b81RJo27r9xRkOUAifvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FB5LEX0957+EEZmzBYPmv5BhcDsZwOW/7nKZaQz15L9Jqtz+MyLkv1hsArzkR+O/yh3TYXNm4r9VIxexNH7hv6bhlmp9j+C/5Xo1nkQ137/XNtY+8D/dv4XAoDinP9u/U+ElDRM12b+sYvY93SDXv+kNo0yvA9W/dKy8ujLe0r+wB9QJEbHQv/zR83bn+cy/jTN+ogiFyL/ZxmiZ2ATEv049qr1U9b6/e5vJ66HPtb+qm+WGfTapv8DOR1eK1oq/mOtC3gG8lz+YVW77IH+uP0QwR8E4lLg/69L+nSn1wD/0ssvznJ/FP3Kl6F4jSMo/lxc03Gntzj9XO0a0DsfRP+8XaIB1FNQ/Ndju0D9e1j/AskkkxKPYPy3e5/hY5No/HJE4zVQf3T8lAqsfDlTfP/QzV7ftwOA/ffxYnAnU4T//dRL+BePiP8g7uxuO7eM/I+mKNE3z5D9gGbmH7vPlP8xnfVQd7+Y/uG8P2oTk5z9uzKZX0NPoPz8ZewyrvOk/d/HDN8Ce6j9m8LgYu3nrPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"SovyC+D63j/qNMPRDgHeP5zC5Y9/+dw/rObmarDk2z9kU1OHH8PaPxO7twlLldk/A9CgFrFb2D+ERJvSzxbXP9zKM2Ilx9U/XhX36S9t1D9R1nGObQnTPwbAMHRcnNE/xoTAv3om0D/ArVsrjVDNPz7RCjV8RMo/n9in5b4pxz95KEyGUQHEP2clEWAwzMA/AGggeK8Wuz++ccXGh3+0P3ViiHzEqas/jL49w91inD8AjH0m/D9TP+jHpcAuMZq/Rv+PvmXiqr+Y6Y4KvV+0v6Bmy5/xVbu/z1ZlBuwowb+q+qzfu6jEv0g6oxJsKci/DbEuVgCqy79q+jVhfCnPv+DYT/VxU9G/PTmpVJ0Q07/8axoqwsvUv9K+FlFihNa/dH8Rpf852L+Y+30BHOzZv+2Az0E5mtu/KF15QdlD3b/93e7bfejev5GoUXbUQ+C/JAKFJ24Q4b+RIkvvzNnhv7KwXbuxn+K/YlN2ed1h4796sU4XESDkv9RxoIIN2uS/SjslqZOP5b+1tJZ4ZEDmvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"d32eGXQ52z+jRK/sIWTaP/mJrz79jtk/o8uOjjO62D/Khzxb8uXXP5k8qCNnEtc/OGjBZr8/1j/WiHejKG7VP5QculjQndQ/oqF4BeTO0z8olqIokQHTP1F4J0EFNtI/Rsb2zW1s0T8z/v9N+KTQP3s8ZYCkv88/J0n8RlI6zj+3HqTtVLrMP4O5O3IHQMs/3RWi0sTLyT8YMLYM6F3IP4kEVx7M9sY/hI9jBcyWxT9gzbq/Qj7EP2e6O0uL7cI/9VLFpQClwT9bkzbN/WTAP9zv3H67W74//fmX9Pb/uz/GPVz3Y7e5P9uz54K4grc/6FT4kqpitT+PGUwj8FezP3n6oC8/Y7E/m+BpZ5sKrz9s54tWo32rP7T6IyQCIag/uQuuxyP2pD/QC6Y4dP6hP4nYD92+dp4/1jyfwaJcmT8ZJ/INbLGUP/F5ALHyd5A/+S+EMx1miT+1x11uL8uCP7IA++CXSXo/GT6mL0XxcD9TpDkJjTFjP18d+W7uLVE/oYGiDkNMMT8HXBQzJqaxvA==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"kS9MAk045b+RPPIlEpDkvzTg4vAd5OO/BdHlcqg047+LxcK76YHiv1x0QdsZzOG//pMp4XAT4b8F20LdJljgv+v/qb7nNN+/wXJP7h+13b+mewVpZjHcv7SHW04rqtq/AgThvd4f2b+wXSXX8JLXv88BuLnRA9a/gF0ohfFy1L/X3QVZwODSv/Hv31SuTdG/zwGMMFd0z7+m+46FUE3Mv6Kn5+coJ8m/69+0lsACxr/CfhXR9+DCv5y8UKxdhb+/jbEYyotRub/BkMB5Oiizv0cdDHNUFqq/OH6bHm7wm79g/hZM3JlvvzDPOuDsw5M/gF7TkgSXpT8ShnLTBZGwP82D61fFP7Y/E/SWWADWuz86kZsr+6jAP0Qtx2rzWMM//HOvqgj6xT8nizWsWovIP5SYOjAJDMs/DsKf9zN7zT9lLUbD+tfPPzGAB6q+ENE/a7BttW0r0j9DOkZkmjvTP6KwAZfUQNQ/b6YQLqw61T+OruMJsSjWP+db6wpzCtc/X0GYEYLf1z/d8Vr+bafYPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"d32eGXQ52z+6hQLBPGzaP1gqwrcvr9k/iVN1OCUC2T986bN99WTYP2fUFcJ419c/ffwyQIdZ1z/zSaMy+erWP/ak/tOmi9Y/wfXcXmg71j+BJNYNFvrVP3AZghuIx9U/vbx4wpaj1T+e9lE9Go7VP0WvpcbqhtU/5s4LmeCN1T+zPRzv06LVP+HjbgOdxdU/oqmbEBT21T8rdzpRETTWP6404/9sf9Y/YMotV//X1j90ILKRoD3XPxwfCOoosNc/jq7HmnAv2D/8tojeT7vYP5gg4++eU9k/mNNuCTb42T8vuMNl7ajaP462eT+dZds/6rYo0R0u3D94oWhVRwLdP2pe0Qby4d0/9NX6H/bM3j9I8HzbK8PfP8zK97k1YuA/D1f1kUbo4D8EEQOTtHPhP8XsbNprBOI/a95+hVia4j8T2oSxZjXjP9PTynuC1eM/yL+cAZh65D8IkkZgkyTlP64+FLVg0+U/1rlRHeyG5j+Y90q2IT/nPw7sS53t++c/UYug7zu96D98yZTK+ILpPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"jBqUeoH/77/FTU3jPgHvv7Lqid44/O2/KcLqFMrw7L/7pBAvTd/rv/ljnNUcyOq/+M8usZOr6b/OuWhqDIrov0jy6qnhY+e/PEpWGG455r97kkteDAvlv9mbayQX2eO/KjdXE+mj4r9DNa/T3Gvhv/JmFA5NMeC/HDpP1ijp3b/HUBMnG2zbv5eztl8m7Ni/LwR70f9p1r805KHNXObTv0z1bKXyYdG/OLI7VO26zb+eYuxZPLPIvwU/b/48rsO/ehWPyLNavb83EvFb+2Ozv571FfhL9qK/wIwqh8Q9Vz9crP4SDUOkP5CCFiWzz7M/rKjbn6dkvT8KIWRax27DPwfkao/JG8g/Ctp+zO+3zD/hX46356DQP/CoYOr+29I/kqZ0LYgM1T8et4gvzjHXP+84W58bS9k/XIqqK7tX2z/ECTWD91bdP38VuVQbSN8/9IV6pziV4D+rpVMQon7hPxMZRzzvX+I/Wg+0gsU44z+qt/k6ygjkPzRBd7yiz+Q/ItuLXvSM5T+jtJZ4ZEDmPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ah5LEX095z+axznAbozmP9qomm175eU/kEyx2ZRI5T+FPcHErLXkP4gGDu+0LOQ/YjLbGJ+t4z/nS2wCXTjjP9rdBGzgzOI/DXPoFRtr4j9LllrA/hLiP2HSnit9xOE/HLL4F4h/4T9GwKtFEUThP6+H+3QKEuE/IJMrZmXp4D9nbX/ZE8rgP1GhOo8HtOA/qLmgRzKn4D87QfXChaPgP9TCe8HzqOA/Q8l3A2634D9S3yxJ5s7gP82P3lJO7+A/gmXQ4JcY4T8860WztErhP8ergoqWheE/8jHKJi/J4T+JCGBIcBXiP1S6h69LauI/JdKEHLPH4j/G2ppPmC3jPwJfDQntm+M/qekfCaMS5D+EBRYQrJHkP2I9M975GOU/Dhy7M36o5T9ULPHQKkDmPwD5GHbx3+Y/4gx248OH5z/C8kvZkzfoP3A13hdT7+g/tl9wX/Ou6T9g/EVwZnbqPzyWogqeRes/GLjJ7osc7D+97P7cIfvsP/q+hZVR4e0/mbmh2AzP7j9pZ5ZmRcTvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"nEajywyR7z93+ZuipZTuP87qk+N4ju0/WuY/hvB+7D/Qt1SCdmbrP+0qh890Reo/ZguMZVUc6T/5JBg8guvnP1hD4Epls+Y/PjKZiWh05T9mvffv9S7kP4ewsHV34+I/Wdd4EleS4T+X/QS+/jvgP/HdE+Cwwd0/bu54QJwC2z8LxKKMkzvYP0j2+rNqbdU/kBzrpfWY0j+qnLmjEH7PPxJGc07twMk/NmTWKin8wz8OTGwv2GK8P6p0y+e7xLA/TIDC8TSFlD+gT/dTkBCav36J2U5IKLK/BCN8s8/Hvb9RoZ9Cta/Ev0pFPoPkdcq/Qmdj3mYa0L8XBzOIZPXSv6pqpE8Xy9W/kPpNRaua2L9SH8Z5TGPbv39Bo/0mJN6/1uS9cDNu4L8wEPManMXhvxhXvIXjF+O/0u1kuZ9k5L+pCDi+Zqvlv+LbgJzO6+a/xpuKXG0l6L+afKAG2Vfpv6SyDaOnguq/MXIdOm+l67+F7xrUxb/sv+ZeUXlB0e2/nvQLMnjZ7r/z5JUGANjvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"yyTau6Xz779W3nd9N/Tuv7xy41r/6u2/nvf7CmjY7L+dgqBE3Lzrv2ApsL7GmOq/iAEKMJJs6b+7II1PqTjov5icGNR2/ea/woqLdGW75b/gAMXn33Lkv5MUpORQJOO/f9sHIiPQ4b9Ia89WwXbgvx2zs3MsMd6/8ncMBBls279OUGfMHZ/Yv3pngjoQy9W/wOgbvMXw0r9f//G+ExHQv0ythWGfWcq/rDOZ/p2JxL/q0DVhnGe9v0VEDqa1s7G/WLrRCnbrl78QDHxHWf6WP25jsyBQeLE/pAXQMvorvT8+Hp5on2vEP3CtfyJkO8o/6izINdAB0D945im0VOHSPxLYph5qu9U/etaABzuP2D9itvkA8lvbP4RMU525IN4/0LZnN15u4D8299eDksfhP9FRG/2OG+M//bBS7Ohp5D8Y/56aNbLlP38mIVEK9OY/jhH6WPwu6D+iqkr7oGLpPxXcM4GNjuo/SpDWM1ey6z+bsVNck83sP2IqzEPX3+0/AeVgM7jo7j/QyzJ0y+fvPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"FbWTKAl/7D/yXooi/5rrP9l2c6rEreo/AJGxX7u36T+YQafhRLnoP9gct8/Csuc/9rZDyZak5j8opK9tIo/lP594XVzHcuQ/k8ivNOdP4z84KAmW4ybiP8UrzB8e+OA/2s624vCH3z/Q3jJUqBXdP8+v0dIlmto/R2pYnSwW2D+cNozyf4rVPz09MhHj99I/k6YPOBlf0D8ONtNLy4HLPwqGCjMXPMY/7I1Po5zuwD8ePVk0xDW3P/gisFS4Cak/kKkDO+LYfD+mSxPJMdqhvxzuQPMLqLO/tPxgDT5gvr/vl+obUYnEv/dyxLsV3sm/nL6zaOYsz78NFZdSHjrSv0ay1PlI2dS/ko5N6y9z17+GgTzoDwfav7Zi3LEllNy/uwloCa4Z378WJw3Ycsvgv8wDl7OEBeK/zgbv96o647/mm7IFhGrkv94ufz2ulOW/givy/8e45r+b/aitb9bnv/UQQadD7ei/XNFXTeL86b+bqooA6gTrv3oIdyH5BOy/x1a6EK787L9MAfIup+vtvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"MwcE+qlk7b9vWU6k/Hvsv4dz3orXjuu/btCGpoSd6r8S6xnwTajpv2o+amB9r+i/ZkVK8Fyz57/5eoyYNrTmvxJaA1JUsuW/pl2BFQCu5L+mANnbg6fjvwS+3J0pn+K/sxBfVDuV4b+nczL4Aorgv57DUgSV+96/Paws1rfh3L8Ml5dXAsfav/B5OHoIrNi/z0q0L16R1r+O/69pl3fUvxCO0BlIX9K/OOy6MQRJ0L/gHyhGv2rMvyjeAb/cSci/GP9MsYgwxL96blMA6x/AvzEwvh5XMri/Zc9zg+Q6sL9kJLfqm7egvyAEKmFn7GK/zHy8ky9AnD+WyPNHXzCtP4ongzu4/rU/YxH35FVBvT8g5eBs3C7CP0W9p6nIqMU/YiWGxUcNyT+qMTLdMVvMP1L2YQ1fkc8/yMNluVNX0T/SfBKV8djSP2AwEij1TNQ/jui/gMqy1T92r3at3QnXPzaPkbyaUdg/6pFrvG2J2T+uwV+7wrDaP5woyccFx9s/0tAC8KLL3D9pxGdCBr7dPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"swd9VTx9pr8hzglBGsSlv4ChZXWH+aS/Y4r4UwcepL9XkSo+HTKjv+u+Y5VMNqK/sRsMuxgrob88sIsQBRGgvygKle4p0Z2/oEVhoZdkm7/5I0z8Wd2Yv1W2JcJ3PJa/1A2+tfeCk7+ZO+WZ4LGQv3yh1mJylIu/1rxAfhCahb/W1lEXUu1+vw6fXiGTWHK/WFugl/znVb+A9UU/O6lePwXZjbQ7EHU/0FuGPtZZgT9W6gYPQ0iIP9p1KMZWUY8/Dm4l74E5kz9s/eZontWWP+LXiA36e5o/XOw6Go4rnj/alBbmqfGgP2S/RzAi0aI/O+1IiqyzpD/UFbKSxZimP5swG+jpf6g/AjUcKZZoqj94Gk30RlKsP2rYReh4PK4/JjPPUVQTsD/IXXdiKQixP9FnZ/V5/LE/+EzrWQTwsj/5CE/fhuKzP4mX3tS/07Q/YPTliW3DtT83G7FNTrG2P8QHjG8gnbc/w7XCPqKGuD/pIKEKkm25P+5EcyKuUbo/ix2F1bQyuz95piJzZBC8Pw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Bx5LEX095z8j/q4h2oPmP/OE3CFlw+U/SsC6F2r85D/2vTAJNS/kP8uLJfwRXOM/mDeA9kyD4j80zyf+MaXhP2lgAxkNwuA/HPLzmVS03z/kTeU/q9vdP9DvqC+2+ts/f/MMdQ0S2j+cdN8bSSLYP8KO7i8BLNY/mV0Ivc0v1D+//PrORi7SP9iHlHEEKNA/FTVGYT07zD/woOkvWx/IP4eKr2aS/cM/P1JoOiauvz8HaCfWGlq3P8KJqZ/FAq4/hF2jWnmZmj9gHj9iJkl7v9BQsm4eGqS/qV2+7bdgsr8QIxtaLK26vwmFmyYGeMG/DtLsy3uTxb9aQWUFx6fJv6KbaLu3s82/0VQt6w7b0L8Hmk+f5NbSv9ABTe7EzNS/jXBXzBe81r+ayqAtRaTYv1L0Wga1hNq/EtK3Ss9c3L84SOnu+yvevyM7Ieei8d+/lsfIE5bW4L9ZFDbS/67hvwh28ajCgeK/1N4TkpJO47/pQLaHIxXkv3aO8YMp1eS/q7negFiO5b+1tJZ4ZEDmvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"I2j3Cl2bwz/MJ1XrlfTCP9GJmW0BNMI/BhI1oUpawT84RJiVHGjAP3NIZ7REvL4/sWvv/A16vD/W+akj6wq6P3f6d0cycLc/PHU6hzmrtD/FcdIBV72xP2LvQazBT60/Sh0ORlrYpj+GfMsOJBegP5w4eIiWHZI/QL8gQsIfbD96lQJPdDKHv6fQU0uoNJu/p63X03ykpb8i5ofgauitvzxB/Aa5MbO/t7kzD3OJt7/bVAlqDfq7v4gFTvwYQcC/WGoFTkWQwr8MVbqa4OnEv9JB/NI/Tce/3qxa57e5yb9eEmXInS7Mv37uqmZGq86/tt5dWYOX0L+yfZPOmdzRv0MSPguRJNO/hlqlhxNv1L+PFBG8y7vVv3b+yCBkCte/VtYULoda2L9EWjxc36vZv1pIhyMX/tq/q149/NhQ3L9TW6Zez6Pdv2r8CcOk9t6/AwDY0IEk4L8eEnA5S83gv5QTcdeDdeG/cOP+5gAd4r++YD2kl8Piv4pqUEsdaeO/4N9bGGcN5L/Ln4NHSrDkvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"VqPxtP2p7T+gyqM8j7zsP/FfyBd4xes/iB37ZB7F6j+lvddC6LvpP4z6+c87qug/f479Kn+Q5z/DM35yGG/mP5WkF8VtRuU/PJtlQeUW5D/z0QMG5eDiPwMDjjHTpOE/q+if4hVj4D9geqpvJjjeP6R1k59ioNs/pjcykqz/2D/mNL6E0FbWP+zhbrSaptM/QLN7Xtfv0D+8OjiApWbMP6YpDy2y48Y/PBzrPW1YwT8e93Va3oy3P2zCttVBvag/II1EHjKVcj/M/yIXtB+kv+omqKi1SbW/G+1AYIdAwL/aYyAvWtnFv6aOg8a6bcu/OsL9VQh+0L8kroyyYUHTv4gWtzsdANa/5IZFtG652L+xigDfiWzbv2qtsH6iGN6/SD0PK3Ze4L/OPgmUTazhvwahqltx9eK/q6lXY3s55L9+nnSMBXjlvzzFZbipsOa/o2OPyAHj579vv1Wepw7pv14eHRs1M+q/M8ZJIERQ67+n/D+PbmXsv3oHZElOcu2/aCwaMH127r8wscYklXHvvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"dEZDlAIn77/h8mBsFS7uv3xIppjWK+2//Kar8awg7L8SbglQ/wzrv3f9V4w08em/4bQvf7PN6L8K9CgB46Lnv6Ea3Oopcea/YIjhFO845b/8nNFXmfrjvy24RIyPtuK/qDnTijht4b8lgRUs+x7gv67cR5F8mN2/78EtctHq2r9ycQ2swjXYv6eqF/AdetW//Cx977C40r+zb922kuTPv14VOsppT8q/zslxe4KzxL/RF8xZ8CS+v+K08IHM27K/QKJR0EA7nr9Aey5YbvaNP5zqNW2tE64/kAvoyRNPuj81ChUgp8XCPxYJT6qnXcg/ioNAIfDtzT9m/UORcrrRP/r34aV1eNQ/GHJJnTMw1z9RrEnG3uDZPzfnsW+pidw/ZGNR6MUp3z+0sHs/M+DgP+yQOcFeJuI/ofLJoP5m4z8idpQFrKHkP7W7ABcA1uU/pWN2/JMD5z88Dl3dACroP8FbHOHfSOk/g+wbL8pf6j/JYMPuWG7rP9xYekcldOw/CHWoYMhw7T+VVbVh22PuPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ameWZkXE779vjGZ3+8/uv3Ha/IYF5e2/3n6rBmgD7b8ap8RnJyvsv5GAmhtIXOu/rjh/k86W6r/e/MRAv9rpv4L6vZQeKOm/DF+8APF+6L/iVxL2Ot/nv24SEuYASee/HrwNQke85r9agld7Ejnmv4qSQQNnv+W/GRoeS0lP5b9vRj/Evejkv/pE99/Ii+S/IUOYD2845L9PbnTEtO7jv+3z3W+eruO/ZwEngzB4478mxKFvb0vjv5RpoKZfKOO/GR91mQUP478iEnK5Zf/ivxZw6XeE+eK/YmYtRmb94r9vIpCVDwvjv6XRY9eEIuO/b6H6fMpD4785v6b35G7jv2pYurjYo+O/bpqHMari47+usmDTXSvkv5TOlw/4feS/iht/V33a5L/6xmgc8kDlv07+ps9aseW/7+6L4rsr5r9KxmnGGbDmv8Wxkux4Pue/zd5Yxt3W57/Keg7FTHnovyazBVrKJem/TrWQ9lrc6b+prgEMA53qv6HMqgvHZ+u/oDzeZqs87L8SLO6OtBvtvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"V6PxtP2p7b8piw92gL3sv9t/l2E2yeu/XmhVrHvN6r+kKxWLrMrpv6GwojIlwei/R97J10Gx57+Mm1avXpvmv17PFO7Xf+W/s2DQyAlf5L97NlV0UDnjv643byUID+K/OkvqEI3g4L8rsCTXdlzfv2GKZtTe8Ny/AvMxgwp/2r/qtx5NsgfYvwWnxJuOi9W/OY672FcL079sO5ttxofQvwP59oclA8y/wj7oiuryxr/k4zm3TODBv1kIN8B5mbm/oO3yYq/mrr8sK2miU0SVv1wQHdCzKZM/pPwXfJi4rT9IrBRPp+G4Py8LYUDOa8E/eoJaFqVdxj9IIEdW50TLP2KkexYSENA/ELCdY/V20j9L5fEoZdbUPyh24PyoLdc/ypTRdQh82T9Fcy0qy8DbP7ZDXLA4+90/GRxjT0wV4D9uwelFGSfhP+Qq9ganMuI/iXG8XZk34z9qrnAVlDXkP5P6Rvk6LOU/FG9z1DEb5j/4JCpyHALnP001n52e4Oc/H7kGIly26D98yZTK+ILpPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"z8OkQuJV6j8mVlAxc4zpP6jHM4XlzOg/r3GOeTEX6D+KrZ9JT2vnP5bUpjA3yeY/I0DjaeEw5j+OSZQwRqLlPyZK+b9dHeU/RptRUyCi5D9CltwlhjDkP3KU2XKHyOM/Ke+HdRxq4z/B/yZpPRXjP44f9ojiyeI/56c0EASI4j8h8iE6mk/iP5RX/UGdIOI/kzEGYwX74T932XvYyt7hP5Wond3ly+E/RfiqrU7C4T/bIeOD/cHhP65+hZvqyuE/FGjRLw7d4T9iNwZ8YPjhP/BFY7vZHOI/FO0nKXJK4j8khpMAIoHiP3Vq5XzhwOI/XvNc2agJ4z81ejlRcFvjP1BYuh8wtuM/B+cegOAZ5D+tf6ateYbkP5p7kOPz++Q/JTQcXUd65T+iAolVbAHmP2lAFghbkeY/zkYDsAsq5z8qb4+IdsvnP9IS+syTdeg/HIuCuFso6T9dMWiGxuPpP+xe6nHMp+o/IG1ItmV06z9QtcGOiknsP8+QlTYzJ+0/9VgD6VcN7j8ZZ0rh8PvuPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"RPd/QFea7j94ierrGartP+ZCb3Quuew/o2TSr8zH6z/GL9hzLNbqP2LlRJaF5Ok/lMbc7A/z6D9yFGRNAwLoPw0Qn42XEec/ffpRgwQi5j/cFEEEgjPlP0CgMOZHRuQ/vt3k/o1a4z9xDiIkjHDiP2lzrCt6iOE/wk1I64+i4D8cvXNxCn7fP9DNitMjvN0/yU9eqNv/2z81xXaboUnaP0KwXFjlmdg/HpOYihbx1j/477LdpE/VP/ZINP3/tdM/TCCllJck0j8m+I1P25vQP2Kl7rJ1OM4/MmTTu0tMyz8bMdsQGHTIP3MQFwm6sMU/nAaY+xADwz/nF28//GvAP2yRWle22Ls/vTrHLhoKtz+BNEaz4m2yP98O8yWdC6w/XHgG+Dinoz/2bRVyLGSXP3xwDxXJvoA/ADZQOKzjdr+RwDWfx92Svxs+VXA2CJ+/njF1ZJ4Ypb+Phjb47yiqv3KMKpeSsa6/9JiGcoRXsb/BMs3C6g6zv+gKR449fbS/tRjSJr6gtb90U0zerXe2vw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"fgh9VTx9pr8yPoTgDxmmv+pfAhIKS6a/4/ZreTAQp79cjDWmiGWov5Wp0ycYSKq/0Ne6jeS0rL9NoF9n86ivvyNGGyKlkLG/fxLaWXeNs7/aeaYic8m1v9XAOkQbQ7i/ECxRhvL4ur8pAKSwe+m9v+HAdsWcicC/u/pzblc6wr/3zyY3LwbEv+FibINl7MW/yNUhtzvsx78ASyQ28wTKv9bkUGTNNcy/nMWEpQt+zr/Ph86ud27Qv5hyO/jcqNG/UrT3YNbt0r8h3vGaBD3Uvy6BGFgIltW/pi5aSoL41r+sd6UjE2TYv2ft6JVb2Nm/ACETU/xU27+koxINltncv3QG1nXJZd6/nNpLPzf537+iWLENwMngv8iNBF4imuG/VtWW6ZJt4r/fd18J4kPjv/i9VRbgHOS/M/BwaV345L8nV6hbKtblv2Y780UXtua/hOVIgfSX578UnqBmknvov6ut8U7BYOm/31wzk1FH6r9C9FyMEy/rv2e8ZZPXF+y/4/1EAW4B7b9MAfIup+vtvw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"},{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"y+GR+vIZ4L9GeIaqai7fv0ZNGFkXF96/AkNiG4Lu3L/hWe0LQbXbv1OSQkXqa9q/wuzq4RMT2b+caW/8U6vXv0gJWa9ANda/NcwwFXCx1L/Lsn9IeCDTv3y9zmPvgtG/WdlNA9eyz7+igSJ5BUnMv5l0LV6Wyci/ILOA57U1xb8FPi5KkI7Bv0oskHajqru/r3jA30wWtL/GxSJ06sSov3aym77TRZK/6EPXqtzSij9iNaDVR72mP2GolKYLebM/24+EXjqnuz+z5z3Ua/PBP6cyK43FGsY/ACj4JH5Iyj/cxpJmaXvOPzSHdI4tWdE/4n50iRN20z8USsCJ0JPVP1joznTOsdc/RlkXMHfP2T9xnBChNOzbP2qxMa1wB94/5sv4nEoQ4D+Tp2MWhhvhP4nrlLUfJeI/jhdIbcws4z9wqzgwQTLkP/cmIvEyNeU/7wnAolY15j8h1M03YTLnP1UFB6MHLOg/Wh0n1/4h6T/3m+nG+xPqP/cACmWzAes/JMxDpNrq6z9IfVJ3Js/sPw==\"},\"shape\":[50],\"dtype\":\"float64\",\"order\":\"little\"}]],[\"edge_color\",{\"type\":\"ndarray\",\"array\":[\"Sc\",\"Sc\",\"Sc\",\"Sc\",\"He\",\"Ga\",\"Ga\",\"Ga\",\"Ga\",\"Ga\",\"Ta\",\"Ta\",\"Ta\",\"Ta\",\"Ta\",\"He\",\"He\",\"He\",\"He\",\"Sc\",\"Zr\",\"Zr\",\"Zr\",\"Zr\",\"Ce\",\"Ce\",\"Ce\",\"Ce\",\"Te\",\"Ru\",\"Sm\",\"Be\",\"Be\",\"Be\",\"Sm\",\"Gd\",\"Gd\",\"Gd\",\"Ru\",\"Ru\",\"Re\",\"Re\",\"Tm\",\"Te\",\"Te\",\"Tm\",\"Sm\",\"Tm\",\"Re\",\"Tb\",\"Rh\",\"Sb\",\"Nb\",\"Er\",\"I\",\"I\",\"Tb\",\"Er\",\"Sb\",\"Nb\",\"Rh\",\"Y\",\"Mn\",\"Rn\",\"Rn\",\"Mg\",\"Mg\",\"Bi\",\"P\",\"P\",\"Bi\",\"Y\",\"Ge\",\"Mn\",\"Ni\",\"Ni\",\"As\",\"As\",\"Ge\",\"Yb\",\"Hf\",\"Pa\",\"Th\",\"Ac\",\"Ra\",\"Fr\",\"At\",\"Ho\",\"Dy\",\"Os\",\"Po\",\"Lu\",\"W\",\"Tl\",\"Hg\",\"Au\",\"Pt\",\"Ir\",\"Pb\",\"H\",\"Eu\",\"Si\",\"Cr\",\"V\",\"Ti\",\"Ca\",\"K\",\"Ar\",\"Cl\",\"S\",\"Al\",\"Co\",\"Na\",\"Ne\",\"F\",\"O\",\"N\",\"C\",\"B\",\"Li\",\"Fe\",\"Cu\",\"Pm\",\"Cd\",\"Nd\",\"Pr\",\"La\",\"Ba\",\"Cs\",\"Xe\",\"Sn\",\"In\",\"Ag\",\"Zn\",\"Pd\",\"Tc\",\"Mo\",\"Sr\",\"Rb\",\"Kr\",\"Br\",\"Se\",\"U\"],\"shape\":[143],\"dtype\":\"object\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1078\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1079\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1072\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"xs\"},\"ys\":{\"type\":\"field\",\"field\":\"ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"edge_color\",\"transform\":{\"type\":\"object\",\"name\":\"CategoricalColorMapper\",\"id\":\"p1059\",\"attributes\":{\"palette\":[\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\",\"#e377c2\",\"#f7b6d2\",\"#7f7f7f\",\"#c7c7c7\",\"#bcbd22\",\"#dbdb8d\",\"#17becf\",\"#9edae5\",\"#1f77b4\",\"#aec7e8\",\"#ff7f0e\",\"#ffbb78\",\"#2ca02c\",\"#98df8a\",\"#d62728\",\"#ff9896\",\"#9467bd\",\"#c5b0d5\",\"#8c564b\",\"#c49c94\"],\"factors\":[\"B\",\"Po\",\"Au\",\"Sb\",\"Ge\",\"Co\",\"Ac\",\"Pm\",\"H\",\"Zn\",\"Tm\",\"Ir\",\"Ni\",\"Sn\",\"F\",\"Ru\",\"Br\",\"Dy\",\"Ra\",\"Cs\",\"Hg\",\"Y\",\"Gd\",\"I\",\"S\",\"Ga\",\"Nb\",\"Tc\",\"Pa\",\"Cl\",\"Kr\",\"Ce\",\"Ba\",\"Th\",\"Be\",\"Hf\",\"Al\",\"N\",\"Cd\",\"Pr\",\"Tb\",\"Si\",\"Zr\",\"Pd\",\"V\",\"Eu\",\"Se\",\"Sc\",\"Na\",\"Ne\",\"Ca\",\"Cr\",\"Os\",\"Nd\",\"Cu\",\"Fe\",\"Tl\",\"Ta\",\"Bi\",\"Mg\",\"In\",\"As\",\"W\",\"Mo\",\"Rn\",\"Sr\",\"Sm\",\"La\",\"Xe\",\"Yb\",\"Er\",\"Mn\",\"Te\",\"Rb\",\"Pt\",\"K\",\"He\",\"Re\",\"Lu\",\"Pb\",\"O\",\"Rh\",\"Ar\",\"P\",\"U\",\"Fr\",\"Ho\",\"C\",\"Ti\",\"At\",\"Li\",\"Ag\"]}}}}},\"selection_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1074\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"xs\"},\"ys\":{\"type\":\"field\",\"field\":\"ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"edge_color\",\"transform\":{\"id\":\"p1059\"}}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1073\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"xs\"},\"ys\":{\"type\":\"field\",\"field\":\"ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"edge_color\",\"transform\":{\"id\":\"p1059\"}},\"line_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"hover_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1075\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"xs\"},\"ys\":{\"type\":\"field\",\"field\":\"ys\"},\"line_color\":{\"type\":\"value\",\"value\":\"limegreen\"}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"MultiLine\",\"id\":\"p1076\",\"attributes\":{\"xs\":{\"type\":\"field\",\"field\":\"xs\"},\"ys\":{\"type\":\"field\",\"field\":\"ys\"},\"line_color\":{\"type\":\"field\",\"field\":\"edge_color\",\"transform\":{\"id\":\"p1059\"}},\"line_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},\"selection_policy\":{\"type\":\"object\",\"name\":\"NodesAndLinkedEdges\",\"id\":\"p1097\"},\"inspection_policy\":{\"type\":\"object\",\"name\":\"NodesAndLinkedEdges\",\"id\":\"p1099\"}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1124\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1115\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1116\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1117\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"QhERHcPL8D9PEyRkdsPwP5PsNwzhsvA/qx4cHo2S8D8hdq3cRETwPx4E7HSlSO8/8UrOncnr7T+QyfZaIETsPyi9adpjJuk/W4Nwn9kA5j++GGfrl7DjP9hLvXic2uE/71Xfn7VD4D/aK0t5gEDdP+rdlfP7kNo/fkF+0YNx1j/9S/rnGDnSP+nftAyLus4/YGpCC7XzyD+qbnaPiiDDP/pt3unYh7o/UeFc8xidpz9u7OMgdrahv8yVF6ycd72/XFA7b3wLxr+Mk8LdOMzQv8IDtsFII9e/eZfQiCU+27/1Vd+ftUPgvzsMaGyUeeK/whhn65ew479tARfLGrnlv0aAMKvAoOe/vyrYPomn6L9IAXBZtxrqvzxnk1/6puu/nghTdYmo7L/x2aVcsGbtv15IDPZPFu6/vsrKeBG37r+QtBe+omrvv58uQ2gHEfC/j0RWjHhv8L+Ld16Lfafwv/phdmE0vPC/8I1aYIrM8L9OEyRkdsPwvy11IUcLmvC/Hnat3ERE8L9Qi9ll+QLwv+zQOqtWwO2/jqgEDRKQ6r+DsPP7IqLpv64q2D6Jp+i/M4Awq8Cg57/4p6YbS47mv+1T5S+wcOW/4NGVBkQW47/aVd+ftUPgvyVq5hrtldy/gbEP7zc02b+4fDFoDb/Vv29Eax/ugtG/J41ScNjYy7+eYB3lVJbEvxVu3unYh7q/6+vjIHa2ob/A7OMgdrahPz6EcEPzpbQ/v/pStTszwD+AakILtfPIP4lEax/ugtE/hUF+0YNx1j/53ZXz+5DaP9krS3mAQN0/t2zSj5Dh3z89DGhslHniPwRU5S+wcOU/HKHFKvMY5z8KZI3VoiXoPy+9adpjJuk/QDre0sxV6j/ZeOne4HDrP735e3LFduw/79mlXLBm7T9XSAz2TxbuP/jlIQKzq+8/nOQ5x21l8D9GhM3oi4rwP4p3Xot9p/A/ZxEBnRfA8D9CEREdw8vwPw==\"},\"shape\":[92],\"dtype\":\"float64\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Vxepe46elz+WsDnj/7OxP6iVF6ycd70/SFA7b3wLxj+Fk8LdOMzQP88vqEWohNg/dmC/COyS3j9xHCtFYCriP33LnHXqR+Y/dndj0adk6T9eVYFg7jnrP735e3LFduw/7NmlXLBm7T/BNrBj6D/uPySh6qzl3O4/+OUhArOr7z+84KLdpSvwP8lRo1rhWvA/0umB5geC8D+LiZ0oBqHwPwDlQdDMt/A/aVuxLqbI8D9GBhgJd8rwP5PsNwzhsvA/qx4cHo2S8D8gdq3cRETwP4aHh5mni+8/tsrKeBG37j/n2aVcsGbtPx/jPb+bEOw/W1WBYO456z+MsPP7IqLpP28aATSQ4+c/ZB8KZfnT5j/A334KnCflP+3RlQZEFuM/tKndfUuK4T/lVd+ftUPgP2vDzocs6t0/WpfQiCU+2z/Oex+7VtTXP4LrPpC4o9M/A41ScNjYyz/w1gz6KKrBP0DwnFxDl7c/pv3l3+uehz8XsTnj/7OxvwZhHeVUlsS/rJPC3TjM0L87Wns8IljUv6XBucW5Ot+/uJq+LYCT5L92ARfLGrnlv3gfCmX50+a/gxoBNJDj579z82QDWefov+XK73PT3um/RWeTX/qm67/32aVcsGbtvzfbzp2RaO6/JIXKyrAl778xwYH6w8rvv48aG341OPC/jkRWjHhv8L8vdSFHC5rwvwDlQdDMt/C/RgYYCXfK8L9GBhgJd8rwv2cRAZ0XwPC/fSlCPHGt8L/S6YHmB4Lwv40aG341OPC/9uUhArOr778hoeqs5dzuv8I2sGPoP+6/K2HldfiT7b8e4z2/mxDsv9LK73PT3um/TaxbhfZm6L98CmtLNl3nv3XLnHXqR+a/i6/DnODd5L9yNYWiumPjv9hLvXic2uG/6VXfn7VD4L+Dw86HLOrdv31BftGDcda/E36WjCVKzb+XMBGn9X/HvxbXDPooqsG/XoRwQ/OltL8hF6l7jp6Xvw==\"},\"shape\":[92],\"dtype\":\"float64\",\"order\":\"little\"}],[\"text\",[\"B\",\"Po\",\"Au\",\"Sb\",\"Ge\",\"Co\",\"Ac\",\"Pm\",\"H\",\"Zn\",\"Tm\",\"Ir\",\"Ni\",\"Sn\",\"F\",\"Ru\",\"Br\",\"Dy\",\"Ra\",\"Cs\",\"Hg\",\"Y\",\"Gd\",\"I\",\"S\",\"Ga\",\"Nb\",\"Tc\",\"Pa\",\"Cl\",\"Kr\",\"Ce\",\"Ba\",\"Th\",\"Be\",\"Hf\",\"Al\",\"N\",\"Cd\",\"Pr\",\"Tb\",\"Si\",\"Zr\",\"Pd\",\"V\",\"Eu\",\"Se\",\"Sc\",\"Na\",\"Ne\",\"Ca\",\"Cr\",\"Os\",\"Nd\",\"Cu\",\"Fe\",\"Tl\",\"Ta\",\"Bi\",\"Mg\",\"In\",\"As\",\"W\",\"Mo\",\"Rn\",\"Sr\",\"Sm\",\"La\",\"Xe\",\"Yb\",\"Er\",\"Mn\",\"Te\",\"Rb\",\"Pt\",\"K\",\"He\",\"Re\",\"Lu\",\"Pb\",\"O\",\"Rh\",\"Ar\",\"P\",\"U\",\"Fr\",\"Ho\",\"C\",\"Ti\",\"At\",\"Li\",\"Ag\"]],[\"angle\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ejgZrBZ/lj9c6hIBUd+wP5mGH1fcHrw/86RXQSUXxT+YILJLWCvQPwLM2hYI59c/4+NBd8Y63j/ifdRrQkfiPzwCemEPM+c/1Ly+oeNq6z/i40F3xjruP5cgsktYK/A/zBxrLk8M8T8BGSQRRu3xP8XihMY+ofI/axGW1jOv8z8RQKfmKL30P9UJCJwhcfU/mdNoURol9j9dnckGE9n2PyFnKrwLjfc/VmPjngJu+D9txEzc9aj5P4Qlthnp4/o/uSFv/N/E+z9AtTBn0Sz9Pzl7Sv/Awf4/36lbD7bP/z+0ng6905sAQD9Pw1tNOQFAIbRztkmTAUCsZChVwzACQDgV3fM8zgJAGnqNTjkoA0BtEZbWM68DQPjBSnWtTARAE0Cn5ii9BED1pFdBJRcFQNcJCJwhcQVAuW649h3LBUDU7BRomTsGQCaEHfCTwgZA6k1+pYx2B0B2/jJEBhQIQFhj454CbghA5BOYPXwLCUDClTvMAJsIwP7L2hYI5wfAAOnNSpAcB8DnanHZFKwGwF/Xr24jRAXA10PuAzLcA8D13j2pNYIDwBR6jU45KAPAMRXd8zzOAsBQsCyZQHQCwG1LfD5EGgLAqYEbiUtmAcCtng6905sAwF0HBjXZFADAgRJTh7tI/79RFpqkxGf+v6nniJTPWf2/eevPsdh4/L9B7xbP4Zf7vxHzXezqtvq/acRM3PWo+b/BlTvMAJv4vwHM2hYI5/e/OQJ6YQ8z97+V02hRGiX2v4Fy/xMn6vS/aRGW1jOv87/B4oTGPqHyvwEZJBFG7fG/OU/DW0058b9jdwPit6Lvv5KGH1fcHuy/Qin9NvIC6r/ClTvMAJvovzICemEPM+e/0gkInCFx5b9jEZbWM6/jvwIZJBFG7eG/kiCyS1gr4L8kGuHBzYbdv7RuuPYdy9W/iYYfV9wezL+JOBmsFn/Gv0nqEgFR38C/kRGW1jOvs79HOBmsFn+Wvw==\"},\"shape\":[92],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1125\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1126\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Text\",\"id\":\"p1121\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"text\":{\"type\":\"field\",\"field\":\"text\"},\"angle\":{\"type\":\"field\",\"field\":\"angle\"},\"text_color\":{\"type\":\"value\",\"value\":\"black\"},\"text_font_size\":{\"type\":\"value\",\"value\":\"8pt\"},\"text_baseline\":{\"type\":\"value\",\"value\":\"middle\"}}},\"selection_glyph\":{\"type\":\"object\",\"name\":\"Text\",\"id\":\"p1127\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"text\":{\"type\":\"field\",\"field\":\"text\"},\"angle\":{\"type\":\"field\",\"field\":\"angle\"},\"x_offset\":{\"type\":\"value\",\"value\":0},\"y_offset\":{\"type\":\"value\",\"value\":0},\"text_color\":{\"type\":\"value\",\"value\":\"black\"},\"text_outline_color\":{\"type\":\"value\",\"value\":null},\"text_alpha\":{\"type\":\"value\",\"value\":1.0},\"text_font_size\":{\"type\":\"value\",\"value\":\"8pt\"},\"text_font_style\":{\"type\":\"value\",\"value\":\"normal\"},\"text_align\":{\"type\":\"value\",\"value\":\"left\"},\"text_baseline\":{\"type\":\"value\",\"value\":\"middle\"},\"text_line_height\":{\"type\":\"value\",\"value\":1.2},\"background_fill_color\":{\"type\":\"value\",\"value\":null},\"background_fill_alpha\":{\"type\":\"value\",\"value\":1.0},\"background_hatch_color\":{\"type\":\"value\",\"value\":null},\"background_hatch_alpha\":{\"type\":\"value\",\"value\":1.0},\"background_hatch_scale\":{\"type\":\"value\",\"value\":12.0},\"background_hatch_pattern\":{\"type\":\"value\",\"value\":null},\"background_hatch_weight\":{\"type\":\"value\",\"value\":1.0},\"border_line_color\":{\"type\":\"value\",\"value\":null},\"border_line_alpha\":{\"type\":\"value\",\"value\":1.0},\"border_line_width\":{\"type\":\"value\",\"value\":1},\"border_line_join\":{\"type\":\"value\",\"value\":\"bevel\"},\"border_line_cap\":{\"type\":\"value\",\"value\":\"butt\"},\"border_line_dash\":{\"type\":\"value\",\"value\":[]},\"border_line_dash_offset\":{\"type\":\"value\",\"value\":0}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Text\",\"id\":\"p1122\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"text\":{\"type\":\"field\",\"field\":\"text\"},\"angle\":{\"type\":\"field\",\"field\":\"angle\"},\"text_color\":{\"type\":\"value\",\"value\":\"black\"},\"text_alpha\":{\"type\":\"value\",\"value\":0.1},\"text_font_size\":{\"type\":\"value\",\"value\":\"8pt\"},\"text_baseline\":{\"type\":\"value\",\"value\":\"middle\"}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Text\",\"id\":\"p1123\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"text\":{\"type\":\"field\",\"field\":\"text\"},\"angle\":{\"type\":\"field\",\"field\":\"angle\"},\"text_color\":{\"type\":\"value\",\"value\":\"black\"},\"text_alpha\":{\"type\":\"value\",\"value\":0.2},\"text_font_size\":{\"type\":\"value\",\"value\":\"8pt\"},\"text_baseline\":{\"type\":\"value\",\"value\":\"middle\"}}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1017\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1008\",\"attributes\":{\"tags\":[\"hv_created\"],\"renderers\":[{\"id\":\"p1112\"},{\"id\":\"p1124\"},{\"id\":\"p1080\"}],\"tooltips\":[[\"element\",\"@{index_hover}\"]]}},{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1039\"},{\"type\":\"object\",\"name\":\"PanTool\",\"id\":\"p1040\"},{\"type\":\"object\",\"name\":\"WheelZoomTool\",\"id\":\"p1041\"},{\"type\":\"object\",\"name\":\"BoxZoomTool\",\"id\":\"p1042\",\"attributes\":{\"overlay\":{\"type\":\"object\",\"name\":\"BoxAnnotation\",\"id\":\"p1043\",\"attributes\":{\"syncable\":false,\"level\":\"overlay\",\"visible\":false,\"left_units\":\"canvas\",\"right_units\":\"canvas\",\"bottom_units\":\"canvas\",\"top_units\":\"canvas\",\"line_color\":\"black\",\"line_alpha\":1.0,\"line_width\":2,\"line_dash\":[4,4],\"fill_color\":\"lightgrey\",\"fill_alpha\":0.5}}}},{\"type\":\"object\",\"name\":\"ResetTool\",\"id\":\"p1044\"},{\"type\":\"object\",\"name\":\"TapTool\",\"id\":\"p1045\",\"attributes\":{\"renderers\":\"auto\"}}],\"active_drag\":{\"id\":\"p1040\"},\"active_scroll\":{\"id\":\"p1041\"}}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1032\",\"attributes\":{\"visible\":false,\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1033\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1034\"},\"axis_label\":\"y\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1035\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1025\",\"attributes\":{\"visible\":false,\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1026\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1027\"},\"axis_label\":\"x\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1028\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1031\",\"attributes\":{\"axis\":{\"id\":\"p1025\"},\"grid_line_color\":null}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1038\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1032\"},\"grid_line_color\":null}}],\"min_border_top\":10,\"min_border_bottom\":10,\"min_border_left\":10,\"min_border_right\":10,\"output_backend\":\"webgl\"}},{\"type\":\"object\",\"name\":\"Spacer\",\"id\":\"p1166\",\"attributes\":{\"name\":\"HSpacer01076\",\"stylesheets\":[\"\\n:host(.pn-loading.pn-arc):before, .pn-loading.arc:before {\\n background-image: url(\\\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJtYXJnaW46IGF1dG87IGJhY2tncm91bmQ6IG5vbmU7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzNjM2MzIiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij4gICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjFzIiB2YWx1ZXM9IjAgNTAgNTA7MzYwIDUwIDUwIiBrZXlUaW1lcz0iMDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+ICA8L2NpcmNsZT48L3N2Zz4=\\\");\\n background-size: auto calc(min(50%, 400px));\\n}\",{\"id\":\"p1004\"},{\"id\":\"p1002\"},{\"id\":\"p1003\"}],\"margin\":0,\"sizing_mode\":\"stretch_width\",\"align\":\"start\"}}]}}],\"callbacks\":{\"type\":\"map\"}}};\n", " var render_items = [{\"docid\":\"89f64604-367d-4fca-96e2-707aa3dca98c\",\"roots\":{\"p1001\":\"ff863f56-7e22-4d2c-8182-4b06f402f98f\"},\"root_ids\":[\"p1001\"]}];\n", " var docs = Object.values(docs_json)\n", " if (!docs) {\n", " return\n", " }\n", " const py_version = docs[0].version.replace('rc', '-rc.')\n", " const is_dev = py_version.indexOf(\"+\") !== -1 || py_version.indexOf(\"-\") !== -1\n", " function embed_document(root) {\n", " var Bokeh = get_bokeh(root)\n", " Bokeh.embed.embed_items_notebook(docs_json, render_items);\n", " for (const render_item of render_items) {\n", " for (const root_id of render_item.root_ids) {\n", "\tconst id_el = document.getElementById(root_id)\n", "\tif (id_el.children.length && (id_el.children[0].className === 'bk-root')) {\n", "\t const root_el = id_el.children[0]\n", "\t root_el.id = root_el.id + '-rendered'\n", "\t}\n", " }\n", " }\n", " }\n", " function get_bokeh(root) {\n", " if (root.Bokeh === undefined) {\n", " return null\n", " } else if (root.Bokeh.version !== py_version && !is_dev) {\n", " if (root.Bokeh.versions === undefined || !root.Bokeh.versions.has(py_version)) {\n", "\treturn null\n", " }\n", " return root.Bokeh.versions.get(py_version);\n", " } else if (root.Bokeh.version === py_version) {\n", " return root.Bokeh\n", " }\n", " return null\n", " }\n", " function is_loaded(root) {\n", " var Bokeh = get_bokeh(root)\n", " return (Bokeh != null && Bokeh.Panel !== undefined)\n", " }\n", " if (is_loaded(root)) {\n", " embed_document(root);\n", " } else {\n", " var attempts = 0;\n", " var timer = setInterval(function(root) {\n", " if (is_loaded(root)) {\n", " clearInterval(timer);\n", " embed_document(root);\n", " } else if (document.readyState == \"complete\") {\n", " attempts++;\n", " if (attempts > 200) {\n", " clearInterval(timer);\n", "\t var Bokeh = get_bokeh(root)\n", "\t if (Bokeh == null || Bokeh.Panel == null) {\n", " console.warn(\"Panel: ERROR: Unable to run Panel code because Bokeh or Panel library is missing\");\n", "\t } else {\n", "\t console.warn(\"Panel: WARNING: Attempting to render but not all required libraries could be resolved.\")\n", "\t embed_document(root)\n", "\t }\n", " }\n", " }\n", " }, 25, root)\n", " }\n", "})(window);</script>" ], "text/plain": [ ":Chord [source_element,target_element]" ] }, "execution_count": 11, "metadata": { "application/vnd.holoviews_exec.v0+json": { "id": "p1001" } }, "output_type": "execute_result" } ], "source": [ "%%opts Chord [height=1000 width=1000 labels=\"element\"]\n", "%%opts Chord (node_color=\"element\" node_cmap=\"Category20\" edge_color=\"source_element\" edge_cmap='Category20')\n", "chord = hv.Chord((plot_data, labels))\n", "chord\n", "\n", "# output not visible here, dunno why, but saved as chord_plot.png" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.10.8" }, "nbTranslate": { "displayLangs": [ "*" ], "hotkey": "alt-t", "langInMainMenu": true, "sourceLang": "en", "targetLang": "fr", "useGoogleTranslate": true }, "varInspector": { "cols": { "lenName": 16, "lenType": 16, "lenVar": 40 }, "kernels_config": { "python": { "delete_cmd_postfix": "", "delete_cmd_prefix": "del ", "library": "var_list.py", "varRefreshCmd": "print(var_dic_list())" }, "r": { "delete_cmd_postfix": ") ", "delete_cmd_prefix": "rm(", "library": "var_list.r", "varRefreshCmd": "cat(var_dic_list()) " } }, "types_to_exclude": [ "module", "function", "builtin_function_or_method", "instance", "_Feature" ], "window_display": false } }, "nbformat": 4, "nbformat_minor": 2 }